.ppx-public-body {
    margin: 0;
    background: #07111f;
}

.ppx-public-header {
    position: relative;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: #07111f;
}

.ppx-public-header-inner {
    display: flex;
    width: min(100%, 1380px);
    height: 64px;
    align-items: center;
    margin: 0 auto;
    padding: 0 20px;
}

.ppx-public-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    text-decoration: none;
}

.ppx-public-logo > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: #1768d7;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(23,104,215,.28);
}

.ppx-public-logo > strong {
    font-size: 14px;
}

.ppx-public-footer {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 24px 20px;
    background: #07111f;
    color: #94a3b8;
    text-align: center;
}

.ppx-public-footer span,
.ppx-public-footer small {
    display: block;
}

.ppx-public-footer span {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 800;
}

.ppx-public-footer small {
    margin-top: 5px;
    font-size: 11px;
}

.ppx-access-shell,
.ppx-client-shell,
.ppx-viewer-shell {
    min-height: calc(100vh - 64px);
}

.ppx-access-shell {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 48px 20px;
    background: #07111f;
    color: #fff;
}

.ppx-access-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 20%, rgba(45, 134, 245, .3), transparent 36%),
        linear-gradient(180deg, #07111f, #050b14);
}

.ppx-access-card {
    position: relative;
    z-index: 2;
    width: min(100%, 520px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 28px;
    padding: 32px;
    background: rgba(11, 24, 40, .88);
    box-shadow: 0 30px 90px rgba(0,0,0,.42);
    backdrop-filter: blur(18px);
}

.ppx-access-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ppx-brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 15px;
    background: #1768d7;
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(23,104,215,.34);
}

.ppx-access-brand strong,
.ppx-access-brand small {
    display: block;
}

.ppx-access-brand strong {
    font-size: 15px;
}

.ppx-access-brand small {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 11px;
}

.ppx-access-copy {
    margin-top: 42px;
}

.ppx-access-badge {
    display: inline-flex;
    border: 1px solid rgba(91,166,255,.24);
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(45,134,245,.1);
    color: #92c6ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ppx-access-copy h1 {
    margin: 18px 0 0;
    color: #fff;
    font-size: clamp(32px, 6vw, 48px);
    line-height: 1.03;
    letter-spacing: -.04em;
}

.ppx-access-copy p {
    margin: 15px 0 0;
    color: #94a3b8;
    line-height: 1.7;
}

.ppx-access-error {
    margin-top: 22px;
    border: 1px solid rgba(251,113,133,.2);
    border-radius: 12px;
    padding: 12px 14px;
    background: rgba(244,63,94,.1);
    color: #fecdd3;
    font-size: 13px;
}

.ppx-access-form {
    margin-top: 28px;
}

.ppx-access-form label > span {
    display: block;
    margin-bottom: 9px;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
}

.ppx-access-form input {
    width: 100%;
    height: 52px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 13px;
    padding: 0 15px;
    background: rgba(255,255,255,.045);
    color: #fff;
    font-size: 15px;
    outline: none;
}

.ppx-access-form input:focus {
    border-color: rgba(91,166,255,.65);
    box-shadow: 0 0 0 4px rgba(45,134,245,.1);
}

.ppx-access-form button {
    display: flex;
    width: 100%;
    height: 52px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 15px;
    border: 0;
    border-radius: 13px;
    background: #1768d7;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 16px 36px rgba(23,104,215,.28);
}

.ppx-access-form button:hover {
    background: #2d86f5;
}

.ppx-access-security {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    color: #64748b;
    font-size: 11px;
}

.ppx-client-shell {
    padding: 46px 20px 70px;
    background: #f8fafc;
}

.ppx-client-container {
    width: min(100%, 1380px);
    margin: 0 auto;
}

.ppx-client-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.ppx-client-heading span {
    color: #1768d7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.ppx-client-heading h1 {
    margin: 8px 0 0;
    color: #0f172a;
    font-size: clamp(32px, 5vw, 48px);
    letter-spacing: -.04em;
}

.ppx-client-heading p {
    margin: 10px 0 0;
    color: #64748b;
}

.ppx-client-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #dbe3ec;
    border-radius: 12px;
    padding: 11px 14px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.ppx-catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 34px;
}

.ppx-catalog-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(15,23,42,.06);
    transition: 180ms ease;
}

.ppx-catalog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(15,23,42,.1);
}

.ppx-catalog-cover {
    position: relative;
    min-height: 220px;
    padding: 28px;
    background:
        radial-gradient(circle at 78% 22%, rgba(91,166,255,.55), transparent 32%),
        linear-gradient(145deg, #07111f, #102747 55%, #1553ae);
    color: #fff;
}

.ppx-catalog-cover span,
.ppx-catalog-cover small {
    display: block;
}

.ppx-catalog-cover span {
    color: #bfddff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.ppx-catalog-cover strong {
    display: block;
    max-width: 90%;
    margin-top: 50px;
    font-size: 27px;
    line-height: 1.1;
}

.ppx-catalog-cover small {
    margin-top: 12px;
    color: #bfddff;
}

.ppx-catalog-content {
    padding: 22px;
}

.ppx-catalog-content h2 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
}

.ppx-catalog-content p {
    margin: 8px 0 0;
    color: #94a3b8;
    font-size: 12px;
}

.ppx-catalog-content a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
    border-radius: 12px;
    padding: 12px 14px;
    background: #1768d7;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.ppx-empty-state {
    margin-top: 34px;
    border: 2px dashed #dbe3ec;
    border-radius: 20px;
    padding: 70px 20px;
    background: #fff;
    text-align: center;
}

.ppx-empty-state i {
    color: #1768d7;
    font-size: 44px;
}

.ppx-empty-state h2 {
    margin: 18px 0 0;
    color: #0f172a;
}

.ppx-empty-state p {
    color: #64748b;
}

.ppx-viewer-shell {
    background: #081321;
    color: #fff;
}

.ppx-viewer-toolbar {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 12px 20px;
    background: #07111f;
}

.ppx-viewer-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
}

.ppx-viewer-title > a {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    color: #cbd5e1;
    text-decoration: none;
}

.ppx-viewer-title span,
.ppx-viewer-title h1 {
    display: block;
    overflow: hidden;
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ppx-viewer-title span {
    color: #5ba6ff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ppx-viewer-title h1 {
    margin-top: 3px;
    font-size: 15px;
}

.ppx-viewer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ppx-viewer-actions > button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    color: #fff;
    cursor: pointer;
}

.ppx-viewer-actions > span {
    min-width: 62px;
    color: #94a3b8;
    font-size: 12px;
    text-align: center;
}

.ppx-viewer-edit {
    display: inline-flex;
    height: 40px;
    align-items: center;
    gap: 8px;
    border-radius: 11px;
    padding: 0 14px;
    background: #1768d7;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.ppx-viewer-stage {
    display: flex;
    min-height: calc(100vh - 72px);
    align-items: flex-start;
    justify-content: center;
    overflow: auto;
    padding: 34px;
}

.ppx-viewer-page {
    position: relative;
    width: min(794px, 92vw);
    aspect-ratio: 794 / 1123;
    flex: 0 0 auto;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 35px 90px rgba(0,0,0,.45);
}

.ppx-public-element {
    position: absolute;
}

.ppx-public-text {
    overflow: hidden;
    line-height: 1.15;
}

.ppx-public-image {
    overflow: hidden;
}

.ppx-public-pin {
    display: grid;
    min-width: 28px;
    min-height: 28px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #1768d7;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(23,104,215,.45);
}

.ppx-drawing-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: linear-gradient(#f8fafc, #fff);
    color: #94a3b8;
    text-align: center;
}

.ppx-drawing-placeholder i {
    display: block;
    font-size: 38px;
}

.ppx-drawing-placeholder span {
    display: block;
    margin-top: 8px;
    font-size: 12px;
}

.ppx-part-modal[hidden] {
    display: none;
}

.ppx-part-modal {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.ppx-part-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2,6,23,.72);
    backdrop-filter: blur(7px);
}

.ppx-part-modal-card {
    position: relative;
    z-index: 2;
    width: min(100%, 560px);
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 28px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 30px 90px rgba(0,0,0,.35);
}

.ppx-part-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
}

.ppx-part-modal-code {
    color: #1768d7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ppx-part-modal-card h2 {
    max-width: 88%;
    margin: 10px 0 0;
    font-size: 24px;
    line-height: 1.2;
}

.ppx-part-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.ppx-part-modal-meta span {
    border-radius: 999px;
    padding: 6px 9px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
}

.ppx-price-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.ppx-price-table > div {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 13px;
}

.ppx-price-table span,
.ppx-price-table strong {
    display: block;
}

.ppx-price-table span {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.ppx-price-table strong {
    margin-top: 6px;
    color: #0f172a;
}

@media (max-width: 980px) {
    .ppx-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .ppx-access-card {
        padding: 24px;
    }

    .ppx-client-heading,
    .ppx-viewer-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .ppx-catalog-grid {
        grid-template-columns: 1fr;
    }

    .ppx-viewer-actions {
        justify-content: space-between;
    }

    .ppx-viewer-edit {
        flex: 1;
        justify-content: center;
    }

    .ppx-viewer-stage {
        padding: 16px;
    }

    .ppx-price-table {
        grid-template-columns: 1fr;
    }
}
