.pspace-screen {
    width: 100%;
    min-height: calc(100svh - 240px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px 72px;
}

.pspace-screen-form {
    align-items: flex-start;
}

.pspace-card,
.pspace-form-wrapper {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 32px;
    border: 1px solid #dfe4ea;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.pspace-card {
    text-align: center;
}

.pspace-card-login h3,
.pspace-card-login h4 {
    margin-top: 0;
    color: #111827;
}

.pspace-card-login h3 {
    margin-bottom: 14px;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    line-height: 1.1;
}

.pspace-card-login h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.pspace-card-login p {
    margin: 0 0 18px;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.7;
}

.pspace-form {
    display: grid;
    gap: 16px;
}

.pspace-field {
    margin: 0;
}

.pspace-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.pspace-field input,
.pspace-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c9c9c9;
    border-radius: 8px;
    background: #fff;
}

.pspace-field small {
    display: block;
    margin-top: 6px;
    color: #666;
}

.pspace-actions {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.pspace-button,
.pspace-inline-link {
    display: inline-block;
    padding: 14px 22px;
    border-radius: 999px;
    background: #1f5eff;
    color: #ffffff !important;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-shadow: 0 12px 28px rgba(31, 94, 255, 0.22);
}

.pspace-button:hover,
.pspace-button:focus,
.pspace-inline-link:hover,
.pspace-inline-link:focus {
    color: #ffffff !important;
    background: #164ee0;
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(31, 94, 255, 0.26);
}

.pspace-button-secondary {
    background: #1b1b1b;
    box-shadow: 0 12px 28px rgba(27, 27, 27, 0.18);
}

.pspace-button-secondary:hover,
.pspace-button-secondary:focus {
    background: #000000;
}

.pspace-button-ghost {
    background: #ffffff;
    color: #1f5eff !important;
    border: 1px solid rgba(31, 94, 255, 0.18);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.pspace-button-ghost:hover,
.pspace-button-ghost:focus {
    background: #eef4ff;
    color: #164ee0 !important;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.1);
}

.pspace-divider {
    height: 1px;
    margin: 28px 0;
    background: #e6e6e6;
}

.pspace-notice {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
}

.pspace-notice.success {
    background: #e8f6ed;
    color: #1c5d2b;
}

.pspace-notice.warning {
    background: #fff5df;
    color: #7a5200;
}

.pspace-thumb {
    display: block;
    margin-top: 12px;
}

.pspace-thumb img {
    max-width: 180px;
    height: auto;
    border-radius: 10px;
}

.pspace-form-help {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
}

.partner-type-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(120, 86, 255, 0.35);
    background: rgba(120, 86, 255, 0.12);
    color: #6f4cff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

.pspace-type-filter {
    display: grid;
    gap: 12px;
    width: min(100%, 680px);
    margin: 0 auto;
    justify-items: center;
    text-align: center;
    padding: 18px 20px 10px;
}

.pspace-type-filter label {
    color: #4f46e5;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pspace-type-filter-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.pspace-type-filter select {
    width: min(100%, 460px);
    min-width: 280px;
    padding: 14px 52px 14px 18px;
    border: 1px solid rgba(112, 92, 255, 0.22);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 244, 255, 0.98));
    color: #111827;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.2;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: 0 16px 36px rgba(79, 70, 229, 0.10);
    background-image:
        linear-gradient(45deg, transparent 50%, #6d5dfc 50%),
        linear-gradient(135deg, #6d5dfc 50%, transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 244, 255, 0.98));
    background-position:
        calc(100% - 24px) calc(50% - 3px),
        calc(100% - 18px) calc(50% - 3px),
        0 0;
    background-size:
        6px 6px,
        6px 6px,
        100% 100%;
    background-repeat: no-repeat;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pspace-type-filter select:hover,
.pspace-type-filter select:focus {
    border-color: rgba(79, 70, 229, 0.4);
    box-shadow: 0 20px 42px rgba(79, 70, 229, 0.14);
    outline: none;
    transform: translateY(-1px);
}

.single-ps_partner .entry-title,
.single-ps_partner .page-title,
.single-ps_partner .elementor-heading-title {
    display: none !important;
}

.pspace-profile {
    width: min(100%, 1120px);
    margin: 48px auto 72px;
    padding: 0 20px;
}

.pspace-profile-hero {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 36px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(31, 94, 255, 0.1), transparent 36%),
        linear-gradient(135deg, #ffffff 0%, #f7f9fd 100%);
    border: 1px solid #dfe7f5;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.1);
}

.pspace-profile-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e4e8ef;
}

.pspace-profile-logo-image {
    width: 100%;
    max-width: 180px;
    height: auto;
    object-fit: contain;
}

.pspace-profile-logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 124px;
    height: 124px;
    border-radius: 32px;
    background: linear-gradient(135deg, #1f5eff, #5f8cff);
    color: #ffffff;
    font-size: 3rem;
    font-weight: 700;
}

.pspace-profile-eyebrow,
.pspace-profile-panel-kicker {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #1f5eff;
}

.pspace-profile-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.02;
    color: #0f172a;
}

.pspace-profile-summary {
    max-width: 720px;
    margin: 16px 0 0;
    color: #4b5563;
    font-size: 1.08rem;
    line-height: 1.75;
}

.pspace-profile-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.pspace-profile-muted {
    color: #6b7280;
    font-size: 0.98rem;
}

.pspace-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.9fr);
    gap: 28px;
    margin-top: 32px;
}

.pspace-profile-panel {
    padding: 30px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 52px rgba(15, 23, 42, 0.06);
}

.pspace-profile-panel-head h2 {
    margin: 0;
    font-size: 1.45rem;
    color: #111827;
}

.pspace-profile-richtext {
    margin-top: 18px;
    color: #334155;
    line-height: 1.85;
}

.pspace-profile-richtext > :first-child {
    margin-top: 0;
}

.pspace-profile-richtext > :last-child {
    margin-bottom: 0;
}

.pspace-empty-copy,
.pspace-profile-value-empty {
    color: #6b7280;
}

.pspace-profile-list {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.pspace-profile-item {
    padding: 16px 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e6ecf3;
}

.pspace-profile-label {
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pspace-profile-value,
.pspace-profile-value a {
    color: #334155;
    text-decoration: none;
    line-height: 1.7;
}

.pspace-profile-value a:hover,
.pspace-profile-value a:focus {
    color: #1f5eff;
}

.pspace-profile-address {
    width: min(100%, 760px);
    margin: 28px auto 0;
    text-align: center;
}

.pspace-profile-address-copy {
    margin-top: 18px;
    color: #334155;
    line-height: 1.8;
    font-size: 1.02rem;
}

@media (max-width: 767px) {
    .pspace-screen {
        min-height: auto;
        padding: 32px 16px 48px;
    }

    .pspace-card,
    .pspace-form-wrapper {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .pspace-card-login p {
        font-size: 0.97rem;
        line-height: 1.6;
    }

    .pspace-button,
    .pspace-inline-link {
        width: 100%;
    }

    .pspace-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .pspace-type-filter-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .pspace-type-filter select {
        width: 100%;
        min-width: 100%;
    }

    .partner-type-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: fit-content;
        max-width: 100%;
        margin: 8px auto 12px;
        padding: 3px 7px;
        font-size: 9px;
        line-height: 1;
        text-align: center;
        white-space: nowrap;
        letter-spacing: 0.01em;
    }

    .pspace-profile {
        margin: 28px auto 48px;
        padding: 0 16px;
    }

    .pspace-profile-hero {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 24px 20px;
        text-align: center;
    }

    .pspace-profile-logo {
        min-height: 180px;
    }

    .pspace-profile-hero-actions {
        justify-content: center;
    }

    .pspace-profile-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }

    .pspace-profile-panel {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .pspace-profile-address {
        width: 100%;
        margin-top: 20px;
    }
}
