:root {
    --kp-bg: #F3F6FA;
    --kp-navy: #1A2C44;
    --kp-slate: #3D526B;
    --kp-gold: #C8A04D;
    --kp-blue: #198BD5;
    --kp-blue-dark: #236F9F;
    --kp-blue-soft: #EAF6FD;
    --kp-orange: #C46D09;
    --kp-white: #FFFFFF;
    --kp-border: #D5E4F3;
    --kp-muted: #6B7280;
    --kp-success: #2F6F4E;
    --kp-warning: #B8872B;
    --kp-error: #9F3A38;
}

.kp-portal,
.kp-portal * {
    box-sizing: border-box;
}

html:has(.kp-portal),
body:has(.kp-portal) {
    overflow-x: hidden;
}

.entry-content:has(.kp-portal),
.wp-block-post-content:has(.kp-portal),
.site-main:has(.kp-portal),
.content-area:has(.kp-portal),
.wp-site-blocks:has(.kp-portal) {
    max-width: none;
}

.kp-portal {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: 100vw;
    min-height: 760px;
    margin: 0 0 0 -50vw;
    color: var(--kp-navy);
    background: var(--kp-bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.kp-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 760px;
}

.kp-sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 22px 14px;
    color: var(--kp-white);
    background: linear-gradient(180deg, var(--kp-navy), #243954);
}

.kp-sidebar-header {
    padding: 6px 6px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.kp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.kp-brand:hover,
.kp-brand:focus {
    color: inherit;
    text-decoration: none;
}

.kp-brand-mark,
.kp-avatar,
.kp-login-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    color: var(--kp-navy);
    background: var(--kp-gold);
    font-weight: 800;
}

.kp-brand-mark img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.kp-brand strong,
.kp-brand small {
    display: block;
    line-height: 1.25;
}

.kp-brand small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.kp-nav {
    display: grid;
    gap: 6px;
    padding: 24px 0;
}

.kp-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease;
}

.kp-nav-link:hover,
.kp-nav-link:focus,
.kp-nav-link.is-active {
    color: var(--kp-white);
    background: rgba(255, 255, 255, 0.1);
}

.kp-nav-link.is-active {
    box-shadow: inset 3px 0 0 var(--kp-gold);
}

.kp-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: currentColor;
    opacity: 0.85;
}

.kp-nav-icon svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.kp-sidebar-footer {
    margin-top: auto;
    padding: 16px 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.kp-sidebar-footer strong {
    display: block;
    margin-top: 4px;
    color: var(--kp-white);
}

.kp-portal-home-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-bottom: 14px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: var(--kp-white);
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.kp-portal-home-link:hover,
.kp-portal-home-link:focus {
    color: var(--kp-navy);
    background: var(--kp-gold);
}

@media (min-width: 861px) {
    .kp-shell {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .kp-sidebar {
        align-items: center;
        padding: 0;
        color: #061D3B;
        background: #FFFFFF;
        border-right: 1px solid var(--kp-border);
        box-shadow: 8px 0 24px rgba(26, 44, 68, 0.04);
    }

    .kp-sidebar-header {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 10px 0 8px;
        border-bottom: 1px solid var(--kp-border);
        background: var(--kp-blue);
    }

    .kp-sidebar .kp-brand {
        justify-content: center;
        gap: 0;
    }

    .kp-sidebar .kp-brand span:not(.kp-brand-mark) {
        display: none;
    }

    .kp-sidebar .kp-brand-mark {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        color: #FFFFFF;
        background: #061D3B;
        padding: 5px;
    }

    .kp-sidebar .kp-brand-mark img {
        width: 38px;
        height: 38px;
    }

    .kp-nav {
        width: 100%;
        gap: 2px;
        padding: 12px 0;
    }

    .kp-nav-link {
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        min-height: 70px;
        padding: 8px 6px;
        border-radius: 8px;
        color: #061D3B;
        font-size: 12px;
        line-height: 1.15;
        text-align: center;
    }

    .kp-nav-link:hover,
    .kp-nav-link:focus {
        color: #061D3B;
        background: #EAF6FD;
    }

    .kp-nav-link.is-active {
        color: #061D3B;
        background: #FFFFFF;
        box-shadow: inset 0 0 0 1px var(--kp-blue);
    }

    .kp-nav-link.is-active .kp-nav-icon {
        color: #FFFFFF;
        background: var(--kp-blue);
        box-shadow: 0 8px 18px rgba(25, 139, 213, 0.25);
    }

    .kp-nav-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border: 1px solid #D5E4F3;
        border-radius: 8px;
        color: #143960;
        background: #FFFFFF;
        opacity: 1;
    }

    .kp-nav-icon svg {
        width: 16px;
        height: 16px;
    }

    .kp-sidebar-footer {
        width: 100%;
        padding: 12px 0 18px;
        border-top: 1px solid var(--kp-border);
        color: #506C91;
        font-size: 0;
        text-align: center;
    }

    .kp-sidebar-footer span {
        display: none;
    }

    .kp-sidebar-footer strong {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        margin: 0;
        overflow: hidden;
        border-radius: 50%;
        color: transparent;
        background: #E8F1FA;
    }

    .kp-sidebar-footer strong::first-letter {
        color: #143960;
        font-size: 15px;
    }
}

.kp-main {
    min-width: 0;
    padding: 16px;
}

.kp-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.kp-page-header h1,
.kp-card h2 {
    margin: 0;
    color: var(--kp-navy);
    line-height: 1.15;
}

.kp-page-header h1 {
    font-size: clamp(22px, 2.2vw, 30px);
}

.kp-card h2 {
    font-size: 15px;
    font-weight: 600;
}

.kp-eyebrow {
    margin: 0 0 6px;
    color: var(--kp-gold);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.kp-header-card,
.kp-card,
.kp-login-card {
    border: 1px solid var(--kp-border);
    border-radius: 8px;
    background: var(--kp-white);
    box-shadow: 0 4px 14px rgba(26, 44, 68, 0.035);
}

.kp-header-card {
    min-width: 190px;
    padding: 14px 16px;
}

.kp-header-card span,
.kp-header-card strong {
    display: block;
}

.kp-header-card span {
    color: var(--kp-muted);
    font-size: 13px;
}

.kp-content {
    display: grid;
    gap: 18px;
}

.kp-card {
    padding: 18px;
}

.kp-card p {
    margin: 10px 0 0;
    color: var(--kp-muted);
    line-height: 1.65;
}

.kp-welcome-card,
.kp-profile-summary,
.kp-section-heading,
.kp-card-topline,
.kp-file-row,
.kp-task-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.kp-welcome-card {
    align-items: flex-start;
}

.kp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 15px;
    border: 1px solid #B8D6EF;
    border-radius: 8px;
    color: var(--kp-navy);
    background: var(--kp-white);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.kp-button-primary {
    border-color: var(--kp-blue-dark);
    color: var(--kp-white);
    background: var(--kp-blue-dark);
}

.kp-portal .kp-button.kp-button-primary,
.kp-portal button.kp-button.kp-button-primary,
.kp-portal a.kp-button.kp-button-primary {
    border-color: var(--kp-blue-dark) !important;
    color: var(--kp-white) !important;
    background: var(--kp-blue-dark) !important;
}

.kp-portal .kp-button.kp-button-primary:hover,
.kp-portal .kp-button.kp-button-primary:focus,
.kp-portal button.kp-button.kp-button-primary:hover,
.kp-portal button.kp-button.kp-button-primary:focus,
.kp-portal a.kp-button.kp-button-primary:hover,
.kp-portal a.kp-button.kp-button-primary:focus {
    border-color: #1F5F89 !important;
    color: var(--kp-white) !important;
    background: #1F5F89 !important;
}

.kp-button:disabled,
.kp-button[disabled] {
    cursor: not-allowed;
    opacity: 0.55;
}

.kp-metric-grid,
.kp-list-grid,
.kp-property-grid,
.kp-field-grid,
.kp-detail-grid {
    display: grid;
    gap: 16px;
}

.kp-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kp-list-grid,
.kp-property-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kp-field-grid,
.kp-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kp-metric-card strong {
    display: block;
    margin: 8px 0;
    font-size: 34px;
    color: var(--kp-navy);
}

.kp-linked-card {
    color: inherit;
    text-decoration: none;
}

.kp-linked-card:hover,
.kp-linked-card:focus {
    border-color: rgba(200, 160, 77, 0.65);
    transform: translateY(-1px);
}

.kp-mini-row {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid var(--kp-border);
}

.kp-mini-row:first-of-type {
    border-top: 0;
}

.kp-mini-row strong {
    color: var(--kp-navy);
}

.kp-mini-row span {
    color: var(--kp-muted);
    font-size: 13px;
}

.kp-profile-form-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}

.kp-form-status {
    color: var(--kp-muted);
    font-size: 13px;
    font-weight: 700;
}

.kp-form-status.is-success {
    color: var(--kp-success);
}

.kp-form-status.is-error {
    color: var(--kp-error);
}

.kp-profile-card {
    border-color: #D5E4F3;
    background: #F8FBFE;
    box-shadow: none;
}

.kp-profile-summary {
    justify-content: flex-start;
    padding: 14px 16px;
}

.kp-profile-summary .kp-avatar {
    width: 48px;
    height: 48px;
    font-size: 15px;
}

.kp-profile-summary h2 {
    font-size: 16px;
    font-weight: 600;
}

.kp-profile-summary p {
    margin-top: 4px;
    line-height: 1.4;
}

.kp-profile-details-card,
.kp-completed-forms-card,
.kp-referral-link-card {
    padding: 16px;
}

.kp-profile-details-card .kp-section-heading,
.kp-completed-forms-card .kp-section-heading,
.kp-referral-link-card .kp-section-heading {
    margin-bottom: 12px;
}

.kp-referral-link-card p {
    margin: 0 0 12px;
    color: var(--kp-muted);
    font-size: 13px;
    line-height: 1.45;
}

.kp-referral-link-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.kp-referral-link-row input {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--kp-border);
    border-radius: 8px;
    color: var(--kp-navy);
    background: #FFFFFF;
    font: inherit;
    font-size: 13px;
}

.kp-referral-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.kp-referral-modal.is-open {
    display: flex;
}

.kp-referral-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 29, 59, 0.58);
    backdrop-filter: blur(3px);
}

.kp-referral-modal-panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(980px, 100%);
    height: min(820px, calc(100vh - 56px));
    border: 1px solid #CFE0EF;
    border-radius: 8px;
    background: #F8FBFE;
    box-shadow: 0 24px 70px rgba(6, 29, 59, 0.28);
    overflow: hidden;
}

.kp-referral-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid #DCEAF5;
    background: #FFFFFF;
}

.kp-referral-modal-header h2 {
    margin: 2px 0 0;
    color: var(--kp-navy);
    font-size: 19px;
}

.kp-referral-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #CFE0EF;
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--kp-navy);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.kp-referral-modal-close:hover {
    background: #EEF6FC;
}

.kp-referral-modal iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #F3F6FA;
}

html.kp-referral-modal-open,
html.kp-referral-modal-open body {
    overflow: hidden;
}

.kp-profile-details-card .kp-field-grid {
    gap: 12px;
}

.kp-profile-details-card .kp-field {
    gap: 5px;
}

.kp-profile-details-card .kp-field span {
    font-size: 12px;
}

.kp-profile-details-card .kp-field input,
.kp-profile-details-card .kp-field textarea {
    min-height: 36px;
    padding: 8px 10px;
    background: #FFFFFF;
}

.kp-profile-details-card .kp-field textarea {
    width: 100%;
    resize: vertical;
}

.kp-profile-details-card .kp-field select {
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid var(--kp-border);
    border-radius: 8px;
    color: var(--kp-navy);
    background: #FFFFFF;
    font: inherit;
}

.kp-profile-details-card .kp-field select[multiple] {
    min-height: 92px;
}

.kp-profile-details-card .kp-field.is-readonly input,
.kp-profile-details-card .kp-field.is-readonly textarea,
.kp-profile-details-card .kp-field.is-readonly select {
    color: #506C91;
    background: #EFF5FB;
}

.kp-checkbox-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid var(--kp-border);
    border-radius: 8px;
    background: #FFFFFF;
}

.kp-checkbox-field input {
    width: 16px;
    min-height: 16px;
}

.kp-checkbox-field small {
    color: var(--kp-navy);
    font-size: 12px;
    font-weight: 600;
}

.kp-profile-subsection {
    margin-top: 16px;
}

.kp-profile-subsection h3 {
    margin: 0 0 10px;
    color: var(--kp-navy);
    font-size: 14px;
    font-weight: 600;
}

.kp-profile-form-actions {
    margin-top: 14px;
}

.kp-profile-form-list {
    display: grid;
    gap: 10px;
}

.kp-profile-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #BFDDF3;
    border-radius: 8px;
    background: #FFFFFF;
}

.kp-profile-form-row h3 {
    margin: 0;
    color: var(--kp-navy);
    font-size: 14px;
}

.kp-profile-form-row p {
    margin-top: 3px;
    line-height: 1.4;
    font-size: 12px;
}

.kp-profile-form-row .kp-button {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 12px;
}

.kp-dashboard-schedule {
    display: grid;
    gap: 18px;
}

.kp-dashboard-schedule-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 18px;
}

.kp-dashboard-schedule-grid h3 {
    margin: 0 0 10px;
    color: var(--kp-navy);
    font-size: 17px;
}

.kp-dashboard-timeline-item,
.kp-dashboard-meeting-item {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid var(--kp-border);
}

.kp-dashboard-timeline-item {
    color: inherit;
    text-decoration: none;
}

.kp-dashboard-timeline-item:hover strong,
.kp-dashboard-timeline-item:focus strong {
    color: #0077D9;
}

.kp-dashboard-timeline-item span,
.kp-dashboard-timeline-item small,
.kp-dashboard-meeting-item span,
.kp-dashboard-request-note {
    color: var(--kp-muted);
    font-size: 13px;
}

.kp-dashboard-timeline-item span {
    font-weight: 800;
}

.kp-dashboard-timeline-item strong,
.kp-dashboard-meeting-item strong {
    color: var(--kp-navy);
}

.kp-dashboard-request-note {
    margin: 14px 0 0;
}

.kp-dashboard-document-list {
    display: grid;
    gap: 0;
}

.kp-dashboard-document-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 0;
    border-top: 1px solid var(--kp-border);
}

.kp-dashboard-document-item:first-child {
    border-top: 0;
}

.kp-dashboard-document-item strong,
.kp-dashboard-document-item span {
    display: block;
}

.kp-dashboard-document-item strong {
    color: var(--kp-navy);
}

.kp-dashboard-document-item div > span {
    margin-top: 3px;
    color: var(--kp-muted);
    font-size: 13px;
}

.kp-dashboard-document-item .kp-badge {
    flex: 0 0 auto;
    max-width: 44%;
    white-space: normal;
    text-align: center;
}

.kp-metric-card span,
.kp-field span,
.kp-detail-grid strong,
.kp-card-topline,
.kp-table th,
.kp-task-row time {
    color: var(--kp-muted);
    font-size: 13px;
    font-weight: 600;
}

.kp-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 26px;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--kp-slate);
    background: #F7F4EC;
    font-size: 12px;
    font-weight: 800;
}

.kp-badge-success {
    color: var(--kp-white);
    background: var(--kp-success);
}

.kp-badge-warning {
    color: var(--kp-white);
    background: var(--kp-warning);
}

.kp-message-panel {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--kp-border);
    border-radius: 8px;
    background: #FAF9F6;
}

.kp-message-row {
    display: flex;
}

.kp-message-row.is-client {
    justify-content: flex-end;
}

.kp-message-bubble {
    max-width: 72%;
    padding: 14px 16px;
    border-radius: 8px;
    color: var(--kp-navy);
    background: var(--kp-white);
    box-shadow: 0 6px 20px rgba(26, 44, 68, 0.08);
}

.kp-message-row.is-client .kp-message-bubble {
    color: var(--kp-white);
    background: var(--kp-slate);
}

.kp-message-bubble p {
    color: inherit;
}

.kp-message-bubble span {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    opacity: 0.72;
}

.kp-message-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 16px;
}

.kp-message-portal {
    display: grid;
    gap: 16px;
}

.kp-message-hero,
.kp-message-setup,
.kp-message-workspace {
    border: 1px solid var(--kp-border);
    border-radius: 8px;
    background: var(--kp-white);
    box-shadow: 0 12px 32px rgba(26, 44, 68, 0.06);
}

.kp-message-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
}

.kp-message-hero h2,
.kp-message-setup h3 {
    margin: 0;
    color: #061D3B;
}

.kp-message-hero h2 {
    font-size: 22px;
    line-height: 1.05;
}

.kp-message-hero p,
.kp-message-setup p {
    margin: 5px 0 0;
    color: #45638A;
}

.kp-message-setup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    gap: 20px;
    padding: 22px;
}

.kp-message-source-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.kp-message-source-list div {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #E6EEF7;
}

.kp-message-source-list dt {
    color: #506C91;
    font-weight: 800;
}

.kp-message-source-list dd {
    margin: 0;
    color: #061D3B;
}

.kp-message-workspace {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    min-height: 660px;
    overflow: hidden;
}

.kp-message-workspace button {
    border-color: transparent;
    box-shadow: none;
}

.kp-portal .kp-message-workspace button {
    box-shadow: none !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    text-transform: none !important;
}

.kp-message-mailboxes {
    display: grid;
    align-content: start;
    gap: 18px;
    padding: 16px;
    border-right: 1px solid var(--kp-border);
    background: var(--kp-white);
}

.kp-message-compose {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border: 0 !important;
    border-radius: 8px;
    color: var(--kp-white);
    background: #19466A;
    font: inherit;
    font-weight: 800;
}

.kp-portal button.kp-message-compose {
    display: inline-flex !important;
    width: 100%;
    border: 0 !important;
    color: var(--kp-white) !important;
    background: #19466A !important;
}

.kp-message-compose:hover,
.kp-message-compose:focus {
    color: var(--kp-white);
    background: #143A58;
}

.kp-message-compose:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.kp-message-mailboxes nav,
.kp-message-custom-folders {
    display: grid;
    gap: 6px;
}

.kp-message-mailboxes nav button,
.kp-message-custom-folders button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    color: #061D3B;
    background: transparent;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.kp-message-mailboxes nav button:hover,
.kp-message-mailboxes nav button:focus,
.kp-message-custom-folders button:hover,
.kp-message-custom-folders button:focus,
.kp-message-mailboxes nav button.is-active,
.kp-message-custom-folders button.is-active {
    background: #E8F1FA;
}

.kp-message-mailboxes nav b,
.kp-message-custom-folders b {
    min-width: 22px;
    padding: 2px 6px;
    border-radius: 999px;
    color: #315B7A;
    background: #F3F8FD;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.kp-message-folder-create {
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid #B8D6EF !important;
    border-radius: 8px;
    color: #143960 !important;
    background: #FFFFFF !important;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.kp-message-folder-create:hover,
.kp-message-folder-create:focus {
    background: #EDF4FA !important;
}

.kp-message-inbox-main {
    min-width: 0;
    background: var(--kp-white);
}

.kp-message-thread-layout {
    display: grid;
    grid-template-columns: minmax(330px, 0.32fr) minmax(0, 1fr);
    min-height: 560px;
}

.kp-message-inbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 58px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--kp-border);
}

.kp-message-inbox-header div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #061D3B;
    font-size: 17px;
}

.kp-message-inbox-header > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    color: #45638A;
    background: #EFF5FB;
    font-size: 13px;
    font-weight: 800;
}

.kp-message-inbox-rows {
    display: grid;
    align-content: start;
    border-right: 1px solid var(--kp-border);
    background: #FFFFFF;
}

.kp-message-inbox-empty {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--kp-border);
    color: #45638A;
}

.kp-message-inbox-empty strong {
    display: block;
    color: #061D3B;
    font-size: 14px;
}

.kp-message-inbox-empty span:not(.kp-message-avatar) {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.4;
}

.kp-message-inbox-row {
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 78px;
    width: 100%;
    padding: 12px 16px;
    border-bottom: 1px solid var(--kp-border);
    border-left: 0;
    border-right: 0;
    border-top: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
}

.kp-portal .kp-message-inbox-row {
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) 64px !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 84px !important;
    padding: 13px 16px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--kp-border) !important;
    border-radius: 0 !important;
    color: #061D3B !important;
    background: #FFFFFF !important;
    outline: 0;
    text-align: left !important;
}

.kp-message-inbox-row:hover,
.kp-message-inbox-row:focus,
.kp-message-inbox-row.is-active {
    background: #F3F8FC;
}

.kp-portal .kp-message-inbox-row:hover,
.kp-portal .kp-message-inbox-row:focus,
.kp-portal .kp-message-inbox-row.is-active {
    background: #F3F8FC !important;
}

.kp-message-inbox-row.is-active {
    box-shadow: inset 4px 0 0 var(--kp-blue);
}

.kp-portal .kp-message-inbox-row.is-active {
    box-shadow: inset 4px 0 0 var(--kp-blue) !important;
}

.kp-message-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #174A73;
    background: #E8F1FA;
    font-size: 12px;
    font-weight: 800;
}

.kp-message-row-content {
    min-width: 0;
}

.kp-message-row-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.kp-message-row-title strong,
.kp-message-row-subject,
.kp-message-row-preview {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kp-message-row-title strong {
    color: #061D3B;
}

.kp-message-row-title span {
    display: inline-flex;
    align-items: center;
    min-height: 21px;
    padding: 2px 7px;
    border-radius: 999px;
    color: #506C91;
    background: #EFF5FB;
    font-size: 12px;
    font-weight: 800;
}

.kp-message-row-subject {
    display: block;
    margin-top: 3px;
    color: #061D3B;
    font-size: 13px;
    font-weight: 800;
}

.kp-message-row-preview {
    display: block;
    margin-top: 5px;
    color: #45638A;
    font-size: 13px;
}

.kp-message-inbox-row time {
    color: #506C91;
    font-size: 12px;
    text-align: right;
    white-space: nowrap;
}

.kp-message-thread-panels {
    min-width: 0;
    background: #F4F8FB;
}

.kp-message-thread-panel {
    display: none;
    min-height: 100%;
}

.kp-message-thread-panel.is-active {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.kp-message-thread-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--kp-border);
    background: var(--kp-white);
}

.kp-message-thread-identity {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.kp-message-thread-header h3 {
    overflow: hidden;
    margin: 5px 0 3px;
    color: #061D3B;
    font-size: 19px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kp-message-thread-header p {
    overflow: hidden;
    margin: 0;
    color: #506C91;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kp-message-thread-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.kp-message-thread-actions label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #49637D;
    font-size: 12px;
    font-weight: 500;
}

.kp-message-thread-actions select,
.kp-message-thread-actions button {
    min-height: 34px;
    border: 1px solid #B8D6EF !important;
    border-radius: 7px;
    color: #143960 !important;
    background: #FFFFFF !important;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
}

.kp-message-thread-actions select {
    max-width: 170px;
    padding: 6px 28px 6px 10px;
}

.kp-message-thread-actions button {
    padding: 6px 10px;
    cursor: pointer;
}

.kp-message-thread-actions button:hover,
.kp-message-thread-actions button:focus,
.kp-message-thread-actions select:hover,
.kp-message-thread-actions select:focus {
    background: #EDF4FA !important;
}

.kp-portal .kp-message-thread-header .kp-button,
.kp-portal .kp-message-modal-footer .kp-button {
    display: inline-flex !important;
    border-color: #B8D6EF !important;
    color: #143960 !important;
    background: #FFFFFF !important;
}

.kp-portal .kp-message-modal-footer .kp-button-primary {
    border-color: #19466A !important;
    color: #FFFFFF !important;
    background: #19466A !important;
}

.kp-message-conversation {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 18px 20px;
    background: #FFFFFF;
}

.kp-message-conversation-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    width: 100%;
    max-width: none;
    padding: 10px 14px;
    border: 1px solid #DCE8F3;
    border-radius: 8px;
    background: #FFFFFF;
}

.kp-message-conversation-row.is-client {
    grid-template-columns: 42px minmax(0, 1fr);
    justify-self: stretch;
}

.kp-message-conversation-row.is-pending {
    grid-template-columns: minmax(0, 1fr);
}

.kp-message-conversation-row.is-client .kp-message-conversation-bubble {
    grid-column: 2;
    grid-row: 1;
    color: #061D3B;
    background: transparent;
}

.kp-message-conversation-bubble {
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #061D3B;
    background: transparent;
    box-shadow: none;
}

.kp-message-conversation-row.is-kerja .kp-message-conversation-bubble {
    border-top-left-radius: 0;
}

.kp-message-conversation-row.is-client .kp-message-conversation-bubble {
    border-top-right-radius: 0;
}

.kp-message-conversation-bubble strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.kp-message-conversation-bubble div {
    color: inherit;
    font-size: 14px;
    line-height: 1.55;
}

.kp-message-conversation-bubble p {
    margin: 8px 0 0;
}

.kp-message-conversation-bubble time {
    display: block;
    margin-top: 5px;
    color: #7A8BA1;
    font-size: 11px;
    opacity: 1;
}

.kp-message-attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.kp-message-attachment-list a,
.kp-message-attachment-list span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid #D5E4F3;
    border-radius: 999px;
    color: #143960;
    background: #FFFFFF;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.kp-message-conversation-row.is-client .kp-message-attachment-list a,
.kp-message-conversation-row.is-client .kp-message-attachment-list span {
    border-color: #D5E4F3;
    color: #143960;
    background: #F8FBFE;
}

.kp-message-thread-footer {
    display: flex;
    justify-content: flex-start;
    padding: 14px 20px;
    border-top: 1px solid var(--kp-border);
    background: #FFFFFF;
}

.kp-portal .kp-message-thread-footer .kp-button {
    border-color: #B8D6EF !important;
    color: #143960 !important;
    background: #FFFFFF !important;
}

.kp-message-thread-reply::before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border-radius: 50%;
    color: #FFFFFF;
    background: #19466A;
    font-size: 13px;
    line-height: 1;
}

.kp-message-empty-thread {
    padding: 18px;
    border: 1px dashed #B8D6EF;
    border-radius: 8px;
    color: #45638A;
    background: var(--kp-white);
}

.kp-message-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.kp-message-modal.is-open {
    display: flex;
}

.kp-message-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 44, 68, 0.48);
}

.kp-message-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: hidden;
    border: 1px solid #B8D6EF;
    border-top: 4px solid var(--kp-blue);
    border-radius: 8px;
    background: var(--kp-white);
    box-shadow: 0 26px 70px rgba(26, 44, 68, 0.28);
}

.kp-message-modal-header,
.kp-message-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #DCE8F3;
}

.kp-message-modal-header h2 {
    margin: 0;
    color: #061D3B;
    font-size: 18px;
}

.kp-message-modal-header button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    color: #506C91;
    background: transparent;
    font: inherit;
    font-size: 20px;
    cursor: pointer;
}

.kp-message-modal-header button:hover,
.kp-message-modal-header button:focus {
    background: #EFF5FB;
}

.kp-message-modal-body {
    display: grid;
    gap: 14px;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
    padding: 18px 20px;
}

.kp-message-modal-row {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    margin: 0;
    color: #061D3B;
    font-size: 14px;
    font-weight: 700;
}

.kp-message-modal-row small {
    grid-column: 2 / -1;
    margin-top: -4px;
    color: #66798C;
    font-size: 12px;
    line-height: 1.35;
}

.kp-message-modal-row.is-hidden {
    display: none;
}

.kp-message-modal-row > span {
    padding-top: 10px;
}

.kp-message-modal-row b {
    color: var(--kp-error);
}

.kp-message-modal-row input,
.kp-message-modal-row select,
.kp-message-modal-row textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #D5E4F3;
    border-radius: 8px;
    color: #061D3B;
    background: var(--kp-white);
    font: inherit;
    font-weight: 500;
}

.kp-message-modal-row select[multiple] {
    min-height: 96px;
    padding: 6px;
}

.kp-message-modal-row select[multiple] option {
    padding: 6px 8px;
}

.kp-message-modal-row input[readonly] {
    color: #061D3B;
    background: #F8FBFE;
}

.kp-message-modal-row button {
    min-height: 42px;
    border: 0;
    color: #19466A;
    background: transparent;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.kp-message-editor-row {
    align-items: stretch;
}

.kp-message-editor {
    grid-column: 2 / -1;
    border: 1px solid #D5E4F3;
    border-radius: 8px;
    overflow: hidden;
    background: var(--kp-white);
}

.kp-message-editor-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 38px;
    padding: 6px 10px;
    border-bottom: 1px solid #D5E4F3;
    color: #3D526B;
    background: #FBFCFE;
    font-size: 13px;
}

.kp-message-editor-toolbar select {
    height: 28px;
    max-width: 104px;
    padding: 0 7px;
    border: 0;
    border-radius: 6px;
    color: #17334F;
    background: #EEF4FA;
    font: inherit;
    font-size: 12px;
    font-weight: 400;
}

.kp-message-editor-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
    border: 0;
    border-radius: 6px;
    color: #3D526B;
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.kp-message-editor-toolbar button:hover,
.kp-message-editor-toolbar button:focus {
    background: #EDF4FA;
}

.kp-message-rich-editor {
    display: block;
    min-height: 220px;
    max-height: 320px;
    overflow: auto;
    padding: 13px 15px;
    border: 0;
    border-radius: 0;
    color: #17334F;
    background: #FFFFFF;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.48;
    outline: none;
    cursor: text;
}

.kp-message-rich-editor:focus {
    box-shadow: inset 0 0 0 2px rgba(25, 139, 213, 0.14);
}

.kp-message-rich-editor:empty::before {
    color: #7C8EA2;
    content: attr(data-placeholder);
}

.kp-message-rich-editor ul,
.kp-message-rich-editor ol,
.kp-message-conversation-bubble ul,
.kp-message-conversation-bubble ol {
    margin: 8px 0 8px 22px;
    padding: 0;
}

.is-underline {
    text-decoration: underline;
}

.is-strike {
    text-decoration: line-through;
}

.kp-message-modal-footer {
    justify-content: flex-start;
    border-top: 1px solid #DCE8F3;
    border-bottom: 0;
    background: #F8FBFE;
}

.kp-message-modal-footer span {
    color: #506C91;
    font-size: 13px;
}

.kp-notes-portal {
    display: grid;
    gap: 16px;
}

.kp-notes-hero,
.kp-notes-filterbar,
.kp-note-timeline-card {
    border: 1px solid var(--kp-border);
    border-radius: 8px;
    background: var(--kp-white);
    box-shadow: 0 12px 32px rgba(26, 44, 68, 0.06);
}

.kp-notes-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
}

.kp-notes-hero h2 {
    margin: 0;
    color: #061D3B;
    font-size: 28px;
    line-height: 1.05;
}

.kp-notes-hero p {
    margin: 7px 0 0;
    color: #45638A;
}

.kp-notes-filterbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px;
}

.kp-notes-filterbar span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid #B8D6EF;
    border-radius: 999px;
    color: #143960;
    background: #FFFFFF;
    font-size: 13px;
    font-weight: 800;
}

.kp-notes-filterbar span.is-active {
    color: #06456E;
    background: var(--kp-blue-soft);
}

.kp-notes-timeline {
    position: relative;
    display: grid;
    gap: 14px;
}

.kp-notes-timeline::before {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 18px;
    width: 2px;
    background: #D5E4F3;
    content: "";
}

.kp-note-timeline-card {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 18px;
}

.kp-note-marker {
    position: relative;
    z-index: 1;
    width: 14px;
    height: 14px;
    margin: 8px auto 0;
    border: 3px solid #FFFFFF;
    border-radius: 50%;
    background: var(--kp-gold);
    box-shadow: 0 0 0 1px #D5E4F3;
}

.kp-note-card-main {
    min-width: 0;
}

.kp-note-card-main header,
.kp-note-card-main footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.kp-note-card-main header > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.kp-note-source,
.kp-note-card-main time,
.kp-note-card-main footer span {
    color: #506C91;
    font-size: 13px;
    font-weight: 800;
}

.kp-note-card-main h3 {
    margin: 13px 0 8px;
    color: #061D3B;
    font-size: 21px;
}

.kp-note-body {
    color: #45638A;
    line-height: 1.7;
}

.kp-note-body p {
    margin: 8px 0 0;
}

.kp-note-card-main footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #E6EEF7;
}

.kp-note-replies {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #E6EEF7;
}

.kp-note-reply-list {
    display: grid;
    gap: 10px;
}

.kp-note-reply {
    padding: 12px 14px;
    border: 1px solid #D6E4F2;
    border-radius: 8px;
    background: #F8FBFE;
}

.kp-note-reply strong {
    color: #061D3B;
    font-size: 13px;
}

.kp-note-reply span {
    margin-left: 8px;
    color: #607B9C;
    font-size: 12px;
}

.kp-note-reply p {
    margin: 6px 0 0;
    color: #1A2C44;
    font-size: 14px;
}

.kp-note-reply-form {
    display: grid;
    gap: 10px;
}

.kp-note-reply-form label {
    display: grid;
    gap: 6px;
    color: #45638A;
    font-size: 13px;
    font-weight: 750;
}

.kp-note-reply-form textarea {
    min-height: 86px;
    resize: vertical;
    border: 1px solid #C7DAEC;
    border-radius: 8px;
    padding: 10px 12px;
    color: #061D3B;
    background: #FFFFFF;
    font: inherit;
}

.kp-note-reply-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.kp-note-reply-actions span {
    color: #607B9C;
    font-size: 12px;
}

.kp-field {
    display: grid;
    gap: 8px;
}

.kp-field input,
.kp-message-input input {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--kp-border);
    border-radius: 8px;
    color: var(--kp-navy);
    background: #FAF9F6;
}

.kp-avatar {
    width: 64px;
    height: 64px;
    font-size: 20px;
}

.kp-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.kp-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.kp-table th,
.kp-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--kp-border);
    text-align: left;
}

.kp-property-card {
    padding: 0;
    overflow: hidden;
}

.kp-property-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    color: rgba(255, 255, 255, 0.88);
    background:
        linear-gradient(135deg, rgba(26, 44, 68, 0.86), rgba(61, 82, 107, 0.76)),
        repeating-linear-gradient(45deg, #3D526B 0 10px, #49617E 10px 20px);
    font-weight: 800;
}

.kp-property-image-large {
    margin-bottom: 20px;
    border-radius: 8px;
}

.kp-property-body {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.kp-property-body dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.kp-mini-dl {
    display: grid;
    gap: 8px;
    margin: 14px 0 0;
}

.kp-mini-dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--kp-border);
}

.kp-mini-dl dt {
    color: var(--kp-muted);
    font-weight: 800;
}

.kp-mini-dl dd {
    margin: 0;
    text-align: right;
}

.kp-property-body div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.kp-property-body dt {
    color: var(--kp-muted);
    font-weight: 800;
}

.kp-property-body dd {
    margin: 0;
    text-align: right;
}

.kp-back-link {
    display: inline-flex;
    color: var(--kp-slate);
    font-weight: 800;
    text-decoration: none;
}

.kp-detail-grid span {
    display: grid;
    gap: 5px;
    padding: 14px;
    border: 1px solid var(--kp-border);
    border-radius: 8px;
    background: #FAF9F6;
}

.kp-property-portal,
.kp-property-detail {
    display: grid;
    gap: 16px;
}

.kp-print-brand,
.kp-print-footer {
    display: none;
}

.kp-property-detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-column: 1 / -1;
    gap: 14px;
    padding: 2px 2px 4px;
}

.kp-property-hero,
.kp-property-list,
.kp-property-detail-hero {
    border: 1px solid var(--kp-border);
    border-radius: 8px;
    background: var(--kp-white);
    box-shadow: 0 12px 32px rgba(26, 44, 68, 0.06);
}

.kp-property-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
}

.kp-property-hero h2 {
    margin: 0;
    color: #061D3B;
    font-size: 24px;
    line-height: 1.1;
}

.kp-property-hero p {
    margin: 6px 0 0;
    color: #45638A;
}

.kp-property-list {
    display: grid;
    overflow: hidden;
}

.kp-property-listing {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    min-height: 172px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--kp-border);
    color: #061D3B;
    text-decoration: none;
    transition: none;
}

.kp-property-listing:last-child {
    border-bottom: 0;
}

.kp-property-listing:hover,
.kp-property-listing:focus {
    background: transparent;
}

.kp-property-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.92);
    background:
        linear-gradient(135deg, rgba(26, 44, 68, 0.72), rgba(25, 139, 213, 0.42)),
        repeating-linear-gradient(45deg, #3D526B 0 12px, #49617E 12px 24px);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.kp-property-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kp-property-listing-main {
    display: grid;
    grid-template-columns: minmax(300px, 0.62fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 6px 18px;
    align-content: center;
    align-items: center;
    min-width: 0;
}

.kp-property-listing-topline,
.kp-property-listing-main > strong,
.kp-property-asking-price,
.kp-property-location,
.kp-property-address {
    grid-column: 1;
}

.kp-property-listing-topline,
.kp-property-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.kp-property-listing-topline time,
.kp-property-location,
.kp-property-address,
.kp-property-meta span {
    color: #506C91;
    font-size: 13px;
    font-weight: 700;
}

.kp-property-asking-price {
    overflow: hidden;
    color: #061D3B;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kp-property-listing-main strong {
    overflow: hidden;
    color: #061D3B;
    font-size: 21px;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kp-property-listing-info {
    display: grid;
    grid-column: 2;
    grid-row: 1 / 6;
    gap: 14px;
    align-items: center;
    align-self: center;
    padding-top: 2px;
}

.kp-property-listing-profile > span {
    display: grid;
    gap: 2px;
    min-width: 0;
    align-content: center;
}

.kp-property-listing-profile small {
    overflow: hidden;
    color: #506C91;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.kp-property-listing-profile b {
    overflow: hidden;
    color: #061D3B;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.28;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kp-property-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #EFF5FB;
}

.kp-property-listing-profile {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 7px 14px;
    width: 100%;
}

.kp-property-listing-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 13px;
    border: 1px solid #B8D6EF;
    border-radius: 8px;
    color: #143960;
    background: #FFFFFF;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.kp-property-detail-hero {
    display: grid;
    grid-template-columns: minmax(460px, 0.56fr) minmax(360px, 0.44fr);
    gap: 16px;
    align-items: start;
    padding: 14px;
}

.kp-property-detail-hero .kp-property-image-large {
    min-height: 210px;
    margin-bottom: 0;
}

.kp-property-detail-summary {
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
    padding: 4px 6px 4px 2px;
}

.kp-property-detail-summary h2 {
    margin: 0;
    color: #061D3B;
    font-size: clamp(25px, 2.4vw, 32px);
    line-height: 1.1;
}

.kp-property-detail-summary p {
    margin: 0;
    color: #45638A;
    font-size: 14px;
}

.kp-property-detail-summary .kp-property-detail-price {
    color: #061D3B;
    font-size: 18px;
    font-weight: 800;
}

.kp-property-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 16px;
}

.kp-property-media-frame,
.kp-property-media-frame img,
.kp-property-media-collage {
    width: 100%;
    border-radius: 0;
}

.kp-property-media-frame {
    overflow: hidden;
    background: #E8F1FA;
}

.kp-property-media-frame img {
    display: block;
    height: 100%;
    object-fit: cover;
}

.kp-property-media-collage {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(150px, 1fr);
    gap: 4px;
    overflow: hidden;
    height: 280px;
    min-height: 0;
    background: transparent;
}

.kp-property-media-primary,
.kp-property-media-preview {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    outline: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
}

.kp-portal .kp-property-media-primary:hover,
.kp-portal .kp-property-media-primary:focus,
.kp-portal .kp-property-media-primary:active,
.kp-portal .kp-property-media-preview:hover,
.kp-portal .kp-property-media-preview:focus,
.kp-portal .kp-property-media-preview:active {
    border-color: transparent !important;
    color: inherit !important;
    background: transparent !important;
    box-shadow: none !important;
}

.kp-property-media-primary:focus-visible,
.kp-property-media-preview:focus-visible,
.kp-property-photo-count:focus-visible,
.kp-property-photo-header button:focus-visible,
.kp-property-photo-nav:focus-visible,
.kp-property-photo-thumbs button:focus-visible {
    outline: 2px solid #198BD5;
    outline-offset: 2px;
}

.kp-property-media-primary img,
.kp-property-media-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 180ms ease, filter 180ms ease;
}

.kp-property-media-primary:hover img,
.kp-property-media-primary:focus img,
.kp-property-media-preview:hover img,
.kp-property-media-preview:focus img {
    filter: none;
    transform: none;
}

.kp-property-media-previews {
    position: relative;
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 4px;
    min-height: 0;
}

.kp-property-media-preview.is-empty {
    cursor: default;
}

.kp-property-photo-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    min-height: 38px;
    padding: 9px 15px;
    border: 1px solid #2D6F99;
    border-radius: 8px;
    color: #FFFFFF;
    background: #2D6F99;
    box-shadow: none;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
}

.kp-portal .kp-property-photo-count,
.kp-portal .kp-property-media-primary,
.kp-portal .kp-property-media-preview,
.kp-portal .kp-property-photo-nav,
.kp-portal .kp-property-photo-header button,
.kp-portal .kp-property-photo-thumbs button {
    border-color: transparent;
    box-shadow: none;
}

.kp-portal .kp-property-photo-count {
    border-color: #2D6F99 !important;
    color: #FFFFFF !important;
    background: #2D6F99 !important;
}

.kp-portal .kp-property-photo-count:hover,
.kp-portal .kp-property-photo-count:focus,
.kp-portal .kp-property-photo-count:active {
    border-color: #255C80 !important;
    color: #FFFFFF !important;
    background: #255C80 !important;
}

.kp-portal .kp-property-photo-nav,
.kp-portal .kp-property-photo-nav:hover,
.kp-portal .kp-property-photo-nav:focus,
.kp-portal .kp-property-photo-nav:active {
    display: grid !important;
    border-color: transparent !important;
    color: #FFFFFF !important;
    background: rgba(6, 29, 59, 0.62) !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

.kp-portal .kp-property-photo-nav:hover,
.kp-portal .kp-property-photo-nav:focus {
    background: rgba(6, 29, 59, 0.82) !important;
}

.kp-property-hero-profile {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 7px 12px;
    margin: 4px 0 0;
    padding-top: 10px;
    border-top: 1px solid #DCE8F3;
}

.kp-property-hero-profile div {
    min-width: 0;
}

.kp-property-hero-profile dt {
    margin: 0 0 2px;
    color: #506C91;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
}

.kp-property-hero-profile dd {
    margin: 0;
    overflow: hidden;
    color: #061D3B;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kp-property-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.kp-property-hero-actions .kp-button {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 12px;
}

.kp-property-photo-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    color: #061D3B;
}

.kp-photo-modal-open {
    overflow: hidden;
}

.kp-property-photo-modal.is-open {
    display: block;
}

.kp-property-photo-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 29, 59, 0.72);
}

.kp-property-photo-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(100vw - 32px, 1280px);
    height: min(100vh - 32px, 860px);
    margin: 16px auto;
    overflow: hidden;
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 24px 80px rgba(6, 29, 59, 0.34);
}

.kp-property-photo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 52px;
    padding: 12px 18px;
    border-bottom: 1px solid #DCE8F3;
    background: #FFFFFF;
}

.kp-property-photo-header strong {
    min-width: 0;
    overflow: hidden;
    font-size: 18px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kp-property-photo-header button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    color: #506C91;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.kp-property-photo-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 0;
    padding: 28px 72px;
    background: #F7F9FC;
}

.kp-property-photo-slide {
    display: none;
    width: 100%;
    height: 100%;
    margin: 0;
    place-items: center;
}

.kp-property-photo-slide.is-active {
    display: grid;
}

.kp-property-photo-slide img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.kp-property-photo-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    color: #FFFFFF;
    background: rgba(6, 29, 59, 0.56);
    font-size: 38px;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
}

.kp-property-photo-nav:hover,
.kp-property-photo-nav:focus {
    background: rgba(6, 29, 59, 0.76);
}

.kp-property-photo-nav.is-prev {
    left: 18px;
}

.kp-property-photo-nav.is-next {
    right: 18px;
}

.kp-property-photo-footer {
    display: grid;
    gap: 12px;
    padding: 14px 18px 18px;
    border-top: 1px solid #DCE8F3;
    background: #FFFFFF;
    text-align: center;
}

.kp-property-photo-footer > span {
    font-size: 16px;
    font-weight: 750;
}

.kp-property-photo-thumbs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.kp-property-photo-thumbs button {
    flex: 0 0 96px;
    height: 64px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 4px;
    background: #E8F1FA;
    cursor: pointer;
}

.kp-property-photo-thumbs button.is-active {
    border-color: var(--kp-blue, #198BD5);
}

.kp-property-photo-thumbs img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kp-property-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.65fr);
    gap: 12px;
    align-items: start;
}

.kp-property-section-stack,
.kp-property-side-stack {
    display: grid;
    gap: 12px;
}

.kp-property-detail-section h2,
.kp-property-description-card h2,
.kp-property-map-card h2,
.kp-property-note-card h2,
.kp-property-doc-card h2 {
    margin: 0;
    color: #061D3B;
    font-size: 17px;
}

.kp-property-detail-section,
.kp-property-description-card,
.kp-property-map-card,
.kp-property-note-card,
.kp-property-doc-card {
    padding: 16px;
}

.kp-property-description-body {
    margin: 10px 0 0;
    color: #203A58;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.kp-property-description-body p,
.kp-property-description-body ul,
.kp-property-description-body ol {
    margin: 0 0 14px;
}

.kp-property-description-body p:last-child,
.kp-property-description-body ul:last-child,
.kp-property-description-body ol:last-child {
    margin-bottom: 0;
}

.kp-property-description-body ul,
.kp-property-description-body ol {
    padding-left: 22px;
}

.kp-property-description-body li {
    line-height: 1.35;
    margin: 0 0 2px;
}

.kp-property-description-body li p {
    margin: 0;
}

.kp-property-description-body strong,
.kp-property-description-body b {
    color: #061D3B;
    font-weight: 750;
}

.kp-property-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 30px;
    margin: 10px 0 0;
}

.kp-property-detail-list div {
    display: grid;
    grid-template-columns: minmax(128px, 185px) minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid #E6EEF7;
}

.kp-property-detail-list div:last-child {
    border-bottom: 0;
}

.kp-property-detail-list dt {
    color: #506C91;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.25;
}

.kp-property-detail-list dd {
    margin: 0;
    color: #061D3B;
    font-size: 13px;
    font-weight: 550;
    line-height: 1.35;
    text-align: left;
    overflow-wrap: anywhere;
}

.kp-property-map-card iframe {
    width: 100%;
    height: 210px;
    margin-top: 10px;
    border: 0;
    border-radius: 8px;
    background: #E8F1FA;
}

.kp-property-note-item {
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid #E6EEF7;
}

.kp-property-note-item:first-of-type {
    margin-top: 0;
}

.kp-property-note-item strong {
    color: #061D3B;
    font-size: 13px;
    font-weight: 650;
}

.kp-property-note-item span {
    display: block;
    margin-top: 3px;
    color: #506C91;
    font-size: 11px;
    font-weight: 600;
}

.kp-property-note-item p {
    margin: 6px 0 0;
    color: #45638A;
    font-size: 13px;
    line-height: 1.45;
}

.kp-note-attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.kp-note-attachment-list a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid #D5E4F3;
    border-radius: 999px;
    color: #0E5F9F;
    background: #F8FBFE;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.kp-note-attachment-list a:hover,
.kp-note-attachment-list a:focus {
    background: #EAF6FD;
}

.kp-property-doc-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.kp-property-doc-list div,
.kp-property-doc-list a {
    display: grid;
    gap: 3px;
    padding: 9px 10px;
    border: 1px solid #D5E4F3;
    border-radius: 8px;
    color: #061D3B;
    background: #F8FBFE;
    text-decoration: none;
}

.kp-property-doc-list a:hover,
.kp-property-doc-list a:focus {
    background: #EAF6FD;
}

.kp-property-doc-list span {
    color: #506C91;
    font-size: 12px;
    font-weight: 600;
}

.kp-attachment-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    color: #061D3B;
}

.kp-attachment-modal-open {
    overflow: hidden;
}

.kp-attachment-modal.is-open {
    display: block;
}

.kp-attachment-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 29, 59, 0.68);
}

.kp-attachment-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(100vw - 32px, 1120px);
    height: min(100vh - 32px, 780px);
    margin: 16px auto;
    overflow: hidden;
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 24px 80px rgba(6, 29, 59, 0.34);
}

.kp-attachment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 52px;
    padding: 12px 18px;
    border-bottom: 1px solid #DCE8F3;
}

.kp-attachment-header strong {
    min-width: 0;
    overflow: hidden;
    font-size: 16px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kp-attachment-header button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    color: #506C91;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.kp-attachment-dialog iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #F7F9FC;
}

.kp-file-list,
.kp-task-list,
.kp-faq-list {
    display: grid;
    gap: 12px;
}

.kp-resources-page-card {
    min-width: 0;
    overflow: visible;
}

.kp-elementor-content {
    color: var(--kp-navy);
    min-width: 0;
    width: 100%;
}

.kp-card .kp-elementor-content > * {
    margin-block-start: 0;
}

.kp-elementor-content .elementor {
    max-width: none;
}

.kp-elementor-content .elementor-section,
.kp-elementor-content .elementor-container,
.kp-elementor-content .elementor-widget-wrap {
    max-width: none;
}

.kp-resources-page-card .elementor p,
.kp-resources-page-card .elementor ul,
.kp-resources-page-card .elementor ol {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.kp-resources-page-card .elementor-2253 .elementor-element.elementor-element-bbb28cc {
    --justify-content: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.kp-resources-page-card .elementor-2253 .elementor-element.elementor-element-bbb28cc > .elementor-element-de1cbb8,
.kp-resources-page-card .elementor-2253 .elementor-element.elementor-element-bbb28cc > .elementor-element-688aa2d {
    flex: 0 1 300px;
    width: 300px;
    max-width: 100%;
}

.kp-file-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.kp-files-intro-card h1 {
    margin: 0;
    color: var(--kp-navy);
    font-size: 28px;
    line-height: 1.15;
}

.kp-files-intro-card p:last-child {
    max-width: 760px;
    margin-top: 10px;
}

.kp-files-layout-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.kp-files-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    height: 360px;
    padding: 18px;
    overflow: hidden;
}

.kp-files-upload-panel {
    grid-template-rows: auto auto;
}

.kp-files-panel > .kp-section-heading {
    margin-bottom: 10px;
}

.kp-files-panel > p,
.kp-files-panel > .kp-file-list,
.kp-files-panel > .kp-file-group-list {
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
}

.kp-files-panel > p {
    margin: 0;
}

.kp-files-panel .kp-section-heading h2 {
    font-size: 18px;
}

.kp-files-panel .kp-file-list {
    gap: 8px;
}

.kp-file-summary-card span {
    color: #506C91;
    font-size: 13px;
    font-weight: 800;
}

.kp-file-summary-card strong {
    display: block;
    margin-top: 8px;
    color: #061D3B;
    font-size: 32px;
}

.kp-file-group-list {
    display: grid;
    gap: 10px;
}

.kp-file-group {
    padding: 11px;
    border: 1px solid #D5E4F3;
    border-radius: 8px;
    background: #F8FBFE;
}

.kp-file-group header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.kp-file-group h3 {
    margin: 0;
    color: #061D3B;
    font-size: 14px;
    line-height: 1.25;
}

.kp-file-group p {
    margin: 3px 0 0;
    color: #45638A;
    font-size: 12px;
}

.kp-upload-form {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.kp-upload-form label {
    display: grid;
    gap: 7px;
    color: #506C91;
    font-size: 13px;
    font-weight: 800;
}

.kp-upload-form input,
.kp-upload-form textarea {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #D5E4F3;
    border-radius: 8px;
    color: #061D3B;
    background: #F8FBFE;
    font: inherit;
}

.kp-upload-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.kp-upload-actions span {
    color: #506C91;
    font-size: 13px;
}

.kp-file-row,
.kp-task-row,
.kp-faq-item {
    padding: 10px 11px;
    border: 1px solid var(--kp-border);
    border-radius: 8px;
    background: #FAF9F6;
}

.kp-file-row h2 {
    margin: 0 0 3px;
    font-size: 14px;
    line-height: 1.25;
}

.kp-file-row p {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
}

.kp-files-panel .kp-file-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border-color: #D5E4F3;
    background: #F8FBFE;
}

.kp-files-panel .kp-file-row .kp-button {
    min-height: 32px;
    padding: 7px 10px;
    font-size: 12px;
}

.kp-files-panel .kp-deal-line {
    padding: 7px 0;
    gap: 8px;
    font-size: 13px;
}

.kp-files-panel .kp-deal-line em {
    font-size: 11px;
}

.kp-task-row label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-weight: 800;
}

.kp-task-row input {
    width: 18px;
    height: 18px;
}

.kp-task-row div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kp-task-description {
    width: 100%;
    margin: 8px 0 0;
    color: var(--kp-muted);
    font-size: 13px;
}

.kp-faq-item summary {
    cursor: pointer;
    color: var(--kp-navy);
    font-weight: 800;
}

.kp-login-gate {
    display: grid;
    place-items: center;
    min-height: 560px;
    padding: 36px 18px;
    background: var(--kp-bg);
}

.kp-login-card {
    width: min(520px, 100%);
    padding: 34px;
    text-align: center;
}

.kp-login-mark {
    margin: 0 auto 18px;
}

.kp-login-card h2 {
    margin: 0;
    color: var(--kp-navy);
    font-size: 30px;
    line-height: 1.15;
}

.kp-login-card p:not(.kp-eyebrow) {
    color: var(--kp-muted);
    line-height: 1.65;
}

.kp-mobile-bar,
.kp-overlay {
    display: none;
}

.kp-admin-diagnostic {
    border-color: rgba(184, 135, 43, 0.35);
    background: #FFFDF7;
}

.kp-diagnostic-output {
    max-height: 260px;
    margin: 14px 0 0;
    overflow: auto;
    padding: 14px;
    border: 1px solid var(--kp-border);
    border-radius: 8px;
    color: var(--kp-navy);
    background: #FAF9F6;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
}

.kp-deal-portal,
.kp-docs-portal {
    display: grid;
    gap: 16px;
}

.kp-deal-hero,
.kp-docs-hero,
.kp-deal-stage-card,
.kp-deal-workspace,
.kp-doc-section {
    border: 1px solid var(--kp-border);
    border-radius: 8px;
    background: var(--kp-white);
    box-shadow: 0 12px 32px rgba(26, 44, 68, 0.06);
}

.kp-deal-hero,
.kp-docs-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
}

.kp-deal-hero {
    border-color: #D5E4F3;
    box-shadow: none;
}

.kp-deal-hero h2,
.kp-docs-hero h2 {
    margin: 0;
    color: #061D3B;
    font-size: 28px;
    line-height: 1.05;
}

.kp-deal-hero p,
.kp-docs-hero p {
    margin: 7px 0 0;
    color: #45638A;
}

.kp-deal-actions,
.kp-doc-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kp-deal-stage-card {
    display: none;
    padding: 18px;
}

.kp-deal-stage-card.is-active {
    display: block;
}

.kp-deal-stage-dates {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    color: #355075;
    font-size: 13px;
}

.kp-deal-stage-track {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.kp-deal-stage-track span {
    position: relative;
    min-height: 36px;
    padding: 10px 8px;
    border-top: 1px solid var(--kp-border);
    border-bottom: 1px solid var(--kp-border);
    color: #143960;
    font-size: 12px;
    text-align: center;
}

.kp-deal-stage-track span.is-active {
    color: #06456E;
    background: var(--kp-blue-soft);
    font-weight: 800;
}

.kp-deal-workspace {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    border-color: #D5E4F3;
    overflow: hidden;
    box-shadow: none;
}

.kp-deal-sidebar {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 16px;
    border-right: 1px solid var(--kp-border);
    background: #FBFCFE;
}

.kp-deal-selector {
    display: grid;
    gap: 5px;
    width: 100%;
    min-height: 92px;
    padding: 14px 16px;
    border: 1px solid #D5E4F3;
    border-radius: 8px;
    color: inherit;
    background: var(--kp-white);
    font: inherit;
    text-align: left;
}

.kp-deal-selector strong,
.kp-deal-selector small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kp-deal-selector strong {
    white-space: nowrap;
}

.kp-deal-selector small {
    line-height: 1.35;
}

.kp-deal-selector.is-active,
.kp-deal-selector:hover,
.kp-deal-selector:focus {
    border-color: #7CBCEB;
    background: #FFFFFF;
    outline: none;
}

button.kp-deal-selector {
    cursor: pointer;
}

.kp-deal-selector-note {
    cursor: default;
}

.kp-deal-selector span {
    color: #5D7796;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.kp-deal-selector strong {
    color: #071F3E;
    font-size: 16px;
    line-height: 1.25;
}

.kp-deal-selector small {
    color: #45638A;
}

.kp-deal-selector-counts {
    margin-top: 2px;
    overflow: hidden;
    color: #236F9F;
    font-size: 10px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kp-deal-main {
    min-width: 0;
}

.kp-deal-panel-set {
    display: none;
}

.kp-deal-panel-set.is-active {
    display: block;
}

.kp-deal-main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border-bottom: 1px solid var(--kp-border);
}

.kp-deal-main-header h2,
.kp-deal-panel h3,
.kp-doc-section h3 {
    margin: 0;
    color: #061D3B;
}

.kp-deal-main-header p {
    margin: 5px 0 0;
    color: #45638A;
}

.kp-deal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--kp-border);
    background: #F8FBFE;
}

.kp-deal-tabs button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 8px 13px;
    border: 1px solid #B8D6EF;
    border-radius: 999px;
    color: #143960;
    background: var(--kp-white);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.kp-deal-tabs button.is-active {
    color: #06456E;
    background: var(--kp-blue-soft);
}

.kp-deal-tabs button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    min-height: 20px;
    margin-left: 5px;
    padding: 2px 6px;
    border-radius: 999px;
    color: #236F9F;
    background: #EAF6FD;
    font-size: 11px;
}

.kp-deal-section {
    display: none;
    padding: 18px;
    background: #FBFCFE;
}

.kp-deal-section.is-active {
    display: block;
}

.kp-deal-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.kp-deal-summary-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.kp-deal-summary-strip div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    border: 1px solid #D5E4F3;
    border-radius: 8px;
    background: #F8FBFE;
}

.kp-deal-summary-strip span {
    color: #506C91;
    font-size: 13px;
    font-weight: 800;
}

.kp-deal-summary-strip strong {
    color: #061D3B;
    font-size: 22px;
}

.kp-deal-panel {
    min-width: 0;
    padding: 16px;
    border: 1px solid #D5E4F3;
    border-radius: 8px;
    background: var(--kp-white);
}

.kp-deal-panel p {
    color: #45638A;
}

.kp-deal-info-list {
    display: grid;
    gap: 0;
    margin: 14px 0 0;
    max-height: 430px;
    overflow: auto;
}

.kp-deal-info-list div,
.kp-deal-line {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid #E6EEF7;
}

.kp-deal-info-list dt {
    color: #506C91;
}

.kp-deal-info-list dd {
    margin: 0;
    color: #061D3B;
    font-weight: 800;
    text-align: right;
}

.kp-deal-contact {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
}

.kp-deal-contact > span,
.kp-doc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #496582;
    background: #E8EEF5;
    font-weight: 800;
}

.kp-deal-contact small {
    display: block;
    color: #45638A;
}

.kp-deal-line button,
.kp-deal-line em,
.kp-doc-actions button {
    border: 0;
    color: #0077D9;
    background: transparent;
    font-style: normal;
    font-weight: 800;
}

.kp-deal-line span {
    min-width: 0;
}

.kp-deal-line span strong {
    display: block;
    color: #061D3B;
}

.kp-deal-line span a {
    color: #061D3B;
    font-weight: 800;
    text-decoration: none;
}

.kp-deal-line span a:hover,
.kp-deal-line span a:focus {
    color: #0077D9;
    text-decoration: underline;
}

.kp-deal-line span small {
    display: block;
    margin-top: 2px;
    color: #5D7796;
}

.kp-deal-note {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #D5E4F3;
    border-radius: 8px;
    background: #FFFFFF;
}

.kp-deal-note:first-of-type {
    margin-top: 0;
}

.kp-deal-note p {
    margin: 8px 0;
}

.kp-deal-note-compact {
    padding: 12px;
}

.kp-deal-note-compact p {
    font-size: 13px;
    line-height: 1.45;
}

.kp-deal-note small,
.kp-deal-latest-note span {
    color: #5D7796;
    font-size: 12px;
}

.kp-deal-source-note {
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid #D6E4F2;
    border-radius: 8px;
    color: #45638A;
    background: #F8FBFE;
    font-size: 13px;
    line-height: 1.5;
}

.kp-deal-client-note {
    border-left-color: #19466A;
    background: #F8FBFE;
}

.kp-deal-client-comments {
    display: grid;
    gap: 14px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #E6EEF7;
}

.kp-deal-client-comments > h3 {
    margin-bottom: 0;
}

.kp-deal-client-comments > p {
    margin: 0;
    color: #45638A;
    font-size: 14px;
}

.kp-deal-comment {
    background: #FFFFFF;
}

.kp-deal-latest-note {
    display: grid;
    gap: 4px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #E6EEF7;
}

.kp-deal-message-shell {
    display: grid;
    gap: 14px;
}

.kp-deal-message-bubble {
    max-width: 720px;
    padding: 16px;
    border: 1px solid #D5E4F3;
    border-radius: 16px 16px 16px 4px;
    background: #F8FBFE;
}

.kp-deal-message-bubble.is-client {
    justify-self: end;
    border-radius: 16px 16px 4px 16px;
    background: #EAF6FD;
}

.kp-deal-message-bubble span,
.kp-deal-message-bubble small {
    display: block;
    color: #5D7796;
    font-size: 12px;
}

.kp-deal-message-bubble span {
    margin-top: 4px;
    font-weight: 800;
}

.kp-deal-message-bubble p {
    margin: 9px 0;
    color: #183A5C;
}

.kp-deal-inline-status {
    margin: 0;
    color: #5D7796;
    font-size: 13px;
}

.kp-deal-task-description {
    margin: 10px 0 0;
    border-bottom: 1px solid #E6EEF7;
    color: #45638A;
    font-size: 13px;
}

.kp-deal-task-card {
    display: grid;
    gap: 12px;
    padding: 15px;
    border: 1px solid #D5E4F3;
    border-radius: 8px;
    background: #FFFFFF;
}

.kp-deal-task-card + .kp-deal-task-card {
    margin-top: 12px;
}

.kp-deal-task-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.kp-deal-task-main span {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.kp-deal-task-main strong {
    color: #061D3B;
    font-size: 15px;
}

.kp-deal-task-main small {
    color: #5D7796;
    font-size: 12px;
    font-weight: 700;
}

.kp-deal-task-main em {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    color: #19466A;
    background: #EAF6FD;
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
}

.kp-deal-task-main em.is-complete {
    color: #2F6F4E;
    background: #E6F4EC;
}

.kp-deal-task-notes,
.kp-deal-task-attachments {
    display: grid;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #E6EEF7;
}

.kp-deal-task-notes > strong,
.kp-deal-task-attachments > strong {
    color: #061D3B;
    font-size: 13px;
}

.kp-deal-note-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.kp-deal-note-attachments a,
.kp-deal-note-attachments span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid #D5E4F3;
    border-radius: 999px;
    color: #19466A;
    background: #F8FBFE;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.kp-task-complete-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #E6EEF7;
}

.kp-task-complete-form span {
    color: #5D7796;
    font-size: 12px;
}

.kp-client-task-board {
    padding: 20px;
}

.kp-client-task-list {
    display: grid;
    gap: 14px;
}

.kp-client-task-card {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    border: 1px solid #D5E4F3;
    border-radius: 8px;
    background: #FFFFFF;
}

.kp-client-task-check span {
    display: block;
    width: 16px;
    height: 16px;
    margin-top: 4px;
    border: 1px solid #BCD4EA;
    border-radius: 4px;
    background: #F8FBFE;
}

.kp-client-task-body {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.kp-client-task-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.kp-client-task-main h3 {
    margin: 2px 0 0;
    color: #061D3B;
    font-size: 17px;
    line-height: 1.25;
}

.kp-client-task-label {
    margin: 0;
    color: #5D7796;
    font-size: 12px;
    font-weight: 700;
}

.kp-client-task-main em {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    color: #19466A;
    background: #EAF6FD;
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
}

.kp-client-task-main em.is-complete {
    color: #2F6F4E;
    background: #E6F4EC;
}

.kp-client-task-description {
    margin: 0;
    color: #335175;
    font-size: 14px;
}

.kp-client-task-panel {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #E6EEF7;
    border-radius: 8px;
    background: #F8FBFE;
}

.kp-client-task-panel > strong {
    color: #061D3B;
    font-size: 13px;
}

.kp-client-task-note {
    display: grid;
    gap: 4px;
    padding: 10px 0 0;
    border-top: 1px solid #E6EEF7;
}

.kp-client-task-note:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.kp-client-task-note span {
    color: #061D3B;
    font-size: 13px;
    font-weight: 800;
}

.kp-client-task-note p {
    margin: 0;
    color: #335175;
    font-size: 13px;
}

.kp-client-task-note small {
    color: #7187A3;
    font-size: 12px;
}

.kp-task-comment-form {
    display: grid;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #E6EEF7;
}

.kp-task-comment-form label {
    display: grid;
    gap: 6px;
    color: #375A7F;
    font-size: 12px;
    font-weight: 800;
}

.kp-task-comment-form textarea,
.kp-task-comment-form input[type="file"] {
    width: 100%;
    border: 1px solid #D5E4F3;
    border-radius: 8px;
    color: #061D3B;
    background: #FFFFFF;
    font: inherit;
}

.kp-task-comment-form textarea {
    min-height: 82px;
    padding: 10px 12px;
    resize: vertical;
}

.kp-task-comment-form input[type="file"] {
    padding: 9px 10px;
}

.kp-task-comment-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.kp-task-comment-actions span {
    color: #5D7796;
    font-size: 12px;
}

.kp-task-list-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.kp-task-list-hero h2,
.kp-task-detail-hero h2,
.kp-task-detail-card h3 {
    margin: 0;
    color: #061D3B;
    letter-spacing: 0;
}

.kp-task-list-hero p,
.kp-task-detail-hero p,
.kp-muted-text {
    margin: 6px 0 0;
    color: #49698C;
}

.kp-task-list-modern {
    display: grid;
    gap: 12px;
}

.kp-task-list-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid #D5E4F3;
    border-radius: 10px;
    color: inherit;
    background: #FFFFFF;
    box-shadow: 0 12px 28px rgba(26, 44, 68, 0.06);
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.kp-task-list-item:hover,
.kp-task-list-item:focus-visible {
    border-color: #98C8F1;
    color: inherit;
    background: #FFFFFF;
    box-shadow: 0 16px 34px rgba(26, 44, 68, 0.1);
    transform: translateY(-1px);
}

.kp-task-checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #B6D3EC;
    border-radius: 7px;
    background: #F8FBFE;
}

.kp-task-checkmark.is-complete {
    border-color: #2F6F4E;
    background: #E6F4EC;
    position: relative;
}

.kp-task-checkmark.is-complete::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid #2F6F4E;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.kp-task-list-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.kp-task-list-main strong {
    color: #061D3B;
    font-size: 16px;
    line-height: 1.25;
}

.kp-task-list-main > span:not(.kp-task-list-kicker) {
    color: #49698C;
    font-size: 13px;
}

.kp-task-list-kicker {
    color: #5D7796;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.kp-task-list-meta {
    display: grid;
    justify-items: end;
    gap: 6px;
}

.kp-task-list-meta em,
.kp-task-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #19466A;
    background: #EAF6FD;
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
}

.kp-task-list-meta em.is-progress,
.kp-task-status.is-progress {
    color: #8A5D0B;
    background: #FFF3D6;
}

.kp-task-list-meta em.is-complete,
.kp-task-status.is-complete {
    color: #2F6F4E;
    background: #E6F4EC;
}

.kp-task-list-meta small {
    color: #7187A3;
    font-size: 12px;
}

.kp-task-detail-shell {
    display: grid;
    gap: 16px;
}

.kp-task-detail-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.kp-task-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    color: #245F91;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.kp-task-back::before {
    content: "←";
}

.kp-task-hero-actions {
    display: grid;
    justify-items: end;
    gap: 10px;
    min-width: 190px;
}

.kp-task-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
    gap: 16px;
    align-items: start;
}

.kp-task-detail-card {
    display: grid;
    gap: 16px;
}

.kp-task-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
    margin: 0;
}

.kp-task-meta-grid div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #E6EEF7;
}

.kp-task-meta-grid dt {
    color: #5D7796;
    font-size: 12px;
    font-weight: 800;
}

.kp-task-meta-grid dd {
    margin: 0;
    color: #061D3B;
    font-size: 13px;
    font-weight: 650;
}

.kp-task-description-box {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid #D5E4F3;
    border-radius: 10px;
    background: #F8FBFE;
}

.kp-task-description-box strong {
    color: #061D3B;
    font-size: 13px;
}

.kp-task-description-box p {
    margin: 0;
    color: #2C4A6D;
    font-size: 14px;
    line-height: 1.55;
}

.kp-task-file-list {
    display: grid;
    gap: 8px;
}

.kp-task-file-list.is-inline {
    display: flex;
    flex-wrap: wrap;
    margin-top: 8px;
}

.kp-task-file-pill {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border: 1px solid #D5E4F3;
    border-radius: 9px;
    color: #061D3B;
    background: #FFFFFF;
    text-decoration: none;
}

.kp-task-file-pill:hover,
.kp-task-file-pill:focus-visible {
    border-color: #98C8F1;
    color: #061D3B;
    background: #F8FBFE;
}

.kp-task-file-pill span {
    font-size: 13px;
    font-weight: 800;
}

.kp-task-file-pill small {
    color: #7187A3;
    font-size: 12px;
}

.kp-task-timeline {
    display: grid;
    gap: 12px;
}

.kp-task-timeline-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid #E6EEF7;
    border-radius: 10px;
    background: #FFFFFF;
}

.kp-task-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #164466;
    background: #EAF3FB;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.kp-task-timeline-item header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.kp-task-timeline-item strong {
    color: #061D3B;
    font-size: 14px;
}

.kp-task-timeline-item time {
    color: #7187A3;
    font-size: 12px;
}

.kp-task-timeline-item p {
    margin: 0;
    color: #335175;
    font-size: 13px;
    line-height: 1.5;
}

.kp-task-upload-button {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #B6D3EC;
    border-radius: 8px;
    color: #17496E !important;
    background: #FFFFFF;
    cursor: pointer;
}

.kp-task-upload-button input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.kp-task-upload-button span {
    color: inherit !important;
    font-size: 13px !important;
    font-weight: 850 !important;
}

.kp-task-complete-form {
    justify-content: flex-end;
    border-top: 0;
    padding-top: 0;
}

.kp-task-complete-form span {
    max-width: 190px;
    text-align: right;
}

.kp-task-detail-card.kp-client-task-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
}

.kp-task-list-hero,
.kp-task-detail-hero {
    gap: 14px;
    padding: 18px 20px;
}

.kp-task-detail-hero h2 {
    font-size: 21px;
}

.kp-task-detail-card h3 {
    font-size: 15px;
}

.kp-task-list-hero p,
.kp-task-detail-hero p,
.kp-muted-text {
    margin-top: 4px;
    font-size: 13px;
}

.kp-task-list-modern {
    gap: 8px;
}

.kp-task-list-item {
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    box-shadow: none;
}

.kp-task-list-item:hover,
.kp-task-list-item:focus-visible {
    box-shadow: 0 8px 18px rgba(26, 44, 68, 0.055);
    transform: none;
}

.kp-task-list-main strong {
    font-size: 14px;
}

.kp-task-list-main > span:not(.kp-task-list-kicker) {
    font-size: 12px;
}

.kp-task-list-kicker {
    font-size: 10px;
}

.kp-task-list-meta em,
.kp-task-status {
    min-height: 26px;
    padding: 5px 9px;
    font-size: 11px;
}

.kp-task-detail-shell,
.kp-task-detail-grid {
    gap: 10px;
}

.kp-task-back {
    margin-bottom: 8px;
    font-size: 12px;
}

.kp-task-back::before {
    content: "<";
}

.kp-task-detail-card,
.kp-task-detail-card.kp-client-task-card {
    gap: 12px;
    padding: 16px 18px;
}

.kp-task-meta-grid div {
    gap: 8px;
    padding: 7px 0;
}

.kp-task-meta-grid dt {
    font-size: 11px;
}

.kp-task-meta-grid dd {
    font-size: 12px;
    font-weight: 600;
}

.kp-task-description-box {
    gap: 6px;
    padding: 10px 12px;
}

.kp-task-description-box p {
    font-size: 13px;
    line-height: 1.45;
}

.kp-task-file-pill {
    padding: 8px 10px;
}

.kp-task-file-pill span,
.kp-task-timeline-item strong {
    font-size: 12px;
}

.kp-task-timeline {
    gap: 8px;
}

.kp-task-timeline-item {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
}

.kp-task-avatar {
    width: 30px;
    height: 30px;
}

.kp-task-timeline-item p,
.kp-client-task-note p {
    font-size: 12px;
}

.kp-task-list-hero,
.kp-task-detail-hero {
    gap: 12px;
    padding: 14px 16px;
}

.kp-task-detail-hero h2 {
    font-size: 19px;
}

.kp-task-detail-card h3 {
    font-size: 14px;
}

.kp-task-list-item {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 12px;
}

.kp-task-list-main strong {
    font-size: 13px;
}

.kp-task-checkmark {
    width: 18px;
    height: 18px;
    border-width: 1px;
    border-radius: 5px;
}

.kp-task-checkmark.is-complete::after {
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
}

.kp-task-list-meta {
    gap: 4px;
}

.kp-task-list-meta em,
.kp-task-status {
    min-height: 23px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 750;
}

.kp-task-detail-card,
.kp-task-detail-card.kp-client-task-card {
    gap: 10px;
    padding: 14px 16px;
}

.kp-task-meta-grid {
    gap: 0 14px;
}

.kp-task-meta-grid div {
    gap: 8px;
    padding: 6px 0;
}

.kp-task-description-box {
    gap: 6px;
    padding: 9px 10px;
}

.kp-task-file-pill {
    padding: 7px 9px;
}

.kp-task-timeline-item {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
    padding: 9px 10px;
    border-radius: 8px;
}

.kp-task-avatar {
    width: 28px;
    height: 28px;
}

.kp-task-upload-button {
    min-height: 34px;
    padding: 0 12px;
}

.kp-task-comment-actions {
    gap: 8px;
}

.kp-message-workspace {
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 620px;
    box-shadow: 0 4px 16px rgba(26, 44, 68, 0.04);
}

.kp-message-thread-layout {
    grid-template-columns: minmax(300px, 0.34fr) minmax(0, 1fr);
}

.kp-message-inbox-row,
.kp-portal .kp-message-inbox-row {
    min-height: 74px !important;
    padding: 11px 14px !important;
}

.kp-message-row-subject {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    min-height: 20px;
    align-items: center;
    margin-top: 4px;
    padding: 2px 7px;
    border-radius: 999px;
    color: #19466A;
    background: #EAF3FB;
    font-size: 11px;
    font-weight: 800;
}

.kp-message-row-title strong {
    font-size: 14px;
}

.kp-message-thread-panel.is-active {
    max-height: 620px;
}

.kp-message-conversation {
    overflow-y: auto;
    padding: 24px;
}

.kp-message-conversation-row {
    max-width: none;
}

.kp-message-thread-footer {
    position: static;
    display: flex;
    padding: 14px 20px;
    background: #FFFFFF;
}

.kp-message-thread-composer {
    display: grid;
    gap: 8px;
}

.kp-message-thread-composer label {
    display: grid;
    gap: 5px;
    margin: 0;
    color: #506C91;
    font-size: 12px;
    font-weight: 800;
}

.kp-message-thread-composer textarea {
    width: 100%;
    min-height: 78px;
    padding: 10px 12px;
    border: 1px solid #D5E4F3;
    border-radius: 8px;
    color: #061D3B;
    background: #FFFFFF;
    font: inherit;
    resize: vertical;
}

.kp-message-thread-composer textarea:disabled {
    color: #7187A3;
    background: #F8FBFE;
    cursor: not-allowed;
}

.kp-message-thread-composer button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.kp-message-composer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kp-message-attach-button {
    position: relative;
    display: inline-flex !important;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid #B8D6EF;
    border-radius: 8px;
    color: #143960 !important;
    background: #FFFFFF;
    cursor: pointer;
}

.kp-message-attach-button input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.kp-message-thread-composer small {
    color: #6B7280;
    font-size: 12px;
}

.kp-message-portal,
.kp-message-portal p,
.kp-message-portal span,
.kp-message-portal div,
.kp-message-portal button,
.kp-message-portal input,
.kp-message-portal textarea,
.kp-message-portal select {
    font-weight: 400;
}

.kp-message-portal strong,
.kp-message-portal h2,
.kp-message-portal h3 {
    font-weight: 600;
}

.kp-message-portal[data-kp-message-compose-mode="reply"] [data-kp-message-subject-row],
.kp-message-portal[data-kp-message-compose-mode="reply"] [data-kp-message-type-row] {
    display: none;
}

.kp-message-workspace {
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 700px;
    border: 1px solid #DDE6EF;
    border-radius: 8px;
    background: #FFFFFF;
}

.kp-message-mailboxes {
    padding: 14px 0;
    gap: 16px;
    background: #FFFFFF;
}

.kp-message-compose {
    width: calc(100% - 28px);
    margin: 0 14px;
    min-height: 42px;
    border-radius: 5px;
    font-weight: 600;
}

.kp-message-folder-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 4px 14px 0;
    padding-top: 14px;
    border-top: 1px solid #DDE8F2;
    color: #8493A5;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.kp-message-folder-heading button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-height: 24px;
    padding: 0;
    border: 0 !important;
    border-radius: 6px;
    color: #315B7A !important;
    background: transparent !important;
    font: inherit;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.kp-message-folder-heading button:hover,
.kp-message-folder-heading button:focus {
    background: #EEF6FB !important;
}

.kp-message-mailboxes nav,
.kp-message-custom-folders {
    gap: 0;
}

.kp-message-mailboxes nav button,
.kp-message-custom-folders button {
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 0;
    color: #17334F;
    font-size: 14px;
    font-weight: 400;
}

.kp-message-mailboxes nav button.is-active,
.kp-message-custom-folders button.is-active {
    background: #EEF6FB;
    color: #144763;
}

.kp-message-folder-create {
    width: calc(100% - 28px);
    margin: 0 14px;
    border-radius: 5px;
    font-weight: 500;
}

.kp-message-inbox-header {
    display: grid;
    grid-template-columns: minmax(95px, 1fr) minmax(120px, 0.8fr) auto auto;
    min-height: 78px;
    padding: 14px 18px;
    gap: 10px;
}

.kp-message-inbox-header div,
.kp-message-inbox-header strong {
    font-size: 15px;
    font-weight: 600;
}

.kp-message-inbox-header div {
    display: grid;
    gap: 2px;
}

.kp-message-inbox-header small {
    display: block;
    color: #8493A5;
    font-size: 11px;
    line-height: 1.1;
}

.kp-message-inbox-header strong {
    color: #061D3B;
    line-height: 1.15;
}

.kp-message-search {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0;
}

.kp-message-search::before {
    content: "";
    width: 13px;
    height: 13px;
    margin-right: -24px;
    border: 1.6px solid #5E7894;
    border-radius: 50%;
    z-index: 1;
}

.kp-message-search::after {
    content: "";
    width: 6px;
    height: 1.5px;
    margin-left: -6px;
    background: #5E7894;
    transform: rotate(45deg) translate(1px, 7px);
    z-index: 1;
}

.kp-message-search input,
.kp-message-folder-select,
.kp-message-sort {
    min-height: 36px;
    border: 1px solid #D7E4F0 !important;
    border-radius: 7px;
    color: #17334F !important;
    background: #FFFFFF !important;
    font: inherit;
    font-size: 13px;
    font-weight: 400;
}

.kp-message-search input {
    width: 100%;
    padding: 7px 10px 7px 30px;
}

.kp-message-folder-select {
    min-width: 92px;
    padding: 7px 28px 7px 10px;
}

.kp-message-sort {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    padding: 0;
    cursor: pointer;
}

.kp-message-sort.is-ascending {
    background: #EEF6FB !important;
}

.kp-message-thread-layout {
    grid-template-columns: minmax(300px, 0.32fr) minmax(0, 1fr);
}

.kp-message-inbox-row,
.kp-portal .kp-message-inbox-row {
    min-height: 76px !important;
    padding: 12px 14px !important;
}

.kp-message-row-title strong {
    font-size: 14px;
    font-weight: 600;
}

.kp-message-row-subject {
    color: #49637D;
    font-size: 12px;
    font-weight: 500;
}

.kp-message-row-preview {
    color: #7C8EA2;
    font-size: 13px;
    font-weight: 400;
}

.kp-message-thread-panels {
    background: #FFFFFF;
}

.kp-message-thread-header {
    min-height: 74px;
    padding: 14px 26px;
    background: #FFFFFF;
}

.kp-message-thread-header .kp-message-avatar {
    display: none;
}

.kp-message-thread-identity {
    display: block;
}

.kp-message-thread-header h3 {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 500;
}

.kp-message-thread-header p {
    color: #8493A5;
    font-size: 13px;
    font-weight: 400;
}

.kp-message-thread-header .kp-badge {
    min-height: 20px;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.kp-message-conversation {
    gap: 12px;
    padding: 22px 24px;
    background: #FFFFFF;
}

.kp-message-conversation-row,
.kp-message-conversation-row.is-client {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #DCE4EC;
    border-radius: 8px;
    background: #FFFFFF;
}

.kp-message-conversation-row.is-pending {
    border-color: #B7D7E8;
    background: #FBFDFE;
}

.kp-message-avatar {
    width: 38px;
    height: 38px;
    color: #FFFFFF;
    background: #2184AC;
    font-size: 13px;
    font-weight: 500;
}

.kp-message-conversation-bubble strong {
    margin-bottom: 3px;
    color: #16324D;
    font-size: 14px;
    font-weight: 600;
}

.kp-message-conversation-bubble div {
    color: #24384D;
    font-size: 14px;
    line-height: 1.45;
}

.kp-message-conversation-bubble time {
    margin-top: 4px;
    color: #7E8FA2;
    font-size: 12px;
}

.kp-message-thread-footer {
    padding: 14px 20px;
    border-top: 1px solid #DCE4EC;
}

.kp-message-thread-reply {
    min-height: 38px;
    border-radius: 6px;
    font-weight: 500;
}

.kp-message-thread-reply::before {
    content: "\2190";
    width: auto;
    height: auto;
    margin-right: 8px;
    border-radius: 0;
    color: inherit;
    background: transparent;
    font-size: 15px;
}

.kp-message-conversation-row {
    position: relative;
}

.kp-message-row-actions {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    gap: 6px;
    padding: 5px;
    border: 1px solid #DDE8F2;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 22px rgba(20, 46, 70, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(3px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.kp-message-conversation-row:hover .kp-message-row-actions,
.kp-message-conversation-row:focus-within .kp-message-row-actions {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.kp-message-row-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    min-height: 26px;
    padding: 0;
    border: 0 !important;
    border-radius: 6px;
    color: #7890A8 !important;
    background: transparent !important;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}

.kp-message-row-actions button:hover,
.kp-message-row-actions button:focus {
    color: #17334F !important;
    background: #EEF6FB !important;
}

.kp-message-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 12px;
    padding-right: 78px;
}

.kp-message-meta strong {
    margin: 0;
}

.kp-message-meta-side {
    display: grid;
    justify-items: end;
    gap: 3px;
}

.kp-message-meta time {
    display: inline-block;
    margin-top: 0;
    color: #7E8FA2;
    font-size: 12px;
    white-space: nowrap;
}

.kp-message-meta small {
    color: #7E8FA2;
    font-size: 11px;
    line-height: 1.25;
    text-align: right;
    white-space: normal;
}

.kp-message-inline-reply {
    margin-top: 0;
    padding: 14px 0 0;
    border-top: 1px solid #DCE4EC;
}

.kp-message-inline-reply .kp-message-thread-reply {
    min-height: 38px;
    padding: 8px 16px;
}

.kp-message-modal-dialog {
    width: min(820px, 100%);
    border-color: #DCE4EC;
    border-top: 3px solid #2184AC;
}

.kp-message-modal-header h2 {
    font-size: 18px;
    font-weight: 500;
}

.kp-message-modal-row {
    font-size: 14px;
    font-weight: 400;
}

.kp-message-modal-row > span,
.kp-message-modal-row button,
.kp-message-modal-footer .kp-button,
.kp-message-attach-button {
    font-weight: 500;
}

.kp-message-modal-row small {
    font-weight: 400;
}

.kp-notes-hero,
.kp-notes-filterbar,
.kp-note-timeline-card {
    box-shadow: 0 4px 16px rgba(26, 44, 68, 0.035);
}

.kp-notes-hero {
    padding: 16px 18px;
}

.kp-notes-hero h2 {
    font-size: 22px;
}

.kp-notes-filterbar {
    gap: 8px;
    padding: 10px;
}

.kp-notes-filterbar button,
.kp-notes-filterbar span {
    min-height: 32px;
    padding: 7px 11px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #3D526B;
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.kp-notes-filterbar button.is-active,
.kp-notes-filterbar span.is-active {
    border-color: #D7C28D;
    color: #061D3B;
    background: #FFF8E7;
}

.kp-note-timeline-card {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
}

.kp-note-card-main {
    padding: 0;
    border: 0;
    box-shadow: none;
}

.kp-note-card-main h3 {
    margin: 8px 0 6px;
    font-size: 16px;
}

.kp-note-body {
    color: #2D4868;
    font-size: 13px;
    line-height: 1.55;
}

.kp-note-card-main footer {
    align-items: center;
    margin-top: 12px;
    padding-top: 10px;
}

.kp-note-replies,
.kp-note-reply-form,
.kp-note-reply-list {
    display: none !important;
}

.kp-portal .kp-notes-portal {
    gap: 18px;
}

.kp-portal .kp-notes-hero {
    display: block;
    padding: 18px 20px;
    border-color: #CFE0EF;
    background: #EAF4FC;
    box-shadow: 0 4px 16px rgba(26, 44, 68, 0.035);
}

.kp-portal .kp-notes-hero h2 {
    margin: 0;
    color: #061D3B;
    font-size: 22px;
    font-weight: 650;
    line-height: 1.2;
}

.kp-portal .kp-notes-hero p:not(.kp-eyebrow) {
    max-width: 920px;
    margin: 7px 0 0;
    color: #2D4868;
    font-size: 13px;
    line-height: 1.55;
}

.kp-portal .kp-notes-filterbar {
    display: none;
}

.kp-portal .kp-personal-notes-panel {
    display: grid;
    grid-template-columns: minmax(220px, 0.65fr) minmax(280px, 1fr);
    gap: 16px;
    padding: 16px;
    border: 1px solid #CFE0EF;
    border-radius: 8px;
    background: #F7FAFD;
    box-shadow: 0 4px 16px rgba(26, 44, 68, 0.035);
}

.kp-portal .kp-personal-notes-panel h3 {
    margin: 0;
    color: #061D3B;
    font-size: 16px;
    font-weight: 650;
}

.kp-portal .kp-personal-notes-panel p:not(.kp-eyebrow) {
    margin: 6px 0 0;
    color: #526B86;
    font-size: 12px;
    line-height: 1.5;
}

.kp-portal .kp-personal-note-form {
    display: grid;
    gap: 10px;
}

.kp-portal .kp-personal-note-form textarea {
    width: 100%;
    min-height: 84px;
    resize: vertical;
    border: 1px solid #CFE0EF;
    border-radius: 8px;
    background: #FFFFFF;
    color: #172A3A;
    font: inherit;
    font-size: 13px;
    line-height: 1.5;
    padding: 10px 12px;
}

.kp-portal .kp-personal-note-form .kp-button {
    justify-self: start;
}

.kp-portal .kp-personal-note-list {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}

.kp-portal .kp-personal-note {
    position: relative;
    min-height: 96px;
    padding: 14px 14px 38px;
    border: 1px solid rgba(194, 138, 32, 0.24);
    border-radius: 6px;
    background: #FFF7C9;
    color: #2D4868;
    box-shadow: 0 8px 18px rgba(26, 44, 68, 0.08);
}

.kp-portal .kp-personal-note p {
    margin: 0;
    white-space: pre-wrap;
    font-size: 13px;
    line-height: 1.5;
}

.kp-portal .kp-personal-note time {
    display: block;
    margin-top: 10px;
    color: #6B7280;
    font-size: 11px;
}

.kp-portal .kp-personal-note button {
    position: absolute;
    right: 10px;
    bottom: 9px;
    border: 0;
    background: transparent;
    color: #7A4E00;
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
}

.kp-portal .kp-personal-note-empty {
    grid-column: 1 / -1;
    margin: 0;
    color: #526B86;
    font-size: 12px;
}

.kp-portal .kp-notes-timeline {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.kp-portal .kp-notes-timeline::before,
.kp-portal .kp-note-marker {
    display: none;
}

.kp-portal .kp-note-timeline-card {
    display: block;
    min-height: 180px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.kp-portal .kp-note-card-main {
    height: 100%;
    padding: 16px;
    border: 1px solid rgba(194, 138, 32, 0.26);
    border-radius: 6px;
    background: #FFF3B0;
    box-shadow: 0 10px 22px rgba(26, 44, 68, 0.1);
    transform: rotate(-0.35deg);
}

.kp-portal .kp-note-timeline-card:nth-child(2n) .kp-note-card-main {
    background: #EAF4FC;
    border-color: #CFE0EF;
    transform: rotate(0.35deg);
}

.kp-portal .kp-note-timeline-card:nth-child(3n) .kp-note-card-main {
    background: #F7FAFD;
    transform: rotate(-0.15deg);
}

.kp-portal .kp-note-card-main header {
    align-items: flex-start;
    margin-bottom: 10px;
}

.kp-portal .kp-note-card-main header .kp-badge {
    background: rgba(255, 255, 255, 0.58);
}

.kp-portal .kp-note-source,
.kp-portal .kp-note-card-main time {
    color: #526B86;
    font-size: 11px;
    font-weight: 500;
}

.kp-portal .kp-note-card-main h3 {
    margin: 8px 0 8px;
    color: #061D3B;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.3;
}

.kp-portal .kp-note-body {
    color: #2D4868;
    font-size: 13px;
    line-height: 1.5;
}

.kp-portal .kp-note-card-main footer {
    display: none;
}

@media (max-width: 760px) {
    .kp-portal .kp-personal-notes-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .kp-task-detail-grid {
        grid-template-columns: 1fr;
    }

    .kp-task-detail-hero,
    .kp-task-list-hero {
        flex-direction: column;
    }

    .kp-task-hero-actions {
        justify-items: start;
        width: 100%;
    }

    .kp-task-complete-form {
        justify-content: flex-start;
    }

    .kp-task-complete-form span {
        text-align: left;
    }
}

@media (max-width: 680px) {
    .kp-task-list-item {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .kp-task-list-meta {
        grid-column: 2;
        justify-items: start;
    }

    .kp-task-meta-grid {
        grid-template-columns: 1fr;
    }

    .kp-task-meta-grid div {
        grid-template-columns: 105px minmax(0, 1fr);
    }
}

.kp-docs-hero {
    align-items: flex-start;
    border-color: #CFE0EF;
    background: #FFFFFF;
    box-shadow: none;
}

.kp-docs-hero > span {
    display: none;
}

.kp-doc-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
}

.kp-doc-section {
    overflow: hidden;
    border-color: #CFE0EF;
    box-shadow: none;
}

.kp-doc-section header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 18px;
    border-bottom: 1px solid #E6EEF7;
    background: #FFFFFF;
}

.kp-doc-section header strong {
    color: #1F6F9F;
    font-size: 12px;
    font-weight: 650;
}

.kp-doc-section header strong.is-complete {
    color: #1F6F9F;
}

.kp-doc-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid #E6EEF7;
    background: #FFFFFF;
}

.kp-doc-row.is-awaiting {
    background: #FFFFFF;
}

.kp-doc-row h4 {
    margin: 0;
    color: #061D3B;
    font-size: 14px;
    font-weight: 650;
}

.kp-doc-row p {
    margin: 4px 0 0;
    color: #45638A;
    font-size: 12px;
}

.kp-doc-row.is-awaiting .kp-doc-icon {
    border-radius: 8px;
    background: #EAF4FC;
}

.kp-doc-row.is-signed .kp-doc-icon {
    border-radius: 8px;
    background: #EAF4FC;
}

.kp-doc-status {
    display: inline-flex;
    margin-left: 8px;
    padding: 3px 7px;
    border-radius: 999px;
    color: #1F6F9F;
    background: #EAF4FC;
    font-size: 10px;
    font-weight: 650;
    text-transform: uppercase;
}

.kp-doc-row.is-signed .kp-doc-status {
    color: #1F6F9F;
    background: #EAF4FC;
}

.kp-doc-actions button,
.kp-doc-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border: 1px solid #1F6F9F;
    border-radius: 8px;
    color: #1F6F9F;
    background: #FFFFFF;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
}

.kp-doc-section-grid .kp-doc-actions {
    grid-column: 2;
    justify-content: flex-start;
}

.kp-doc-row.is-awaiting .kp-doc-actions button:first-child,
.kp-doc-row.is-signed .kp-doc-actions button,
.kp-doc-row.is-signed .kp-doc-actions a {
    color: var(--kp-white);
    background: #1F6F9F;
}

.kp-doc-row.is-signed .kp-doc-actions button,
.kp-doc-row.is-signed .kp-doc-actions a {
    border-color: #1F6F9F;
    background: #1F6F9F;
}

.kp-doc-empty {
    padding: 18px 24px;
    color: #45638A;
}

@media (max-width: 1180px) {
    .kp-doc-section-grid {
        grid-template-columns: 1fr;
    }

    .kp-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kp-list-grid,
    .kp-property-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kp-deal-workspace {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .kp-deal-stage-track {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .kp-property-listing {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .kp-property-listing-main {
        grid-template-columns: 1fr;
    }

    .kp-property-listing-info {
        grid-column: 1;
        grid-row: auto;
    }

    .kp-property-listing-profile {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .kp-property-listing-action {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 860px) {
    .kp-portal {
        min-height: 100vh;
    }

    .kp-mobile-bar {
        position: sticky;
        top: 0;
        z-index: 30;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 68px;
        padding: 12px 18px;
        color: var(--kp-white);
        background: var(--kp-navy);
    }

    .kp-brand-mobile .kp-brand-mark {
        width: 38px;
        height: 38px;
    }

    .kp-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        background: transparent;
    }

    .kp-menu-lines,
    .kp-menu-lines::before,
    .kp-menu-lines::after {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: var(--kp-white);
        content: "";
    }

    .kp-menu-lines::before {
        transform: translateY(-7px);
    }

    .kp-menu-lines::after {
        transform: translateY(5px);
    }

    .kp-shell {
        display: block;
        min-height: auto;
    }

    .kp-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(320px, 86vw);
        min-height: 100vh;
        transform: translateX(-104%);
        transition: transform 180ms ease;
    }

    .kp-portal.is-menu-open .kp-sidebar {
        transform: translateX(0);
    }

    .kp-overlay {
        position: fixed;
        inset: 0;
        z-index: 10;
        background: rgba(26, 44, 68, 0.45);
    }

    .kp-portal.is-menu-open .kp-overlay {
        display: block;
    }

    .kp-main {
        padding: 22px 16px 30px;
    }

    .kp-page-header,
    .kp-welcome-card,
    .kp-section-heading,
    .kp-profile-summary,
    .kp-file-row,
    .kp-task-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .kp-header-card {
        width: 100%;
    }

    .kp-metric-grid,
    .kp-list-grid,
    .kp-property-grid,
    .kp-field-grid,
    .kp-detail-grid,
    .kp-file-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kp-files-layout-grid {
        grid-template-columns: 1fr;
    }

    .kp-files-panel {
        height: 320px;
    }

    .kp-files-panel .kp-file-row {
        grid-template-columns: 1fr;
    }

    .kp-message-bubble {
        max-width: 88%;
    }

    .kp-message-input {
        grid-template-columns: 1fr;
    }

    .kp-referral-link-row {
        grid-template-columns: 1fr;
    }

    .kp-referral-link-row .kp-button {
        width: 100%;
    }

    .kp-referral-modal {
        padding: 10px;
    }

    .kp-referral-modal-panel {
        height: calc(100vh - 20px);
    }

    .kp-referral-modal-header {
        padding: 12px 14px;
    }

    .kp-task-row div {
        width: 100%;
        justify-content: space-between;
    }

    .kp-deal-hero,
    .kp-docs-hero,
    .kp-notes-hero,
    .kp-message-hero,
    .kp-deal-main-header,
    .kp-doc-section header {
        align-items: flex-start;
        flex-direction: column;
    }

    .kp-deal-actions,
    .kp-doc-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .kp-notes-hero .kp-button {
        width: 100%;
    }

    .kp-deal-workspace {
        grid-template-columns: 1fr;
    }

    .kp-message-setup,
    .kp-message-workspace {
        grid-template-columns: 1fr;
    }

    .kp-message-thread-layout {
        grid-template-columns: 1fr;
    }

    .kp-deal-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--kp-border);
    }

    .kp-message-mailboxes {
        border-right: 0;
        border-bottom: 1px solid var(--kp-border);
    }

    .kp-message-inbox-rows {
        border-right: 0;
        border-bottom: 1px solid var(--kp-border);
    }

    .kp-message-thread-panel {
        min-height: 420px;
    }

    .kp-message-mailboxes nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .kp-deal-panel-grid {
        grid-template-columns: 1fr;
    }

    .kp-deal-summary-strip {
        grid-template-columns: 1fr;
    }

    .kp-deal-stage-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kp-doc-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .kp-doc-actions {
        grid-column: 1 / -1;
        padding-left: 58px;
    }

    .kp-property-detail-hero,
    .kp-property-detail-grid,
    .kp-property-detail-layout {
        grid-template-columns: 1fr;
    }

    .kp-property-media-collage {
        grid-template-columns: minmax(0, 1.4fr) minmax(140px, 0.8fr);
        height: 240px;
        min-height: 0;
    }

    .kp-property-detail-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .kp-property-hero-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .kp-card,
    .kp-login-card {
        padding: 18px;
    }

    .kp-page-header h1 {
        font-size: 30px;
    }

    .kp-property-hero {
        flex-direction: column;
    }

    .kp-property-listing {
        grid-template-columns: 1fr;
    }

    .kp-property-thumb {
        height: 190px;
    }

    .kp-property-listing-profile {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kp-property-listing-info {
        grid-template-columns: 1fr;
    }

    .kp-property-listing-action {
        grid-column: auto;
        width: 100%;
    }

    .kp-property-listing-main strong,
    .kp-property-address {
        white-space: normal;
    }

    .kp-property-body div {
        display: grid;
        gap: 4px;
    }

    .kp-mini-dl div {
        display: grid;
    }

    .kp-property-body dd {
        text-align: left;
    }

    .kp-mini-dl dd {
        text-align: left;
    }

    .kp-property-detail-list div {
        display: grid;
        gap: 5px;
    }

    .kp-property-detail-list {
        grid-template-columns: 1fr;
    }

    .kp-property-detail-list dd {
        text-align: left;
    }

    .kp-property-media-collage {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
    }

    .kp-property-hero-profile {
        grid-template-columns: 1fr;
    }

    .kp-property-hero-actions .kp-button {
        width: 100%;
    }

    .kp-property-media-primary {
        aspect-ratio: 16 / 10;
    }

    .kp-property-media-previews {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-height: 120px;
    }

    .kp-property-photo-dialog {
        width: 100vw;
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .kp-property-photo-stage {
        padding: 18px 52px;
    }

    .kp-property-photo-nav {
        width: 38px;
        height: 38px;
        font-size: 32px;
    }

    .kp-property-photo-nav.is-prev {
        left: 8px;
    }

    .kp-property-photo-nav.is-next {
        right: 8px;
    }

    .kp-property-photo-thumbs button {
        flex-basis: 76px;
        height: 52px;
    }

    .kp-deal-stage-track,
    .kp-deal-stage-dates,
    .kp-deal-info-list div,
    .kp-deal-line,
    .kp-message-source-list div {
        display: grid;
        grid-template-columns: 1fr;
    }

    .kp-message-mailboxes nav,
    .kp-message-inbox-row {
        grid-template-columns: 1fr;
    }

    .kp-message-inbox-row {
        gap: 8px;
    }

    .kp-message-inbox-row time {
        text-align: left;
    }

    .kp-message-thread-header {
        flex-direction: column;
    }

    .kp-message-thread-identity {
        width: 100%;
    }

    .kp-message-thread-header .kp-button {
        width: 100%;
    }

    .kp-message-thread-footer {
        justify-content: stretch;
    }

    .kp-message-thread-footer .kp-button {
        width: 100%;
    }

    .kp-message-conversation-row,
    .kp-message-conversation-row.is-client {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .kp-message-conversation-row .kp-message-avatar,
    .kp-message-conversation-row.is-client .kp-message-avatar,
    .kp-message-conversation-row.is-client .kp-message-conversation-bubble {
        grid-column: auto;
        grid-row: auto;
    }

    .kp-message-modal {
        align-items: stretch;
        padding: 14px;
    }

    .kp-message-modal-row {
        grid-template-columns: 1fr;
    }

    .kp-message-modal-row > span {
        padding-top: 0;
    }

    .kp-message-editor {
        grid-column: auto;
    }

    .kp-message-modal-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .kp-message-row-title strong,
    .kp-message-row-subject,
    .kp-message-row-preview {
        white-space: normal;
    }

    .kp-deal-info-list dd {
        text-align: left;
    }

    .kp-notes-filterbar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kp-notes-filterbar span {
        justify-content: center;
    }

    .kp-notes-timeline::before {
        display: none;
    }

    .kp-note-timeline-card {
        grid-template-columns: 1fr;
    }

    .kp-note-marker {
        display: none;
    }

    .kp-note-card-main header,
    .kp-note-card-main footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .kp-doc-row {
        grid-template-columns: 1fr;
    }

    .kp-doc-actions {
        padding-left: 0;
    }

    .kp-doc-actions button {
        width: 100%;
    }
}

@media print {
    @page {
        margin: 0.55in 0.45in 0.7in;
    }

    body {
        background: #FFFFFF;
    }

    .kp-portal-shell {
        display: block;
        min-height: auto;
        background: #FFFFFF;
    }

    .kp-sidebar,
    .kp-mobile-bar,
    .kp-page-header,
    .kp-back-link,
    .kp-property-photo-modal,
    .kp-attachment-modal,
    .kp-property-photo-count,
    .kp-property-hero-actions,
    .kp-property-map-card iframe {
        display: none !important;
    }

    .kp-main {
        padding: 0;
    }

    .kp-property-detail {
        gap: 10px;
        padding-bottom: 24px;
    }

    .kp-print-brand {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 0 0 10px;
        margin-bottom: 10px;
        border-bottom: 1px solid #D7D7D7;
        break-inside: avoid;
    }

    .kp-print-brand img {
        width: 54px;
        height: 54px;
        object-fit: contain;
    }

    .kp-print-brand div {
        display: grid;
        gap: 2px;
        text-align: right;
    }

    .kp-print-brand strong {
        color: #061D3B;
        font-size: 15px;
        line-height: 1.15;
    }

    .kp-print-brand span {
        color: #253C58;
        font-size: 10px;
        line-height: 1.2;
    }

    .kp-print-footer {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        padding-top: 6px;
        border-top: 1px solid #D7D7D7;
        color: #506C91;
        background: #FFFFFF;
        font-size: 9px;
        line-height: 1.2;
        text-align: center;
    }

    .kp-property-detail-layout {
        grid-template-columns: 1fr;
        gap: 10px;
        box-shadow: none;
    }

    .kp-property-detail-hero {
        grid-template-columns: 132px minmax(0, 1fr);
        gap: 10px;
        box-shadow: none;
    }

    .kp-property-detail-hero,
    .kp-property-detail-section,
    .kp-property-description-card,
    .kp-property-map-card,
    .kp-property-note-card,
    .kp-property-doc-card {
        padding: 10px;
        border-color: #D7D7D7;
        box-shadow: none;
        break-inside: avoid;
    }

    .kp-property-media-frame,
    .kp-property-media-collage {
        width: 132px;
        height: 88px;
        min-height: 0;
        max-height: 88px;
    }

    .kp-property-media-collage {
        grid-template-columns: 1fr;
    }

    .kp-property-media-primary {
        height: 88px;
    }

    .kp-property-media-primary img {
        height: 88px;
        object-fit: cover;
    }

    .kp-property-media-previews {
        display: none;
    }

    .kp-property-detail-summary h2 {
        font-size: 24px;
    }

    .kp-property-detail-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 16px;
    }

    .kp-property-detail-list div {
        padding: 5px 0;
    }

    .kp-property-detail-list dt,
    .kp-property-detail-list dd,
    .kp-property-description-body,
    .kp-property-note-item p,
    .kp-property-doc-list span {
        font-size: 11px;
    }

    .kp-property-detail-section h2,
    .kp-property-description-card h2,
    .kp-property-map-card h2,
    .kp-property-note-card h2,
    .kp-property-doc-card h2 {
        font-size: 15px;
    }
}

.kp-property-description-card,
.kp-property-description-body {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

.kp-property-description-body {
    display: block !important;
    white-space: normal;
}

.kp-portal .kp-card h2,
.kp-portal .kp-section-heading h2,
.kp-portal .kp-file-row h2,
.kp-portal .kp-deal-card h2,
.kp-portal .kp-property-card h2 {
    font-size: 15px;
    font-weight: 600;
}

.kp-portal .kp-eyebrow,
.kp-portal .kp-badge,
.kp-portal .kp-button,
.kp-portal .kp-field span,
.kp-portal .kp-card-topline,
.kp-portal .kp-table th {
    font-weight: 600;
}

.kp-page-dashboard .kp-welcome-card {
    padding: 14px 16px;
}

.kp-page-dashboard .kp-welcome-card h2 {
    font-size: 16px;
    font-weight: 500;
}

.kp-page-dashboard .kp-welcome-card p:not(.kp-eyebrow) {
    max-width: 920px;
    margin-top: 6px;
    line-height: 1.45;
}

.kp-page-dashboard .kp-metric-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.kp-page-dashboard .kp-metric-card {
    min-height: 112px;
    padding: 11px 10px;
    border-color: #DCE8F3;
    background: #F8FBFE;
    box-shadow: none;
}

.kp-page-dashboard .kp-metric-card span {
    color: #506C91;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.25;
}

.kp-page-dashboard .kp-metric-card strong {
    margin: 6px 0 4px;
    color: #17334F;
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
}

.kp-page-dashboard .kp-metric-card p {
    margin-top: 0;
    color: #66798C;
    font-size: 11px;
    line-height: 1.35;
}

.kp-dashboard-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.kp-dashboard-card-grid .kp-card {
    min-height: 220px;
    padding: 14px;
    box-shadow: none;
}

.kp-dashboard-card-grid .kp-section-heading {
    gap: 10px;
    margin-bottom: 6px;
}

.kp-dashboard-card-grid .kp-section-heading h2 {
    color: #17334F;
    font-size: 14px;
    font-weight: 500;
}

.kp-dashboard-card-grid .kp-button {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
}

.kp-page-dashboard .kp-dashboard-timeline-item,
.kp-page-dashboard .kp-dashboard-meeting-item,
.kp-page-dashboard .kp-dashboard-document-item,
.kp-page-dashboard .kp-mini-row {
    padding: 9px 0;
}

.kp-page-dashboard .kp-dashboard-document-list {
    margin-top: 2px;
}

.kp-page-dashboard .kp-dashboard-document-item {
    gap: 10px;
}

.kp-page-dashboard .kp-dashboard-document-item > div {
    min-width: 0;
}

.kp-page-dashboard .kp-dashboard-timeline-item span {
    color: #60758B;
    font-size: 11px;
    font-weight: 500;
}

.kp-page-dashboard .kp-dashboard-timeline-item strong,
.kp-page-dashboard .kp-dashboard-meeting-item strong,
.kp-page-dashboard .kp-dashboard-document-item strong,
.kp-page-dashboard .kp-mini-row strong {
    color: #17334F;
    font-size: 13px;
    font-weight: 500;
}

.kp-page-dashboard .kp-dashboard-timeline-item small,
.kp-page-dashboard .kp-dashboard-meeting-item span,
.kp-page-dashboard .kp-dashboard-document-item div > span,
.kp-page-dashboard .kp-mini-row span,
.kp-page-dashboard .kp-card p {
    color: #66798C;
    font-size: 12px;
    line-height: 1.4;
}

.kp-page-dashboard .kp-badge {
    min-height: 22px;
    padding: 3px 7px;
    font-size: 11px;
    font-weight: 500;
}

.kp-page-dashboard .kp-dashboard-document-item .kp-badge {
    min-height: 20px;
    padding: 2px 6px;
    font-size: 10px;
    line-height: 1.2;
}

.kp-portal .kp-card {
    padding: 14px 16px;
    box-shadow: none;
}

.kp-portal .kp-card h2,
.kp-portal .kp-section-heading h2,
.kp-portal .kp-file-row h2,
.kp-portal .kp-deal-card h2,
.kp-portal .kp-property-card h2,
.kp-portal .kp-task-detail-card h3,
.kp-portal .kp-client-task-main h3,
.kp-portal .kp-message-thread-header h3,
.kp-portal .kp-note-card-main h3,
.kp-portal .kp-file-group h3 {
    color: #17334F;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

.kp-portal .kp-page-header h1,
.kp-portal .kp-files-intro-card h1 {
    color: #17334F;
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 500;
    line-height: 1.2;
}

.kp-portal .kp-button,
.kp-portal .kp-badge,
.kp-portal .kp-eyebrow,
.kp-portal .kp-card-topline,
.kp-portal .kp-field span,
.kp-portal .kp-table th,
.kp-portal .kp-doc-status,
.kp-portal .kp-file-row-meta,
.kp-portal .kp-property-status {
    font-weight: 500;
}

.kp-portal .kp-card p,
.kp-portal .kp-mini-row span,
.kp-portal .kp-file-row p,
.kp-portal .kp-field input,
.kp-portal .kp-field textarea,
.kp-portal .kp-field select,
.kp-portal .kp-doc-row p,
.kp-portal .kp-dashboard-timeline-item small,
.kp-portal .kp-dashboard-meeting-item span,
.kp-portal .kp-dashboard-document-item div > span {
    color: #66798C;
    font-size: 12px;
    line-height: 1.4;
}

.kp-portal .kp-mini-row strong,
.kp-portal .kp-file-row strong,
.kp-portal .kp-doc-row h4,
.kp-portal .kp-dashboard-timeline-item strong,
.kp-portal .kp-dashboard-meeting-item strong,
.kp-portal .kp-dashboard-document-item strong {
    color: #17334F;
    font-size: 13px;
    font-weight: 500;
}

.kp-portal .kp-button {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
}

.kp-portal .kp-badge {
    min-height: 22px;
    padding: 3px 7px;
    font-size: 11px;
}

@media (max-width: 1080px) {
    .kp-page-dashboard .kp-metric-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

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

@media (max-width: 720px) {
    .kp-page-dashboard .kp-metric-grid,
    .kp-dashboard-card-grid {
        grid-template-columns: 1fr;
    }

    .kp-page-dashboard .kp-metric-card {
        min-height: auto;
    }
}

/* Final Notes board overrides. Keep at end so page-wide typography rules do not flatten the cards. */
.kp-portal .kp-notes-portal {
    display: block;
    padding: 0;
    background: transparent !important;
}

.kp-portal .kp-notes-hero,
.kp-portal .kp-notes-filterbar {
    display: none !important;
}

.kp-portal .kp-notes-callout {
    margin: 0 0 14px;
    padding: 16px 18px;
    border: 1px solid #CFE0EF;
    border-radius: 8px;
    background: #FFFFFF !important;
    box-shadow: none;
}

.kp-portal .kp-notes-callout .kp-eyebrow {
    margin: 0 0 4px;
    color: #B8872B;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.kp-portal .kp-notes-callout h2 {
    margin: 0 0 5px;
    color: #000000;
    font-size: 20px;
    font-weight: 650;
    line-height: 1.2;
}

.kp-portal .kp-notes-callout p:last-child {
    max-width: 860px;
    margin: 0;
    color: #294766;
    font-size: 13px;
    line-height: 1.45;
}

.kp-portal .kp-personal-notes-panel {
    display: block !important;
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid #CFE0EF;
    border-radius: 8px;
    background: #FFFFFF !important;
    box-shadow: none;
}

.kp-portal .kp-personal-note-form {
    display: grid;
    grid-template-columns: auto minmax(220px, 420px) auto;
    align-items: center;
    justify-content: start;
    gap: 10px;
    margin: 0 0 12px;
}

.kp-portal .kp-personal-note-form label {
    color: #17334F;
    font-size: 13px;
    font-weight: 600;
}

.kp-portal .kp-personal-note-form textarea {
    min-height: 42px;
    max-height: 74px;
    padding: 9px 10px;
    border: 1px solid #CFE0EF;
    border-radius: 7px;
    background: #FFFFFF;
    color: #17334F;
    font-size: 12px;
    line-height: 1.35;
    resize: vertical;
}

.kp-portal .kp-personal-note-form .kp-button {
    min-height: 38px;
    padding: 8px 13px;
    font-size: 12px;
}

.kp-portal .kp-personal-note-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 160px));
    gap: 14px;
    margin: 0 0 18px;
}

.kp-portal .kp-personal-note-empty {
    margin: 0;
    color: #5A728D;
    font-size: 12px;
}

.kp-portal .kp-personal-note {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 150px;
    padding: 14px 13px 12px;
    border: 1px solid rgba(188, 134, 32, 0.22);
    border-radius: 4px;
    background: #F8F0C8;
    box-shadow: 0 8px 16px rgba(24, 43, 64, 0.1);
    transform: rotate(0.6deg);
}

.kp-portal .kp-personal-note::before {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 30px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    content: "";
    transform: translateX(-50%);
}

.kp-portal .kp-personal-note p {
    margin: 12px 0 10px;
    color: #263F59;
    font-size: 12px;
    line-height: 1.42;
}

.kp-portal .kp-personal-note time {
    margin-top: auto;
    color: #7B6A36;
    font-size: 10px;
}

.kp-portal .kp-personal-note button {
    align-self: flex-start;
    margin-top: 8px;
    padding: 4px 7px;
    border: 1px solid rgba(23, 51, 79, 0.15);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.55);
    color: #17334F;
    font-size: 10px;
    cursor: pointer;
}

.kp-portal .kp-notes-timeline {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 180px));
    align-items: start;
    justify-content: start;
    gap: 18px;
    padding: 8px 4px 24px;
}

.kp-portal .kp-notes-timeline::before,
.kp-portal .kp-note-marker {
    display: none !important;
}

.kp-portal .kp-note-timeline-card {
    display: block !important;
    width: 180px;
    min-height: 180px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.kp-portal .kp-note-card-main {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 180px;
    min-height: 180px;
    padding: 14px 14px 12px !important;
    border: 1px solid rgba(188, 134, 32, 0.26) !important;
    border-radius: 4px !important;
    background: #FFF1A8 !important;
    box-shadow: 0 10px 18px rgba(24, 43, 64, 0.12) !important;
    transform: rotate(-1deg);
}

.kp-portal .kp-note-timeline-card:nth-child(2n) .kp-note-card-main {
    background: #FFE7B8 !important;
    transform: rotate(0.8deg);
}

.kp-portal .kp-note-timeline-card:nth-child(3n) .kp-note-card-main {
    background: #EAF4FC !important;
    border-color: #CFE0EF !important;
    transform: rotate(-0.5deg);
}

.kp-portal .kp-note-timeline-card:nth-child(4n) .kp-note-card-main {
    background: #EAF7DC !important;
    border-color: #D3E7C1 !important;
    transform: rotate(1deg);
}

.kp-portal .kp-note-card-main::before {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 34px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    box-shadow: 0 1px 4px rgba(24, 43, 64, 0.12);
    content: "";
    transform: translateX(-50%);
}

.kp-portal .kp-note-card-main header {
    display: block !important;
    margin: 12px 0 10px !important;
}

.kp-portal .kp-note-card-main header > div {
    display: block !important;
}

.kp-portal .kp-note-card-main .kp-badge,
.kp-portal .kp-note-source {
    display: none !important;
}

.kp-portal .kp-note-card-main time {
    display: block;
    margin: 0;
    color: #7B6A36 !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    line-height: 1.2;
    text-align: right;
}

.kp-portal .kp-note-card-main h3 {
    margin: 0 0 8px !important;
    color: #17334F !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    line-height: 1.25 !important;
}

.kp-portal .kp-note-body {
    overflow: hidden;
    color: #263F59 !important;
    font-size: 12px !important;
    line-height: 1.42 !important;
}

.kp-portal .kp-note-body p {
    margin: 0 0 6px !important;
}

.kp-portal .kp-note-attachment-list {
    margin-top: auto;
    padding-top: 8px;
}

.kp-portal .kp-note-attachment-list a,
.kp-portal .kp-note-attachment-list span {
    font-size: 11px !important;
}

@media (max-width: 680px) {
    .kp-portal .kp-personal-note-form {
        grid-template-columns: 1fr;
    }
}

/* Final Documents page color overrides. Keep this at the end to prevent legacy orange/tan document styles from bleeding through. */
.kp-portal .kp-docs-hero,
.kp-portal .kp-doc-section,
.kp-portal .kp-doc-section header,
.kp-portal .kp-doc-row,
.kp-portal .kp-doc-row.is-awaiting {
    background: #FFFFFF !important;
}

.kp-portal .kp-doc-section header strong,
.kp-portal .kp-doc-section header strong.is-complete,
.kp-portal .kp-doc-status,
.kp-portal .kp-doc-row.is-signed .kp-doc-status {
    color: #1F6F9F !important;
}

.kp-portal .kp-doc-status,
.kp-portal .kp-doc-row.is-signed .kp-doc-status,
.kp-portal .kp-doc-row.is-awaiting .kp-doc-icon,
.kp-portal .kp-doc-row.is-signed .kp-doc-icon {
    background: #EAF4FC !important;
}

.kp-portal .kp-doc-actions button,
.kp-portal .kp-doc-actions a {
    border-color: #1F6F9F !important;
    color: #1F6F9F !important;
    background: #FFFFFF !important;
    font-weight: 650 !important;
}

.kp-portal .kp-doc-row.is-awaiting .kp-doc-actions button:first-child,
.kp-portal .kp-doc-row.is-signed .kp-doc-actions button,
.kp-portal .kp-doc-row.is-signed .kp-doc-actions a {
    color: #FFFFFF !important;
    background: #1F6F9F !important;
}

/* Final Open Deals page typography and color normalization. */
.kp-portal .kp-deal-portal {
    gap: 14px;
}

.kp-portal .kp-deal-hero,
.kp-portal .kp-deal-stage-card,
.kp-portal .kp-deal-workspace,
.kp-portal .kp-deal-panel,
.kp-portal .kp-deal-task-card,
.kp-portal .kp-deal-note,
.kp-portal .kp-deal-message-bubble {
    border-color: #CFE0EF !important;
    border-radius: 8px !important;
    background: #FFFFFF !important;
    box-shadow: none !important;
}

.kp-portal .kp-deal-hero,
.kp-portal .kp-deal-main-header {
    padding: 16px 18px !important;
}

.kp-portal .kp-deal-hero h2,
.kp-portal .kp-deal-main-header h2 {
    margin: 0;
    color: #17334F !important;
    font-size: 20px !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
}

.kp-portal .kp-deal-hero p,
.kp-portal .kp-deal-main-header p,
.kp-portal .kp-deal-panel p,
.kp-portal .kp-deal-client-comments > p,
.kp-portal .kp-deal-source-note,
.kp-portal .kp-deal-inline-status,
.kp-portal .kp-deal-task-description {
    color: #5A728D !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
}

.kp-portal .kp-deal-stage-card {
    padding: 14px 16px !important;
}

.kp-portal .kp-deal-stage-dates {
    margin-bottom: 10px !important;
    color: #5A728D !important;
    font-size: 11px !important;
    font-weight: 500 !important;
}

.kp-portal .kp-deal-stage-track {
    gap: 6px !important;
}

.kp-portal .kp-deal-stage-track span {
    min-height: 30px !important;
    padding: 7px 6px !important;
    border: 1px solid #DCE8F3 !important;
    border-radius: 6px !important;
    color: #5A728D !important;
    background: #F8FBFE !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
}

.kp-portal .kp-deal-stage-track span.is-active {
    color: #1F6F9F !important;
    background: #EAF4FC !important;
    font-weight: 650 !important;
}

.kp-portal .kp-deal-workspace {
    grid-template-columns: 280px minmax(0, 1fr);
}

.kp-portal .kp-deal-sidebar,
.kp-portal .kp-deal-tabs,
.kp-portal .kp-deal-section {
    background: #F8FBFE !important;
}

.kp-portal .kp-deal-sidebar {
    gap: 10px;
    padding: 14px;
}

.kp-portal .kp-deal-selector {
    min-height: 82px;
    padding: 12px 13px;
    border-color: #DCE8F3 !important;
    border-radius: 8px !important;
    background: #FFFFFF !important;
    box-shadow: none !important;
}

.kp-portal .kp-deal-selector.is-active,
.kp-portal .kp-deal-selector:hover,
.kp-portal .kp-deal-selector:focus {
    border-color: #1F6F9F !important;
    background: #F8FBFE !important;
}

.kp-portal .kp-deal-selector span,
.kp-portal .kp-deal-selector-counts {
    color: #66798C !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
}

.kp-portal .kp-deal-selector strong {
    color: #17334F !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
}

.kp-portal .kp-deal-main-header {
    border-bottom-color: #DCE8F3 !important;
}

.kp-portal .kp-deal-tabs {
    gap: 6px;
    padding: 12px 16px;
    border-bottom-color: #DCE8F3 !important;
}

.kp-portal .kp-deal-tabs button {
    min-height: 32px !important;
    padding: 6px 10px !important;
    border-color: #CFE0EF !important;
    border-radius: 7px !important;
    color: #294766 !important;
    background: #FFFFFF !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

.kp-portal .kp-deal-tabs button.is-active {
    border-color: #1F6F9F !important;
    color: #1F6F9F !important;
    background: #EAF4FC !important;
}

.kp-portal .kp-deal-tabs button span {
    min-width: 18px;
    min-height: 18px;
    margin-left: 5px;
    padding: 1px 5px;
    color: #1F6F9F !important;
    background: #FFFFFF !important;
    font-size: 10px !important;
    font-weight: 600 !important;
}

.kp-portal .kp-deal-section {
    padding: 14px;
}

.kp-portal .kp-deal-panel-grid {
    gap: 12px;
}

.kp-portal .kp-deal-panel {
    padding: 14px !important;
}

.kp-portal .kp-deal-panel h3,
.kp-portal .kp-deal-client-comments > h3,
.kp-portal .kp-deal-task-notes > strong,
.kp-portal .kp-deal-task-attachments > strong {
    color: #17334F !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

.kp-portal .kp-deal-info-list {
    margin-top: 10px;
}

.kp-portal .kp-deal-info-list div,
.kp-portal .kp-deal-line {
    gap: 12px;
    padding: 9px 0;
    border-bottom-color: #E6EEF7 !important;
}

.kp-portal .kp-deal-info-list dt,
.kp-portal .kp-deal-line span small,
.kp-portal .kp-deal-note small,
.kp-portal .kp-deal-latest-note span,
.kp-portal .kp-deal-task-main small,
.kp-portal .kp-task-complete-form span {
    color: #66798C !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
}

.kp-portal .kp-deal-info-list dd,
.kp-portal .kp-deal-line span strong,
.kp-portal .kp-deal-line span a,
.kp-portal .kp-deal-task-main strong,
.kp-portal .kp-deal-note strong {
    color: #17334F !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

.kp-portal .kp-deal-line button,
.kp-portal .kp-deal-line em {
    color: #1F6F9F !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.kp-portal .kp-deal-note,
.kp-portal .kp-deal-task-card {
    padding: 12px !important;
}

.kp-portal .kp-deal-note p,
.kp-portal .kp-deal-note-compact p,
.kp-portal .kp-deal-message-bubble p {
    color: #5A728D !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}

.kp-portal .kp-deal-source-note,
.kp-portal .kp-deal-client-note,
.kp-portal .kp-deal-message-bubble.is-client {
    background: #F8FBFE !important;
}

.kp-portal .kp-deal-message-bubble {
    border-radius: 8px !important;
}

.kp-portal .kp-deal-task-main em {
    color: #1F6F9F !important;
    background: #EAF4FC !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

.kp-portal .kp-deal-task-main em.is-complete {
    color: #2F6F4E !important;
    background: #E6F4EC !important;
}

.kp-portal .kp-deal-note-attachments a,
.kp-portal .kp-deal-note-attachments span {
    border-color: #CFE0EF !important;
    border-radius: 7px !important;
    color: #1F6F9F !important;
    background: #FFFFFF !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

@media (max-width: 980px) {
    .kp-portal .kp-deal-workspace {
        grid-template-columns: 1fr;
    }
}

.kp-portal .kp-property-detail-layout,
.kp-portal .kp-property-section-stack,
.kp-portal .kp-property-description-card,
.kp-portal .kp-property-description-body {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

.kp-portal .kp-property-description-card > h2 {
    font-size: 17px !important;
    line-height: 1.25 !important;
}

.kp-portal .kp-property-description-body {
    display: block !important;
    white-space: normal !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}

.kp-portal .kp-property-description-body p,
.kp-portal .kp-property-description-body ul,
.kp-portal .kp-property-description-body ol {
    font-size: 16px !important;
    font-weight: 400 !important;
    margin-bottom: 14px !important;
}

.kp-portal .kp-property-description-body li {
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    margin: 0 0 2px !important;
}

.kp-portal .kp-property-description-body li p {
    margin: 0 !important;
}

.kp-public-introduction {
    min-height: 100vh;
    background: #F3F6FA;
    color: #061D3B;
    padding: 42px 18px;
}

.kp-public-introduction-card {
    width: min(900px, 100%);
    margin: 0 auto;
    background: #FFFFFF;
    border: 1px solid #CFE0EF;
    border-radius: 8px;
    padding: 26px;
    box-shadow: 0 18px 45px rgba(6, 29, 59, 0.08);
}

.kp-public-introduction-header {
    margin-bottom: 22px;
}

.kp-public-introduction-header h1 {
    margin: 4px 0 8px;
    color: #061D3B;
    font-size: 30px;
    line-height: 1.15;
}

.kp-public-introduction-header p {
    margin: 0;
    color: #5A728D;
    font-size: 15px;
    line-height: 1.5;
}

.kp-public-referrer {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin: 0 0 18px;
    padding: 10px 12px;
    background: #F8FBFE;
    border: 1px solid #DCEAF5;
    border-radius: 7px;
}

.kp-public-referrer span {
    color: #66798C;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.kp-public-referrer strong {
    color: #17334F;
    font-size: 14px;
}

.kp-zoho-introduction-webform {
    border: 1px solid #DCEAF5;
    border-radius: 8px;
    background: #FFFFFF;
    overflow: hidden;
}

.kp-zoho-introduction-webform #webform7435433000001667112 {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 20px !important;
    background: #FFFFFF !important;
    color: #061D3B !important;
    box-sizing: border-box !important;
}

.kp-zoho-introduction-webform #webform7435433000001667112 * {
    box-sizing: border-box !important;
    font-family: inherit !important;
}

.kp-zoho-introduction-webform #crmWebToEntityForm.zcwf_lblLeft {
    padding: 18px !important;
}

.kp-zoho-introduction-webform .zcwf_title {
    color: #061D3B;
}

.kp-zoho-introduction-webform .zcwf_col_fld input[type=text],
.kp-zoho-introduction-webform .zcwf_col_fld textarea,
.kp-zoho-introduction-webform .zcwf_col_fld select {
    max-width: 100%;
}

.kp-zoho-introduction-webform #crmWebToEntityForm,
.kp-zoho-introduction-webform #crmWebToEntityForm * {
    font-family: inherit !important;
}

.kp-zoho-introduction-webform #crmWebToEntityForm.zcwf_lblLeft {
    width: 100% !important;
    margin: 0 !important;
    padding: 20px !important;
    background: #FFFFFF !important;
}

.kp-zoho-introduction-webform #webform7435433000001667112 .zcwf_title,
.kp-zoho-introduction-webform .zcwf_title {
    margin: 0 0 18px !important;
    padding: 0 0 14px !important;
    max-width: none !important;
    border-bottom: 1px solid #E6EEF7 !important;
    color: #061D3B !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

.kp-zoho-introduction-webform #webform7435433000001667112 .zcwf_row,
.kp-zoho-introduction-webform .zcwf_row {
    display: grid !important;
    grid-template-columns: minmax(160px, 0.32fr) minmax(0, 1fr) !important;
    gap: 10px 14px !important;
    align-items: start !important;
    margin: 0 !important;
    padding: 9px 0 !important;
    border-bottom: 1px solid #EEF4FA !important;
}

.kp-zoho-introduction-webform .zcwf_row:last-of-type {
    border-bottom: 0 !important;
}

.kp-zoho-introduction-webform #webform7435433000001667112 .zcwf_col_lab,
.kp-zoho-introduction-webform #webform7435433000001667112 .zcwf_col_fld,
.kp-zoho-introduction-webform .zcwf_col_lab,
.kp-zoho-introduction-webform .zcwf_col_fld {
    float: none !important;
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.kp-zoho-introduction-webform .zcwf_col_lab {
    padding-top: 9px !important;
}

.kp-zoho-introduction-webform .zcwf_col_lab label,
.kp-zoho-introduction-webform .zcwf_col_lab,
.kp-zoho-introduction-webform #reCaptchaField {
    color: #385A7A !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.kp-zoho-introduction-webform #webform7435433000001667112 .zcwf_col_fld input[type=text],
.kp-zoho-introduction-webform #webform7435433000001667112 .zcwf_col_fld input[type=password],
.kp-zoho-introduction-webform #webform7435433000001667112 .zcwf_col_fld textarea,
.kp-zoho-introduction-webform #webform7435433000001667112 .zcwf_col_fld select,
.kp-zoho-introduction-webform .zcwf_col_fld input[type=text],
.kp-zoho-introduction-webform .zcwf_col_fld input[type=password],
.kp-zoho-introduction-webform .zcwf_col_fld textarea,
.kp-zoho-introduction-webform .zcwf_col_fld select {
    float: none !important;
    width: 100% !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 9px 11px !important;
    border: 1px solid #CFE0EF !important;
    border-radius: 7px !important;
    outline: 0 !important;
    background: #FFFFFF !important;
    color: #061D3B !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    box-shadow: none !important;
}

.kp-zoho-introduction-webform .zcwf_col_fld textarea {
    min-height: 96px !important;
    resize: vertical !important;
}

.kp-zoho-introduction-webform .zcwf_col_fld select[multiple],
.kp-zoho-introduction-webform .zcwf_col_fld .zcwf_col_fld_slt[multiple] {
    min-height: 118px !important;
}

.kp-zoho-introduction-webform #webform7435433000001667112 .zcwf_col_help {
    display: none !important;
}

.kp-zoho-introduction-webform .zcwf_col_fld input[type=text]:focus,
.kp-zoho-introduction-webform .zcwf_col_fld textarea:focus,
.kp-zoho-introduction-webform .zcwf_col_fld select:focus {
    border-color: #1F6F9F !important;
    box-shadow: 0 0 0 3px rgba(31, 111, 159, 0.13) !important;
}

.kp-zoho-introduction-webform .wfrm_fld_dpNn {
    display: none !important;
}

.kp-zoho-introduction-webform .zcwf_row:has(#COBJ14CF17),
.kp-zoho-introduction-webform .zcwf_row:has(#COBJ14CF51),
.kp-zoho-introduction-webform .zcwf_row:has(#COBJ14CF18),
.kp-zoho-introduction-webform .zcwf_row:has(#COBJ14CF23) {
    display: none !important;
}

.kp-zoho-introduction-webform #imgid7435433000001667112 {
    display: block !important;
    max-width: 220px !important;
    margin-bottom: 8px !important;
    border: 1px solid #DCEAF5 !important;
    border-radius: 7px !important;
    background: #F8FBFE !important;
}

.kp-zoho-introduction-webform .zcwf_col_fld a[href^="javascript"] {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 30px !important;
    padding: 5px 9px !important;
    border: 1px solid #CFE0EF !important;
    border-radius: 7px !important;
    color: #1F6F9F !important;
    background: #F8FBFE !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.kp-zoho-introduction-webform #captchaErr7435433000001667112 {
    position: static !important;
    padding: 6px 0 0 !important;
    color: #8A2D2D !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.kp-zoho-introduction-webform .zcwf_col_fld:has(#formsubmit) {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: flex-end !important;
}

.kp-zoho-introduction-webform .zcwf_button,
.kp-zoho-introduction-webform .formsubmit.zcwf_button {
    min-width: 110px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 9px 15px !important;
    border: 1px solid #1F6F9F !important;
    border-radius: 7px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    box-shadow: none !important;
}

.kp-zoho-introduction-webform .formsubmit.zcwf_button {
    color: #FFFFFF !important;
    background: #1F6F9F !important;
}

.kp-zoho-introduction-webform .formsubmit.zcwf_button:hover {
    border-color: #17334F !important;
    background: #17334F !important;
}

.kp-zoho-introduction-webform input[type=reset].zcwf_button {
    border-color: #CFE0EF !important;
    color: #1F6F9F !important;
    background: #FFFFFF !important;
}

.kp-zoho-introduction-webform input[type=reset].zcwf_button:hover {
    background: #EEF6FC !important;
}

.kp-zoho-introduction-webform #wf_splash {
    border-radius: 8px !important;
    background: rgba(6, 29, 59, 0.76) !important;
}

.kp-zoho-introduction-webform #wf_splash_info {
    color: #FFFFFF !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.kp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.kp-public-introduction-form label,
.kp-form-full {
    display: grid;
    gap: 6px;
}

.kp-public-introduction-form label span,
.kp-form-full span {
    color: #385A7A;
    font-size: 12px;
    font-weight: 700;
}

.kp-public-introduction-form input,
.kp-public-introduction-form select,
.kp-public-introduction-form textarea {
    width: 100%;
    border: 1px solid #CFE0EF;
    border-radius: 7px;
    background: #FFFFFF;
    color: #061D3B;
    font: inherit;
    font-size: 15px;
    padding: 10px 11px;
}

.kp-form-full {
    margin-top: 14px;
}

.kp-public-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.kp-form-notice {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 7px;
    border: 1px solid #CFE0EF;
    background: #F8FBFE;
    color: #17334F;
    font-size: 14px;
    font-weight: 600;
}

.kp-form-notice.is-success {
    border-color: #B9DFC9;
    background: #ECF8F1;
    color: #2F6F4E;
}

.kp-form-notice.is-error {
    border-color: #F0C9C9;
    background: #FFF5F5;
    color: #8A2D2D;
}

.kp-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

@media (max-width: 720px) {
    .kp-public-introduction {
        padding: 20px 10px;
    }

    .kp-public-introduction-card {
        padding: 18px;
    }

    .kp-form-grid {
        grid-template-columns: 1fr;
    }

    .kp-zoho-introduction-webform #webform7435433000001667112 {
        padding: 14px !important;
    }

    .kp-zoho-introduction-webform #webform7435433000001667112 .zcwf_title,
    .kp-zoho-introduction-webform .zcwf_title {
        font-size: 18px !important;
    }

    .kp-zoho-introduction-webform #webform7435433000001667112 .zcwf_row,
    .kp-zoho-introduction-webform .zcwf_row {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        padding: 8px 0 !important;
    }

    .kp-zoho-introduction-webform .zcwf_col_lab {
        padding-top: 0 !important;
    }

    .kp-zoho-introduction-webform .zcwf_col_fld:has(#formsubmit) {
        justify-content: stretch !important;
    }

    .kp-zoho-introduction-webform .zcwf_button,
    .kp-zoho-introduction-webform .formsubmit.zcwf_button {
        width: 100% !important;
        max-width: none !important;
    }

    .kp-public-form-actions {
        justify-content: stretch;
    }

    .kp-public-form-actions .kp-button {
        width: 100%;
    }
}

/* ===== Account settings & inline login (v1.0.183) ===== */
.kp-login-form,
.kp-account-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
    text-align: left;
}
.kp-login-form label,
.kp-account-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}
.kp-login-form input[type="text"],
.kp-login-form input[type="password"],
.kp-account-form input[type="email"],
.kp-account-form input[type="password"] {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    color: #111827;
    box-sizing: border-box;
}
.kp-login-form input:focus,
.kp-account-form input:focus {
    outline: none;
    border-color: #10131a;
    box-shadow: 0 0 0 3px rgba(16, 19, 26, 0.08);
}
.kp-login-remember {
    flex-direction: row !important;
    align-items: center;
    gap: 8px !important;
    font-weight: 500 !important;
}
.kp-login-remember input { width: auto; }
.kp-login-submit { width: 100%; justify-content: center; }
.kp-login-links { margin-top: 14px; font-size: 13px; }
.kp-login-links a { color: #4b5563; text-decoration: underline; }
.kp-login-intro { color: #6b7280; }
.kp-account-card .kp-account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 8px;
}
.kp-account-form h3 { margin: 0 0 4px; font-size: 15px; }
.kp-account-current { margin: 0; font-size: 13px; color: #6b7280; }
.kp-account-form .kp-button { align-self: flex-start; }
.kp-account-notice {
    margin: 12px 0 4px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
}
.kp-account-notice--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.kp-account-notice--err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
/* ===== Sign out (v1.0.184) ===== */
.kp-account-session {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}
.kp-account-session h3 { margin: 0 0 2px; font-size: 15px; }
.kp-account-session p { margin: 0; font-size: 13px; color: #6b7280; }
.kp-logout-button {
    background: #fff;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 600;
    text-decoration: none;
}
.kp-logout-button:hover { background: #fef2f2; border-color: #f87171; color: #7f1d1d; }
/* ===== Teaser opportunities (v1.0.187) ===== */
.kp-teaser-section { margin-top: 28px; }
.kp-teaser-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.kp-teaser-card { border: 1px dashed #cbd5e1; border-radius: 12px; padding: 18px 20px; background: #fafbfc; display: flex; flex-direction: column; gap: 8px; }
.kp-teaser-topline { display: flex; justify-content: space-between; align-items: center; }
.kp-teaser-flag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #92700a; background: #fef6dd; border-radius: 20px; padding: 3px 10px; }
.kp-teaser-card h3 { margin: 2px 0 0; font-size: 16px; }
.kp-teaser-location { font-size: 13px; color: #6b7280; }
.kp-teaser-price { font-weight: 700; font-size: 14px; }
.kp-teaser-desc { margin: 4px 0 0; font-size: 13px; color: #374151; }
.kp-teaser-highlights { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: #374151; }
.kp-teaser-highlights li { margin-bottom: 2px; }
.kp-teaser-cta { margin-top: auto; align-self: flex-start; background: #10131a; color: #fff !important; border-radius: 8px; padding: 9px 16px; font-size: 13px; font-weight: 600; text-decoration: none; }
.kp-teaser-cta:hover { background: #232838; }
/* ===== iOS Safari dynamic viewport fix (v1.0.189) =====
   100vh on iOS includes the area behind browser chrome, pushing modal
   footers (message send button) off-screen in portrait. dvh tracks the
   real visible viewport; browsers without dvh ignore these and keep
   the vh fallbacks above. */
.kp-message-modal-dialog {
    max-height: min(760px, calc(100dvh - 40px));
    padding-bottom: env(safe-area-inset-bottom);
}
.kp-message-modal-body { max-height: calc(100dvh - 240px); }
.kp-referral-modal-panel { height: min(820px, calc(100dvh - 56px)); }
.kp-property-photo-dialog { height: min(100dvh - 32px, 860px); }
.kp-attachment-dialog { height: min(100dvh - 32px, 780px); }
@media (max-width: 860px) {
    .kp-portal { min-height: 100dvh; }
    .kp-sidebar { min-height: 100dvh; }
    .kp-referral-modal-panel { height: calc(100dvh - 20px); }
    .kp-property-photo-dialog { height: 100dvh; }
    .kp-message-modal-dialog { max-height: calc(100dvh - 16px); }
    .kp-message-modal-body { max-height: calc(100dvh - 200px); }
}
/* ===== Message thread two-tone bubbles (v1.0.195) ===== */
.kp-message-conversation-row { display: flex; flex-direction: column; max-width: 82%; margin-bottom: 12px; }
.kp-message-conversation-row.is-client { align-self: flex-end; margin-left: auto; align-items: flex-end; }
.kp-message-conversation-row.is-kerja { align-self: flex-start; margin-right: auto; align-items: flex-start; }
.kp-message-conversation-row.is-client .kp-message-bubble,
.kp-message-conversation-row.is-client > div:not([class]) { background: #10131a; color: #fff; border-radius: 14px 14px 4px 14px; }
.kp-message-conversation-row.is-kerja .kp-message-bubble,
.kp-message-conversation-row.is-kerja > div:not([class]) { background: #eef1f5; color: #1f2937; border-radius: 14px 14px 14px 4px; }
.kp-message-conversation-row.is-client .kp-message-bubble a { color: #cbd5e1; }
.kp-message-conversation-row .kp-message-bubble { padding: 10px 14px; border: none; }
/* ===== Messenger cleanup (v1.0.199): no avatars in thread view, tighter callouts ===== */
.kp-message-conversation-row .kp-message-avatar { display: none !important; }
.kp-message-conversation-row,
.kp-message-conversation-row.is-client {
    display: flex;
    flex-direction: column;
    max-width: 68%;
    gap: 0;
    padding: 10px 14px;
    border-radius: 10px;
}
.kp-message-conversation-row.is-kerja { background: #FFFFFF; border-color: #DCE4EC; }
.kp-message-conversation-row.is-client { background: #F4F8FC; border-color: #D3E2F0; }
.kp-message-conversation-bubble strong { margin-bottom: 2px; font-size: 13px; }
.kp-message-conversation-bubble div { font-size: 13.5px; line-height: 1.5; }
.kp-message-conversation-bubble time { margin-top: 3px; font-size: 11px; }
.kp-message-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.kp-message-meta-side { text-align: right; }
.kp-message-meta-side small { display: block; color: #8A99AC; font-size: 10.5px; }
.kp-message-row-actions { top: 8px; right: 8px; padding: 3px; }
@media (max-width: 860px) {
    .kp-message-conversation-row,
    .kp-message-conversation-row.is-client { max-width: 92%; }
}

/* Folder filtering: the hidden attribute must beat explicit display rules */
.kp-message-inbox-row[hidden],
.kp-message-thread-panel[hidden],
.kp-message-inbox-empty[hidden] {
    display: none !important;
}

/* Folder empty state */
.kp-message-inbox-empty[data-kp-message-folder-empty] {
    display: block;
    padding: 18px 16px;
}

.kp-message-inbox-empty[data-kp-message-folder-empty] strong {
    display: block;
    margin-bottom: 4px;
    white-space: normal;
}

.kp-message-inbox-empty[data-kp-message-folder-empty] span {
    display: block;
    color: #7A8BA1;
    font-size: 12px;
    white-space: normal;
}

.kp-message-row-title time {
    margin-left: auto;
    flex-shrink: 0;
    color: #506C91;
    font-size: 12px;
    white-space: nowrap;
}

.kp-message-chip-new {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 1px 8px;
    border-radius: 999px;
    background: #2D6D95;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.kp-property-listing-main strong {
    font-weight: 400;
}

.kp-property-asking-price {
    font-weight: 400;
}

.kp-property-sortbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 0 14px;
}

.kp-property-sortbar label {
    color: #506C91;
    font-size: 13px;
}

.kp-property-sortbar select {
    padding: 6px 10px;
    border: 1px solid #D5DEEA;
    border-radius: 8px;
    background: #fff;
    color: #061D3B;
    font-size: 13px;
}

.kp-property-location-card .kp-location-address {
    margin: 0;
    color: #061D3B;
    font-size: 15px;
    line-height: 1.5;
    white-space: pre-line;
    overflow-wrap: break-word;
}

.kp-property-location-card .kp-location-line {
    margin: 6px 0 0;
    color: #061D3B;
    font-size: 14px;
}

.kp-property-location-card .kp-location-line span {
    color: #506C91;
    margin-right: 6px;
}

.kp-doc-sign-now {
    background: #0B3D6E;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 600;
}

.kp-doc-sign-now:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* === KP mobile messenger (single-pane flow) === */
@media (max-width: 860px) {
    .kp-message-workspace {
        display: block;
    }

    .kp-message-mailboxes {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding: 10px 12px;
        border-right: 0;
        border-bottom: 1px solid var(--kp-border);
        align-items: center;
    }

    .kp-message-mailboxes .kp-message-folder-heading {
        display: none;
    }

    .kp-message-compose {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .kp-message-thread-layout {
        display: block;
        min-height: 0;
    }

    .kp-message-inbox-rows {
        border-right: 0;
    }

    .kp-message-inbox-row {
        padding: 14px 12px;
        min-height: 56px;
    }

    /* default state: list only */
    .kp-message-thread-panels {
        display: none;
    }

    /* thread open state: conversation only */
    .kp-mobile-view-thread .kp-message-inbox-rows,
    .kp-mobile-view-thread .kp-message-inbox-header,
    .kp-mobile-view-thread .kp-message-mailboxes {
        display: none;
    }

    .kp-mobile-view-thread .kp-message-thread-panels {
        display: block;
    }

    .kp-mobile-back-bar {
        display: flex;
        position: sticky;
        top: 0;
        z-index: 30;
        background: var(--kp-white);
        border-bottom: 1px solid var(--kp-border);
        padding: 10px 12px;
    }

    .kp-mobile-back-bar button {
        background: none;
        border: 0;
        color: #0B3D6E;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        padding: 6px 8px;
    }

    .kp-message-conversation {
        padding-bottom: 84px;
    }

    .kp-message-inline-reply {
        position: sticky;
        bottom: 0;
        z-index: 25;
        background: #F4F8FB;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        margin: 0;
        border-top: 1px solid var(--kp-border);
    }

    .kp-message-inline-reply .kp-message-thread-reply {
        display: block;
        width: 100%;
        padding: 13px 16px;
        font-size: 16px;
    }

    .kp-message-conversation-bubble {
        max-width: 88%;
    }

    /* compose + reply modal: full screen */
    .kp-message-modal-dialog {
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    .kp-message-modal-body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .kp-message-rich-editor {
        min-height: 140px;
        font-size: 16px;
    }
}

@media (min-width: 861px) {
    .kp-mobile-back-bar {
        display: none;
    }
}
/* === KP Safari mobile fixes === */
@media (max-width: 860px) {
    /* header: search gets its own full-width row, no overlap */
    .kp-message-inbox-header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 10px;
        padding: 12px;
    }

    .kp-message-inbox-header > div {
        flex: 1 1 auto;
        min-width: 0;
    }

    .kp-message-search {
        flex: 1 1 100%;
        order: 5;
        min-width: 0;
    }

    .kp-message-search input {
        width: 100%;
        box-sizing: border-box;
        font-size: 16px;
    }

    .kp-message-folder-select {
        max-width: 42vw;
    }

    /* rows: stop Safari collapsing the title to one character per line */
    .kp-message-inbox-row {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .kp-message-avatar {
        flex: 0 0 auto;
    }

    .kp-message-row-content {
        display: block;
        flex: 1 1 auto;
        min-width: 0;
    }

    .kp-message-row-title {
        display: flex;
        align-items: baseline;
        gap: 6px;
        min-width: 0;
    }

    .kp-message-row-title strong {
        flex: 1 1 auto;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .kp-message-row-title time {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 12px;
    }

    .kp-message-row-subject,
    .kp-message-row-preview {
        display: block;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* conversation: no horizontal overflow, ever */
    .kp-message-portal,
    .kp-message-workspace {
        max-width: 100%;
        overflow-x: hidden;
    }

    .kp-message-thread-layout,
    .kp-message-thread-panels,
    .kp-message-thread-panel,
    .kp-message-conversation {
        max-width: 100%;
        min-width: 0;
    }

    .kp-message-conversation-row {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }

    .kp-message-conversation-bubble {
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .kp-message-attachment-list {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        max-width: 100%;
    }

    .kp-message-attachment-list a,
    .kp-message-attachment-list > div {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Safari sticky prefixes */
    .kp-mobile-back-bar {
        position: -webkit-sticky;
        position: sticky;
    }

    .kp-message-inline-reply {
        position: -webkit-sticky;
        position: sticky;
    }
}
/* === KP Safari bubble meta fix === */
@media (max-width: 860px) {
    /* action icons: own row above the bubble, never overlapping the meta */
    .kp-message-conversation-row {
        position: relative;
        padding-top: 0;
    }

    .kp-message-row-actions {
        position: static;
        display: flex;
        justify-content: flex-end;
        gap: 6px;
        margin: 0 0 6px;
        box-shadow: none;
        border: 0;
        background: transparent;
        padding: 0;
    }

    /* sender name: single line with ellipsis, date beside it */
    .kp-message-meta {
        display: flex;
        flex-wrap: nowrap;
        align-items: baseline;
        justify-content: space-between;
        gap: 8px;
        padding-right: 0;
        min-width: 0;
    }

    .kp-message-meta strong {
        flex: 1 1 auto;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .kp-message-meta-side {
        flex: 0 0 auto;
        display: block;
        text-align: right;
        white-space: nowrap;
        font-size: 12px;
    }

    .kp-message-meta-side small {
        display: block;
        white-space: normal;
    }
}
.kp-native-intro-form { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.kp-native-intro-form label { display: block; color: #506C91; font-size: 13px; }
.kp-native-intro-form input:not([type=radio]), .kp-native-intro-form select, .kp-native-intro-form textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 5px; padding: 11px 12px; font-size: 16px; border: 1px solid #C9D6E5; border-radius: 8px; color: #061D3B; }
.kp-native-intro-form .kp-hp { position: absolute; left: -9999px; height: 1px; width: 1px; }
.kp-intro-mode { display: flex; gap: 8px; margin-bottom: 4px; }
.kp-intro-mode-tab { flex: 1; }
.kp-intro-mode-tab input { position: absolute; opacity: 0; }
.kp-intro-mode-tab span { display: block; text-align: center; padding: 11px 8px; border: 1px solid #C9D6E5; border-radius: 9px; color: #506C91; font-weight: 600; cursor: pointer; font-size: 14px; }
.kp-intro-mode-tab input:checked + span { background: #0B3D6E; border-color: #0B3D6E; color: #fff; }
.kp-intro-panel { display: flex; flex-direction: column; gap: 12px; }
.kp-intro-hint { margin: 4px 0 0; color: #7A8CA5; font-size: 12px; }
.kp-intro-submit { background: #0B3D6E; color: #fff; border: 0; border-radius: 9px; padding: 13px 18px; font-size: 16px; font-weight: 600; cursor: pointer; }

/* Compact signature panels on the Documents page: shrink to content, scroll if long. */
.kp-portal .kp-files-panel-compact {
    height: auto;
    max-height: 160px;
}
.kp-portal .kp-files-panel-compact > .kp-file-group-list {
    overflow: auto;
    min-height: 0;
}

/* Profile section navigation (v1.0.250) */
.kp-profile-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.kp-profile-section-nav .kp-section-toggle {
    background: transparent;
    border: 1px solid rgba(15, 23, 42, 0.18);
    color: inherit;
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.kp-profile-section-nav .kp-section-toggle:hover,
.kp-profile-section-nav .kp-section-toggle:focus {
    border-color: rgba(15, 23, 42, 0.45);
}

.kp-profile-section-nav .kp-section-toggle.is-active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.kp-profile-subsection.is-collapsed {
    display: none;
}

.kp-field-hint {
    display: block;
    margin-top: 0.25rem;
    opacity: 0.65;
    font-size: 0.75rem;
}

/* Compact profile fields (v1.0.252) */
.kp-profile-details-card .kp-field textarea {
    min-height: 44px;
    max-height: 96px;
    resize: vertical;
}

.kp-profile-details-card .kp-field select[multiple] {
    height: auto;
    max-height: 108px;
    padding: 6px 8px;
}

/* Three-across profile fields on desktop; uniform cells, no full-width stretch. */
@media (min-width: 1024px) {
    .kp-profile-details-card .kp-field-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .kp-profile-details-card .kp-field {
        grid-column: auto;
    }
}

/* Top-align field cells so tall controls (multiselects, textareas) never
   stretch their row neighbours into oversized inputs. */
.kp-profile-details-card .kp-field-grid {
    align-items: start;
}

.kp-profile-details-card .kp-field {
    align-content: start;
}

.kp-profile-details-card .kp-field input,
.kp-profile-details-card .kp-field select:not([multiple]) {
    height: 42px;
    min-height: 42px;
}

.kp-profile-details-card .kp-field select[multiple] {
    min-height: 96px;
}

/* Unify textarea styling with inputs/selects (v1.0.255) */
.kp-profile-details-card .kp-field textarea {
    border: 1px solid var(--kp-border);
    border-radius: 8px;
    color: var(--kp-navy);
    font: inherit;
}

.kp-profile-details-card .kp-field textarea:focus,
.kp-profile-details-card .kp-field select[multiple]:focus {
    outline: none;
    border-color: var(--kp-navy);
}

.kp-profile-details-card .kp-field select[multiple] {
    border-radius: 8px;
}

/* Resources video grid — layout independent of Elementor generated CSS (v1.0.256) */
.kp-resources-page-card .kp-video-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center;
    width: 100%;
}

.kp-resources-page-card .kp-video-grid {
    padding: 0 !important;
    gap: 0 !important;
}

.kp-resources-page-card .kp-video-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    flex: 0 0 calc(50% - 8px) !important;
    width: calc(50% - 8px) !important;
    max-width: calc(50% - 8px);
    box-sizing: border-box;
    padding: 16px 12px;
    margin: 0 !important;
}

.kp-resources-page-card .kp-video-card iframe {
    max-width: 100%;
}

.kp-resources-page-card .kp-video-card .elementor-widget,
.kp-resources-page-card .kp-video-card .elementor-widget-container {
    width: auto;
    max-width: 100%;
}

@media (max-width: 900px) {
    .kp-resources-page-card .kp-video-card {
        width: 100% !important;
        max-width: 100%;
    }
}

/* NCND banner (v1.0.258) */
.kp-ncnd-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    border-left: 4px solid #0f172a;
}

.kp-ncnd-banner-text h3 {
    margin: 0 0 4px;
}

.kp-ncnd-banner-text p {
    margin: 0;
}

/* Dashboard signed-documents card: explicit row separators + doc name links (v1.0.260) */
.kp-dashboard-documents .kp-dashboard-document-item {
    border-top: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    padding: 13px 0;
}

.kp-dashboard-documents .kp-dashboard-document-item:last-child {
    border-bottom: 0;
}

.kp-doc-name-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.kp-doc-name-link:hover,
.kp-doc-name-link:focus {
    text-decoration: underline;
}

/* My Forms page (v1.0.263) */
.kp-forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.kp-form-card {
    border: 1px solid var(--kp-border);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #ffffff;
}

.kp-form-card h3 {
    margin: 0;
    font-size: 15px;
}

.kp-form-card p {
    margin: 0;
    flex: 1;
    color: #66798c;
    font-size: 13px;
}

.kp-form-card .kp-button {
    align-self: flex-start;
}

.kp-forms-completed-list {
    display: flex;
    flex-direction: column;
}

.kp-form-completed-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.kp-form-completed-row:last-child {
    border-bottom: 0;
}

.kp-form-check {
    color: #1e7f4f;
    font-weight: 700;
}

/* NCND-locked property view (v1.0.264) */
.kp-nda-locked-card .kp-nda-locked-location {
    color: #66798c;
    margin: -6px 0 12px;
}

.kp-nda-locked-card .kp-ncnd-banner {
    margin-top: 18px;
}

/* v273: portal language switcher */
.kp-locale-switcher{margin-bottom:10px}
.kp-locale-switcher select{width:100%;border:1px solid rgba(245,242,236,.25);border-radius:8px;padding:7px 10px;font:inherit;font-size:13px;color:#F5F2EC;background:rgba(245,242,236,.08);cursor:pointer}
.kp-locale-switcher select option{color:#1A2C44;background:#fff}

/* v275: sidebar layout refinements */
.kp-locale-switcher{margin:12px 0 0}
.kp-locale-switcher select{width:100%;border:1px solid rgba(245,242,236,.3);border-radius:8px;padding:8px 10px;font:inherit;font-size:14px;font-weight:600;color:#F5F2EC;background:rgba(245,242,236,.1);cursor:pointer}
.kp-locale-switcher select option{color:#1A2C44;background:#fff}
@media (min-width: 861px) {
    /* Wider rail so nav labels are never truncated */
    .kp-shell{grid-template-columns:128px minmax(0,1fr)}
    .kp-nav-link{padding:8px 8px}
    .kp-nav-link span:not(.kp-nav-icon){display:block;width:100%;white-space:normal;overflow-wrap:break-word;hyphens:auto}
    /* Language selector under the logo, legible on the light rail */
    .kp-sidebar-header{display:block;padding:10px 10px 12px}
    .kp-sidebar .kp-brand{margin-bottom:0}
    .kp-locale-switcher{width:100%;margin:10px 0 0}
    .kp-locale-switcher select{color:#143960;background:#FFFFFF;border:1px solid #D5E4F3;font-size:13px;font-weight:700;text-align:center;text-align-last:center;padding:7px 6px}
    /* Footer (home link + avatar circle) removed */
    .kp-sidebar-footer{display:none}
}
/* Re-assert dashboard card row separators (belt-and-braces vs CSS optimizers) */
.kp-dashboard-timeline-item,
.kp-dashboard-meeting-item{border-top:1px solid var(--kp-border, #E3EBF3)}
.kp-dashboard-documents .kp-dashboard-document-item{border-bottom:1px solid rgba(15,23,42,.1)}
.kp-dashboard-documents .kp-dashboard-document-item:last-child{border-bottom:0}

/* v276: consistent separator under dashboard card headings */
.kp-dashboard-card-grid .kp-card > .kp-section-heading{border-bottom:1px solid var(--kp-border, #E3EBF3);padding-bottom:12px;margin-bottom:12px}

/* v277: language selector below the blue logo block; unclipped active nav pill */
.kp-sidebar-header{display:flex}
@media (min-width: 861px) {
    .kp-sidebar-header{display:flex;justify-content:center;padding:10px 0 8px}
    .kp-locale-switcher{width:calc(100% - 16px);margin:10px 8px 0}
    .kp-nav{padding:12px 8px}
}

/* v278: Properties hero typography normalized to match other page headers */
.kp-property-hero h2{font-size:clamp(20px, 2vw, 26px);font-weight:500;color:#17334F;line-height:1.2}
.kp-property-hero p{font-size:14px;line-height:1.55}

/* v280: zoom-proof active nav pill outline (1px inset shadows drop edges at fractional zoom) */
@media (min-width: 861px) {
    .kp-nav-link{border:1px solid transparent}
    .kp-nav-link.is-active{border:1px solid var(--kp-blue);box-shadow:none}
}

/* v281: direct portal page — no theme container to break out of, so disable the
   100vw full-bleed hack. 100vw includes the scrollbar, which shifts the whole
   portal ~8px off-screen left on classic-scrollbar browsers (Edge). */
body.kp-direct-portal-page{margin:0}
body.kp-direct-portal-page .kp-portal{position:static;left:auto;width:100%;max-width:100%;margin:0}

/* v285: single separator under dashboard card headings (kill first row's top border) */
.kp-dashboard-card-grid .kp-card > .kp-section-heading + .kp-dashboard-timeline-item,
.kp-dashboard-card-grid .kp-card > .kp-section-heading + .kp-dashboard-meeting-item,
.kp-dashboard-card-grid .kp-card > .kp-section-heading + .kp-mini-row{border-top:0}

/* v292: deal-process education stepper on property pages */
.kp-deal-process{border:1px solid var(--kp-border, #E3EBF3);border-radius:12px;background:#fff;padding:16px 18px;margin:0 0 16px}
.kp-deal-process-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.kp-deal-process-head strong{color:#17334F;font-size:15px}
.kp-deal-badge{background:rgba(200,160,77,.16);color:#8a6a24;font-weight:700}
.kp-deal-steps{list-style:none;display:flex;flex-wrap:wrap;gap:6px 18px;margin:0 0 12px;padding:0}
.kp-deal-steps li{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;min-width:110px;flex:1;position:relative;opacity:.55}
.kp-deal-steps li.is-done,.kp-deal-steps li.is-current{opacity:1}
.kp-deal-step-marker{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;border:2px solid #D5E4F3;color:#3D526B;background:#fff;font-weight:700;font-size:13px}
.kp-deal-steps li.is-done .kp-deal-step-marker{background:#1A2C44;border-color:#1A2C44;color:#fff}
.kp-deal-steps li.is-current .kp-deal-step-marker{border-color:#C8A04D;color:#8a6a24;box-shadow:0 0 0 3px rgba(200,160,77,.2)}
.kp-deal-step-label{font-size:12.5px;font-weight:700;color:#17334F;line-height:1.2}
.kp-deal-steps li small{font-size:11px;color:#5c6b7d;line-height:1.35}
.kp-deal-process-note{margin:0;font-size:13px;color:#3D526B;line-height:1.55;border-top:1px solid var(--kp-border, #E3EBF3);padding-top:10px}
.kp-deal-pof-cta{margin-top:12px}
.kp-nda-locked-card .kp-deal-process{margin-top:16px}
@media print{.kp-deal-process{display:none}}

/* ---- v1.0.297 onboarding wizard ---- */
.kp-onboard-card { display: block; }
.kp-onboard-head h3 { margin: 4px 0 6px; }
.kp-onboard-head p { margin: 0 0 16px; color: #6b7280; }
.kp-onboard-steps { list-style: none; display: flex; gap: 14px; flex-wrap: wrap; margin: 0 0 18px; padding: 0; }
.kp-onboard-step { display: flex; align-items: center; gap: 10px; flex: 1 1 180px; min-width: 170px; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fafafa; }
.kp-onboard-step.is-done { border-color: #bbf7d0; background: #f0fdf4; }
.kp-onboard-step.is-current { border-color: #10131a; background: #fff; box-shadow: 0 4px 14px rgba(16,19,26,0.08); }
.kp-onboard-dot { width: 26px; height: 26px; border-radius: 50%; background: #e5e7eb; color: #374151; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: 0 0 26px; }
.kp-onboard-step.is-done .kp-onboard-dot { background: #16a34a; color: #fff; }
.kp-onboard-step.is-current .kp-onboard-dot { background: #10131a; color: #fff; }
.kp-onboard-label { display: flex; flex-direction: column; line-height: 1.25; }
.kp-onboard-label small { color: #6b7280; }
.kp-onboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 14px; margin-bottom: 14px; }
.kp-onboard-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.kp-onboard-field span { font-weight: 600; color: #374151; }
.kp-onboard-field input, .kp-onboard-field select { border: 1px solid #d1d5db; border-radius: 8px; padding: 9px 11px; font-size: 14px; background: #fff; color: #111827; }
.kp-onboard-field input:focus, .kp-onboard-field select:focus { outline: 2px solid #10131a; outline-offset: 1px; }
.kp-onboard-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.kp-onboard-status.is-error { color: #b91c1c; }
.kp-onboard-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.kp-onboard-cta-note { margin: 0; color: #6b7280; font-size: 13px; }
@media (max-width: 720px) { .kp-onboard-steps { flex-direction: column; } .kp-onboard-step { flex: 1 1 auto; } }

/* ============================================================
   WL4 SKIN — BoldTrail-inspired visual language (2026-08-09)
   Appended override layer; brand colors stay var()-driven.
   ============================================================ */

@font-face {
    font-family: 'Figtree';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/figtree-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Figtree';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/figtree-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.kp-portal, .kp-portal *,
.kp-direct-portal-page, .kp-direct-portal-page * {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Canvas: near-white with subtle brand-tinted wash */
.kp-portal, .kp-direct-portal-page, body.kp-direct-portal-page {
    background-color: #FDFDFE;
    background-image: radial-gradient(ellipse 900px 500px at 18% 0%,
        color-mix(in srgb, var(--kp-blue) 6%, #FDFDFE), #FDFDFE 65%);
    background-attachment: fixed;
}

/* Cards: flat, borderless, micro-shadow, roomier */
.kp-portal .kp-card,
.kp-portal .kp-login-card,
.kp-portal .kp-header-card,
.kp-portal .kp-files-panel {
    background: #FFFFFF;
    border: 1px solid #F0F1F4;
    border-radius: 12px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.04);
}

/* Sidebar: clean white rail, BoldTrail-style active chip */
.kp-portal .kp-sidebar {
    background: #FFFFFF;
    border-right: 1px solid #F0F1F4;
}
.kp-portal .kp-nav-link {
    border: none;
    border-radius: 10px;
    color: #5A6270;
    font-size: 11px;
    font-weight: 500;
    transition: color .15s ease;
}
.kp-portal .kp-nav-link:hover { background: #F5F7FA; color: var(--kp-navy); }
.kp-portal .kp-nav-link.is-active {
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--kp-navy);
    font-weight: 600;
    position: relative;
}
.kp-portal .kp-nav-link.is-active::before {
    content: '';
    position: absolute;
    left: 8px; right: 8px; top: 2px;
    height: 4px; border-radius: 3px;
    background: var(--kp-blue);
    opacity: 0;
}
.kp-portal .kp-nav-link.is-active .kp-nav-icon,
.kp-portal .kp-nav-link.is-active svg {
    color: #FFFFFF;
}
.kp-portal .kp-nav-link .kp-nav-icon,
.kp-portal .kp-nav-link svg {
    border-radius: 9px;
    padding: 6px;
    box-sizing: content-box;
}
.kp-portal .kp-nav-link.is-active .kp-nav-icon,
.kp-portal .kp-nav-link.is-active svg {
    background: var(--kp-blue);
}

/* Buttons: navy primary, soft radius, hairline shadow */
.kp-portal .kp-button,
.kp-portal button.kp-button {
    border-radius: 7px;
    font-weight: 500;
    letter-spacing: .01em;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05);
    transition: filter .15s ease, transform .05s ease;
}
.kp-portal .kp-button:hover { filter: brightness(1.08); }
.kp-portal .kp-button:active { transform: translateY(1px); }
.kp-portal .kp-button-primary { background: var(--kp-blue); border-color: var(--kp-blue); }

/* Status badges: solid squared mini-pills, white uppercase */
.kp-portal .kp-badge {
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 8px;
    background: var(--kp-blue);
    color: #FFFFFF;
    border: none;
}
.kp-portal .kp-badge-success { background: var(--kp-success); color: #fff; }
.kp-portal .kp-badge-warning { background: var(--kp-warning); color: #fff; }

/* Section headings: quieter, roomier */
.kp-portal .kp-section-heading {
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--kp-navy);
}

/* Tables: gray header band, airy rows */
.kp-portal .kp-table thead th,
.kp-portal .kp-table th {
    background: #F4F5F8;
    color: #5A6270;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    border-bottom: none;
    padding-top: 10px;
    padding-bottom: 10px;
}
.kp-portal .kp-table td {
    padding-top: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #F0F1F4;
}
.kp-portal .kp-table tbody tr:hover { background: #FAFBFD; }

/* Page headers */
.kp-portal .kp-page-header h1,
.kp-portal .kp-page-header h2 {
    font-weight: 600;
    color: var(--kp-navy);
}

/* Login gate polish */
.kp-portal .kp-login-card { border-radius: 14px; }
.kp-portal .kp-login-mark {
    border-radius: 12px;
    background: var(--kp-blue);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--kp-blue) 35%, transparent);
}

/* brand initials chip (no-logo default) */
.kp-portal .kp-brand-initials {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--kp-blue); color: #fff;
    font-weight: 700; font-size: 16px; letter-spacing: .02em;
}

/* initials chip inside dark sidebar header: frosted variant */
.kp-portal .kp-sidebar-header .kp-brand-initials {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    width: 44px; height: 44px; font-size: 17px;
}

/* ---- Operator Console (wl5) ---- */
.kp-portal .kp-console-metrics { margin-bottom: 18px; }
.kp-portal .kp-console-queue { margin-bottom: 18px; }
.kp-portal .kp-console-list { list-style: none; margin: 0; padding: 0; }
.kp-portal .kp-console-row {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 13px 2px; border-bottom: 1px solid #F0F1F4; flex-wrap: wrap;
}
.kp-portal .kp-console-row:last-child { border-bottom: none; }
.kp-portal .kp-console-row-main strong { display: block; color: var(--kp-navy); font-size: 14px; }
.kp-portal .kp-console-meta { color: var(--kp-muted); font-size: 12px; }
.kp-portal .kp-console-row-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kp-portal .kp-console-when { color: var(--kp-muted); font-size: 11px; }
.kp-portal .kp-console-inline-form { display: flex; align-items: center; gap: 6px; margin: 0; }
.kp-portal .kp-console-input {
    width: 90px; padding: 6px 8px; border: 1px solid #E2E4E9; border-radius: 6px; font-size: 12px;
}
.kp-portal .kp-console-input-sm { width: 52px; }
.kp-portal .kp-console-btn { padding: 6px 12px; font-size: 12px; }
.kp-portal .kp-console-btn-deny { background: #fff; color: var(--kp-error); border: 1px solid #E8D8D8; }
.kp-portal .kp-console-zoho { font-size: 11.5px; color: var(--kp-blue); text-decoration: none; white-space: nowrap; }
.kp-portal .kp-console-empty { color: var(--kp-muted); }
.kp-portal .kp-console-error { color: var(--kp-error); }
.kp-portal .kp-console-notice { border-left: 3px solid var(--kp-success); margin-bottom: 14px; }
.kp-portal .kp-console-notice-error { border-left-color: var(--kp-error); }

/* ============================================================
   WL6 — BoldTrail depth pass: topbar, rail, card language v2
   ============================================================ */

/* --- Topbar (BoldTrail's defining element) --- */
.kp-portal .kp-topbar {
    display: flex; align-items: center; gap: 20px;
    background: #FFFFFF;
    border-bottom: 1px solid #EEF0F3;
    padding: 12px 26px;
    margin: 0 0 22px 0;
    border-radius: 0;
    position: sticky; top: 0; z-index: 40;
    box-shadow: 0 1px 3px rgba(15, 30, 70, 0.04);
}
.kp-portal .kp-topbar-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kp-portal .kp-topbar-brand img { height: 30px; width: auto; }
.kp-portal .kp-topbar-brand strong { color: var(--kp-navy); font-size: 16px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.kp-portal .kp-topbar-brand .kp-brand-initials { width: 32px; height: 32px; font-size: 14px; border-radius: 8px; background: var(--kp-blue); color: #fff; }
.kp-portal .kp-topbar-title { flex: 1; text-align: center; color: #8A90A0; font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.kp-portal .kp-topbar-side { display: flex; align-items: center; gap: 14px; }
.kp-portal .kp-topbar-user { display: flex; align-items: center; gap: 8px; color: #444B5A; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.kp-portal .kp-topbar-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--kp-blue); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
}
.kp-portal .kp-locale-topbar select {
    border: 1px solid #E4E6EB; border-radius: 7px; background: #fff;
    color: #444B5A; font-size: 12px; padding: 6px 8px;
}
/* hide the old sidebar locale switcher on desktop (kept for mobile drawer) */
@media (min-width: 961px) {
    .kp-portal .kp-sidebar .kp-locale-switcher { display: none; }
    .kp-portal .kp-sidebar-footer { display: none; }
}
.kp-portal .kp-main { padding-top: 0; }
.kp-portal .kp-content { padding-top: 0; }

/* --- Sidebar: quiet white rail, flat gray icons, navy active chip --- */
.kp-portal .kp-sidebar { background: #FFFFFF; border-right: 1px solid #EEF0F3; }
.kp-portal .kp-sidebar-header {
    background: transparent; padding: 14px 8px 6px; display: flex; justify-content: center;
}
.kp-portal .kp-sidebar-header .kp-brand span:not(.kp-brand-mark) { display: none; }
.kp-portal .kp-sidebar-header .kp-brand-initials,
.kp-portal .kp-sidebar-header .kp-brand-mark img { width: 38px; height: 38px; }
.kp-portal .kp-sidebar-header .kp-brand-initials {
    background: var(--kp-blue); border: none; color: #fff; font-size: 15px; border-radius: 10px;
}
.kp-portal .kp-nav-link {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 9px 4px; margin: 2px 6px;
    color: #7A8194; font-size: 10.5px; font-weight: 500;
}
.kp-portal .kp-nav-link .kp-nav-icon,
.kp-portal .kp-nav-link svg {
    background: transparent; border: none; box-shadow: none;
    padding: 7px; border-radius: 10px;
    width: 20px; height: 20px;
    color: #7A8194; fill: currentColor;
    transition: background .15s ease, color .15s ease;
}
.kp-portal .kp-nav-link:hover { background: transparent; color: var(--kp-navy); }
.kp-portal .kp-nav-link:hover .kp-nav-icon, .kp-portal .kp-nav-link:hover svg { background: #F1F3F7; color: var(--kp-navy); }
.kp-portal .kp-nav-link.is-active { color: var(--kp-navy); font-weight: 600; }
.kp-portal .kp-nav-link.is-active .kp-nav-icon,
.kp-portal .kp-nav-link.is-active svg { background: var(--kp-blue); color: #FFFFFF; }

/* --- Canvas & cards v2 --- */
.kp-portal, .kp-direct-portal-page, body.kp-direct-portal-page {
    background-color: #F7F8FB;
    background-image: none;
}
.kp-portal .kp-card,
.kp-portal .kp-login-card,
.kp-portal .kp-header-card,
.kp-portal .kp-files-panel {
    border: none;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16, 30, 70, 0.06);
    padding: 22px 24px;
}
.kp-portal .kp-section-heading { border-bottom: 1px solid #F1F3F7; padding-bottom: 12px; margin-bottom: 14px; }
.kp-portal .kp-section-heading h2 { font-size: 14.5px; font-weight: 700; color: #2A3245; letter-spacing: -0.01em; }

/* action buttons inside card headers become quiet blue text links */
.kp-portal .kp-section-heading .kp-button:not(.kp-button-primary) {
    background: transparent; border: none; box-shadow: none;
    color: var(--kp-gold); font-weight: 600; font-size: 12.5px;
    padding: 2px 4px;
}
.kp-portal .kp-section-heading .kp-button:not(.kp-button-primary):hover { filter: none; text-decoration: underline; }

/* --- Metric tiles: BoldTrail big-number style --- */
.kp-portal .kp-metric-card { padding: 16px 18px; }
.kp-portal .kp-metric-card > span {
    display: block;
    font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
    color: #8A90A0; margin-bottom: 4px;
}
.kp-portal .kp-metric-card > strong {
    display: block; font-size: 32px; font-weight: 700; line-height: 1.1;
    color: var(--kp-navy); letter-spacing: -0.02em;
}
.kp-portal .kp-metric-card small, .kp-portal .kp-metric-card p { color: #A2A8B8; font-size: 11px; }

/* eyebrow labels */
.kp-portal .kp-eyebrow {
    font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #8A90A0;
}

/* mobile bar left untouched; ensure topbar hides on small screens */
@media (max-width: 960px) {
    .kp-portal .kp-topbar { display: none; }
}

/* --- wl6.1: nav icon sizing fix + admin nav + contacts page --- */
.kp-portal .kp-nav-link .kp-nav-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; padding: 0;
    border-radius: 10px; background: transparent;
    transition: background .15s ease, color .15s ease;
}
.kp-portal .kp-nav-link .kp-nav-icon svg {
    width: 19px; height: 19px; padding: 0; margin: 0;
    background: transparent !important; border-radius: 0;
    fill: currentColor;
}
.kp-portal .kp-nav-link:hover .kp-nav-icon { background: #F1F3F7; }
.kp-portal .kp-nav-link.is-active .kp-nav-icon { background: var(--kp-blue); color: #fff; }
.kp-portal .kp-nav-link.is-active .kp-nav-icon svg { color: #fff; }
.kp-portal .kp-nav-admin-divider { height: 1px; background: #EEF0F3; margin: 10px 14px; }
.kp-portal .kp-badge-muted { background: #E9EBF0; color: #7A8194; }
.kp-portal .kp-contacts-toolbar-card { padding: 14px 18px; margin-bottom: 16px; }
.kp-portal .kp-contacts-search { display: flex; gap: 10px; align-items: center; }
.kp-portal .kp-contacts-search-input {
    flex: 1; padding: 10px 16px; font-size: 13px;
    border: 1px solid #E4E6EB; border-radius: 20px; background: #FAFBFC;
    outline: none;
}
.kp-portal .kp-contacts-search-input:focus { border-color: var(--kp-blue); background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--kp-blue) 12%, transparent); }
.kp-portal .kp-contacts-clear { font-size: 12px; color: var(--kp-muted); }
.kp-portal .kp-contacts-name { color: var(--kp-navy); }
.kp-portal .kp-contacts-table td { vertical-align: middle; }

/* fix: don't hide the initials chip inside the brand mark */
.kp-portal .kp-sidebar-header .kp-brand span.kp-brand-initials,
.kp-portal .kp-sidebar-header .kp-brand .kp-brand-mark span { display: inline-flex; }

/* ============================================================
   WL7 — energy pass: tinted canvas, gradient band, tab pills,
   card grid with bordered inner rows (BoldTrail card language)
   ============================================================ */

/* Canvas: soft brand-tinted gradient wash (BoldTrail lavender feel) */
.kp-portal, .kp-direct-portal-page, body.kp-direct-portal-page {
    background-color: #F7F8FC;
    background-image:
        radial-gradient(1100px 520px at 12% -5%, color-mix(in srgb, var(--kp-blue) 9%, transparent), transparent 70%),
        radial-gradient(900px 480px at 95% 8%, color-mix(in srgb, var(--kp-gold) 7%, transparent), transparent 65%),
        linear-gradient(180deg, #F3F4FA 0%, #F8F9FC 340px);
    background-attachment: fixed;
}
.kp-portal .kp-topbar { background: rgba(255,255,255,.92); backdrop-filter: blur(8px); }

/* Gradient section band (BoldTrail "DASHBOARD" bar) */
.kp-portal .kp-band {
    background: linear-gradient(95deg, var(--kp-navy) 0%, var(--kp-blue) 55%, var(--kp-gold) 130%);
    border-radius: 9px;
    padding: 11px 20px;
    margin: 6px 0 16px;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--kp-navy) 22%, transparent);
}
.kp-portal .kp-band span {
    color: #FFFFFF; font-size: 13px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
}

/* Tab pills */
.kp-portal .kp-console-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 18px; }
.kp-portal .kp-tab-pill {
    display: inline-flex; align-items: center; gap: 7px;
    background: #FFFFFF; border: 1px solid #E4E6EE; border-radius: 8px;
    color: #5A6270; font-size: 12.5px; font-weight: 600;
    padding: 8px 14px; text-decoration: none;
    box-shadow: 0 1px 2px rgba(16,30,70,.05);
    transition: border-color .15s ease, color .15s ease, transform .08s ease;
}
.kp-portal .kp-tab-pill:hover { border-color: var(--kp-blue); color: var(--kp-navy); transform: translateY(-1px); }
.kp-portal .kp-tab-pill.is-active { background: var(--kp-blue); border-color: var(--kp-blue); color: #fff; }
.kp-portal .kp-tab-count {
    background: color-mix(in srgb, #ffffff 25%, transparent);
    border-radius: 10px; padding: 1px 7px; font-size: 11px;
}
.kp-portal .kp-tab-pill:not(.is-active) .kp-tab-count { background: var(--kp-gold); color: #fff; }

/* Queue card grid: across, then down */
.kp-portal .kp-console-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
    gap: 18px; align-items: start;
}
.kp-portal .kp-console-grid-single { grid-template-columns: 1fr; }
.kp-portal .kp-console-queue { margin-bottom: 0; }
.kp-portal .kp-queue-heading { border-bottom: none; padding-bottom: 6px; margin-bottom: 8px; }
.kp-portal .kp-queue-title { display: flex; align-items: center; gap: 10px; }
.kp-portal .kp-queue-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 9px;
    background: color-mix(in srgb, var(--kp-blue) 10%, #ffffff);
    color: var(--kp-blue);
}
.kp-portal .kp-queue-icon svg { width: 18px; height: 18px; fill: currentColor; }

/* Bordered tappable inner rows (BoldTrail "Build Your Pipeline >" style) */
.kp-portal .kp-qrows { display: flex; flex-direction: column; gap: 10px; }
.kp-portal .kp-qrow {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    border: 1px solid #E7E9F0; border-radius: 10px;
    padding: 13px 16px;
    background: #FFFFFF;
    transition: border-color .15s ease, box-shadow .15s ease;
    flex-wrap: wrap;
}
.kp-portal .kp-qrow:hover { border-color: color-mix(in srgb, var(--kp-blue) 45%, #E7E9F0); box-shadow: 0 3px 10px rgba(16,30,70,.07); }
.kp-portal .kp-qrow-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kp-portal .kp-qrow-main strong { color: var(--kp-navy); font-size: 13.5px; }
.kp-portal .kp-qrow-side { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

/* joyful empty state */
.kp-portal .kp-queue-empty { display: flex; align-items: center; gap: 10px; padding: 14px 4px; color: var(--kp-muted); }
.kp-portal .kp-queue-empty-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    background: color-mix(in srgb, var(--kp-success) 14%, #ffffff);
    color: var(--kp-success); font-weight: 700;
}

/* accent-first metric tile (BoldTrail red score tile energy, in brand hues) */
.kp-portal .kp-metric-accent { background: linear-gradient(135deg, var(--kp-blue), var(--kp-navy)); }
.kp-portal .kp-metric-accent > span { color: rgba(255,255,255,.75); }
.kp-portal .kp-metric-accent > strong { color: #FFFFFF; }
.kp-portal .kp-metric-card { transition: transform .1s ease, box-shadow .15s ease; }
.kp-portal .kp-metric-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(16,30,70,.10); }

/* wl7.1 — full-width header, single logo, bare rail */
.kp-portal .kp-topbar {
    margin: 0; border-radius: 0;
    padding: 11px 22px;
}
.kp-portal .kp-shell { min-height: calc(100vh - 55px); }
@media (min-width: 961px) {
    .kp-portal .kp-sidebar-header { display: none; }
    .kp-portal .kp-sidebar { padding-top: 10px; }
}

/* ============================================================
   WL7.2 — soft callouts (tints, not solid fills) + uniform grid
   ============================================================ */

/* badges: tinted chips with colored text (easier on the eyes) */
.kp-portal .kp-badge {
    background: color-mix(in srgb, var(--kp-blue) 11%, #ffffff);
    color: var(--kp-blue);
}
.kp-portal .kp-badge-success {
    background: color-mix(in srgb, var(--kp-success) 13%, #ffffff);
    color: var(--kp-success);
}
.kp-portal .kp-badge-warning {
    background: color-mix(in srgb, var(--kp-warning) 15%, #ffffff);
    color: #8a6a1c;
}
.kp-portal .kp-badge-muted { background: #EEF0F4; color: #7A8194; }

/* tab pills: active = soft highlight, not solid navy */
.kp-portal .kp-tab-pill.is-active {
    background: color-mix(in srgb, var(--kp-blue) 10%, #ffffff);
    border-color: color-mix(in srgb, var(--kp-blue) 55%, #E4E6EE);
    color: var(--kp-navy);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--kp-blue) 25%, transparent);
}
.kp-portal .kp-tab-pill.is-active .kp-tab-count { background: var(--kp-blue); color: #fff; }
.kp-portal .kp-tab-pill:not(.is-active) .kp-tab-count {
    background: color-mix(in srgb, var(--kp-gold) 18%, #ffffff);
    color: #8a6a1c;
}

/* KPI accent tile: white with accent edge instead of navy slab */
.kp-portal .kp-metric-accent {
    background: linear-gradient(135deg, color-mix(in srgb, var(--kp-blue) 7%, #ffffff), #ffffff 70%);
    border-left: 4px solid var(--kp-blue);
}
.kp-portal .kp-metric-accent > span { color: var(--kp-blue); }
.kp-portal .kp-metric-accent > strong { color: var(--kp-navy); }

/* rail active: tinted chip, navy glyph (was solid navy) */
.kp-portal .kp-nav-link.is-active .kp-nav-icon {
    background: color-mix(in srgb, var(--kp-blue) 13%, #ffffff);
    color: var(--kp-navy);
}
.kp-portal .kp-nav-link.is-active .kp-nav-icon svg { color: var(--kp-navy); }

/* band: keep the gradient identity but lighter hand */
.kp-portal .kp-band {
    background: linear-gradient(95deg, color-mix(in srgb, var(--kp-navy) 88%, #ffffff), color-mix(in srgb, var(--kp-blue) 82%, #ffffff) 60%, color-mix(in srgb, var(--kp-gold) 70%, #ffffff) 135%);
    box-shadow: 0 3px 10px color-mix(in srgb, var(--kp-navy) 14%, transparent);
    padding: 9px 18px;
}

/* queue count badge in headings: tint too */
.kp-portal .kp-queue-heading .kp-badge { min-width: 26px; justify-content: center; display: inline-flex; }

/* uniform queue grid: fixed 2-up, equal heights */
.kp-portal .kp-console-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}
@media (max-width: 1100px) {
    .kp-portal .kp-console-grid { grid-template-columns: 1fr; }
}
.kp-portal .kp-console-grid .kp-console-queue { display: flex; flex-direction: column; min-height: 190px; }
.kp-portal .kp-console-grid .kp-qrows { flex: 1; }
.kp-portal .kp-console-grid-single { grid-template-columns: 1fr !important; }

/* a touch more type presence */
.kp-portal { font-size: 13.5px; }

/* ============================================================
   WL7.3 — BoldTrail type scale (sizes/weights/colors) + 5-up KPI
   Text is neutral gray; color is reserved for actions & accents.
   ============================================================ */
.kp-portal { font-size: 12.5px; color: #444444; }
.kp-portal .kp-page-header h1, .kp-portal .kp-console-header h1 {
    font-size: 20px; font-weight: 700; color: #444444; letter-spacing: -0.01em;
}
.kp-portal .kp-page-header p { color: #6E7484; font-size: 12.5px; }
.kp-portal .kp-eyebrow { color: #9AA0AF; }
.kp-portal .kp-section-heading h2 { font-size: 13.5px; font-weight: 700; color: #444444; }
.kp-portal .kp-qrow-main strong { color: #444444; font-size: 13px; font-weight: 600; }
.kp-portal .kp-console-meta { color: #8A90A0; font-size: 11.5px; }
.kp-portal .kp-console-when { color: #A2A8B8; font-size: 10.5px; }
.kp-portal .kp-topbar-brand strong { color: #444444; }
.kp-portal .kp-contacts-name { color: #444444; }

/* metric tiles: BoldTrail number treatment */
.kp-portal .kp-metric-card > span { color: #767B8A; font-size: 10.5px; }
.kp-portal .kp-metric-card > strong { color: #444444; font-size: 36px; font-weight: 600; }
.kp-portal .kp-metric-accent > span { color: var(--kp-blue); }
.kp-portal .kp-metric-accent > strong { color: var(--kp-blue); font-size: 44px; }
.kp-portal .kp-metric-lg small { display: block; margin-top: 2px; color: #9AA0AF; font-size: 11px; }
.kp-portal .kp-metric-current { outline: 2px solid color-mix(in srgb, var(--kp-blue) 35%, transparent); outline-offset: -2px; }

/* 5-up KPI row: large All tile + four queue tiles */
.kp-portal .kp-console-metrics-five {
    display: grid;
    grid-template-columns: 1.6fr repeat(4, 1fr);
    gap: 14px;
}
@media (max-width: 1250px) { .kp-portal .kp-console-metrics-five { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .kp-portal .kp-console-metrics-five { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   WL7.4 — EXACT BoldTrail type tokens (measured 2026-08-09)
   Light weights are the polish: base 300, titles 500, buttons 700.
   ============================================================ */
.kp-portal { font-size: 12px; font-weight: 300; color: #444444; }
.kp-portal strong, .kp-portal b { font-weight: 500; }
.kp-portal .kp-page-header h1, .kp-portal .kp-console-header h1 {
    font-size: 22px; font-weight: 500; color: #444444;
}
.kp-portal .kp-page-header p { font-size: 12px; font-weight: 300; color: #444444; }
.kp-portal .kp-section-heading h2 { font-size: 14px; font-weight: 500; color: #444444; }
.kp-portal .kp-qrow-main strong { font-size: 14px; font-weight: 500; color: #444444; }
.kp-portal .kp-console-meta { font-size: 12px; font-weight: 300; color: #444444; }
.kp-portal .kp-console-when { font-size: 11px; font-weight: 300; color: #8A90A0; }
.kp-portal .kp-nav-link { font-size: 12px; font-weight: 500; color: #444444; }
.kp-portal .kp-nav-link.is-active { font-weight: 500; }
.kp-portal .kp-eyebrow { font-weight: 500; color: #9AA0AF; }

/* links: BoldTrail blue #0066CC, 14/500 */
.kp-portal .kp-console-zoho,
.kp-portal .kp-contacts-clear,
.kp-portal .kp-section-heading .kp-button:not(.kp-button-primary) {
    color: #0066CC; font-size: 13px; font-weight: 500;
}

/* buttons: 700 weight like Add Contact */
.kp-portal .kp-button { font-weight: 700; font-size: 13px; }
.kp-portal .kp-console-btn { font-size: 12px; }

/* metric tiles: light numbers, equal five-up */
.kp-portal .kp-metric-card > span { font-size: 11px; font-weight: 500; color: #767B8A; }
.kp-portal .kp-metric-card > strong { font-size: 34px; font-weight: 400; color: #444444; }
.kp-portal .kp-metric-accent > strong { font-size: 34px; color: var(--kp-blue); font-weight: 500; }
.kp-portal .kp-console-metrics-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kp-portal .kp-metric-lg small { font-size: 10.5px; font-weight: 300; }

/* band: 500 weight like their H3 */
.kp-portal .kp-band span { font-size: 14px; font-weight: 500; letter-spacing: .1em; }

/* badges stay 10px but 500 weight */
.kp-portal .kp-badge { font-weight: 500; }

/* table text */
.kp-portal .kp-table td { font-size: 13px; font-weight: 300; color: #444444; }
.kp-portal .kp-table thead th, .kp-portal .kp-table th { font-weight: 500; }
.kp-portal .kp-contacts-name { font-weight: 500; }

/* ---- wl8: in-portal record viewer ---- */
.kp-portal .kp-record-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px 28px;
}
.kp-portal .kp-record-field { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-bottom: 1px solid #F3F4F8; }
.kp-portal .kp-record-field-wide { grid-column: 1 / -1; }
.kp-portal .kp-record-label { font-size: 11px; font-weight: 500; color: #9AA0AF; letter-spacing: .04em; text-transform: uppercase; }
.kp-portal .kp-record-value { font-size: 13.5px; font-weight: 300; color: #444444; word-break: break-word; }
.kp-portal .kp-record-back { color: #0066CC; font-weight: 500; text-decoration: none; font-size: 13px; }

/* ---- wl8.1: BoldTrail contacts layout (filters rail + table) ---- */
.kp-portal .kp-contacts-kpis { margin-bottom: 18px; }
.kp-portal .kp-contacts-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .kp-portal .kp-contacts-layout { grid-template-columns: 1fr; } }
.kp-portal .kp-contacts-filters { padding: 18px; }
.kp-portal .kp-filters-heading { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #767B8A; margin-bottom: 10px; }
.kp-portal .kp-filters-heading-gap { margin-top: 20px; }
.kp-portal .kp-filter-list { display: flex; flex-direction: column; gap: 2px; }
.kp-portal .kp-filter-link {
    padding: 8px 10px; border-radius: 7px; font-size: 13px; font-weight: 300;
    color: #444444; text-decoration: none;
}
.kp-portal .kp-filter-link:hover { background: #F4F5F9; }
.kp-portal .kp-filter-link.is-active { background: color-mix(in srgb, var(--kp-blue) 9%, #ffffff); color: var(--kp-navy); font-weight: 500; }
.kp-portal .kp-filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kp-portal .kp-chip {
    font-size: 9.5px; font-weight: 500; letter-spacing: .05em;
    padding: 4px 9px; border-radius: 4px; text-decoration: none;
    background: #EDEFF3; color: #7A8194;
}
.kp-portal .kp-chip:hover { background: #E2E5EC; }
.kp-portal .kp-chip.is-active { background: color-mix(in srgb, var(--kp-blue) 14%, #ffffff); color: var(--kp-blue); }
.kp-portal .kp-contacts-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.kp-portal .kp-contacts-toolbar .kp-contacts-search { flex: 1; max-width: 420px; }
.kp-portal .kp-contacts-count { font-size: 12px; font-weight: 300; color: #8A90A0; white-space: nowrap; }
.kp-portal .kp-contacts-name-link { color: #0066CC; font-weight: 500; text-decoration: none; font-size: 13px; }
.kp-portal .kp-contacts-name-link:hover { text-decoration: underline; }

/* ============================================================
   WL9 — READABILITY & FOCUS PASS (low-vision friendly)
   Principle: soft backgrounds, STRONG foregrounds.
   Text ≥400 weight, solid badges, visible edges, clear anchors.
   ============================================================ */

/* text: readable weights and darker ink */
.kp-portal { font-size: 13px; font-weight: 400; color: #3B3F49; }
.kp-portal .kp-page-header p, .kp-portal .kp-console-meta, .kp-portal .kp-metric-lg small { font-weight: 400; color: #5F6572; }
.kp-portal .kp-page-header h1, .kp-portal .kp-console-header h1 { font-size: 23px; font-weight: 600; color: #23262E; }
.kp-portal .kp-section-heading h2 { font-size: 14.5px; font-weight: 600; color: #23262E; }
.kp-portal .kp-qrow-main strong { font-size: 14px; font-weight: 600; color: #23262E; }
.kp-portal .kp-console-when { font-weight: 400; color: #737A88; }
.kp-portal .kp-eyebrow { color: #737A88; }
.kp-portal .kp-metric-card > span { color: #5F6572; }
.kp-portal .kp-metric-card > strong { font-weight: 500; color: #23262E; }
.kp-portal .kp-table td { font-size: 13.5px; font-weight: 400; color: #3B3F49; }
.kp-portal .kp-record-value { font-weight: 400; color: #23262E; }
.kp-portal .kp-record-label { color: #737A88; }
.kp-portal .kp-filter-link { font-weight: 400; }
.kp-portal .kp-filter-link.is-active { font-weight: 600; }
.kp-portal .kp-contacts-count { font-weight: 400; }

/* visible surface edges — cards stop melting into the canvas */
.kp-portal .kp-card,
.kp-portal .kp-login-card,
.kp-portal .kp-header-card,
.kp-portal .kp-files-panel {
    border: 1px solid #DFE2E9;
    box-shadow: 0 1px 3px rgba(16, 30, 70, 0.07);
}
.kp-portal .kp-qrow { border-color: #DCDFE7; }
.kp-portal .kp-qrow:hover { border-color: var(--kp-blue); }

/* table header band: strong anchor like BoldTrail */
.kp-portal .kp-table thead th, .kp-portal .kp-table th {
    background: #E9EBF1; color: #3B3F49; font-weight: 600;
    border-bottom: 1px solid #D5D9E2;
}
.kp-portal .kp-table td { border-bottom: 1px solid #E5E8EF; }
.kp-portal .kp-table tbody tr:hover { background: #F1F4FA; }

/* SOLID badges with white text — instantly scannable (BoldTrail-style) */
.kp-portal .kp-badge {
    background: var(--kp-blue); color: #FFFFFF;
    font-size: 10px; font-weight: 700; letter-spacing: .05em;
    padding: 4px 9px; border-radius: 4px;
}
.kp-portal .kp-badge-success { background: #1E7A45; color: #FFFFFF; }
.kp-portal .kp-badge-warning { background: #B07818; color: #FFFFFF; }
.kp-portal .kp-badge-muted { background: #6E7484; color: #FFFFFF; }

/* links: solid confident blue, underline on hover only */
.kp-portal .kp-console-zoho, .kp-portal .kp-contacts-name-link, .kp-portal .kp-record-back { color: #0059B3; font-weight: 600; }

/* buttons: bigger targets, unmistakable */
.kp-portal .kp-button { font-size: 13px; padding-top: 9px; padding-bottom: 9px; }
.kp-portal .kp-button-primary { background: var(--kp-navy); border-color: var(--kp-navy); }

/* nav rail: darker labels, active state obvious */
.kp-portal .kp-nav-link { color: #4A5060; font-weight: 500; }
.kp-portal .kp-nav-link.is-active { color: #23262E; font-weight: 700; }
.kp-portal .kp-nav-link.is-active .kp-nav-icon { background: var(--kp-navy); color: #fff; }
.kp-portal .kp-nav-link.is-active .kp-nav-icon svg { color: #fff; }

/* canvas: calmer, slightly more contrast against white cards */
.kp-portal, .kp-direct-portal-page, body.kp-direct-portal-page {
    background-color: #EFF1F6;
    background-image:
        radial-gradient(1100px 520px at 12% -5%, color-mix(in srgb, var(--kp-blue) 8%, transparent), transparent 70%),
        linear-gradient(180deg, #EBEEF5 0%, #F2F4F8 340px);
}

/* topbar: crisper edge */
.kp-portal .kp-topbar { border-bottom: 1px solid #D5D9E2; }

/* KPI current-view + accent tile: clear but not glaring */
.kp-portal .kp-metric-accent { border-left: 4px solid var(--kp-navy); }
.kp-portal .kp-metric-accent > strong { color: var(--kp-navy); font-weight: 600; }

/* focus visibility for keyboard/low-vision */
.kp-portal a:focus-visible, .kp-portal button:focus-visible, .kp-portal input:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--kp-blue) 55%, transparent);
    outline-offset: 2px;
}

/* ============================================================
   WL10 — SITE-WIDE: unified hero/type scale + wl9 readability
   applied to every page (client + admin). One heading system.
   ============================================================ */

/* ONE hero scale for every page hero variant */
.kp-portal .kp-page-header h1,
.kp-portal .kp-page-header h2,
.kp-portal .kp-message-hero h2,
.kp-portal .kp-notes-hero h2,
.kp-portal .kp-property-hero h2,
.kp-portal .kp-property-detail-hero h2,
.kp-portal .kp-deal-hero h2,
.kp-portal .kp-docs-hero h2,
.kp-portal .kp-task-list-hero h2,
.kp-portal .kp-task-detail-hero h2,
.kp-portal .kp-console-header h1 {
    font-size: 23px !important;
    font-weight: 600 !important;
    color: #23262E !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em;
}
.kp-portal .kp-page-header p,
.kp-portal .kp-message-hero p,
.kp-portal .kp-notes-hero p,
.kp-portal .kp-property-hero p,
.kp-portal .kp-property-detail-hero p,
.kp-portal .kp-deal-hero p,
.kp-portal .kp-docs-hero p,
.kp-portal .kp-task-list-hero p,
.kp-portal .kp-task-detail-hero p {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #5F6572 !important;
    line-height: 1.5 !important;
}

/* ONE card/section heading scale everywhere */
.kp-portal .kp-card h2,
.kp-portal .kp-section-heading h2 {
    font-size: 14.5px;
    font-weight: 600;
    color: #23262E;
}
.kp-portal .kp-card h3 {
    font-size: 13px;
    font-weight: 600;
    color: #23262E;
}

/* dashboard specifics inherit the system */
.kp-portal .kp-metric-card > strong { font-size: 32px; }
.kp-portal .kp-onboard-step strong, .kp-portal .kp-onboard-step b { font-weight: 600; color: #23262E; }

/* generic list/inbox rows on client pages: defined edges + readable text */
.kp-portal .kp-message-inbox-row,
.kp-portal .kp-doc-row,
.kp-portal .kp-file-row {
    border-color: #DCDFE7;
}
.kp-portal .kp-message-inbox-row:hover { background: #F1F4FA; }

/* labels/values in detail lists across pages */
.kp-portal .kp-field-grid dt, .kp-portal .kp-deal-info-list dt {
    font-size: 11px; font-weight: 500; color: #737A88;
    letter-spacing: .04em; text-transform: uppercase;
}
.kp-portal .kp-field-grid dd, .kp-portal .kp-deal-info-list dd {
    font-size: 13.5px; font-weight: 400; color: #23262E;
}

/* login gate readable */
.kp-portal .kp-login-card h1, .kp-portal .kp-login-card h2 { font-size: 20px; font-weight: 600; color: #23262E; }
.kp-portal .kp-login-card label { font-weight: 500; color: #3B3F49; }

/* ============================================================
   WL10.1 — SCALE UP: Jeroen calibration (bigger than measured
   BoldTrail tokens — his readability beats my pixel audit)
   ============================================================ */
.kp-portal { font-size: 14px; }
.kp-portal .kp-page-header p,
.kp-portal .kp-message-hero p, .kp-portal .kp-notes-hero p,
.kp-portal .kp-property-hero p, .kp-portal .kp-property-detail-hero p,
.kp-portal .kp-deal-hero p, .kp-portal .kp-docs-hero p,
.kp-portal .kp-task-list-hero p, .kp-portal .kp-task-detail-hero p { font-size: 14px !important; }
.kp-portal .kp-page-header h1, .kp-portal .kp-page-header h2,
.kp-portal .kp-message-hero h2, .kp-portal .kp-notes-hero h2,
.kp-portal .kp-property-hero h2, .kp-portal .kp-property-detail-hero h2,
.kp-portal .kp-deal-hero h2, .kp-portal .kp-docs-hero h2,
.kp-portal .kp-task-list-hero h2, .kp-portal .kp-task-detail-hero h2,
.kp-portal .kp-console-header h1 { font-size: 25px !important; }
.kp-portal .kp-card h2, .kp-portal .kp-section-heading h2 { font-size: 16px; }
.kp-portal .kp-card h3 { font-size: 14px; }
.kp-portal .kp-qrow-main strong { font-size: 15px; }
.kp-portal .kp-console-meta { font-size: 13px; }
.kp-portal .kp-console-when { font-size: 12px; }
.kp-portal .kp-table td { font-size: 14px; }
.kp-portal .kp-table thead th, .kp-portal .kp-table th { font-size: 12px; }
.kp-portal .kp-nav-link { font-size: 12.5px; }
.kp-portal .kp-button { font-size: 14px; }
.kp-portal .kp-console-btn { font-size: 13px; }
.kp-portal .kp-console-zoho, .kp-portal .kp-contacts-name-link, .kp-portal .kp-record-back { font-size: 14px; }
.kp-portal .kp-badge { font-size: 10.5px; }
.kp-portal .kp-metric-card > span { font-size: 11.5px; }
.kp-portal .kp-metric-card > strong { font-size: 34px; }
.kp-portal .kp-record-value { font-size: 14.5px; }
.kp-portal .kp-record-label { font-size: 11.5px; }
.kp-portal .kp-filter-link { font-size: 14px; }
.kp-portal .kp-filters-heading { font-size: 11.5px; }
.kp-portal .kp-contacts-search-input { font-size: 14px; }
.kp-portal .kp-contacts-count { font-size: 13px; }
.kp-portal .kp-topbar-brand strong { font-size: 17px; }
.kp-portal .kp-topbar-title { font-size: 14px; }
.kp-portal .kp-topbar-user { font-size: 13.5px; }
.kp-portal .kp-field-grid dd, .kp-portal .kp-deal-info-list dd { font-size: 14.5px; }
.kp-portal .kp-eyebrow { font-size: 11.5px; }

/* wl10.2 — page-hero cards (eyebrow + h2 as page title inside first card)
   get the full hero scale, matching every other page header */
.kp-portal .kp-card .kp-section-heading .kp-eyebrow + h2,
.kp-portal .kp-header-card h2,
.kp-portal .kp-card > .kp-section-heading:first-child h2 {
    font-size: 22px;
    font-weight: 600;
    color: #23262E;
}

/* ============================================================
   WL11 — CANONICAL TYPE SYSTEM (Jeroen's exact spec, 2026-08-09)
   Supersedes ALL prior type layers. Do not restyle type below
   without updating the spec doc.
   ============================================================ */
.kp-portal {
    --kp-text-xs: 11px;
    --kp-text-sm: 12px;
    --kp-text-base: 14px;
    --kp-text-lg: 18px;
    --kp-text-xl: 24px;
    --kp-text-hero: 35px;
    --kp-w-light: 300;
    --kp-w-regular: 400;
    --kp-w-medium: 500;
    --kp-w-semibold: 600;
    --kp-w-bold: 700;
    --kp-w-extrabold: 800;
}

/* Standard body text: 14/500 */
.kp-portal { font-size: var(--kp-text-base); font-weight: var(--kp-w-medium); }
.kp-portal p, .kp-portal td, .kp-portal dd, .kp-portal li,
.kp-portal .kp-console-meta, .kp-portal .kp-record-value,
.kp-portal .kp-page-header p,
.kp-portal .kp-message-hero p, .kp-portal .kp-notes-hero p,
.kp-portal .kp-property-hero p, .kp-portal .kp-property-detail-hero p,
.kp-portal .kp-deal-hero p, .kp-portal .kp-docs-hero p,
.kp-portal .kp-task-list-hero p, .kp-portal .kp-task-detail-hero p {
    font-size: var(--kp-text-base) !important;
    font-weight: var(--kp-w-medium) !important;
}

/* Main page titles: 24/500 */
.kp-portal .kp-page-header h1, .kp-portal .kp-page-header h2,
.kp-portal .kp-message-hero h2, .kp-portal .kp-notes-hero h2,
.kp-portal .kp-property-hero h2, .kp-portal .kp-property-detail-hero h2,
.kp-portal .kp-deal-hero h2, .kp-portal .kp-docs-hero h2,
.kp-portal .kp-task-list-hero h2, .kp-portal .kp-task-detail-hero h2,
.kp-portal .kp-console-header h1 {
    font-size: var(--kp-text-xl) !important;
    font-weight: var(--kp-w-medium) !important;
    line-height: 1.15 !important;
}
/* band = uppercase white 24/500 lh 24 (the true BoldTrail page title) */
.kp-portal .kp-band span {
    font-size: var(--kp-text-xl);
    font-weight: var(--kp-w-medium);
    line-height: 24px;
    letter-spacing: .02em;
}
.kp-portal .kp-band { padding: 10px 20px; }

/* Section headings & card titles: 18/700 */
.kp-portal .kp-card h2, .kp-portal .kp-section-heading h2,
.kp-portal .kp-card .kp-section-heading .kp-eyebrow + h2,
.kp-portal .kp-header-card h2,
.kp-portal .kp-card > .kp-section-heading:first-child h2 {
    font-size: var(--kp-text-lg) !important;
    font-weight: var(--kp-w-bold) !important;
    line-height: 1.2;
}
.kp-portal .kp-card h3 { font-size: var(--kp-text-base); font-weight: var(--kp-w-bold); }

/* Entity/card names: 18/700, blue when links */
.kp-portal .kp-qrow-main strong { font-size: var(--kp-text-lg); font-weight: var(--kp-w-bold); }
.kp-portal .kp-contacts-name-link { font-size: var(--kp-text-lg); font-weight: var(--kp-w-bold); color: #0066CC; }

/* Activity/status labels (badges): 14/700 */
.kp-portal .kp-badge {
    font-size: var(--kp-text-base);
    font-weight: var(--kp-w-bold);
    letter-spacing: 0;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: none;
}

/* Timestamps: 14/500 italic */
.kp-portal .kp-console-when,
.kp-portal .kp-contacts-count {
    font-size: var(--kp-text-base);
    font-weight: var(--kp-w-medium);
    font-style: italic;
}

/* Buttons: primary 14/700, secondary 14/500 */
.kp-portal .kp-button { font-size: var(--kp-text-base); font-weight: var(--kp-w-medium); }
.kp-portal .kp-button-primary { font-weight: var(--kp-w-bold); }
.kp-portal .kp-console-btn { font-size: var(--kp-text-base); }

/* Links & selects: 14/500 */
.kp-portal .kp-console-zoho, .kp-portal .kp-record-back, .kp-portal .kp-contacts-clear,
.kp-portal .kp-section-heading .kp-button:not(.kp-button-primary) {
    font-size: var(--kp-text-base); font-weight: var(--kp-w-medium);
}
.kp-portal select, .kp-portal .kp-locale-topbar select { font-size: var(--kp-text-base); font-weight: var(--kp-w-medium); }

/* Sidebar labels: 12/500. Sub-nav/chips: 12/300 */
.kp-portal .kp-nav-link { font-size: var(--kp-text-sm); font-weight: var(--kp-w-medium); }
.kp-portal .kp-nav-link.is-active { font-weight: var(--kp-w-bold); }
.kp-portal .kp-chip { font-size: var(--kp-text-sm); font-weight: var(--kp-w-light); letter-spacing: 0; padding: 4px 10px; }
.kp-portal .kp-chip.is-active { font-weight: var(--kp-w-medium); }
.kp-portal .kp-filter-link { font-size: var(--kp-text-base); }

/* metadata / labels: 12/500 */
.kp-portal .kp-eyebrow, .kp-portal .kp-filters-heading,
.kp-portal .kp-metric-card > span, .kp-portal .kp-record-label,
.kp-portal .kp-table thead th, .kp-portal .kp-table th,
.kp-portal .kp-field-grid dt, .kp-portal .kp-deal-info-list dt {
    font-size: var(--kp-text-sm) !important;
    font-weight: var(--kp-w-medium) !important;
}

/* Empty states: 12/300 */
.kp-portal .kp-console-empty, .kp-portal .kp-queue-empty p { font-size: var(--kp-text-sm); font-weight: var(--kp-w-light); }

/* KPI numbers stay display-size */
.kp-portal .kp-metric-card > strong { font-size: 34px; font-weight: var(--kp-w-medium); }

/* Footer: 11/300 */
.kp-portal .kp-sidebar-footer, .kp-portal .kp-mobile-bar small { font-size: var(--kp-text-xs); font-weight: var(--kp-w-light); }

/* ============================================================
   WL11.1 — final calibration (Jeroen audit, session close)
   1) primary actions 14/700  2) inputs 14/500  3) tracking kept
   ============================================================ */
.kp-portal {
    --font-primary: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-size-caption: 11px;
    --font-size-nav: 12px;
    --font-size-body: 14px;
    --font-size-brand: 17px;
    --font-size-heading: 18px;
    --font-size-page-title: 24px;
    --font-size-metric: 34px;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    --line-height-nav: 1.15;
    --line-height-body: 1.5;
    --line-height-heading: 1.2;
    --line-height-title: 1.15;
}

/* 1) primary actions bold — Verify, Approve, all .kp-button-primary */
.kp-portal .kp-button.kp-button-primary,
.kp-portal button.kp-button-primary,
.kp-portal .kp-console-btn.kp-button-primary {
    font-weight: var(--font-weight-bold) !important;
    line-height: 14px;
}
/* Deny stays 500 (secondary/destructive) */
.kp-portal .kp-console-btn-deny { font-weight: var(--font-weight-medium); }

/* 2) inputs join the 14px control language */
.kp-portal .kp-console-input,
.kp-portal input[type="text"],
.kp-portal input[type="search"],
.kp-portal input[type="email"] {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-medium);
}
.kp-portal .kp-console-input { width: 104px; }
.kp-portal .kp-console-input-sm { width: 58px; }

/* ============================================================
   WL12 — FULL-PORTAL TYPE ENFORCEMENT (every page, admin+client)
   Element-level token enforcement so no legacy 10–17px rule
   survives anywhere. Canonical spec: BOLDTRAIL_TYPE_TOKENS doc.
   ============================================================ */

/* body text everywhere: 14/500 lh1.5 */
.kp-portal p, .kp-portal td, .kp-portal dd, .kp-portal li,
.kp-portal span:not(.kp-badge):not(.kp-eyebrow):not(.kp-tab-count):not(.kp-brand-initials):not(.kp-topbar-avatar):not(.kp-queue-empty-mark),
.kp-portal label, .kp-portal legend, .kp-portal figcaption {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-body);
}
.kp-portal strong, .kp-portal b { font-weight: var(--font-weight-bold); }

/* headings everywhere (heroes keep their 24px !important rules) */
.kp-portal h1 { font-size: var(--font-size-page-title); font-weight: var(--font-weight-medium); line-height: var(--line-height-title); }
.kp-portal h2 { font-size: var(--font-size-heading); font-weight: var(--font-weight-bold); line-height: var(--line-height-heading); }
.kp-portal h3 { font-size: var(--font-size-body); font-weight: var(--font-weight-bold); line-height: var(--line-height-heading); }
.kp-portal h4, .kp-portal h5 { font-size: var(--font-size-nav); font-weight: var(--font-weight-medium); text-transform: uppercase; letter-spacing: .06em; color: #737A88; }

/* all controls: 14, buttons 500 (primary 700 per wl11.1) */
.kp-portal input, .kp-portal select, .kp-portal textarea, .kp-portal button {
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-medium);
    font-family: var(--font-primary);
}

/* metadata smalls: 12/500 */
.kp-portal small, .kp-portal time,
.kp-portal dt,
.kp-portal .kp-brand small, .kp-portal .kp-header-card span {
    font-size: var(--font-size-nav);
    font-weight: var(--font-weight-medium);
}

/* known legacy component sweep — client pages */
.kp-portal .kp-message-inbox-row strong, .kp-portal .kp-message-hero h2 span,
.kp-portal .kp-doc-row strong, .kp-portal .kp-file-row strong,
.kp-portal .kp-property-card h3, .kp-portal .kp-property-listing-title,
.kp-portal .kp-deal-line strong, .kp-portal .kp-onboard-step strong,
.kp-portal .kp-profile-summary h2, .kp-portal .kp-notes-callout h2 {
    font-size: var(--font-size-heading) !important;
    font-weight: var(--font-weight-bold) !important;
}
.kp-portal .kp-property-hero-profile dt, .kp-portal .kp-deal-selector-counts,
.kp-portal .kp-property-listing-profile small {
    font-size: var(--font-size-nav) !important;
    font-weight: var(--font-weight-medium) !important;
}
.kp-portal .kp-message-conversation-bubble time, .kp-portal .kp-message-meta,
.kp-portal .kp-doc-row time, .kp-portal .kp-file-row time {
    font-size: var(--font-size-body) !important;
    font-weight: var(--font-weight-medium) !important;
    font-style: italic;
}
.kp-portal .kp-login-card h2 { font-size: var(--font-size-page-title) !important; font-weight: var(--font-weight-medium) !important; }
.kp-portal .kp-login-title { font-size: var(--font-size-page-title) !important; }
.kp-portal .kp-property-detail-section h2, .kp-portal .kp-dashboard-schedule-grid h3,
.kp-portal .kp-message-inbox-header div, .kp-portal .kp-files-intro-card h1,
.kp-portal .kp-deal-summary-strip strong {
    font-size: var(--font-size-heading) !important;
    font-weight: var(--font-weight-bold) !important;
}
/* keep functional icons/avatars/close buttons at their designed sizes */
.kp-portal .kp-avatar, .kp-portal .kp-message-avatar, .kp-portal .kp-referral-modal-close,
.kp-portal .kp-message-modal-header button, .kp-portal .kp-property-photo-header button,
.kp-portal .kp-attachment-header button { font-size: inherit; }
.kp-portal .kp-metric-card > strong { font-size: var(--font-size-metric) !important; font-weight: var(--font-weight-medium) !important; line-height: 1.1 !important; }
.kp-portal .kp-metric-card > span { font-size: var(--font-size-nav) !important; }

/* ============================================================
   WL12.1 — top-box & callout harmony (Jeroen's Edge review)
   Badges right-sized; top-card headings on one scale.
   ============================================================ */

/* status badges: compact chip scale (14px was chunky in card corners);
   full 14/700 stays ONLY in row/table contexts per the spec's
   "activity type labels" role */
.kp-portal .kp-badge {
    font-size: 12px;
    padding: 3px 8px;
    line-height: 1.3;
}
.kp-portal .kp-qrow .kp-badge,
.kp-portal .kp-table .kp-badge {
    font-size: var(--font-size-body);
    padding: 4px 10px;
}

/* top boxes: every card that opens a page (banner, welcome, status
   callouts) uses eyebrow 12/500 + title 18/700 + body 14/500 */
.kp-portal .kp-card .kp-eyebrow {
    font-size: var(--font-size-nav) !important;
    font-weight: var(--font-weight-medium) !important;
    letter-spacing: .08em;
}
.kp-portal .kp-onboard-banner h2,
.kp-portal .kp-card .kp-section-heading h2,
.kp-portal .kp-header-card h2 {
    font-size: var(--font-size-heading) !important;
    font-weight: var(--font-weight-bold) !important;
    line-height: var(--line-height-heading) !important;
}
.kp-portal .kp-onboard-step strong { font-size: var(--font-size-body) !important; }
.kp-portal .kp-onboard-step span, .kp-portal .kp-onboard-step small { font-size: var(--font-size-nav) !important; }

/* ===== WL13: Operator Inbox (portal-side admin messenger) + 6-up console metrics ===== */
.kp-portal .kp-console-metrics-six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1180px) { .kp-portal .kp-console-metrics-six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .kp-portal .kp-console-metrics-six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.kp-portal .kp-msgadmin { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 980px) { .kp-portal .kp-msgadmin { grid-template-columns: 1fr; } }

.kp-portal .kp-msgadmin-list { padding: 0; overflow: hidden; }
.kp-portal .kp-msgadmin-item { display: block; padding: 13px 16px; border-bottom: 1px solid #DFE2E9; text-decoration: none; }
.kp-portal .kp-msgadmin-item:last-child { border-bottom: 0; }
.kp-portal .kp-msgadmin-item:hover { background: #F4F7FB; }
.kp-portal .kp-msgadmin-item.is-active { background: #EAF1FA; box-shadow: inset 3px 0 0 var(--kp-blue, #1667d9); }
.kp-portal .kp-msgadmin-who { display: flex; align-items: center; gap: 8px; font-size: var(--font-size-body) !important; font-weight: var(--font-weight-bold) !important; color: #23262E; }
.kp-portal .kp-msgadmin-subject { display: block; margin-top: 2px; font-size: var(--font-size-body) !important; font-weight: var(--font-weight-medium) !important; color: #3B3F49; }
.kp-portal .kp-msgadmin-snippet { display: block; margin-top: 2px; font-size: var(--font-size-nav) !important; font-weight: var(--font-weight-medium) !important; color: #6B7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-portal .kp-msgadmin-unread { flex: 0 0 auto; }

.kp-portal .kp-msgadmin-thread { min-height: 320px; }
.kp-portal .kp-msgadmin-thread-head h2 { margin: 0; }
.kp-portal .kp-msgadmin-contact-link { display: inline-block; margin-top: 4px; font-size: var(--font-size-body) !important; font-weight: var(--font-weight-medium) !important; color: #0066CC; text-decoration: none; }
.kp-portal a.kp-msgadmin-contact-link:hover { text-decoration: underline; }

.kp-portal .kp-msgadmin-bubbles { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 6px; }
.kp-portal .kp-msgadmin-bubble { max-width: 78%; padding: 11px 15px; border-radius: 12px; background: #F4F7FB; border: 1px solid #DFE2E9; color: #23262E; font-size: var(--font-size-body) !important; font-weight: var(--font-weight-medium) !important; }
.kp-portal .kp-msgadmin-bubble p { margin: 0 0 6px; font-size: var(--font-size-body) !important; }
.kp-portal .kp-msgadmin-bubble p:last-of-type { margin-bottom: 0; }
.kp-portal .kp-msgadmin-bubble.is-ours { margin-left: auto; background: var(--kp-navy, #0a1b40); border-color: var(--kp-navy, #0a1b40); color: #FFFFFF; }
.kp-portal .kp-msgadmin-bubble.is-ours a { color: #BFDBFE; }
.kp-portal .kp-msgadmin-meta { display: block; margin-top: 7px; font-size: var(--font-size-body) !important; font-weight: var(--font-weight-medium) !important; font-style: italic; opacity: .72; }

.kp-portal .kp-msgadmin-reply { margin-top: 16px; padding-top: 14px; border-top: 1px solid #DFE2E9; }
.kp-portal .kp-msgadmin-reply-label { display: block; margin-bottom: 6px; font-size: var(--font-size-body) !important; font-weight: var(--font-weight-bold) !important; color: #23262E; }
.kp-portal .kp-msgadmin-reply textarea { width: 100%; border: 1px solid #C9CFDA; border-radius: 8px; padding: 10px 12px; font-size: var(--font-size-body) !important; font-weight: var(--font-weight-medium) !important; font-family: inherit; color: #23262E; background: #FFFFFF; resize: vertical; }
.kp-portal .kp-msgadmin-reply textarea:focus-visible { outline: 2px solid var(--kp-blue, #1667d9); outline-offset: 1px; }
.kp-portal .kp-msgadmin-reply-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.kp-portal .kp-msgadmin-reply-actions input[type="file"] { font-size: var(--font-size-nav) !important; }
.kp-portal .kp-msgadmin-pick { padding: 60px 20px; }

/* ===== WL13.1: Operator Inbox — New Message compose ===== */
.kp-portal .kp-msgadmin-hero-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.kp-portal .kp-msgadmin-compose-grid { display: grid; grid-template-columns: 1fr 220px; gap: 14px; margin-bottom: 4px; }
@media (max-width: 760px) { .kp-portal .kp-msgadmin-compose-grid { grid-template-columns: 1fr; } }
.kp-portal .kp-msgadmin-compose { border-top: 0; padding-top: 0; margin-top: 4px; }
.kp-portal .kp-msgadmin-compose select,
.kp-portal .kp-msgadmin-compose input[type="text"] { width: 100%; border: 1px solid #C9CFDA; border-radius: 8px; padding: 9px 12px; font-size: var(--font-size-body) !important; font-weight: var(--font-weight-medium) !important; font-family: inherit; color: #23262E; background: #FFFFFF; }
.kp-portal .kp-msgadmin-compose select:focus-visible,
.kp-portal .kp-msgadmin-compose input[type="text"]:focus-visible { outline: 2px solid var(--kp-blue, #1667d9); outline-offset: 1px; }
.kp-portal .kp-msgadmin-compose .kp-msgadmin-reply-label { margin-top: 12px; }
.kp-portal .kp-msgadmin-compose-grid .kp-msgadmin-reply-label { margin-top: 0; }

/* ===== WL13.2: Compose modal (BoldTrail-style) ===== */
.kp-portal .kp-compose-overlay { position: fixed; inset: 0; background: rgba(10, 27, 64, .45); z-index: 4000; display: none; align-items: flex-start; justify-content: center; padding: 48px 20px 20px; }
.kp-portal .kp-compose-overlay.is-open { display: flex; }
.kp-portal .kp-compose-modal { width: min(880px, 100%); max-height: calc(100vh - 70px); display: flex; flex-direction: column; background: #FFFFFF; border-radius: 10px; overflow: hidden; box-shadow: 0 24px 64px rgba(10, 27, 64, .35); }
.kp-portal .kp-compose-head { display: flex; align-items: center; justify-content: space-between; background: var(--kp-navy, #0a1b40); color: #FFFFFF; padding: 12px 18px; }
.kp-portal .kp-compose-head-title { display: inline-flex; align-items: center; gap: 10px; font-size: var(--font-size-body) !important; font-weight: var(--font-weight-bold) !important; letter-spacing: .08em; text-transform: uppercase; color: #FFFFFF; }
.kp-portal .kp-compose-head-title svg { width: 17px; height: 17px; fill: #FFFFFF; }
.kp-portal .kp-compose-close { background: none; border: 0; color: #FFFFFF; font-size: 16px; cursor: pointer; line-height: 1; padding: 4px 6px; border-radius: 6px; }
.kp-portal .kp-compose-close:hover { background: rgba(255, 255, 255, .14); }
.kp-portal .kp-compose-form { display: flex; flex-direction: column; padding: 16px 20px 18px; overflow-y: auto; }
.kp-portal .kp-compose-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #EBEDF2; }
.kp-portal .kp-compose-row label { font-size: var(--font-size-body) !important; font-weight: var(--font-weight-bold) !important; color: #23262E; flex: 0 0 auto; }
.kp-portal .kp-compose-row-split { gap: 22px; }
.kp-portal .kp-compose-to { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; }
.kp-portal .kp-compose-type { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.kp-portal .kp-compose-row select, .kp-portal .kp-compose-row input[type="text"] { border: 0; background: transparent; flex: 1 1 auto; min-width: 0; padding: 6px 4px; font-size: var(--font-size-body) !important; font-weight: var(--font-weight-medium) !important; font-family: inherit; color: #23262E; }
.kp-portal .kp-compose-row select:focus-visible, .kp-portal .kp-compose-row input[type="text"]:focus-visible { outline: 2px solid var(--kp-blue, #1667d9); outline-offset: 1px; border-radius: 4px; }
.kp-portal .kp-compose-toolbar { display: flex; align-items: center; gap: 4px; margin-top: 12px; padding: 6px 8px; border: 1px solid #DFE2E9; border-bottom: 0; border-radius: 8px 8px 0 0; background: #F8F9FB; }
.kp-portal .kp-compose-toolbar button { border: 0; background: transparent; min-width: 30px; height: 28px; border-radius: 6px; cursor: pointer; font-size: var(--font-size-body) !important; color: #3B3F49; }
.kp-portal .kp-compose-toolbar button:hover { background: #E8EDF5; color: var(--kp-navy, #0a1b40); }
.kp-portal .kp-compose-toolbar-sep { width: 1px; height: 18px; background: #DFE2E9; margin: 0 4px; }
.kp-portal .kp-compose-editor { border: 1px solid #DFE2E9; border-radius: 0 0 8px 8px; min-height: 240px; max-height: 42vh; overflow-y: auto; padding: 12px 14px; font-size: var(--font-size-body) !important; font-weight: var(--font-weight-medium) !important; color: #23262E; background: #FFFFFF; }
.kp-portal .kp-compose-editor:focus-visible { outline: 2px solid var(--kp-blue, #1667d9); outline-offset: -1px; }
.kp-portal .kp-compose-editor-error { border-color: #C4453A; outline: 2px solid #C4453A; outline-offset: -1px; }
.kp-portal .kp-compose-editor p { margin: 0 0 8px; font-size: var(--font-size-body) !important; }
.kp-portal .kp-compose-attach-row { margin-top: 10px; }
.kp-portal .kp-compose-attach { display: inline-flex; align-items: center; gap: 7px; color: #0066CC; font-size: var(--font-size-body) !important; font-weight: var(--font-weight-medium) !important; cursor: pointer; }
.kp-portal .kp-compose-attach:hover span { text-decoration: underline; }
.kp-portal .kp-compose-attach svg { width: 15px; height: 15px; fill: #0066CC; }
.kp-portal .kp-compose-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #EBEDF2; }
.kp-portal .kp-compose-signature { display: inline-flex; align-items: center; gap: 9px; font-size: var(--font-size-body) !important; font-weight: var(--font-weight-medium) !important; color: #23262E; cursor: pointer; }
.kp-portal .kp-compose-signature input { position: absolute; opacity: 0; pointer-events: none; }
.kp-portal .kp-compose-switch { width: 34px; height: 19px; border-radius: 10px; background: #C9CFDA; position: relative; transition: background .15s ease; flex: 0 0 auto; }
.kp-portal .kp-compose-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #FFFFFF; transition: left .15s ease; }
.kp-portal .kp-compose-signature input:checked + .kp-compose-switch { background: var(--kp-navy, #0a1b40); }
.kp-portal .kp-compose-signature input:checked + .kp-compose-switch::after { left: 17px; }
.kp-portal .kp-compose-signature input:focus-visible + .kp-compose-switch { outline: 2px solid var(--kp-blue, #1667d9); outline-offset: 2px; }
.kp-portal .kp-compose-send { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 700px) { .kp-portal .kp-compose-overlay { padding: 12px; } .kp-portal .kp-compose-row-split { flex-direction: column; align-items: stretch; } .kp-portal .kp-compose-type { justify-content: flex-start; } }

/* ===== WL14: Three-pane Operator Inbox (widget parity) ===== */
.kp-portal .kp-inbox3 { display: grid; grid-template-columns: 210px 330px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1180px) { .kp-portal .kp-inbox3 { grid-template-columns: 200px minmax(0, 1fr); } .kp-portal .kp-inbox-thread { grid-column: 1 / -1; } }
@media (max-width: 760px) { .kp-portal .kp-inbox3 { grid-template-columns: 1fr; } }

.kp-portal .kp-inbox-rail { padding: 14px; }
.kp-portal .kp-inbox-newbtn { display: block; width: 100%; text-align: center; margin-bottom: 14px; }
.kp-portal .kp-inbox-boxes { display: flex; flex-direction: column; gap: 2px; }
.kp-portal .kp-inbox-box { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px; text-decoration: none; border: 1px solid transparent; }
.kp-portal .kp-inbox-box svg { width: 15px; height: 15px; fill: #5F6572; flex: 0 0 auto; }
.kp-portal .kp-inbox-box span { flex: 1 1 auto; font-size: var(--font-size-body) !important; font-weight: var(--font-weight-medium) !important; color: #23262E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-portal .kp-inbox-box b { font-size: var(--font-size-nav) !important; font-weight: var(--font-weight-bold) !important; color: #5F6572; background: #EEF1F6; border-radius: 10px; padding: 1px 8px; }
.kp-portal .kp-inbox-box:hover { background: #F4F7FB; }
.kp-portal .kp-inbox-box.is-active { background: #EAF1FA; border-color: #CFE0F5; }
.kp-portal .kp-inbox-box.is-active svg { fill: var(--kp-blue, #1667d9); }
.kp-portal .kp-inbox-folders-head { display: flex; align-items: center; justify-content: space-between; margin: 16px 2px 6px; }
.kp-portal .kp-inbox-folders-head span { font-size: var(--font-size-nav) !important; font-weight: var(--font-weight-bold) !important; letter-spacing: .08em; text-transform: uppercase; color: #5F6572; }
.kp-portal .kp-inbox-folder-add { border: 1px solid #C9CFDA; background: #FFFFFF; border-radius: 6px; width: 22px; height: 22px; line-height: 1; cursor: pointer; color: #3B3F49; font-size: 14px; }
.kp-portal .kp-inbox-folder-add:hover { background: #EAF1FA; border-color: var(--kp-blue, #1667d9); color: var(--kp-blue, #1667d9); }
.kp-portal .kp-inbox-folder-form { display: flex; gap: 6px; margin: 6px 0 8px; }
.kp-portal .kp-inbox-folder-form[hidden] { display: none; }
.kp-portal .kp-inbox-folder-form input { flex: 1 1 auto; min-width: 0; border: 1px solid #C9CFDA; border-radius: 7px; padding: 6px 9px; font-size: var(--font-size-nav) !important; font-weight: var(--font-weight-medium) !important; font-family: inherit; }

.kp-portal .kp-inbox-list { padding: 0; overflow: hidden; }
.kp-portal .kp-inbox-list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 13px 14px 11px; border-bottom: 1px solid #DFE2E9; }
.kp-portal .kp-inbox-list-title .kp-eyebrow { margin: 0 0 1px; }
.kp-portal .kp-inbox-list-title h2 { margin: 0; }
.kp-portal .kp-inbox-search { display: flex; align-items: center; gap: 6px; }
.kp-portal .kp-inbox-search input[type="search"] { width: 120px; border: 1px solid #C9CFDA; border-radius: 7px; padding: 6px 9px; font-size: var(--font-size-nav) !important; font-weight: var(--font-weight-medium) !important; font-family: inherit; }
.kp-portal .kp-inbox-sort { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid #C9CFDA; border-radius: 7px; text-decoration: none; color: #3B3F49; font-size: 14px; }
.kp-portal .kp-inbox-sort:hover { background: #EAF1FA; border-color: var(--kp-blue, #1667d9); color: var(--kp-blue, #1667d9); }
.kp-portal .kp-inbox-items { max-height: 640px; overflow-y: auto; }
.kp-portal .kp-inbox-item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #EEF0F4; text-decoration: none; }
.kp-portal .kp-inbox-item:hover { background: #F4F7FB; }
.kp-portal .kp-inbox-item.is-active { background: #EAF1FA; box-shadow: inset 3px 0 0 var(--kp-blue, #1667d9); }
.kp-portal .kp-inbox-avatar { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: #E3EBF6; color: #29415E; display: inline-flex; align-items: center; justify-content: center; font-size: var(--font-size-nav) !important; font-weight: var(--font-weight-bold) !important; }
.kp-portal .kp-inbox-avatar-brand { background: var(--kp-navy, #0a1b40); color: #FFFFFF; }
.kp-portal .kp-inbox-item-main { flex: 1 1 auto; min-width: 0; }
.kp-portal .kp-inbox-item-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.kp-portal .kp-inbox-item-who { font-size: var(--font-size-body) !important; font-weight: var(--font-weight-bold) !important; color: #23262E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-portal .kp-inbox-item-date { flex: 0 0 auto; font-size: var(--font-size-nav) !important; font-weight: var(--font-weight-medium) !important; color: #6B7280; }
.kp-portal .kp-inbox-item-subject { display: block; margin-top: 1px; font-size: var(--font-size-body) !important; font-weight: var(--font-weight-bold) !important; color: #3B3F49; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-portal .kp-inbox-item-type { display: block; margin-top: 2px; font-size: var(--font-size-nav) !important; font-weight: var(--font-weight-medium) !important; color: #6B7280; }
.kp-portal .kp-inbox-newpill { display: inline-block; margin-left: 6px; background: #EAF1FA; color: var(--kp-blue, #1667d9); border-radius: 9px; padding: 1px 8px; font-size: 11px !important; font-weight: var(--font-weight-bold) !important; vertical-align: 1px; }

.kp-portal .kp-inbox-thread-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.kp-portal .kp-inbox-thread-head h2 { margin: 2px 0 4px; }
.kp-portal .kp-inbox-thread-meta { margin: 0; font-size: var(--font-size-body) !important; font-weight: var(--font-weight-medium) !important; color: #3B3F49; }
.kp-portal .kp-inbox-thread-meta a { color: #0066CC; text-decoration: none; }
.kp-portal .kp-inbox-thread-meta a:hover { text-decoration: underline; }
.kp-portal .kp-inbox-thread-tools { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.kp-portal .kp-inbox-convo { padding: 16px; }
.kp-portal .kp-inbox-msg { display: flex; gap: 11px; padding: 13px; border: 1px solid #DFE2E9; border-radius: 10px; background: #FFFFFF; margin-bottom: 10px; }
.kp-portal .kp-inbox-msg.is-ours { background: #F7FAFE; border-color: #CFE0F5; }
.kp-portal .kp-inbox-msg-body { flex: 1 1 auto; min-width: 0; }
.kp-portal .kp-inbox-msg-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.kp-portal .kp-inbox-msg-top strong { font-size: var(--font-size-body) !important; font-weight: var(--font-weight-bold) !important; color: #23262E; }
.kp-portal .kp-inbox-msg-date { font-size: var(--font-size-body) !important; font-weight: var(--font-weight-medium) !important; font-style: italic; color: #6B7280; }
.kp-portal .kp-inbox-msg-text, .kp-portal .kp-inbox-msg-text p { font-size: var(--font-size-body) !important; font-weight: var(--font-weight-medium) !important; color: #23262E; }
.kp-portal .kp-inbox-msg-text p { margin: 0 0 7px; }
.kp-portal .kp-inbox-msg-text p:last-child { margin-bottom: 0; }
.kp-portal .kp-inbox-msg-atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.kp-portal .kp-inbox-att { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #C9CFDA; border-radius: 8px; padding: 6px 11px; background: #F8F9FB; font-size: var(--font-size-nav) !important; font-weight: var(--font-weight-medium) !important; color: #23262E; text-decoration: none; }
.kp-portal .kp-inbox-att svg { width: 13px; height: 13px; fill: #5F6572; }
.kp-portal .kp-inbox-att:hover { border-color: var(--kp-blue, #1667d9); color: var(--kp-blue, #1667d9); }
.kp-portal .kp-inbox-actionbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 13px; margin-top: 4px; border-top: 1px solid #EBEDF2; }
.kp-portal .kp-inbox-move { display: flex; align-items: center; gap: 8px; }
.kp-portal .kp-inbox-move-label { font-size: var(--font-size-nav) !important; font-weight: var(--font-weight-medium) !important; color: #5F6572; }
.kp-portal .kp-inbox-move select { border: 1px solid #C9CFDA; border-radius: 7px; padding: 7px 9px; font-size: var(--font-size-body) !important; font-weight: var(--font-weight-medium) !important; font-family: inherit; }
.kp-portal .kp-inbox-delete { margin-left: auto; }
.kp-portal .kp-inbox-reply { margin-top: 14px; padding-top: 13px; border-top: 1px solid #EBEDF2; }
.kp-portal .kp-inbox-reply[hidden] { display: none; }
.kp-portal .kp-inbox-reply textarea { width: 100%; border: 1px solid #C9CFDA; border-radius: 8px; padding: 10px 12px; font-size: var(--font-size-body) !important; font-weight: var(--font-weight-medium) !important; font-family: inherit; color: #23262E; resize: vertical; }

/* ===== WL14.1: Compose modal upgrade (two-row toolbar, link row, templates) ===== */
.kp-portal .kp-compose-modal { width: min(960px, 100%); }
.kp-portal .kp-compose-toolbar select { border: 1px solid #C9CFDA; border-radius: 6px; padding: 4px 7px; background: #FFFFFF; font-size: var(--font-size-nav) !important; font-weight: var(--font-weight-medium) !important; font-family: inherit; color: #23262E; max-width: 130px; }
.kp-portal .kp-compose-toolbar-2 { margin-top: 0; border-radius: 0; border-top: 0; }
.kp-portal .kp-compose-toolbar { border-radius: 8px 8px 0 0; }
.kp-portal .kp-compose-toolbar + .kp-compose-toolbar-2 { border-radius: 0; }
.kp-portal .kp-compose-template { margin-left: auto; }
.kp-portal .kp-compose-linkrow { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid #DFE2E9; border-top: 0; background: #F8F9FB; }
.kp-portal .kp-compose-linkrow[hidden] { display: none; }
.kp-portal .kp-compose-linkrow input { flex: 1 1 auto; min-width: 0; border: 1px solid #C9CFDA; border-radius: 7px; padding: 7px 10px; font-size: var(--font-size-body) !important; font-weight: var(--font-weight-medium) !important; font-family: inherit; }
.kp-portal .kp-compose-editor { border-radius: 0 0 8px 8px; min-height: 280px; }
.kp-portal .kp-compose-editor h2 { font-size: var(--font-size-heading, 18px) !important; font-weight: var(--font-weight-bold) !important; margin: 0 0 8px; }
.kp-portal .kp-compose-editor h3 { font-size: var(--font-size-body) !important; font-weight: var(--font-weight-bold) !important; margin: 0 0 6px; }
.kp-portal .kp-compose-editor blockquote { border-left: 3px solid #C9CFDA; margin: 0 0 8px; padding: 2px 12px; color: #5F6572; }
.kp-portal .kp-compose-editor a { color: #0066CC; }
.kp-portal .kp-compose-editor ul, .kp-portal .kp-compose-editor ol { margin: 0 0 8px 22px; }

/* ===== WL14.2: reply RTE + ajax loading state ===== */
.kp-portal .kp-inbox-reply-editor { min-height: 130px; }
.kp-portal .kp-inbox-reply .kp-compose-toolbar { margin-top: 0; }
.kp-portal [data-kp-thread-pane].is-loading { opacity: .45; pointer-events: none; transition: opacity .12s ease; }

/* ===== WL14.3: full RTE on replies + unread-only rail badge ===== */
.kp-portal .kp-inbox-unreadchip { background: var(--kp-blue, #1667d9) !important; color: #FFFFFF !important; }
.kp-portal .kp-inbox-reply .kp-compose-toolbar-2 { border-top: 0; }
.kp-portal .kp-inbox-reply .kp-compose-linkrow { border-top: 0; }
.kp-portal .kp-inbox-reply .kp-compose-editor { border-radius: 0 0 8px 8px; }
.kp-portal .kp-inbox-msg-text font[size="2"] { font-size: 12px !important; }
.kp-portal .kp-inbox-msg-text font[size="4"] { font-size: 17px !important; }
.kp-portal .kp-inbox-msg-text font[size="5"] { font-size: 21px !important; }
.kp-portal .kp-compose-editor font[size="2"] { font-size: 12px !important; }
.kp-portal .kp-compose-editor font[size="4"] { font-size: 17px !important; }
.kp-portal .kp-compose-editor font[size="5"] { font-size: 21px !important; }
.kp-portal .kp-inbox-msg-text h2 { font-size: 18px !important; font-weight: var(--font-weight-bold) !important; margin: 0 0 7px; }
.kp-portal .kp-inbox-msg-text h3 { font-size: 14px !important; font-weight: var(--font-weight-bold) !important; margin: 0 0 6px; }
.kp-portal .kp-inbox-msg-text blockquote { border-left: 3px solid #C9CFDA; margin: 0 0 8px; padding: 2px 12px; color: #5F6572; }
.kp-portal .kp-inbox-msg-text a { color: #0066CC; }
.kp-portal .kp-inbox-msg.is-ours .kp-inbox-msg-text a { color: #0066CC; }
.kp-portal .kp-inbox-msg-text ul, .kp-portal .kp-inbox-msg-text ol { margin: 0 0 8px 22px; }
.kp-portal .kp-inbox-msg-text hr { border: 0; border-top: 1px solid #DFE2E9; margin: 10px 0; }

/* ===== WL15: Multi-step Form Engine + console prequal queue ===== */
.kp-portal .kp-console-metrics-seven { grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 1280px) { .kp-portal .kp-console-metrics-seven { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .kp-portal .kp-console-metrics-seven { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.kp-portal .kp-fe-asbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; margin-bottom: 14px; }
.kp-portal .kp-fe-asbar span { font-size: var(--font-size-body) !important; font-weight: var(--font-weight-medium) !important; color: #23262E; }
.kp-portal .kp-fe-asbar a { font-size: var(--font-size-body) !important; font-weight: var(--font-weight-medium) !important; color: #0066CC; text-decoration: none; }
.kp-portal .kp-fe-asbar a:hover { text-decoration: underline; }

.kp-portal .kp-fe-stepper { display: flex; align-items: center; gap: 8px; margin: 4px 0 16px; flex-wrap: wrap; }
.kp-portal .kp-fe-step { display: flex; align-items: center; gap: 8px; }
.kp-portal .kp-fe-step-dot { width: 28px; height: 28px; border-radius: 50%; background: #E3EBF6; color: #29415E; display: inline-flex; align-items: center; justify-content: center; font-size: var(--font-size-nav) !important; font-weight: var(--font-weight-bold) !important; flex: 0 0 auto; }
.kp-portal .kp-fe-step.is-current .kp-fe-step-dot { background: var(--kp-navy, #0a1b40); color: #FFFFFF; }
.kp-portal .kp-fe-step.is-done .kp-fe-step-dot { background: #1B7F4B; color: #FFFFFF; }
.kp-portal .kp-fe-step-label { font-size: var(--font-size-nav) !important; font-weight: var(--font-weight-medium) !important; color: #5F6572; }
.kp-portal .kp-fe-step.is-current .kp-fe-step-label { color: #23262E; font-weight: var(--font-weight-bold) !important; }
.kp-portal .kp-fe-step-line { flex: 1 1 24px; min-width: 18px; height: 2px; background: #DFE2E9; }
.kp-portal .kp-fe-step-line.is-done { background: #1B7F4B; }

.kp-portal .kp-fe-form { padding: 22px 24px; }
.kp-portal .kp-fe-step-title { margin: 0 0 14px; }
.kp-portal .kp-fe-grid { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.kp-portal .kp-fe-field { flex: 1 1 100%; min-width: 0; }
.kp-portal .kp-fe-half { flex: 1 1 calc(50% - 9px); }
@media (max-width: 700px) { .kp-portal .kp-fe-half { flex-basis: 100%; } }
.kp-portal .kp-fe-label { display: block; margin-bottom: 5px; font-size: var(--font-size-body) !important; font-weight: var(--font-weight-bold) !important; color: #23262E; }
.kp-portal .kp-fe-req { color: #C4453A; }
.kp-portal .kp-fe-help { margin: -2px 0 6px; font-size: var(--font-size-nav) !important; font-weight: var(--font-weight-medium) !important; color: #6B7280; }
.kp-portal .kp-fe-field input[type="text"], .kp-portal .kp-fe-field input[type="email"], .kp-portal .kp-fe-field select, .kp-portal .kp-fe-field textarea { width: 100%; border: 1px solid #C9CFDA; border-radius: 8px; padding: 10px 12px; font-size: var(--font-size-body) !important; font-weight: var(--font-weight-medium) !important; font-family: inherit; color: #23262E; background: #FFFFFF; }
.kp-portal .kp-fe-field input:focus-visible, .kp-portal .kp-fe-field select:focus-visible, .kp-portal .kp-fe-field textarea:focus-visible { outline: 2px solid var(--kp-blue, #1667d9); outline-offset: 1px; }
.kp-portal .kp-fe-options { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.kp-portal .kp-fe-opt { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #C9CFDA; border-radius: 8px; padding: 8px 13px; font-size: var(--font-size-body) !important; font-weight: var(--font-weight-medium) !important; color: #23262E; cursor: pointer; background: #FFFFFF; }
.kp-portal .kp-fe-opt:hover { border-color: var(--kp-blue, #1667d9); }
.kp-portal .kp-fe-opt input { accent-color: var(--kp-navy, #0a1b40); }
.kp-portal .kp-fe-accept { display: flex; align-items: flex-start; gap: 10px; font-size: var(--font-size-body) !important; font-weight: var(--font-weight-medium) !important; color: #23262E; cursor: pointer; padding: 12px 14px; border: 1px solid #DFE2E9; border-radius: 8px; background: #F8F9FB; }
.kp-portal .kp-fe-accept input { margin-top: 3px; accent-color: var(--kp-navy, #0a1b40); }
.kp-portal .kp-fe-legal { border: 1px solid #DFE2E9; border-radius: 8px; background: #F8F9FB; padding: 14px 16px; max-height: 210px; overflow-y: auto; }
.kp-portal .kp-fe-legal p { font-size: var(--font-size-body) !important; color: #3B3F49; margin: 0 0 8px; }
.kp-portal .kp-fe-error { margin: 6px 0 0; font-size: var(--font-size-nav) !important; font-weight: var(--font-weight-bold) !important; color: #C4453A; }
.kp-portal .kp-fe-error-form { border: 1px solid #C4453A; background: #FCF1F0; border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; }
.kp-portal .kp-fe-has-error input, .kp-portal .kp-fe-has-error select, .kp-portal .kp-fe-has-error textarea { border-color: #C4453A; }
.kp-portal .kp-fe-file-current { margin: 0 0 6px; font-size: var(--font-size-body) !important; font-weight: var(--font-weight-medium) !important; color: #1B7F4B; }
.kp-portal .kp-fe-file-current span { color: #6B7280; font-size: var(--font-size-nav) !important; }
.kp-portal .kp-fe-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #EBEDF2; }
.kp-portal .kp-fe-nav-right { display: flex; align-items: center; gap: 10px; }
.kp-portal .kp-fe-thanks { text-align: center; padding: 48px 24px; }
.kp-portal .kp-fe-thanks h2 { margin: 12px 0 8px; }
.kp-portal .kp-fe-thanks .kp-button { margin-top: 16px; }

/* ===== WL15.1: verification action cards ===== */
.kp-portal .kp-fe-actioncard { border-left: 4px solid var(--kp-blue, #1667d9); margin-bottom: 16px; }
.kp-portal .kp-fe-actioncard-dash { margin-bottom: 16px; }
.kp-portal .kp-fe-actioncard p { font-size: var(--font-size-body) !important; color: #3B3F49; }

/* ===== WL15.3: verifications queue + 8-up metrics ===== */
.kp-portal .kp-console-metrics-eight { grid-template-columns: repeat(8, minmax(0, 1fr)); }
@media (max-width: 1400px) { .kp-portal .kp-console-metrics-eight { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .kp-portal .kp-console-metrics-eight { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== WL16: AI document pre-screen ===== */
.kp-portal .kp-badge.kp-ps-green { background: #1B7F4B 
!important; color: #FFFFFF !important; }
.kp-portal .kp-badge.kp-ps-amber { background: #B97D10 !important; color: #FFFFFF !important; }
.kp-portal .kp-badge.kp-ps-red { background: #C4453A !important; color: #FFFFFF !important; }
.kp-portal .kp-badge.kp-ps-pending { background: #6B7280 !important; color: #FFFFFF !important; }
.kp-portal .kp-ps-note { font-size: var(--font-size-nav) !important; font-weight: var(--font-weight-medium) !important; color: #6B7280; margin: -4px 0 10px; }

/* ===== WL17: upload-time document precheck feedback ===== */
.kp-portal .kp-fe-precheck { margin-top: 8px; padding: 10px 13px; border-radius: 8px; font-size: var(--font-size-body) !important; font-weight: var(--font-weight-medium) !important; border: 1px solid #DFE2E9; }
.kp-portal .kp-fe-precheck.is-checking { background: #F4F7FB; color: #3B3F49; }
.kp-portal .kp-fe-precheck.is-checking::before { content: "⏳ "; }
.kp-portal .kp-fe-precheck.is-ok { background: #F0F8F3; border-color: #BFE3CD; color: #14603A; }
.kp-portal .kp-fe-precheck.is-ok::before { content: "✓ "; font-weight: 700; }
.kp-portal .kp-fe-precheck.is-warn { background: #FDF6EA; border-color: #EBD3A5; color: #7A5308; }
.kp-portal .kp-fe-precheck.is-warn::before { content: "⚠ "; }
.kp-portal .kp-fe-precheck.is-problem { background: #FCF1F0; border-color: #EFC2BD; color: #8F2F27; }
.kp-portal .kp-fe-precheck.is-problem::before { content: "✗ "; font-weight: 700; }

/* ===== WL17.1: submission view/edit + review doc list ===== */
.kp-portal .kp-fe-subrow { border-bottom: 1px solid #EEF0F4; }
.kp-portal .kp-fe-subrow summary { list-style: none; cursor: pointer; }
.kp-portal .kp-fe-subrow summary::-webkit-details-marker { display: none; }
.kp-portal .kp-fe-subrow-toggle { font-size: var(--font-size-nav) !important; font-weight: var(--font-weight-medium) !important; color: #0066CC; }
.kp-portal .kp-fe-subrow[open] .kp-fe-subrow-toggle { color: #5F6572; }
.kp-portal .kp-fe-subrow-body { padding: 4px 14px 16px; background: #FAFBFC; border-radius: 0 0 8px 8px; }
.kp-portal .kp-fe-subrow-actions { margin: 12px 0 0; }
.kp-portal .kp-fe-doclist { font-size: var(--font-size-body) !important; color: #3B3F49; }
.kp-portal .kp-fe-editbar { border-left: 4px solid #B97D10; }

/* ============ WL19 — native e-sign ceremony ============ */
.kp-esign { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
.kp-esign-doc-card { min-width: 0; }
.kp-esign-doc {
    max-height: 560px; overflow-y: auto; padding: 18px 20px;
    border: 1px solid var(--kp-border, #e3e8f2); border-radius: 10px;
    background: #fbfcfe; font-size: 13.5px; line-height: 1.65;
}
.kp-esign-doc h2 { font-size: 14px; margin: 16px 0 6px; }
.kp-esign-doc p { margin: 0 0 10px; }
.kp-esign-sign-card { position: sticky; top: 16px; }
.kp-esign-field { display: block; margin: 14px 0; }
.kp-esign-label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.kp-esign-field input[type="text"] {
    width: 100%; padding: 10px 12px; border: 1px solid var(--kp-border, #d5dcea);
    border-radius: 8px; font-size: 14px; box-sizing: border-box;
}
.kp-esign-fielderr { color: #b42318; font-size: 12px; display: block; margin-top: 4px; }
.kp-esign-preview {
    border: 1px dashed var(--kp-border, #c9d2e4); border-radius: 10px;
    padding: 12px 16px; margin: 12px 0; background: #fff;
}
.kp-esign-preview-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #8a94ab; margin-bottom: 4px; }
.kp-esign-preview-name { font-size: 26px; font-style: italic; font-family: Georgia, 'Times New Roman', serif; color: #17233f; }
.kp-esign-draw { margin: 12px 0; }
.kp-esign-draw-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.kp-esign-clear { background: none; border: 0; color: var(--kp-blue, #0e1f4b); font-size: 12px; cursor: pointer; text-decoration: underline; }
#kpEsignPad {
    width: 100%; height: 120px; border: 1px solid var(--kp-border, #d5dcea);
    border-radius: 10px; background: #fff; touch-action: none; display: block;
}
.kp-esign-check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 13px; line-height: 1.5; cursor: pointer; }
.kp-esign-check input { margin-top: 3px; }
.kp-esign-check.is-error span { color: #b42318; }
.kp-esign-submit { width: 100%; margin-top: 6px; }
.kp-esign-fine { font-size: 11.5px; color: #8a94ab; margin-top: 10px; line-height: 1.5; }
.kp-esign-error { background: #fdecea; border: 1px solid #f5c6c0; color: #b42318; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin: 10px 0; }
.kp-esign-done { text-align: center; padding: 44px 28px; }
.kp-esign-done-mark {
    width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    background: #e8f7ef; color: #1a7f4b; font-size: 26px; font-weight: 700;
}
.kp-esign-done-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.kp-esign-list .kp-doc-row { margin-top: 10px; }
@media (max-width: 900px) {
    .kp-esign { grid-template-columns: 1fr; }
    .kp-esign-sign-card { position: static; }
}

/* WL19.2 — agreements card in record view */
.kp-esign-reqrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--kp-border, #e3e8f2); }
.kp-esign-reqform { display: inline; }

/* ============ WL20 — acquisitions pipeline ============ */
.kp-acq-stagebar { grid-template-columns: repeat(10, 1fr); }
.kp-acq-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
.kp-acq-list { display: grid; gap: 12px; }
.kp-acq-deal summary { display: flex; justify-content: space-between; gap: 14px; cursor: pointer; list-style: none; align-items: flex-start; }
.kp-acq-deal summary::-webkit-details-marker { display: none; }
.kp-acq-deal-main { display: grid; gap: 3px; min-width: 0; }
.kp-acq-deal-side { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.kp-acq-deal-body { border-top: 1px solid var(--kp-border, #e3e8f2); margin-top: 12px; padding-top: 12px; }
.kp-acq-verdict { font-weight: 600; font-size: 13.5px; margin: 0 0 8px; }
.kp-acq-verdict-green { color: #1a7f4b; }
.kp-acq-verdict-amber { color: #9a6a00; }
.kp-acq-verdict-red { color: #b42318; }
.kp-acq-reasons { margin: 0 0 10px; padding-left: 18px; font-size: 12.5px; line-height: 1.6; color: #4b586e; }
.kp-acq-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: #5b6880; margin-bottom: 10px; }
.kp-acq-facts b { color: #17233f; }
.kp-acq-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kp-acq-actions select { padding: 6px 8px; border: 1px solid var(--kp-border, #d5dcea); border-radius: 7px; font-size: 12.5px; }
.kp-acq-add { position: sticky; top: 16px; }
.kp-acq-form { display: grid; gap: 10px; margin-top: 8px; }
.kp-acq-form label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; }
.kp-acq-form input, .kp-acq-form select, .kp-acq-form textarea {
    padding: 8px 10px; border: 1px solid var(--kp-border, #d5dcea); border-radius: 8px; font-size: 13px; width: 100%; box-sizing: border-box; font-weight: 400;
}
.kp-acq-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
@media (max-width: 1020px) {
    .kp-acq-layout { grid-template-columns: 1fr; }
    .kp-acq-add { position: static; }
    .kp-acq-stagebar { grid-template-columns: repeat(4, 1fr); }
}

/* ============ WL21 — borrower vault ============ */
.kp-vault-meter-card { margin-bottom: 16px; }
.kp-vault-meter-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 10px; }
.kp-vault-pct { font-size: 34px; font-weight: 800; letter-spacing: -1px; color: #9a6a00; }
.kp-vault-pct.is-full { color: #1a7f4b; }
.kp-vault-bar { height: 8px; border-radius: 999px; background: #edf1f8; overflow: hidden; }
.kp-vault-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--kp-blue, #0e1f4b), #2e6bff); transition: width .4s ease; }
.kp-vault-cat { margin-bottom: 14px; }
.kp-vault-side { flex-wrap: wrap; justify-content: flex-end; }
.kp-vault-filelabel { position: relative; display: inline-block; cursor: pointer; }
.kp-vault-filelabel input[type="file"] { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.kp-vault-foot { margin: 4px 2px 0; }

/* ============ WL22 — lender links ============ */
.kp-lsend { border-top: 1px dashed var(--kp-border, #e3e8f2); margin-top: 12px; padding-top: 12px; }
.kp-lsend-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kp-lsend-form select, .kp-lsend-form input[type="email"] { padding: 7px 9px; border: 1px solid var(--kp-border, #d5dcea); border-radius: 7px; font-size: 12.5px; }
.kp-lsend-check { font-size: 12px; display: inline-flex; gap: 5px; align-items: center; }
.kp-lsend-links { display: grid; gap: 8px; margin-top: 10px; }
.kp-lsend-link { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid var(--kp-border, #e3e8f2); border-radius: 9px; background: #fbfcfe; align-items: center; }
.kp-lsend-link.is-dead { opacity: .55; }
.kp-lsend-link-main { display: grid; gap: 2px; min-width: 0; }
.kp-lsend-link-side { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.kp-lsend-url { width: 170px; font-size: 11px; padding: 6px 8px; border: 1px solid var(--kp-border, #d5dcea); border-radius: 6px; color: #5b6880; cursor: copy; }
.kp-lender-row { margin-bottom: 10px; }
/* public deal room */
.kp-lroom-wrap { max-width: 860px; margin: 40px auto; padding: 0 20px; }
.kp-lroom-head { margin-bottom: 18px; }
.kp-lroom-head h1 { font-size: 28px; letter-spacing: -.5px; margin: 4px 0; }
.kp-lroom-for { color: #5b6880; font-size: 13.5px; }
.kp-lroom-card { margin-bottom: 16px; }
.kp-lroom-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; }
.kp-lroom-stats > div { display: grid; gap: 2px; }
.kp-lroom-stats span { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: #8a94ab; font-weight: 700; }
.kp-lroom-stats b { font-size: 19px; letter-spacing: -.3px; }
.kp-lroom-foot { margin-top: 12px; }

/* WL22.1 — deal edit + segments */
.kp-acq-edit { margin-top: 12px; border-top: 1px dashed var(--kp-border, #e3e8f2); padding-top: 10px; }
.kp-acq-edit-toggle { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--kp-blue, #0e1f4b); list-style: none; }
.kp-acq-edit-toggle::-webkit-details-marker { display: none; }
.kp-acq-edit-toggle::before { content: '✎ '; }
.kp-acq-editform { margin-top: 10px; max-width: 640px; }

/* ============ WL23 — photos + scope of work ============ */
.kp-acq-photos-toggle::before { content: '📷 '; }
.kp-acq-sow-toggle::before { content: '🔨 '; }
.kp-acq-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 10px 0; }
.kp-acq-thumb { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--kp-border, #e3e8f2); aspect-ratio: 4/3; }
.kp-acq-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kp-acq-thumb-del { position: absolute; top: 4px; right: 4px; }
.kp-acq-thumb-del button { width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(10, 15, 30, .65); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; }
.kp-acq-photoform { margin-top: 8px; display: flex; gap: 8px; align-items: center; }
.kp-sow-summary { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 12.5px; color: #5b6880; margin: 10px 0; }
.kp-sow-summary b { color: #17233f; }
.kp-sow-over { color: #b42318 !important; }
.kp-sow-under { color: #1a7f4b !important; }
.kp-sow-list { display: grid; gap: 6px; margin-bottom: 10px; }
.kp-sow-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--kp-border, #e3e8f2); border-radius: 8px; background: #fbfcfe; flex-wrap: wrap; }
.kp-sow-row.kp-sow-complete { opacity: .65; }
.kp-sow-row.kp-sow-complete .kp-sow-main strong { text-decoration: line-through; }
.kp-sow-main { display: grid; gap: 2px; min-width: 180px; }
.kp-sow-fields { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.kp-sow-fields select, .kp-sow-fields input { padding: 6px 8px; border: 1px solid var(--kp-border, #d5dcea); border-radius: 6px; font-size: 12px; }
.kp-sow-fields input[name="contractor"] { width: 110px; }
.kp-sow-fields input[name="awarded_cost"], .kp-sow-fields input[name="actual_cost"] { width: 84px; }
.kp-sow-del { border: 0; background: none; color: #b42318; font-size: 16px; cursor: pointer; padding: 2px 6px; }
.kp-sow-addform { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.kp-sow-addform input[name="item"] { flex: 1; min-width: 180px; }
.kp-sow-addform input, .kp-sow-addform select { padding: 7px 9px; border: 1px solid var(--kp-border, #d5dcea); border-radius: 7px; font-size: 12.5px; }
.kp-sow-addform input[name="est_cost"] { width: 84px; }
.kp-sow-addform input[name="est_days"] { width: 70px; }
/* deal room gallery */
.kp-lroom-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kp-lroom-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 9px; border: 1px solid var(--kp-border, #e3e8f2); }

/* ============ WL24 — bids, work files ============ */
.kp-sow-bid { display: block; font-size: 11.5px; color: #4b586e; background: #eef3fb; border: 1px solid #d8e2f3; border-radius: 6px; padding: 3px 8px; margin-top: 4px; }
.kp-sow-bid b { color: #0e1f4b; }
.kp-sow-award { border: 0; background: #0e1f4b; color: #fff; border-radius: 5px; padding: 2px 9px; font-size: 11px; cursor: pointer; margin-left: 6px; }
.kp-sow-bid em { color: #1a7f4b; font-style: normal; font-weight: 700; margin-left: 6px; }
.kp-acq-work-toggle::before { content: '🧾 '; }
.kp-worklist { display: grid; gap: 6px; margin: 10px 0; }
.kp-workrow { display: flex; gap: 10px; align-items: center; font-size: 12.5px; flex-wrap: wrap; }
.kp-workrow a { color: var(--kp-blue, #0e1f4b); font-weight: 600; text-decoration: none; }
.kp-work-kind { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; padding: 2px 7px; border-radius: 999px; }
.kp-work-invoice { background: #fff4e0; color: #9a6a00; }
.kp-work-photo { background: #e8f2ff; color: #1e4fd6; }
.kp-work-other { background: #eef1f6; color: #5b6880; }
/* contractor room */
.kp-broom-bidrow, .kp-broom-workrow { flex-wrap: wrap; }
.kp-broom-bidfields { display: flex; gap: 6px; flex-wrap: wrap; }
.kp-broom-bidfields input { padding: 7px 9px; border: 1px solid var(--kp-border, #d5dcea); border-radius: 7px; font-size: 12.5px; }
.kp-broom-bidfields input[name^="bid["] { width: 110px; }
.kp-broom-bidfields input[name^="bid_days"] { width: 70px; }
.kp-broom-bidfields input[name^="bid_note"] { width: 160px; }
.kp-broom-submit { margin-top: 14px; }
.kp-broom-upform { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.kp-broom-upform select, .kp-broom-upform input[type="file"] { font-size: 12px; }

/* WL24.1 — bench edit */
.kp-bench-edit { width: 100%; order: 10; }

/* WL25 — plan banner */
.kp-plan-banner { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; border-left: 4px solid #2e6bff; }
.kp-plan-banner-text { display: grid; gap: 2px; }
.kp-plan-banner-text span { font-size: 12.5px; color: #5b6880; }
.kp-plan-upgrade { border-left: 4px solid #2e6bff; }

/* WL25.1 — bench activity + docs */
.kp-bench-activity { width: 100%; order: 9; border-top: 1px dashed var(--kp-border, #e3e8f2); margin-top: 10px; padding-top: 8px; display: grid; gap: 6px; }
.kp-bench-activity-title { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: #8a94ab; font-weight: 700; }
.kp-bench-actrow { display: grid; gap: 1px; font-size: 12.5px; }
.kp-bench-actrow a { color: var(--kp-blue, #0e1f4b); text-decoration: none; }
.kp-bench-docs-toggle::before { content: '📁 '; }

/* WL25.2 — bench jump links + target highlight */
.kp-bench-jump { color: var(--kp-blue, #0e1f4b); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; }
.kp-lender-row:target { border-color: #2e6bff; box-shadow: 0 0 0 3px rgba(46, 107, 255, .18); animation: kpBenchFlash 1.6s ease; }
@keyframes kpBenchFlash { 0% { background: #eef3ff; } 100% { background: #fff; } }

/* WL25.4 — bench full cards */
.kp-bench-card { padding: 0; overflow: hidden; }
.kp-bench-summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; list-style: none; }
.kp-bench-summary::-webkit-details-marker { display: none; }
.kp-bench-card[open] .kp-bench-summary { border-bottom: 1px solid var(--kp-border, #e3e8f2); background: #fbfcfe; }
.kp-bench-who { display: grid; gap: 3px; min-width: 0; }
.kp-bench-who strong { font-size: 15px; }
.kp-bench-side { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.kp-bench-chev { color: #8a94ab; transition: transform .2s ease; }
.kp-bench-card[open] .kp-bench-chev { transform: rotate(180deg); }
.kp-bench-body { padding: 18px 20px; }
.kp-bench-cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: start; }
.kp-bench-col { display: grid; gap: 18px; }
.kp-bench-section h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: #8a94ab; margin: 0 0 8px; }
.kp-bench-kv { display: grid; gap: 6px; }
.kp-bench-kv span { display: grid; grid-template-columns: 70px 1fr; gap: 10px; font-size: 12.5px; color: #8a94ab; }
.kp-bench-kv b { color: #17233f; font-weight: 500; word-break: break-word; }
.kp-bench-kv a { color: var(--kp-blue, #0e1f4b); }
.kp-bench-upform { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.kp-bench-upform select, .kp-bench-upform input[type="text"] { padding: 7px 9px; border: 1px solid var(--kp-border, #d5dcea); border-radius: 7px; font-size: 12px; }
.kp-bench-upform input[type="file"] { font-size: 12px; }
.kp-bench-card:target { border-color: #2e6bff; box-shadow: 0 0 0 3px rgba(46, 107, 255, .18); }
@media (max-width: 900px) { .kp-bench-cols { grid-template-columns: 1fr; } }

/* wl25.5 — attachment viewer modal */
.kp-viewer { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center; justify-content: center; padding: 22px; }
.kp-viewer[hidden] { display: none; }
.kp-viewer-backdrop { position: absolute; inset: 0; background: rgba(9, 14, 26, .72); backdrop-filter: blur(3px); }
.kp-viewer-panel { position: relative; display: flex; flex-direction: column; overflow: hidden; width: min(980px, 96vw); height: min(86vh, 920px); background: #fff; border-radius: 14px; box-shadow: 0 24px 70px rgba(9, 14, 26, .45); }
.kp-viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--kp-border, #d5dcea); }
.kp-viewer-title { font-weight: 600; font-size: 13.5px; color: #17233c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kp-viewer-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.kp-viewer-open { font-size: 12.5px; font-weight: 600; color: #2e6bff; text-decoration: none; }
.kp-viewer-open:hover { text-decoration: underline; }
.kp-viewer-x { border: 0; background: transparent; font-size: 24px; line-height: 1; cursor: pointer; color: #5a6478; padding: 0 4px; }
.kp-viewer-x:hover { color: #17233c; }
.kp-viewer-body { flex: 1; display: flex; align-items: center; justify-content: center; overflow: auto; background: #10182b; }
.kp-viewer-body img { max-width: 100%; max-height: 100%; object-fit: contain; }
.kp-viewer-body iframe { width: 100%; height: 100%; border: 0; background: #fff; }
body.kp-viewer-lock { overflow: hidden; }
@media (max-width: 700px) { .kp-viewer { padding: 8px; } .kp-viewer-panel { width: 100vw; height: 92vh; border-radius: 10px; } }

/* wl26 — copilot */
.kp-cop-fab { position: fixed; right: 22px; bottom: 22px; z-index: 1100; display: flex; align-items: center; gap: 8px; padding: 11px 18px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #2e6bff, #7a3bff); color: #fff; font-weight: 700; font-size: 13.5px; cursor: pointer; box-shadow: 0 10px 28px rgba(46, 107, 255, .4); }
.kp-cop-fab:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(46, 107, 255, .5); }
.kp-cop-fab svg { width: 18px; height: 18px; fill: #fff; }
.kp-cop-panel { position: fixed; right: 22px; bottom: 78px; z-index: 1150; display: flex; flex-direction: column; width: min(400px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); background: #fff; border: 1px solid var(--kp-border, #d5dcea); border-radius: 16px; box-shadow: 0 24px 60px rgba(9, 14, 26, .3); overflow: hidden; }
.kp-cop-panel[hidden] { display: none; }
.kp-cop-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--kp-border, #d5dcea); background: #f6f8fd; }
.kp-cop-head strong { font-size: 14px; color: #17233c; }
.kp-cop-remaining { margin-left: auto; font-size: 11.5px; color: #5a6478; }
.kp-cop-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #fbfcff; }
.kp-cop-msg { max-width: 88%; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.kp-cop-ai { align-self: flex-start; background: #eef2fb; color: #17233c; border-bottom-left-radius: 4px; }
.kp-cop-user { align-self: flex-end; background: #2e6bff; color: #fff; border-bottom-right-radius: 4px; }
.kp-cop-pending { opacity: .55; animation: kp-cop-pulse 1.2s ease-in-out infinite; }
@keyframes kp-cop-pulse { 50% { opacity: .25; } }
.kp-cop-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--kp-border, #d5dcea); }
.kp-cop-form textarea { flex: 1; resize: none; border: 1px solid var(--kp-border, #d5dcea); border-radius: 10px; padding: 8px 10px; font-size: 13px; font-family: inherit; }
.kp-cop-attach { cursor: pointer; font-size: 17px; line-height: 1; position: relative; display: flex; flex-direction: column; align-items: center; }
.kp-cop-attach input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.kp-cop-filename { font-size: 9px; max-width: 54px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #2e6bff; font-style: normal; }
.kp-cop-disclaimer { margin: 0; padding: 6px 14px 10px; font-size: 10.5px; color: #8a93a6; text-align: center; }
@media (max-width: 700px) { .kp-cop-panel { right: 8px; bottom: 70px; } .kp-cop-fab { right: 14px; bottom: 14px; } }

/* wl27 — outbox + form fill */
.kp-out-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; margin-bottom: 18px; }
@media (max-width: 1000px) { .kp-out-layout { grid-template-columns: 1fr; } }
.kp-out-attach { border: 1px solid var(--kp-border, #d5dcea); border-radius: 10px; padding: 8px 12px; margin: 6px 0; }
.kp-out-attach summary { cursor: pointer; font-weight: 600; font-size: 13px; }
.kp-out-attach-list { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; max-height: 220px; overflow-y: auto; }
.kp-out-attach-list strong { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #5a6478; margin-top: 6px; }
.kp-out-attach-item { display: flex; gap: 7px; align-items: center; font-size: 12.5px; }
.kp-ff-table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.kp-ff-table td { padding: 6px 8px; border-bottom: 1px solid #edf1f8; }
.kp-ff-name { width: 38%; font-weight: 600; font-size: 12.5px; color: #17233c; }
.kp-ff-table input[type="text"] { width: 100%; padding: 7px 9px; border: 1px solid var(--kp-border, #d5dcea); border-radius: 7px; font-size: 12.5px; }
.kp-ff-actions { display: flex; gap: 10px; align-items: center; margin-top: 4px; }

/* wl28 — documents tab + sent-mail viewer */
.kp-doc-grp { margin: 14px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #5a6478; }
.kp-maillist { display: flex; flex-direction: column; gap: 8px; }
.kp-mailrow { border: 1px solid var(--kp-border, #d5dcea); border-radius: 10px; background: #fff; }
.kp-mailrow > summary { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; list-style: none; }
.kp-mailrow > summary::-webkit-details-marker { display: none; }
.kp-mail-sub { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.kp-mailrow[open] > summary { border-bottom: 1px solid #edf1f8; }
.kp-mailrow[open] .kp-bench-chev { transform: rotate(180deg); }
.kp-mail-body { padding: 12px 16px 14px; }
.kp-mail-text { font-size: 13px; line-height: 1.55; color: #17233c; background: #fbfcff; border: 1px solid #edf1f8; border-radius: 8px; padding: 12px 14px; margin: 8px 0; white-space: normal; }

/* wl28.1 — email action on document rows + inline fill form */
.kp-doc-email { margin-left: auto; flex: none; font-size: 12px; font-weight: 600; color: #2e6bff; text-decoration: none; white-space: nowrap; }
.kp-doc-email:hover { text-decoration: underline; }
.kp-ff-inline .kp-acq-form-row { align-items: flex-end; }
