.sp-profile-layout {
    min-width: 0;
    margin-bottom: 32px;
}

.sp-profile-actions { grid-column: 2; margin-top: 24px; }
.pwa-dashboard-screen--standalone .sp-profile-actions { grid-column: 1; }
body .sp-invite-button {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid #00b894;
    border-radius: 8px;
    background: #00b894;
    color: #fff;
    font: 700 18px/1.3 'Open Sans', system-ui, sans-serif;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
body .sp-invite-button:hover { background: #00a985; color: #fff; text-decoration: none; }
.sp-invite-button:focus-visible, .sp-invite-property:focus-visible { outline: 2px solid #349fb7; outline-offset: 3px; }
.sp-invite-sheet .modal-header { display: flex; align-items: center; gap: 12px; }
.sp-invite-sheet .modal-header h2 { flex: 1; min-width: 0; }
body.pwa-shell .sp-invite-sheet .modal-header h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-invite-sheet .modal-header button { border: 0; background: transparent; color: inherit; }
.sp-invite-sheet .modal-header svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sp-invite-properties { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.sp-invite-properties form { margin: 0; }
.sp-invite-property { display: block; box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px; border: 1px solid #d9e7ea; border-radius: 8px; background: #eef7f8; color: #075161; font: 400 16px/1.6 'Open Sans', system-ui, sans-serif; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.sp-invite-property--sent { color: #4f747e; cursor: default; }

@media (max-width: 1023px) {
    .sp-profile-actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: var(--pwa-main-navigation-height, 62px);
        z-index: 45;
        margin: 0;
        padding: 10px max(32px, calc((100vw - 540px) / 2));
        border-block: 2px solid #ffd259;
        background: linear-gradient(rgba(7,81,97,.68), rgba(7,81,97,.68)), #b3e6d7;
        backdrop-filter: blur(6px);
        box-sizing: border-box;
    }
    .sp-profile-actions--standalone { bottom: 0; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
    body.pwa-shell.pwa-profile-page .pwa-dashboard-screen:has(.sp-profile-actions) { padding-bottom: calc(var(--pwa-bottom-navigation-clearance, 140px) + 24px); }
}

.sp-profile {
    min-width: 0;
    container: seeker-profile / inline-size;
    font: 400 16px/1.6 'Open Sans', system-ui, sans-serif;
}

.sp-profile :is(.uk-text-meta, .uk-text-small, .uk-label) { font-size: 16px; line-height: 1.6; }

.sp-profile .sp-profile__card {
    margin: 0;
    padding: 24px;
    border-radius: 8px;
}

.sp-profile__intro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.sp-profile__intro > .uk-text-center {
    flex: 0 1 180px;
}

.sp-profile__intro .house-user-pic {
    float: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin: 0;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}

.sp-profile__intro .sp-profile__summary {
    container: seeker-summary / inline-size;
    flex: 1 1 300px;
    min-width: 0;
    padding: 0;
}

.sp-profile__summary > :is(h3, .sp-profile__name) {
    margin-top: 0;
    text-align: left;
}

.sp-profile__summary > .sp-profile__name { margin: 0 0 10px; color: #075161; font: 400 26px/1.4 'Merriweather', Georgia, serif; }

.sp-profile__summary > .uk-margin-medium-top {
    margin-top: 20px;
}

.sp-profile__summary .uk-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    box-shadow: none;
}

.sp-profile__summary .uk-card > div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 4px 8px;
    min-width: 0;
    width: auto;
    text-align: center;
}

@container seeker-summary (min-width: 480px) {
    .sp-profile__summary .uk-card {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sp-profile__summary .uk-card > div {
        display: block;
    }
}

/* Keep the entire introduction symmetric until all three facts fit beside the photo. */
@container seeker-profile (max-width: 740px) {
    .sp-profile__intro {
        flex-direction: column;
        gap: 20px;
    }

    .sp-profile__intro > .uk-text-center {
        flex: none;
        width: 180px;
        max-width: 100%;
    }

    .sp-profile__intro .sp-profile__summary {
        flex: none;
        width: 100%;
    }

    .sp-profile__summary > :is(h3, .sp-profile__name) {
        text-align: center;
    }
}

.sp-trust {
    container: seeker-trust / inline-size;
    margin: 24px 0;
    padding: 28px;
    border: 1px solid #acd3db;
    border-radius: 12px;
    color: #075161;
    background: linear-gradient(145deg, #f4fbfc 0%, #edf7f8 100%);
    box-shadow: 0 16px 36px rgba(7, 81, 97, 0.08);
}

.sp-trust__header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.sp-trust__header > span:last-child {
    min-width: 0;
}

.sp-trust__mark {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    color: #00a986;
    background: #d9f6ed;
}

.sp-trust__mark svg,
.sp-achievement__icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sp-trust__header small,
.sp-achievement__copy > small,
.sp-screening__header small,
.sp-screening__metric small {
    display: block;
    color: #7199a3;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sp-trust__header h2 {
    margin: 2px 0 4px;
    color: #075161;
    font-family: "Merriweather", serif;
    font-size: 25px;
    font-weight: 400;
}

.sp-trust__header p {
    max-width: 720px;
    margin: 0;
    color: #547d87;
    font-size: 16px;
}

.sp-achievement,
.sp-screening {
    border: 1px solid #c2dfe4;
    border-radius: 8px;
    background: #fff;
}

.sp-achievement {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 72px 22px 22px;
}

.sp-achievement__icon {
    display: grid;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 9px;
    color: #00a3b9;
    background: #dff3f7;
}

.sp-achievement__copy strong {
    display: block;
    margin: 2px 0 7px;
    color: #075161;
    font-family: "Merriweather", serif;
    font-size: 21px;
    font-weight: 400;
}

.sp-achievement__breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.sp-achievement__breakdown b {
    padding: 4px 9px;
    border-radius: 999px;
    color: #08778b;
    background: #e5f6f8;
    font-size: 16px;
    font-weight: 600;
}

.sp-achievement__copy em {
    display: block;
    margin-top: 9px;
    color: #7199a3;
    font-size: 16px;
    font-style: normal;
}

.sp-achievement__seal {
    position: absolute;
    top: 50%;
    right: 24px;
    display: grid;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #00b78e;
}

.sp-screening {
    margin-top: 16px;
    overflow: hidden;
}

.sp-screening__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #c2dfe4;
}

.sp-screening__header > span {
    flex: 1 1 220px;
    min-width: 0;
}

.sp-screening__header h3 {
    margin: 2px 0 0;
    color: #075161;
    font-family: "Merriweather", serif;
    font-size: 20px;
    font-weight: 400;
}

.sp-screening__badge {
    flex: 0 0 auto;
    padding: 5px 12px;
    border: 1px solid #94bdc6;
    border-radius: 999px;
    color: #547d87;
    font-size: 16px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sp-screening__badge.is-passed {
    border-color: #c3eadf;
    color: #08735e;
    background: #e7f7f0;
}

.sp-screening__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
}

.sp-screening__metric {
    min-width: 0;
    padding: 16px;
    border: 1px solid #dcebed;
    border-radius: 8px;
    background: #f5fafb;
}

.sp-screening__metric > small {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-transform: none;
}

.sp-screening__result {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    margin-top: 9px;
}

.sp-screening__result strong {
    min-width: 0;
    color: #547d87;
    font-size: 18px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.sp-screening__result > i {
    flex: 0 0 auto;
    color: #7199a3;
}

.sp-screening__metric.is-passed .sp-screening__result strong,
.sp-screening__metric.is-passed .sp-screening__result > i {
    color: #00b78e;
}

.sp-screening__metric.is-failed .sp-screening__result strong,
.sp-screening__metric.is-failed .sp-screening__result > i {
    color: #d78b2d;
}

.sp-screening__privacy {
    margin: 0;
    padding: 12px 20px;
    border-top: 1px solid #dcebed;
    color: #7199a3;
    font-size: 16px;
}

.sp-trust__owner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 16px;
    padding: 17px 20px;
    border-radius: 8px;
    color: #075161;
    background: #e4f4f6;
}

.sp-trust__owner > span {
    flex: 1 1 260px;
    min-width: 0;
}

.sp-trust__owner strong,
.sp-trust__owner small {
    display: block;
}

.sp-trust__owner small {
    margin-top: 3px;
    color: #547d87;
}

.sp-trust__owner a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 48px;
    max-width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    color: #075161;
    background: #00cfaf;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.sp-trust__owner a:hover,
.sp-trust__owner a:focus {
    color: #075161;
    background: #00bea1;
    text-decoration: none;
}

.sp-trust__owner a:focus-visible {
    outline: 2px solid #075161;
    outline-offset: 3px;
}

/* Follow the card width, including when the dashboard sidebar is visible. */
@container seeker-trust (min-width: 700px) {
    .sp-screening__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@container seeker-trust (max-width: 380px) {
    .sp-screening__grid {
        grid-template-columns: minmax(0, 1fr);
        padding: 12px;
    }

    .sp-trust__owner a {
        width: 100%;
    }
}

@container (max-width: 560px) {
    .sp-profile .sp-profile__card {
        padding: 16px;
    }

    .sp-profile__intro {
        justify-content: center;
        gap: 16px;
    }

    .sp-trust {
        padding: 20px 16px;
    }
}

@media (max-width: 760px) {
    .sp-trust {
        padding: 20px 16px;
    }
}

@media (max-width: 440px) {
    .sp-trust__header {
        gap: 12px;
    }

    .sp-trust__mark {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .sp-trust__header h2 {
        font-size: 21px;
    }

    .sp-achievement {
        align-items: flex-start;
        padding: 18px;
    }

    .sp-achievement__icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .sp-achievement__seal {
        display: none;
    }

}

/* Handoff identity proportions; all existing trust/detail content follows unchanged. */
.sp-identity{margin-bottom:20px}
.sp-identity__head{display:grid;grid-template-columns:112px minmax(0,1fr);gap:34px;align-items:center;margin-bottom:12px;text-align:left}
.sp-identity__photo{display:block;width:112px;height:112px;border-radius:50%;overflow:hidden;background:#eef7f8;border:1px solid #d9e7ea}
.sp-identity__photo img{display:block;width:100%;height:100%;object-fit:cover}
.sp-profile .sp-identity__name{margin:0;color:#075161;font:400 22px/1.2 'Patua One',Georgia,serif;overflow-wrap:anywhere}
.sp-identity__facts{display:grid;gap:8px;padding:10px 12px;margin:0;border:1px solid #d9e7ea;border-radius:8px;background:#f6fafb}
.sp-identity__facts>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:10px}
.sp-identity__facts dt{display:flex;align-items:center;gap:8px;font:700 16px/1.4 'Open Sans',system-ui,sans-serif;color:#4f747e}
.sp-identity__facts dd{margin:0;text-align:right;font:700 18px/1.4 'Open Sans',system-ui,sans-serif;color:#075161;overflow-wrap:anywhere}
.sp-identity__facts svg{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:#075161;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(min-width:1024px){.sp-identity__head{grid-template-columns:200px minmax(0,1fr);gap:28px}.sp-identity__photo{width:200px;height:200px}.sp-profile .sp-identity__name{font-size:30px}.sp-identity__facts svg{width:20px;height:20px;flex-basis:20px}}
@media(max-width:359px){.sp-identity__head{gap:24px}.sp-identity__facts>div{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.sp-identity__facts dt{font-size:14px}}

/* Supplied seeker handoff: consistent section cards, outline glyphs and badges. */
.sp-identity__photo .house-user-pic{display:block;width:100%;height:100%;margin:0;border:0;border-radius:50%;background-size:cover;background-position:center}
.sp-info-card{margin-top:12px;padding:16px;border:1px solid #d9e7ea;border-radius:8px;background:#fff;color:#12333b}
.sp-info-help>summary{width:fit-content;color:#075161;font:700 18px/1.4 'Open Sans',system-ui,sans-serif;text-decoration:underline dotted;text-underline-offset:4px;cursor:pointer;list-style:none}.sp-info-help>summary::-webkit-details-marker{display:none}
.sp-info-help>p{font-size:16px;line-height:1.5;color:#4f747e;margin:10px 0}
.sp-info-section{padding:12px 0;border-top:1px solid #d9e7ea}.sp-info-help+.sp-info-section{border-top:0;padding-top:6px}
.sp-info-section h3{display:flex;align-items:center;gap:8px;margin:0 0 6px;font:700 16px/1.4 'Open Sans',system-ui,sans-serif;color:#075161}
.sp-info-section h3 svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sp-info-section p{margin:0;font-size:18px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-line}
.sp-verification-badges{display:flex;flex-wrap:wrap;gap:8px}.sp-verification-badge{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border:1px solid #cbd9db;border-radius:999px;background:#f2f6f7;color:#667f7f;font:700 14px/1.3 'Open Sans',system-ui,sans-serif}
.sp-verification-badge svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.sp-verification-badge:not(.is-on) svg{display:none}.sp-verification-badge.is-on{color:#00875f;border-color:#00d9ae;background:#eafaf5}
.sp-preference{display:inline-block;margin:3px 4px 3px 0;padding:4px 10px;border-radius:999px;background:#e0f7f1;color:#00875f;font-size:14px;font-weight:700}

.sp-achievement__seal svg,.sp-screening__result svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.sp-identity__facts>div:nth-child(1) svg{stroke:#287fa0}.sp-identity__facts>div:nth-child(2) svg{stroke:#b8870b}.sp-identity__facts>div:nth-child(3) svg,.sp-identity__facts>div:nth-child(4) svg{stroke:#187c92}.sp-identity__facts>div:nth-child(5) svg{stroke:#7c61a8}
.sp-info-card .sp-info-section:nth-of-type(1) h3 svg{color:#187c92}.sp-info-card .sp-info-section:nth-of-type(2) h3 svg{color:#b8870b}.sp-info-card .sp-info-section:nth-of-type(3) h3 svg{color:#7c61a8}.sp-info-card .sp-info-section:nth-of-type(4) h3 svg{color:#287fa0}
