.s3g-public-shell,
.s3g-public-shell * {
    box-sizing: border-box;
}

.s3g-public-shell {
    width: calc(100% - 24px);
    margin: 28px auto;
    overflow: hidden;
    border: 1px solid rgba(50,33,131,.15);
    border-radius: 30px;
    background:
        radial-gradient(circle at 8% 0, rgba(103,88,217,.12), transparent 28%),
        radial-gradient(circle at 95% 9%, rgba(177,38,47,.09), transparent 24%),
        var(--s3g-brand-background, #f5f7fb);
    color: #182033;
    box-shadow: 0 25px 70px rgba(28,24,73,.14);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
}

.s3g-public-shell [hidden] {
    display: none !important;
}

.s3g-public-brand-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 168px;
    padding: 28px 38px;
    border-bottom: 1px solid rgba(50,33,131,.12);
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(16px);
}

.s3g-public-brand-header::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 34%;
    height: 6px;
    background: linear-gradient(90deg, var(--s3g-brand-primary, #322183), var(--s3g-brand-secondary, #6758d9) 58%, var(--s3g-brand-accent, #b1262f));
    content: "";
}

.s3g-public-logo {
    width: 104px;
    height: 104px;
    flex: 0 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(50,33,131,.13));
}

.s3g-public-kicker {
    margin: 0 0 6px !important;
    color: var(--s3g-brand-primary, #322183) !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.s3g-public-brand-header h2 {
    max-width: 1100px;
    margin: 0 0 7px !important;
    color: #1d2140 !important;
    font-size: clamp(25px, 3vw, 43px) !important;
    font-weight: 850 !important;
    line-height: 1.12 !important;
    letter-spacing: -.025em;
}

.s3g-public-intro {
    max-width: 1050px;
    margin: 0 !important;
    color: #626b7f !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
}

.s3g-access-panel {
    padding: 36px;
}

.s3g-access-card {
    max-width: 920px;
    margin: 0 auto;
    padding: 28px;
    border: 1px solid rgba(50,33,131,.14);
    border-radius: 22px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 18px 48px rgba(28,24,73,.10);
}

.s3g-access-heading {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 22px;
}

.s3g-access-icon {
    display: flex;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--s3g-brand-primary, #322183), var(--s3g-brand-secondary, #6758d9));
    color: #fff;
    box-shadow: 0 10px 24px rgba(50,33,131,.2);
    font-size: 20px;
}

.s3g-access-heading h3 {
    margin: 0 0 5px !important;
    color: #222640 !important;
    font-size: 21px !important;
    font-weight: 820 !important;
}

.s3g-access-heading p {
    margin: 0 !important;
    color: #667086 !important;
    font-size: 14px !important;
}

.s3g-access-form .s3g-field {
    margin-bottom: 17px;
}

.s3g-access-form .s3g-field label {
    display: block;
    margin-bottom: 6px;
    color: #353c50;
    font-size: 13px;
    font-weight: 780;
}

.s3g-access-form .s3g-field input {
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 10px 13px;
    border: 1px solid #d4d9e6;
    border-radius: 12px;
    background: #fff;
    color: #182033;
    font-size: 15px;
    box-shadow: inset 0 1px 2px rgba(25,32,55,.03);
}

.s3g-access-form input:focus-visible,
.s3g-access-form button:focus-visible,
.s3g-consent-row a:focus-visible,
.s3g-privacy-summary summary:focus-visible {
    outline: 3px solid rgba(36,107,218,.24);
    outline-offset: 2px;
}

.s3g-consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 11px 0;
    padding: 12px 13px;
    border: 1px solid #e4e6ef;
    border-radius: 12px;
    background: #fafbfe;
    color: #4a5266;
    font-size: 13px;
    line-height: 1.45;
    cursor: pointer;
}

.s3g-consent-row:hover {
    border-color: rgba(50,33,131,.25);
    background: #faf9ff;
}

.s3g-consent-row input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin: 1px 0 0;
    accent-color: var(--s3g-brand-primary, #322183);
}

.s3g-consent-row a {
    color: var(--s3g-brand-primary, #322183);
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.s3g-consent-optional {
    border-style: dashed;
    background: #fff;
}

.s3g-consent-optional strong {
    color: #147a4b;
    font-size: 11px;
    text-transform: uppercase;
}

.s3g-primary-button {
    display: inline-flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 11px 18px;
    border: 1px solid var(--s3g-brand-primary, #322183);
    border-radius: 13px;
    background: linear-gradient(135deg, var(--s3g-brand-primary, #322183), var(--s3g-brand-secondary, #6758d9));
    color: #fff;
    font-size: 15px;
    font-weight: 830;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(50,33,131,.22);
    transition: transform .16s ease, filter .16s ease;
}

.s3g-primary-button:hover {
    color: #fff;
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.s3g-primary-button:disabled {
    opacity: .6;
    cursor: wait;
    transform: none;
}

.s3g-access-message {
    min-height: 20px;
    margin: 9px 0 0 !important;
    color: #586276 !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    text-align: center;
}

.s3g-access-message[data-type="error"] {
    color: #b42335 !important;
}

.s3g-access-message[data-type="success"] {
    color: #147a4b !important;
}

.s3g-privacy-summary {
    margin-top: 19px;
    padding-top: 15px;
    border-top: 1px solid #eaecf3;
}

.s3g-privacy-summary summary {
    color: var(--s3g-brand-primary, #322183);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.s3g-privacy-summary dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 14px 0 0;
}

.s3g-privacy-summary dl > div {
    padding: 10px;
    border: 1px solid #e7e9f2;
    border-radius: 10px;
    background: #fbfcfe;
}

.s3g-privacy-summary dt {
    margin-bottom: 3px;
    color: #333b50;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.s3g-privacy-summary dd {
    margin: 0;
    color: #636c80;
    font-size: 12px;
}

.s3g-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

.s3g-public-editor-wrap {
    padding: 24px;
}

.s3g-public-editor-mount {
    width: 100%;
}

.s3g-public-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 16px 24px;
    border-top: 1px solid rgba(50,33,131,.11);
    background: rgba(255,255,255,.82);
    color: #657086;
    font-size: 12px;
    flex-wrap: wrap;
}

.s3g-public-footer span {
    color: #383f54;
    font-weight: 750;
}

.s3g-public-footer a {
    color: var(--s3g-brand-primary, #322183);
    font-weight: 750;
    text-decoration: none;
}

.s3g-public-footer a:hover {
    text-decoration: underline;
}

.s3g-embedded-infographic {
    width: 100%;
    margin: 22px auto;
    font-family: "Segoe UI", Arial, sans-serif;
}

.s3g-embedded-title {
    margin: 0 0 12px !important;
    color: #20263b !important;
    font-size: 25px !important;
    font-weight: 820 !important;
}

.s3g-notice {
    margin: 15px 0;
    padding: 12px 14px;
    border: 1px solid #d9ddea;
    border-radius: 10px;
    background: #fff;
    color: #414a5e;
}

.s3g-notice-error {
    border-color: #efc6cc;
    background: #fff7f8;
    color: #9c2536;
}

@media (max-width: 900px) {
    .s3g-public-shell { width: calc(100% - 12px); margin: 14px auto; border-radius: 22px; }
    .s3g-public-brand-header { align-items: flex-start; padding: 24px; }
    .s3g-public-logo { width: 84px; height: 84px; }
    .s3g-access-panel { padding: 22px; }
    .s3g-public-editor-wrap { padding: 12px; }
}

@media (max-width: 640px) {
    .s3g-public-brand-header { flex-direction: column; gap: 13px; }
    .s3g-public-logo { width: 78px; height: 78px; }
    .s3g-public-brand-header h2 { font-size: 26px !important; }
    .s3g-access-panel { padding: 12px; }
    .s3g-access-card { padding: 18px; border-radius: 17px; }
    .s3g-privacy-summary dl { grid-template-columns: 1fr; }
    .s3g-public-footer { align-items: flex-start; flex-direction: column; gap: 5px; }
}
