: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}
