.psac-shortcode {
    width: 100%;
    margin: 24px 0;
    padding: 24px;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}

.psac-shortcode__title {
    margin: 0 0 12px;
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 400;
    line-height: 1.2;
}

.psac-shortcode .psac-shortcode__title {
    font-size: clamp(24px, 3vw, 30px);
}

.psac-shortcode__intro,
.psac-shortcode__note {
    margin: 0 0 16px;
    color: #50575e;
}

.psac-shortcode__form {
    display: grid;
    gap: 12px;
    justify-items: start;
}

.psac-shortcode__form.is-hidden,
.psac-new-scan-placeholder.is-hidden {
    display: none;
}

.psac-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.psac-new-scan-placeholder {
    display: grid;
    justify-items: start;
    margin: 0 0 16px;
}

.psac-shortcode__label {
    font-weight: 600;
}

.psac-shortcode__input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    border-radius: 4px;
    background: #f6f7f7;
    box-sizing: border-box;
    justify-self: stretch;
}

.psac-frontend-admin-options {
    display: grid;
    gap: 12px;
    width: 100%;
    padding: 16px;
    border: 0;
    border-radius: 6px;
    background: #fffaf2;
    box-sizing: border-box;
}

.psac-frontend-admin-options .is-hidden {
    display: none !important;
}

.psac-frontend-admin-options h3 {
    margin: 0;
    font-size: 16px;
}

.psac-frontend-admin-options__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.psac-frontend-admin-options__grid label {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

.psac-frontend-admin-options__source {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
}

.psac-frontend-admin-options__source p {
    width: 100%;
    margin: 0;
}

.psac-frontend-admin-options__source label {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 8px 10px;
    border: 0;
    border-radius: 6px;
    background: #ffffff;
    font-weight: 400;
}

.psac-frontend-admin-options__control {
    background: #ffffff;
}

.psac-shortcode__math {
    display: grid;
    gap: 8px;
    justify-items: start;
}

.psac-shortcode__math-question {
    font-weight: 400;
}

.psac-shortcode__math-input {
    width: 120px;
    min-height: 38px;
    padding: 8px 10px;
    border: 0;
    border-radius: 4px;
    background: #f6f7f7;
    box-sizing: border-box;
}

.psac-shortcode__privacy-note {
    margin: 0;
    color: #646970;
    font-size: 13px;
}

.psac-shortcode__privacy-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #50575e;
    font-size: 14px;
    font-weight: 400;
}

.psac-shortcode a:not(.psac-shortcode__button),
.psac-shortcode a:not(.psac-shortcode__button):visited {
    color: #8a4b00;
}

.psac-shortcode a:not(.psac-shortcode__button):hover,
.psac-shortcode a:not(.psac-shortcode__button):focus {
    color: #e28f00;
}

.psac-shortcode__button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    width: auto;
    max-width: 100%;
    justify-self: start;
    border: 0;
    border-radius: 4px;
    background: #e28f00;
    color: #fff;
    box-sizing: border-box;
    font: inherit;
    font-size: 14px;
    line-height: 1.15;
    cursor: pointer;
}

.psac-shortcode__button--link,
.psac-shortcode__button--link:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    font: inherit;
    font-size: 14px;
    line-height: 1.15;
    color: #fff;
    text-decoration: none;
}

.psac-shortcode__button:hover,
.psac-shortcode__button:focus,
.psac-shortcode__button--link:hover,
.psac-shortcode__button--link:focus,
.psac-shortcode__button--link:visited:hover,
.psac-shortcode__button--link:visited:focus {
    background: #c57b00;
    color: #fff;
    text-decoration: none;
}

.psac-shortcode__button:disabled {
    opacity: 0.75;
    cursor: wait;
}

.psac-shortcode__status {
    margin-top: 18px;
    padding: 18px;
    border-radius: 6px;
}

.psac-shortcode__status--success {
    background: #edf7ed;
    color: #1e4620;
}

.psac-shortcode__status--error {
    background: #fcf0f1;
    color: #8a2424;
}

.psac-shortcode__status--running {
    background: #eef6fd;
    color: #0a4b78;
}

.psac-shortcode__status--managed {
    background: #fff7ea;
    color: #6a4a00;
}

.psac-shortcode__meta {
    margin: 8px 0 0;
    font-size: 14px;
}

.psac-managed-box {
    margin-top: 14px;
}

.psac-managed-box__company {
    margin: 0 0 12px;
    font-weight: 600;
}

.psac-managed-box__action {
    margin: 0;
}

.psac-managed-box__contact {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.7);
    color: #50575e;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.psac-notice-stack {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.psac-progress {
    margin-top: 16px;
}

.psac-progress__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    font-size: 14px;
}

.psac-progress__track {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e6edf3;
}

.psac-progress__bar {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #e28f00;
}

.psac-inline-notice {
    padding: 12px 14px;
    background: #fff7ea;
    color: #6a4a00;
}

.psac-summary-box {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 6px;
    background: #ffffff;
    color: #6a4a00;
}

.psac-summary-box__intro {
    margin: 0;
    font-weight: 600;
}

.psac-summary-list {
    margin: 10px 0 0;
    padding-left: 18px;
}

.psac-summary-list li + li {
    margin-top: 6px;
}

.psac-new-scan-action {
    margin: 16px 0 0;
}

.psac-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.psac-result-box {
    padding: 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.82);
}

.psac-result-box--full {
    margin-top: 18px;
}

.psac-result-box > h3,
.psac-result-box > h4 {
    margin-top: 0;
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 400;
    line-height: 1.12;
}

.psac-result-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
}

.psac-result-list {
    margin: 0;
    padding-left: 18px;
}

.psac-result-list li + li {
    margin-top: 12px;
}

.psac-result-list li,
.psac-finding-text,
.psac-finding-meta span {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.psac-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-right: 8px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #f0f0f1;
    color: #1d2327;
}

.psac-status-pill--scanned,
.psac-status-pill--success,
.psac-status-pill--running {
    background: #e7f0fa;
    color: #0a4b78;
}

.psac-status-pill--failed,
.psac-status-pill--kritisch {
    background: #fde8e8;
    color: #9a1f1f;
}

.psac-status-pill--mittel {
    background: #fff4e5;
    color: #8a4b00;
}

.psac-status-pill--hinweis {
    background: #edf7ed;
    color: #1e4620;
}

.psac-status-pill--partial,
.psac-status-pill--blocked {
    background: #fff4e5;
    color: #8a4b00;
}

.psac-status-pill--lead-unlocked {
    background: #edf7ed;
    color: #1e4620;
}

.psac-status-pill--lead-locked {
    background: #fff4e5;
    color: #8a4b00;
}

.psac-severity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.psac-severity-card {
    padding: 14px;
    border-radius: 6px;
    background: #f7f7f7;
}

.psac-severity-card span {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
}

.psac-severity-card strong {
    font-size: 24px;
    line-height: 1;
}

.psac-severity-card--kritisch {
    background: #fde8e8;
    color: #9a1f1f;
}

.psac-severity-card--mittel {
    background: #fff4e5;
    color: #8a4b00;
}

.psac-severity-card--hinweis {
    background: #edf7ed;
    color: #1e4620;
}

.psac-finding-group + .psac-finding-group {
    margin-top: 18px;
}

.psac-finding-group {
    border-radius: 8px;
    background: #fff;
}

.psac-finding-group summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    font-weight: 600;
}

.psac-finding-group .psac-result-list {
    padding: 0 16px 16px 34px;
}

.psac-inline-meta {
    color: #50575e;
}

.psac-finding-item {
    padding-bottom: 12px;
}

.psac-finding-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.psac-finding-text {
    margin-top: 8px;
}

.psac-finding-meta {
    display: grid;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
    color: #50575e;
}

.psac-break-word {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.psac-unlock-box {
    background: #ffffff;
}

.psac-full-audit-box {
    background: #ffffff;
}

.psac-full-audit-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
    gap: 24px;
    align-items: start;
}

.psac-full-audit-main {
    min-width: 0;
}

.psac-full-audit-main > h3 {
    margin-top: 0;
}

.psac-full-audit-scope {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 8px;
    background: #f6f7f7;
}

.psac-full-audit-scope h4 {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
}

.psac-full-audit-scope p {
    margin: 0;
    color: #50575e;
}

.psac-scope-chart {
    display: grid;
    place-items: center;
    justify-self: center;
    width: 172px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: conic-gradient(#edf7ed 0 var(--psac-reviewed), #fde8e8 var(--psac-reviewed) 100%);
    position: relative;
}

.psac-scope-chart::after {
    content: "";
    position: absolute;
    inset: 28px;
    border-radius: 50%;
    background: #ffffff;
}

.psac-scope-chart span {
    position: relative;
    z-index: 1;
    color: #1e4620;
    font-size: 24px;
    font-weight: 700;
}

.psac-scope-stats {
    display: grid;
    gap: 10px;
}

.psac-scope-stats div {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #ffffff;
}

.psac-scope-stats strong {
    font-size: 24px;
    line-height: 1;
}

.psac-scope-stats span {
    color: #50575e;
    font-size: 13px;
}

.psac-full-audit-box__price {
    margin: 14px 0;
    font-size: 20px;
    font-weight: 700;
    color: #8a4b00;
}

.psac-full-audit-form {
    display: grid;
    gap: 12px;
    justify-items: start;
    margin-top: 16px;
}

.psac-full-audit-form__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: min(100%, 760px);
}

.psac-full-audit-form__fields label:nth-child(4) {
    grid-column: 1 / -1;
}

.psac-full-audit-form label {
    display: grid;
    gap: 6px;
    width: min(100%, 760px);
    font-weight: 600;
}

.psac-full-audit-form__fields label {
    width: 100%;
}

.psac-full-audit-form__address-row {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(220px, 2fr) minmax(88px, 0.55fr) minmax(160px, 1fr);
    gap: 12px;
    width: 100%;
}

.psac-full-audit-form .psac-shortcode__privacy-consent {
    display: flex;
    font-weight: 400;
}

.psac-full-audit-form input[type="text"] {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 0;
    border-radius: 4px;
    background: #f6f7f7;
    box-sizing: border-box;
}

.psac-full-audit-form input[type="email"] {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 0;
    border-radius: 4px;
    background: #f6f7f7;
    box-sizing: border-box;
}

.psac-full-audit-form__message {
    padding: 10px 12px;
    border-radius: 6px;
    background: #edf7ed;
    color: #1e4620;
}

.psac-full-audit-form__message.is-error {
    background: #fde8e8;
    color: #9a1f1f;
}

.psac-lead-dialog[hidden] {
    display: none;
}

.psac-lead-dialog {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.42);
    overflow-y: auto;
    overscroll-behavior: contain;
    isolation: isolate;
}

.psac-lead-dialog__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 22px;
    border-radius: 8px;
    background: #fff;
    color: #1d2327;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

body.psac-lead-dialog-open {
    overflow: hidden;
}

.psac-lead-dialog__panel h4 {
    margin-top: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.psac-lead-dialog__message {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #edf7ed;
    color: #1e4620;
}

.psac-lead-dialog__message.is-error {
    background: #fde8e8;
    color: #9a1f1f;
}

.psac-lead-dialog__close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: #f0f0f1;
    color: #1d2327;
    cursor: pointer;
}

.psac-lead-dialog__fields {
    display: grid;
    gap: 12px;
    margin: 16px 0;
}

.psac-lead-dialog__fields label {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

.psac-lead-dialog__step > label:not(.psac-shortcode__privacy-consent) {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

.psac-lead-dialog__fields input {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 0;
    border-radius: 4px;
    background: #f6f7f7;
    box-sizing: border-box;
}

.psac-lead-dialog__step > label:not(.psac-shortcode__privacy-consent) input {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 0;
    border-radius: 4px;
    background: #f6f7f7;
    box-sizing: border-box;
}

.psac-lead-dialog__step .psac-shortcode__button {
    margin-top: 12px;
}

.psac-lead-dialog__resend {
    margin: 10px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8a4b00;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    text-decoration: underline;
}

.psac-lead-dialog__resend:hover,
.psac-lead-dialog__resend:focus {
    color: #e28f00;
}

.psac-lead-dialog__resend:disabled {
    color: #646970;
    cursor: default;
}

@media (max-width: 700px) {
    .psac-full-audit-layout {
        grid-template-columns: 1fr;
    }

    .psac-full-audit-form__fields {
        grid-template-columns: 1fr;
    }

    .psac-full-audit-form__address-row {
        grid-template-columns: 1fr;
    }

    .psac-frontend-admin-options__grid {
        grid-template-columns: 1fr;
    }

    .psac-result-box > h3,
    .psac-result-box > h4,
    .psac-shortcode__title {
        line-height: 1.08;
    }
}
