.hpcf-portal {
    max-width: 1120px;
    margin: 32px auto;
    padding: 0 20px;
    color: #0a1d2d;
    font-family: var(--e-global-typography-text-font-family, "Inter"), system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hpcf-portal h2 {
    margin: 0 0 8px;
    font-size: clamp(24px, 4vw, 40px);
    font-family: var(--e-global-typography-8eb6c31-font-family, "Poppins"), var(--e-global-typography-primary-font-family, "Inter"), sans-serif;
    font-weight: 700;
    line-height: 1.1;
}

.hpcf-muted {
    color: #4c5562;
}

.hpcf-viewer {
    position: relative;
    width: 100%;
    min-height: 420px;
    margin: 24px 0;
    border: 1px solid #d9dde3;
    background: #f6f7f9;
    overflow: hidden;
    user-select: none;
}

.hpcf-viewer img,
.hpcf-viewer iframe {
    display: block;
    width: 100%;
    height: min(78vh, 900px);
    object-fit: contain;
    border: 0;
    pointer-events: none;
}

.hpcf-loading {
    display: grid;
    min-height: 420px;
    place-items: center;
    padding: 24px;
    color: #4c5562;
    font-weight: 600;
}

.hpcf-loading-error {
    color: #8a1f11;
}

.hpcf-annotation-canvas {
    position: absolute;
    inset: 0;
    cursor: crosshair;
}

.hpcf-feedback-form,
.hpcf-code-form {
    display: grid;
    gap: 16px;
}

.hpcf-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hpcf-feedback-form label,
.hpcf-code-form label {
    display: grid;
    gap: 6px;
    font-weight: 650;
}

.hpcf-feedback-form input,
.hpcf-feedback-form textarea,
.hpcf-code-form input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd1da;
    border-radius: 4px;
    padding: 10px 12px;
    font: inherit;
}

.hpcf-feedback-form button,
.hpcf-code-form button {
    justify-self: start;
    border: 0;
    border-radius: 4px;
    padding: 11px 18px;
    background: #4b227d;
    color: #ffffff;
    font-family: var(--e-global-typography-accent-font-family, "Inter"), system-ui, sans-serif;
    font-weight: 700;
    cursor: pointer;
}

.hpcf-annotations {
    display: grid;
    gap: 10px;
}

.hpcf-annotation-note {
    border-left: 3px solid #4b227d;
    padding-left: 12px;
}

.hpcf-annotation-note button {
    margin-top: 6px;
    background: #eef0f4;
    color: #111827;
}

.hpcf-closed {
    padding: 48px 20px;
    text-align: center;
}

@media (max-width: 720px) {
    .hpcf-fields {
        grid-template-columns: 1fr;
    }

    .hpcf-viewer {
        min-height: 320px;
    }
}
