body.public-page {
    background:
        radial-gradient(ellipse 90% 55% at 50% -15%, rgba(15, 118, 110, 0.16), transparent 60%),
        radial-gradient(ellipse 50% 35% at 100% 10%, rgba(194, 65, 12, 0.08), transparent 55%),
        linear-gradient(180deg, #e7f3ef 0%, var(--bg) 45%, #eef4f1 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.pwa-install-banner {
    background: #fff7ed;
    border-bottom: 1px solid #fdba74;
    padding: 0.75rem 1rem;
    padding-top: calc(0.75rem + env(safe-area-inset-top, 0px));
}

.pwa-install-banner-inner {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.pwa-install-banner strong {
    display: block;
    font-size: 0.95rem;
    color: #9a3412;
}

.pwa-install-banner small {
    display: block;
    color: #c2410c;
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.pwa-install-actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

.push-enable-banner {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin: 0 0 1.25rem;
}

.push-enable-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.push-enable-banner strong {
    display: block;
    font-size: 0.95rem;
    color: #065f46;
}

.push-enable-banner small {
    display: block;
    color: #047857;
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.push-enable-actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

.push-enable-status {
    margin: 0.65rem 0 0;
    font-size: 0.85rem;
    color: #065f46;
}

.push-enable-status.is-error {
    color: #b91c1c;
}

@media (max-width: 480px) {
    .push-enable-banner-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .push-enable-actions {
        width: 100%;
    }

    .push-enable-actions .btn {
        flex: 1;
    }
}

.public-header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.875rem 1rem;
    padding-top: calc(0.875rem + env(safe-area-inset-top, 0px));
}

.public-header-inner {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.public-brand {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.public-header-inner small {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 0.1rem;
}

.public-main {
    flex: 1;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 1.25rem 1rem 2rem;
    animation: page-in 0.45s var(--ease) both;
}

.public-footer {
    text-align: center;
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    color: var(--muted);
    font-size: 0.8rem;
}

.public-hero {
    text-align: center;
    margin-bottom: 1.35rem;
}

.public-hero h1 {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 650;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.public-hero p {
    color: var(--muted);
    font-size: 0.98rem;
    max-width: 22rem;
    margin: 0 auto;
}

.public-card {
    margin-bottom: 1rem;
    border: 1px solid rgba(213, 226, 220, 0.95);
    box-shadow: 0 16px 40px rgba(20, 35, 31, 0.08);
}

.public-form .form-group input,
.public-form .form-group textarea,
.public-form .form-group select {
    font-size: 16px;
    min-height: 48px;
}

.public-form .form-group textarea {
    min-height: 88px;
}

.public-form .btn-block {
    min-height: 52px;
    font-size: 1.02rem;
}

.public-staff-link {
    text-align: center;
    color: var(--muted);
    font-size: 0.875rem;
}

.public-alt-link {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0.5rem 0 1rem;
}

.public-alt-link a {
    color: var(--accent);
    font-weight: 600;
}

.child-select-list {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.child-select-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fbfa;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.child-select-item:not(.is-disabled):has(input:checked) {
    border-color: #9fd5cb;
    background: var(--primary-soft);
}

.child-select-item.is-disabled {
    opacity: 0.65;
}

.child-select-item label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    cursor: pointer;
    min-height: 52px;
}

.child-select-item input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.child-select-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.child-select-body strong {
    font-size: 1.02rem;
    color: var(--text);
}

.child-select-body small,
.child-select-status {
    color: var(--muted);
    font-size: 0.85rem;
}

.public-staff-link a {
    color: var(--primary);
    font-weight: 600;
}

.public-success {
    text-align: center;
    padding: 2rem 0.5rem;
    animation: rise-in 0.5s var(--ease) both;
}

.public-success-icon {
    width: 4.25rem;
    height: 4.25rem;
    margin: 0 auto 1.25rem;
    border-radius: 999px;
    background: #dcfce7;
    color: var(--success);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(4, 120, 87, 0.18);
}

.public-success-icon-error {
    background: #ffedd5;
    color: #c2410c;
    box-shadow: 0 8px 24px rgba(194, 65, 12, 0.15);
}

.public-success h1 {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 650;
    margin-bottom: 0.75rem;
}

.public-success p {
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.public-success-hint {
    background: var(--primary-soft);
    border: 1px solid #9fd5cb;
    color: #115e59;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
}

.consent-box {
    margin-top: 1.25rem;
    padding: 1rem;
    background: #f4f9f7;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.consent-box h2 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.consent-text {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.45;
    margin-bottom: 0.75rem;
}

.consent-check {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
}

.consent-check input {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
    accent-color: var(--primary);
}

.consent-check small {
    font-weight: 400;
    color: var(--muted);
}
