* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --panel: #ffffff;
    --soft: #f6f7f9;
    --primary: #0f766e;
    --primary-strong: #115e59;
    --danger: #b91c1c;
    --warning: #b45309;
    --radius: 8px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    margin: 0;
    color: var(--ink);
    background: #eef2f5;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    background: #ffffff;
    color: var(--ink);
}

textarea {
    resize: vertical;
}

label span {
    display: block;
    margin-bottom: 6px;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: #4b5563;
    font-size: 12px;
    text-transform: uppercase;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 22px;
    background: #111827;
    color: #f9fafb;
}

.brand,
.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand small {
    display: block;
    color: #9ca3af;
    font-weight: 600;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    background: #f97316;
    color: #111827;
    font-weight: 900;
}

.nav-list {
    display: grid;
    gap: 6px;
}

.nav-list a {
    padding: 10px 12px;
    border-radius: 8px;
    color: #d1d5db;
}

.nav-list a:hover {
    background: #1f2937;
    color: #ffffff;
}

.sidebar-footer {
    margin-top: auto;
}

.main-panel {
    padding: 30px;
    min-width: 0;
}

.impersonation-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px 16px;
    background: #fff7ed;
    border-bottom: 1px solid #fed7aa;
    color: #9a3412;
}

.link-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: #9a3412;
    font-weight: 800;
    cursor: pointer;
}

.danger-link {
    color: #b91c1c;
}

.page-head,
.panel-head,
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.page-head {
    margin-bottom: 22px;
}

.page-head h1,
.public-page-head h1,
.hero-copy h1 {
    margin: 0;
    font-size: 38px;
    line-height: 1.08;
}

.panel-head h2,
.story-panel h2,
.donation-panel h2 {
    margin: 0;
    font-size: 20px;
}

.eyebrow,
.public-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 13px;
}

.block {
    display: block;
}

.button,
.public-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 9px 14px;
    background: #ffffff;
    color: #111827;
    font-weight: 800;
    cursor: pointer;
}

.button-primary,
.public-button {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
}

.button-primary:hover,
.public-button:hover {
    background: var(--primary-strong);
}

.button:disabled,
.public-button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.button-danger {
    border-color: var(--danger);
    background: var(--danger);
    color: #ffffff;
}

.button-ghost {
    width: 100%;
    border-color: #374151;
    background: transparent;
    color: #f9fafb;
}

.button-small {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 13px;
}

.actions,
.form-actions,
.table-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.between {
    justify-content: space-between;
}

.notice,
.public-notice {
    margin-bottom: 18px;
    border: 1px solid #99f6e4;
    border-radius: 8px;
    padding: 12px 14px;
    background: #f0fdfa;
    color: #115e59;
}

.notice-danger,
.public-notice-danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.metric,
.panel,
.form-card,
.danger-zone,
.auth-panel,
.auth-form {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.metric {
    padding: 16px;
}

.metric span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.metric strong {
    display: block;
    margin-top: 6px;
    font-size: 25px;
}

.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    gap: 18px;
    margin-bottom: 18px;
}

.panel,
.form-card {
    padding: 18px;
}

.table-wrap {
    overflow-x: auto;
}

.activity-list {
    display: grid;
    gap: 10px;
}

.activity-list article {
    border-bottom: 1px solid var(--line);
    padding: 0 0 10px;
}

.activity-list span,
.activity-list p {
    display: block;
    margin: 3px 0 0;
    color: var(--muted);
}

.badge {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    border-radius: 999px;
    padding: 3px 9px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 800;
}

.badge-active,
.badge-paid,
.badge-published,
.badge-approved,
.badge-replied,
.badge-subscribed {
    background: #dcfce7;
    color: #166534;
}

.badge-trial,
.badge-pending,
.badge-draft,
.badge-new,
.badge-read {
    background: #fef3c7;
    color: #92400e;
}

.badge-suspended,
.badge-failed,
.badge-expired,
.badge-refunded,
.badge-rejected,
.badge-hidden,
.badge-archived,
.badge-unsubscribed,
.badge-closed {
    background: #fee2e2;
    color: #991b1b;
}

.filter-bar,
.inline-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.filter-bar input {
    max-width: 420px;
}

.filter-bar select {
    max-width: 180px;
}

.inline-form select,
.inline-form input {
    min-width: 125px;
}

.review-form input {
    min-width: 210px;
}

td code {
    display: inline-block;
    max-width: 360px;
    overflow-wrap: anywhere;
    border-radius: 8px;
    padding: 6px 8px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
}

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

.span-2 {
    grid-column: span 2;
}

.section-title {
    margin: 24px 0 12px;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.stack-form {
    display: grid;
    gap: 12px;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 9px;
}

.check-row input {
    width: auto;
}

.check-row span {
    margin: 0;
}

.setting-toggle {
    align-items: center;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 8px;
    padding: 14px;
    background: #f8fafc;
}

.align-end {
    align-self: end;
    min-height: 42px;
}

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

.reward-editor {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fafafa;
}

.danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding: 16px;
    border-color: #fecaca;
}

.auth-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 24px;
    align-items: center;
    padding: 36px;
}

.auth-panel {
    min-height: 460px;
    display: grid;
    align-content: center;
    padding: 42px;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .92), rgba(17, 24, 39, .94)),
        url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1400&q=80") center / cover;
    color: #ffffff;
}

.auth-panel .eyebrow {
    color: #99f6e4;
}

.auth-panel h1 {
    max-width: 720px;
    margin: 0;
    font-size: 44px;
    line-height: 1.05;
}

.auth-panel p {
    max-width: 680px;
    color: #d1fae5;
    font-size: 17px;
}

.auth-form {
    padding: 24px;
}

.auth-form h2 {
    margin-top: 0;
}

.theme-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.feature-control-grid,
.feature-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.feature-control,
.feature-status-grid span {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 8px;
    padding: 14px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .04);
}

.feature-control input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

.feature-control strong,
.feature-control small,
.feature-control em,
.feature-status-grid strong,
.feature-status-grid small {
    display: block;
}

.feature-control small,
.feature-status-grid small {
    color: #64748b;
}

.feature-control em {
    margin-top: 5px;
    color: #0f766e;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
}

.feature-status-grid span {
    display: grid;
    gap: 4px;
}

.feature-status-grid .enabled {
    border-color: rgba(22, 163, 74, .2);
    background: #f0fdf4;
}

.feature-status-grid .disabled {
    border-color: rgba(185, 28, 28, .16);
    background: #fef2f2;
}

.theme-choice input {
    position: absolute;
    opacity: 0;
}

.theme-preview {
    display: grid;
    min-height: 150px;
    align-content: end;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 16px;
    color: #111827;
    cursor: pointer;
}

.theme-preview small {
    color: #4b5563;
}

.theme-choice input:checked + .theme-preview {
    border-color: #111827;
}

.theme-preview-impact {
    background: linear-gradient(135deg, #ccfbf1, #ffffff 62%);
}

.theme-preview-launchpad {
    background: linear-gradient(135deg, #fed7aa, #ffffff 62%);
}

.theme-preview-community {
    background: linear-gradient(135deg, #ddd6fe, #ffffff 62%);
}

.theme-preview-ocean {
    background: linear-gradient(135deg, #a5f3fc, #ffffff 62%);
}

.theme-preview-summit {
    background: linear-gradient(135deg, #bbf7d0, #ffffff 62%);
}

.theme-preview-urban {
    background: linear-gradient(135deg, #bfdbfe, #111827 120%);
}

.public-body {
    background: var(--tenant-surface);
}

.public-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 34px;
    background: rgba(255, 255, 255, .9);
    border-bottom: 1px solid rgba(17, 24, 39, .08);
    backdrop-filter: blur(12px);
}

.public-header nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 800;
}

.public-brand {
    font-size: 20px;
}

.public-hero {
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(360px, .75fr);
    gap: 34px;
    align-items: center;
    padding: 52px 34px;
}

.hero-copy {
    max-width: 760px;
}

.hero-copy p,
.public-page-head p {
    color: #4b5563;
    font-size: 18px;
}

.public-button {
    border-color: var(--tenant-accent);
    background: var(--tenant-accent);
}

.hero-media,
.detail-media {
    overflow: hidden;
    border-radius: 8px;
    min-height: 360px;
    background: #111827;
}

.hero-media img,
.detail-media img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.hero-placeholder {
    display: grid;
    min-height: 360px;
    place-items: center;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.impact-hero {
    background: linear-gradient(90deg, #ecfeff, #ffffff);
}

.launchpad-hero {
    background: #111827;
    color: #ffffff;
}

.launchpad-hero .hero-copy p {
    color: #fed7aa;
}

.launchpad-hero .public-eyebrow {
    color: #fb923c;
}

.launch-stack {
    display: grid;
    gap: 14px;
}

.launch-tile {
    display: grid;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    padding: 22px;
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
}

.community-hero {
    background:
        linear-gradient(90deg, rgba(250, 245, 255, .94), rgba(255, 255, 255, .85)),
        url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1400&q=80") center / cover;
}

.community-note {
    display: grid;
    place-items: center;
    min-height: 300px;
    border: 1px solid rgba(124, 58, 237, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
    text-align: center;
}

.community-note strong {
    color: var(--tenant-accent);
    font-size: 76px;
    line-height: 1;
}

.public-section,
.public-page-head,
.campaign-detail-hero,
.campaign-detail-grid {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.public-section {
    padding: 42px 0;
}

.public-page-head {
    padding: 54px 0 20px;
}

.campaign-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.public-filter {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 160px auto;
    gap: 12px;
    margin-bottom: 22px;
    border: 1px solid rgba(17, 24, 39, .1);
    border-radius: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .07);
}

.campaign-card {
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, .1);
    border-radius: 8px;
    background: #ffffff;
}

.campaign-image {
    display: grid;
    min-height: 210px;
    place-items: center;
    background: #111827;
    color: #ffffff;
    font-weight: 900;
}

.campaign-image img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.campaign-body {
    padding: 16px;
}

.campaign-category {
    color: var(--tenant-accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.campaign-card h3 {
    margin: 7px 0;
    font-size: 20px;
}

.campaign-card p {
    color: #4b5563;
}

.progress {
    overflow: hidden;
    height: 9px;
    border-radius: 999px;
    background: #e5e7eb;
}

.progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--tenant-accent);
}

.progress-large {
    height: 12px;
}

.campaign-stats,
.detail-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
    color: #4b5563;
}

.campaign-stats strong,
.detail-stats strong {
    color: #111827;
}

.share-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0;
}

.share-row span {
    color: var(--muted);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 12px;
}

.share-row a {
    border: 1px solid rgba(17, 24, 39, .1);
    border-radius: 999px;
    padding: 7px 11px;
    background: #ffffff;
    color: var(--tenant-accent);
    font-size: 13px;
    font-weight: 900;
}

.campaign-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(360px, .8fr);
    gap: 28px;
    align-items: center;
    padding: 42px 0;
}

.campaign-detail-hero h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1.08;
}

.campaign-detail-hero p {
    color: #4b5563;
    font-size: 18px;
}

.campaign-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
    padding-bottom: 54px;
}

.story-panel,
.donation-panel {
    border: 1px solid rgba(17, 24, 39, .1);
    border-radius: 8px;
    padding: 22px;
    background: #ffffff;
}

.story-panel h2 {
    margin-top: 28px;
}

.page-content {
    max-width: 860px;
    margin: 0 auto;
    color: #374151;
    font-size: 17px;
}

.donation-panel {
    position: sticky;
    top: 18px;
}

.public-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 34px;
    background: #111827;
    color: #ffffff;
}

.public-footer p {
    margin: 4px 0 0;
    color: #d1d5db;
}

@media (max-width: 1100px) {
    .metric-grid,
    .campaign-grid,
    .theme-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split-grid,
    .public-hero,
    .campaign-detail-hero,
    .campaign-detail-grid,
    .auth-wrap {
        grid-template-columns: 1fr;
    }

    .donation-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
    }

    .main-panel,
    .auth-wrap {
        padding: 18px;
    }

    .metric-grid,
    .form-grid,
    .reward-grid,
    .reward-editor,
    .campaign-grid,
    .theme-choice-grid,
    .feature-control-grid,
    .feature-status-grid {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }

    .page-head,
    .panel-head,
    .section-head,
    .danger-zone,
    .public-header,
    .public-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .public-header nav {
        flex-wrap: wrap;
    }

    .page-head h1,
    .hero-copy h1,
    .campaign-detail-hero h1,
    .auth-panel h1 {
        font-size: 32px;
    }

    .public-hero {
        min-height: auto;
        padding: 34px 24px;
    }

    .public-section,
    .public-page-head,
    .campaign-detail-hero,
    .campaign-detail-grid {
        width: min(100% - 28px, 1180px);
    }

    .filter-bar,
    .inline-form,
    .public-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .public-filter {
        display: flex;
    }

    .filter-bar input,
    .filter-bar select {
        max-width: none;
    }
}

/* Modern CrowdFundPro skin */
body.app-body {
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .08), rgba(249, 115, 22, .07)),
        #f5f7fb;
}

.icon {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
}

.sidebar {
    background:
        linear-gradient(160deg, rgba(17, 24, 39, .98), rgba(15, 23, 42, .94)),
        url("https://images.unsplash.com/photo-1557804506-669a67965ba0?auto=format&fit=crop&w=900&q=70") center / cover;
    box-shadow: 14px 0 34px rgba(15, 23, 42, .18);
}

.brand {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    padding: 12px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
}

.brand-mark {
    background: linear-gradient(135deg, #2dd4bf, #f97316);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(45, 212, 191, .24);
}

.brand-mark .icon {
    width: 22px;
    height: 22px;
}

.nav-list a {
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid transparent;
    color: #dbeafe;
    font-weight: 800;
}

.nav-list a:hover {
    border-color: rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .12);
    transform: translateX(3px);
}

.sidebar-footer {
    display: grid;
    gap: 12px;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    padding: 10px;
    background: rgba(255, 255, 255, .08);
}

.user-chip > span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: #fef3c7;
    color: #92400e;
    font-weight: 900;
}

.user-chip strong,
.user-chip small {
    display: block;
}

.user-chip small {
    color: #bfdbfe;
    text-transform: capitalize;
}

.main-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .68), rgba(255, 255, 255, 0)),
        transparent;
}

.page-head {
    border: 1px solid rgba(15, 23, 42, .07);
    border-radius: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
}

.page-head h1 {
    background: linear-gradient(90deg, #0f172a, #0f766e, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.metric,
.panel,
.form-card,
.danger-zone,
.chart-card {
    border-color: rgba(15, 23, 42, .08);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
}

.metric {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(240, 253, 250, .86));
}

.metric::after {
    content: "";
    position: absolute;
    right: -24px;
    bottom: -28px;
    width: 90px;
    height: 90px;
    border-radius: 22px;
    background: rgba(249, 115, 22, .12);
    transform: rotate(16deg);
}

.metric .icon {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
    color: #0f766e;
}

.metric strong,
.metric span {
    position: relative;
    z-index: 1;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.chart-card {
    border-radius: 8px;
    padding: 18px;
    background: #ffffff;
}

.bar-chart {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: end;
    min-height: 240px;
    gap: 12px;
    padding-top: 18px;
}

.bar-item {
    display: grid;
    gap: 7px;
    align-items: end;
    text-align: center;
}

.bar-track {
    position: relative;
    overflow: hidden;
    height: 145px;
    border-radius: 8px;
    background: #eef2f7;
}

.bar-track span {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, #2dd4bf, #f97316);
    animation: grow-bar .75s ease-out both;
}

.bar-item strong {
    font-size: 13px;
}

.bar-item small {
    color: var(--muted);
    font-weight: 800;
}

@keyframes grow-bar {
    from {
        transform: scaleY(.05);
        transform-origin: bottom;
    }
    to {
        transform: scaleY(1);
        transform-origin: bottom;
    }
}

.table-wrap table {
    background: #ffffff;
}

tbody tr:hover {
    background: #f8fafc;
}

.button {
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover {
    box-shadow: 0 12px 24px rgba(15, 23, 42, .09);
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(135deg, #0f766e, #2563eb);
    border-color: transparent;
}

.button-danger {
    background: linear-gradient(135deg, #b91c1c, #f97316);
    border-color: transparent;
}

.public-header {
    position: sticky;
    top: 0;
    z-index: 20;
}

.public-brand {
    color: var(--tenant-accent);
}

.public-hero {
    position: relative;
    overflow: hidden;
}

.public-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 6px;
    background: linear-gradient(90deg, #0f766e, #f97316, #2563eb, #7c3aed);
}

.hero-copy {
    animation: slide-up .7s ease-out both;
}

.hero-media,
.community-note,
.launch-tile {
    animation: float-in .9s ease-out both;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.campaign-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

.campaign-grid .campaign-card {
    animation: float-in .7s ease-out both;
}

.campaign-card:hover {
    box-shadow: 0 18px 40px rgba(15, 23, 42, .13);
    transform: translateY(-4px);
}

.campaign-grid .campaign-card:nth-child(2) {
    animation-delay: .08s;
}

.campaign-grid .campaign-card:nth-child(3) {
    animation-delay: .16s;
}

.theme-ocean .public-header,
.theme-summit .public-header,
.theme-urban .public-header {
    background: rgba(255, 255, 255, .86);
}

.ocean-hero {
    background:
        linear-gradient(90deg, rgba(236, 254, 255, .95), rgba(255, 255, 255, .76)),
        url("https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=1500&q=78") center / cover;
}

.summit-hero {
    background:
        linear-gradient(90deg, rgba(240, 253, 244, .94), rgba(255, 255, 255, .75)),
        url("https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1500&q=78") center / cover;
}

.urban-hero {
    background:
        linear-gradient(90deg, rgba(17, 24, 39, .94), rgba(30, 64, 175, .74)),
        url("https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=1500&q=78") center / cover;
    color: #ffffff;
}

.urban-hero .hero-copy p,
.urban-hero .public-eyebrow {
    color: #bfdbfe;
}

@media (max-width: 1100px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .bar-chart {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .metric {
        min-height: auto;
    }
}

/* Production polish: guest access and public theme upgrades */
.guest-shell,
.guest-main {
    min-height: 100vh;
}

.guest-main {
    padding: 0;
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 480px);
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .12), rgba(249, 115, 22, .1)),
        #f8fafc;
}

.login-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(320px, .68fr);
    gap: 28px;
    align-items: center;
    padding: 54px;
    background:
        linear-gradient(135deg, rgba(12, 74, 110, .92), rgba(17, 24, 39, .9)),
        url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1700&q=80") center / cover;
    color: #ffffff;
}

.login-hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 7px;
    background: linear-gradient(90deg, #2dd4bf, #f97316, #2563eb, #7c3aed);
}

.login-hero-content,
.login-preview {
    position: relative;
    z-index: 1;
}

.login-hero .eyebrow {
    color: #99f6e4;
}

.login-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: 52px;
    line-height: 1.02;
}

.login-hero p {
    max-width: 700px;
    color: #dbeafe;
    font-size: 18px;
}

.login-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 30px;
}

.login-feature-grid article,
.credential-grid article,
.trust-metric-grid article,
.trust-feature-grid article {
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(12px);
}

.login-feature-grid .icon {
    width: 26px;
    height: 26px;
    margin-bottom: 12px;
    color: #fbbf24;
}

.login-feature-grid strong,
.login-feature-grid span,
.credential-grid span,
.credential-grid strong,
.credential-grid code {
    display: block;
}

.login-feature-grid span {
    margin-top: 5px;
    color: #dbeafe;
    font-size: 13px;
}

.login-preview {
    min-height: 460px;
}

.preview-window {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, .13);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .22);
    animation: preview-float 4.6s ease-in-out infinite;
}

.preview-bar {
    display: flex;
    gap: 7px;
    margin-bottom: 12px;
}

.preview-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f97316;
}

.preview-bar span:nth-child(2) {
    background: #facc15;
}

.preview-bar span:nth-child(3) {
    background: #2dd4bf;
}

.preview-hero {
    min-height: 210px;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0), rgba(17, 24, 39, .55)),
        url("https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=1000&q=80") center / cover;
}

.preview-lines {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.preview-lines span {
    display: block;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
}

.preview-lines span:nth-child(2) {
    width: 74%;
}

.preview-lines span:nth-child(3) {
    width: 58%;
}

.preview-progress {
    overflow: hidden;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .28);
}

.preview-progress span {
    display: block;
    width: 78%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2dd4bf, #f97316);
    animation: pulse-progress 2.4s ease-in-out infinite;
}

.floating-stat {
    position: absolute;
    right: 0;
    display: grid;
    gap: 2px;
    width: 168px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, .9);
    color: #111827;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .18);
}

.floating-stat strong {
    font-size: 27px;
}

.floating-stat span {
    color: #4b5563;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.stat-one {
    top: 58px;
}

.stat-two {
    right: 28px;
    bottom: 48px;
}

.login-panel {
    display: grid;
    align-content: center;
    gap: 16px;
    padding: 38px;
}

.login-card {
    display: grid;
    gap: 14px;
    border: 1px solid rgba(15, 23, 42, .09);
    border-radius: 8px;
    padding: 24px;
    background: #ffffff;
    box-shadow: 0 26px 60px rgba(15, 23, 42, .1);
}

.login-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.login-card-head h2 {
    margin: 0;
    font-size: 24px;
}

.login-card .brand-mark {
    color: #ffffff;
}

.login-submit {
    width: 100%;
    gap: 9px;
    margin-top: 4px;
}

.credential-grid {
    display: grid;
    gap: 10px;
}

.credential-grid article {
    border-color: rgba(15, 23, 42, .08);
    background: rgba(255, 255, 255, .74);
}

.credential-grid span {
    color: #0f766e;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.credential-grid strong {
    margin-top: 4px;
    color: #111827;
    word-break: break-word;
}

.credential-grid code {
    margin-top: 8px;
    border-radius: 8px;
    padding: 8px 10px;
    background: #111827;
    color: #f9fafb;
}

.public-brand {
    gap: 9px;
}

.public-brand > span:last-child {
    display: grid;
    gap: 1px;
}

.public-brand strong {
    line-height: 1.1;
}

.public-brand small {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.public-brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 8px;
    background: var(--tenant-accent);
    color: #ffffff;
}

.public-brand-mark .icon {
    width: 18px;
    height: 18px;
}

.public-brand-mark img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.theme-visual-card {
    position: relative;
    overflow: hidden;
    min-height: 410px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    background: #111827;
    box-shadow: 0 28px 70px rgba(15, 23, 42, .18);
    animation: float-in .9s ease-out both;
}

.theme-visual-card img,
.theme-visual-placeholder {
    width: 100%;
    height: 100%;
    min-height: 410px;
    object-fit: cover;
}

.theme-visual-card img {
    animation: image-drift 12s ease-in-out infinite alternate;
}

.theme-visual-placeholder {
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.theme-visual-overlay {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: grid;
    gap: 9px;
    border-radius: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, .92);
    color: #111827;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
}

.theme-visual-overlay span {
    color: var(--tenant-accent);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.theme-visual-overlay strong {
    font-size: 20px;
    line-height: 1.18;
}

.theme-visual-overlay small {
    color: #4b5563;
    font-weight: 800;
}

.hero-side-stack {
    display: grid;
    gap: 14px;
}

.mini-launch-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-launch-stack .launch-tile {
    min-height: 120px;
}

.compact-note {
    min-height: 150px;
}

.trust-band {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(360px, 1.18fr);
    gap: 18px;
    align-items: stretch;
}

.trust-copy,
.trust-metric-grid,
.trust-feature-grid {
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 20px 50px rgba(15, 23, 42, .08);
}

.trust-copy {
    padding: 24px;
}

.trust-copy h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.12;
}

.trust-copy p {
    color: #4b5563;
    font-size: 16px;
}

.trust-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    padding: 0;
}

.trust-metric-grid article,
.trust-feature-grid article {
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, .74);
    color: #111827;
    backdrop-filter: none;
}

.trust-metric-grid .icon,
.trust-feature-grid .icon {
    width: 25px;
    height: 25px;
    margin-bottom: 12px;
    color: var(--tenant-accent);
}

.trust-metric-grid strong {
    display: block;
    font-size: 28px;
}

.trust-metric-grid span,
.trust-feature-grid span {
    display: block;
    color: #4b5563;
    font-size: 13px;
    font-weight: 800;
}

.trust-feature-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    padding: 0;
}

.trust-feature-grid strong {
    display: block;
    margin-bottom: 6px;
}

.impact-showcase {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 8px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 22px 54px rgba(15, 23, 42, .08);
    animation: float-in .9s ease-out both;
}

.impact-showcase img,
.impact-showcase-placeholder {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

.impact-showcase-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--tenant-accent), #111827);
    color: #ffffff;
    font-weight: 900;
}

.impact-showcase > div {
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 26px;
}

.impact-showcase strong {
    font-size: 28px;
    line-height: 1.12;
}

.impact-showcase p {
    margin: 0;
    color: #4b5563;
    font-size: 16px;
}

.review-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.review-item form {
    flex: 0 0 auto;
}

.site-health-list {
    display: grid;
    gap: 10px;
}

.site-health-list span {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 8px;
    padding: 10px 12px;
    background: #f8fafc;
    color: #475569;
    font-weight: 800;
}

.site-health-list .icon {
    color: #f97316;
}

.site-health-list .complete {
    background: #ecfdf5;
    color: #166534;
}

.site-health-list .complete .icon {
    color: #16a34a;
}

.theme-launchpad .theme-visual-card,
.theme-urban .theme-visual-card {
    transform: rotate(1deg);
}

.theme-community .theme-visual-overlay,
.theme-ocean .theme-visual-overlay,
.theme-summit .theme-visual-overlay {
    background: rgba(255, 255, 255, .94);
}

.public-page-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.submission-hero {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, .8fr);
    gap: 24px;
    align-items: center;
    padding: 58px 34px;
    background:
        linear-gradient(90deg, rgba(240, 253, 250, .96), rgba(255, 247, 237, .82)),
        url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1600&q=80") center / cover;
}

.submission-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: 46px;
    line-height: 1.06;
}

.submission-hero p {
    max-width: 720px;
    color: #374151;
    font-size: 18px;
}

.submission-steps {
    display: grid;
    gap: 12px;
}

.submission-steps article {
    display: grid;
    gap: 6px;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 8px;
    padding: 18px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}

.submission-steps .icon {
    width: 25px;
    height: 25px;
    color: var(--tenant-accent);
}

.submission-steps span {
    color: #4b5563;
}

.submission-form {
    display: grid;
    gap: 14px;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 8px;
    padding: 22px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 20px 50px rgba(15, 23, 42, .08);
}

@keyframes preview-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-progress {
    0%,
    100% {
        opacity: .85;
    }
    50% {
        opacity: 1;
    }
}

@keyframes image-drift {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.045);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }
}

@media (max-width: 1180px) {
    .login-page,
    .login-hero,
    .trust-band {
        grid-template-columns: 1fr;
    }

    .login-preview {
        min-height: auto;
    }

    .floating-stat {
        position: static;
        margin-top: 12px;
    }

    .stat-two {
        right: auto;
        bottom: auto;
        margin-left: auto;
    }
}

@media (max-width: 760px) {
    .login-hero,
    .login-panel {
        padding: 22px;
    }

    .login-hero h1 {
        font-size: 36px;
    }

    .login-feature-grid,
    .trust-metric-grid,
    .trust-feature-grid,
    .mini-launch-stack,
    .submission-hero {
        grid-template-columns: 1fr;
    }

    .theme-visual-card,
    .theme-visual-card img,
    .theme-visual-placeholder {
        min-height: 320px;
    }

    .theme-visual-overlay {
        position: static;
        margin: 0;
        border-radius: 0;
    }

    .impact-showcase {
        grid-template-columns: 1fr;
    }

    .trust-copy h2 {
        font-size: 24px;
    }

    .submission-hero {
        padding: 34px 22px;
    }

    .submission-hero h1 {
        font-size: 32px;
    }
}

.creator-profile-form textarea,
.milestone-editor textarea,
.budget-editor textarea,
.faq-editor textarea,
.team-editor textarea,
.comment-form textarea {
    min-height: 92px;
}

.milestone-editor-grid,
.budget-editor-grid,
.faq-editor-grid,
.team-editor-grid,
.gallery-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.milestone-editor,
.budget-editor,
.faq-editor,
.team-editor,
.gallery-editor {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(239, 246, 255, .95), rgba(255, 255, 255, .98)),
        #ffffff;
}

.creator-dashboard-profile,
.creator-trust-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.creator-dashboard-profile {
    margin-bottom: 18px;
}

.creator-dashboard-profile h2,
.creator-trust-card h2 {
    margin: 0 0 4px;
    font-size: 22px;
}

.creator-avatar {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    overflow: hidden;
    border: 2px solid #a7f3d0;
    border-radius: 50%;
    background: #ecfeff;
    color: #0f766e;
    font-weight: 900;
}

.creator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-trust-card {
    margin: 24px 0;
    padding: 18px;
    border: 1px solid #ccfbf1;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(240, 253, 250, .92), rgba(255, 251, 235, .84)),
        #ffffff;
}

.creator-trust-card p {
    margin: 4px 0 8px;
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 8px;
    border-radius: 999px;
    padding: 5px 10px;
    background: #dcfce7;
    color: #166534;
    font-size: 12px;
    font-weight: 900;
}

.milestone-timeline {
    display: grid;
    gap: 14px;
    margin: 28px 0;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.milestone-item {
    position: relative;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
}

.milestone-dot {
    width: 14px;
    height: 14px;
    margin-top: 5px;
    border-radius: 50%;
    background: #94a3b8;
    box-shadow: 0 0 0 5px rgba(148, 163, 184, .16);
}

.milestone-in_progress .milestone-dot {
    background: #f97316;
    box-shadow: 0 0 0 5px rgba(249, 115, 22, .18);
}

.milestone-completed .milestone-dot {
    background: #10b981;
    box-shadow: 0 0 0 5px rgba(16, 185, 129, .18);
}

.milestone-head,
.milestone-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.milestone-head {
    justify-content: space-between;
}

.milestone-head span,
.milestone-meta span {
    border-radius: 999px;
    padding: 4px 9px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 800;
}

.milestone-meta span {
    background: #f1f5f9;
    color: #475569;
}

.milestone-item p {
    margin: 8px 0 10px;
    color: #4b5563;
}

.budget-breakdown,
.campaign-faqs,
.campaign-assurance-card,
.campaign-team,
.campaign-gallery,
.campaign-comments {
    display: grid;
    gap: 14px;
    margin: 28px 0;
    padding: 18px;
    border: 1px solid #e0f2fe;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(240, 249, 255, .96), rgba(255, 255, 255, .98)),
        #ffffff;
}

.budget-meter {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
}

.budget-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f766e, #22c55e);
}

.budget-list {
    display: grid;
    gap: 10px;
}

.budget-list article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    padding: 14px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #ffffff;
}

.budget-list p {
    margin: 6px 0 0;
    color: #4b5563;
}

.budget-amount {
    display: grid;
    justify-items: end;
    align-content: start;
    gap: 4px;
    white-space: nowrap;
}

.budget-amount span {
    color: #0f766e;
    font-weight: 900;
}

.budget-amount small {
    color: #64748b;
    font-weight: 800;
}

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-list details {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
    background: #ffffff;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 900;
}

.faq-list p {
    margin: 10px 0 0;
    color: #4b5563;
}

.assurance-grid,
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.assurance-grid article,
.assurance-copy,
.team-grid article {
    padding: 14px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #ffffff;
}

.assurance-grid article {
    display: grid;
    gap: 4px;
}

.assurance-grid span {
    font-weight: 900;
}

.assurance-grid small,
.team-grid span {
    color: #64748b;
    font-weight: 800;
}

.assurance-copy strong {
    display: block;
    margin-bottom: 6px;
}

.assurance-copy p {
    margin: 0;
    color: #4b5563;
}

.team-grid article {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.team-avatar {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 900;
    text-transform: uppercase;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-grid p {
    margin: 6px 0 0;
    color: #4b5563;
}

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

.gallery-grid figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #ffffff;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-grid figcaption {
    padding: 10px 12px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 800;
}

.comment-list {
    display: grid;
    gap: 10px;
}

.comment-list article {
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.comment-list span {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.comment-list p {
    margin: 8px 0 0;
    color: #4b5563;
}

.comment-form {
    display: grid;
    gap: 14px;
    padding-top: 4px;
}

.withdrawal-mini {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.inline-withdrawal-form,
.withdrawal-review-form {
    display: grid;
    gap: 8px;
}

.inline-withdrawal-form {
    grid-template-columns: 90px 110px minmax(150px, 1fr) auto;
}

.inline-withdrawal-form input,
.inline-withdrawal-form select,
.withdrawal-review-form input,
.withdrawal-review-form select {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 13px;
}

.withdrawal-history {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.withdrawal-history span {
    border-radius: 999px;
    padding: 4px 8px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 800;
}

.withdrawal-review-form {
    min-width: 260px;
}

.public-footer {
    align-items: start;
}

.public-footer-copy {
    display: grid;
    gap: 8px;
}

.public-footer-form {
    display: grid;
    min-width: min(100%, 260px);
    gap: 8px;
}

.public-footer-form strong {
    color: #ffffff;
}

.public-footer-form input,
.public-footer-form textarea {
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
}

.public-footer-form input::placeholder,
.public-footer-form textarea::placeholder {
    color: rgba(255, 255, 255, .72);
}

.public-footer-form .public-button {
    min-height: 36px;
}

.inquiry-review-form {
    display: grid;
    min-width: 230px;
    gap: 8px;
}

.inquiry-review-form input,
.inquiry-review-form select {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 13px;
}

.category-form-grid input[type="color"],
.category-inline-form input[type="color"] {
    min-height: 42px;
    padding: 4px;
}

.category-swatch,
.campaign-category,
.public-category-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 7px;
}

.category-swatch {
    border: 1px solid rgba(15, 23, 42, .1);
    border-left: 5px solid var(--category-color, var(--primary));
    border-radius: 999px;
    padding: 7px 10px;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}

.category-swatch .icon {
    color: var(--category-color, var(--primary));
}

.category-inline-form {
    display: grid;
    grid-template-columns: 120px 120px 58px 116px 80px minmax(160px, 1fr) 86px auto;
    gap: 8px;
    align-items: center;
    min-width: 880px;
    margin-bottom: 10px;
}

.category-inline-form input,
.category-inline-form select {
    min-height: 36px;
    padding: 7px 9px;
    font-size: 13px;
}

.public-category-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.public-category-pill {
    min-height: 40px;
    border: 1px solid rgba(15, 23, 42, .1);
    border-left: 5px solid var(--category-color, var(--tenant-accent));
    border-radius: 999px;
    padding: 8px 13px 8px 10px;
    background: rgba(255, 255, 255, .9);
    color: #1f2937;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.public-category-pill .icon {
    width: 16px;
    height: 16px;
    color: var(--category-color, var(--tenant-accent));
}

.public-category-pill.is-active {
    border-color: var(--category-color, var(--tenant-accent));
    background: var(--category-color, var(--tenant-accent));
    color: #ffffff;
}

.public-category-pill.is-active .icon {
    color: #ffffff;
}

.campaign-category {
    border: 1px solid rgba(15, 23, 42, .09);
    border-left: 5px solid var(--category-color, var(--tenant-accent));
    border-radius: 999px;
    padding: 5px 10px 5px 8px;
    background: #ffffff;
    color: #111827;
    line-height: 1;
}

.campaign-category .icon {
    width: 14px;
    height: 14px;
    color: var(--category-color, var(--tenant-accent));
}

.campaign-category-large {
    margin-bottom: 10px;
    padding: 7px 12px 7px 10px;
}

.detail-category-fallback {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 14px;
    background: var(--category-color, var(--tenant-accent));
    color: #ffffff;
    font-weight: 900;
}

.detail-category-fallback .icon {
    color: #ffffff;
}

.blog-filter {
    grid-template-columns: minmax(240px, 1fr) auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.blog-card {
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, .1);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .07);
}

.blog-image,
.blog-detail-media {
    display: grid;
    min-height: 230px;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--tenant-accent), #111827);
    color: #ffffff;
    font-weight: 900;
}

.blog-image img,
.blog-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-body {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.blog-card h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
}

.blog-card p {
    margin: 0;
    color: #4b5563;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-meta span {
    border-radius: 999px;
    padding: 5px 9px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
}

.text-link {
    color: var(--tenant-accent);
    font-weight: 900;
}

.blog-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(360px, .75fr);
    gap: 30px;
    align-items: center;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 46px 0;
}

.blog-detail-hero h1 {
    margin: 0;
    font-size: 44px;
    line-height: 1.08;
}

.blog-detail-hero p {
    color: #4b5563;
    font-size: 18px;
}

.blog-detail-media {
    min-height: 390px;
    border-radius: 8px;
    box-shadow: 0 24px 58px rgba(15, 23, 42, .13);
}

.blog-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    align-items: start;
}

.blog-content {
    color: #374151;
    font-size: 17px;
}

.blog-side-panel {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 12px;
    border: 1px solid rgba(17, 24, 39, .1);
    border-radius: 8px;
    padding: 18px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .07);
}

.blog-side-panel > strong {
    font-size: 18px;
}

.related-posts {
    display: grid;
    gap: 8px;
    padding-top: 8px;
}

.related-posts a {
    display: grid;
    gap: 3px;
    border-top: 1px solid #e5e7eb;
    padding-top: 10px;
}

.related-posts small {
    color: #64748b;
    font-weight: 800;
}

@media (max-width: 760px) {
    .milestone-editor-grid,
    .budget-editor-grid,
    .faq-editor-grid,
    .team-editor-grid,
    .gallery-editor-grid,
    .milestone-editor,
    .budget-editor,
    .faq-editor,
    .team-editor,
    .gallery-editor,
    .creator-dashboard-profile,
    .creator-trust-card,
    .budget-list article,
    .assurance-grid,
    .team-grid,
    .team-grid article,
    .gallery-grid,
    .blog-grid,
    .blog-detail-hero,
    .blog-detail-grid {
        grid-template-columns: 1fr;
    }

    .inline-withdrawal-form,
    .category-inline-form {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .public-footer {
        grid-template-columns: 1fr;
    }

    .budget-amount {
        justify-items: start;
    }

    .blog-detail-hero {
        width: min(100% - 28px, 1180px);
    }

    .blog-detail-hero h1 {
        font-size: 32px;
    }

    .blog-side-panel {
        position: static;
    }
}

.health-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.production-health-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.health-card {
    display: grid;
    gap: 9px;
    border: 1px solid rgba(15, 23, 42, .09);
    border-left: 6px solid #16a34a;
    border-radius: 8px;
    padding: 16px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .06);
}

.health-warn {
    border-left-color: #f59e0b;
}

.health-fail {
    border-left-color: #dc2626;
}

.health-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.health-card p {
    margin: 0;
    color: #374151;
    font-weight: 800;
}

.health-card small {
    color: #64748b;
    font-weight: 700;
}

@media (max-width: 760px) {
    .health-summary,
    .production-health-grid {
        grid-template-columns: 1fr;
    }
}

/* Events and premium public theme polish */
.public-header {
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
}

.public-brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: color-mix(in srgb, var(--tenant-accent) 18%, #ffffff);
    color: var(--tenant-accent);
}

.public-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-brand small {
    display: block;
    max-width: 260px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.public-header nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    color: #334155;
}

.public-header nav a::after {
    position: absolute;
    right: 0;
    bottom: -2px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--tenant-accent);
    content: "";
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .18s ease, transform .18s ease;
}

.public-header nav a:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.public-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.public-hero::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .58)),
        url("https://images.unsplash.com/photo-1559027615-cd4628902d4a?auto=format&fit=crop&w=1800&q=80") center / cover;
    content: "";
}

.public-hero::after {
    position: absolute;
    inset: auto 34px 24px auto;
    z-index: -1;
    width: min(420px, 48vw);
    height: 130px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 8px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--tenant-accent) 42%, transparent), rgba(249, 115, 22, .22)),
        rgba(255, 255, 255, .18);
    box-shadow: 0 26px 68px rgba(15, 23, 42, .15);
    content: "";
    animation: preview-float 5s ease-in-out infinite;
}

.theme-impact .public-hero::before {
    background:
        linear-gradient(115deg, rgba(240, 253, 250, .98), rgba(255, 255, 255, .74)),
        url("https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.theme-launchpad .public-hero::before {
    background:
        linear-gradient(115deg, rgba(17, 24, 39, .92), rgba(17, 24, 39, .62)),
        url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.theme-community .public-hero::before {
    background:
        linear-gradient(115deg, rgba(250, 245, 255, .96), rgba(255, 255, 255, .72)),
        url("https://images.unsplash.com/photo-1469571486292-0ba58a3f068b?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.theme-ocean .public-hero::before {
    background:
        linear-gradient(115deg, rgba(236, 254, 255, .95), rgba(255, 255, 255, .70)),
        url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.theme-summit .public-hero::before {
    background:
        linear-gradient(115deg, rgba(240, 253, 244, .96), rgba(255, 255, 255, .73)),
        url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.theme-urban .public-hero::before {
    background:
        linear-gradient(115deg, rgba(15, 23, 42, .88), rgba(37, 99, 235, .46)),
        url("https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=1800&q=80") center / cover;
}

.theme-launchpad .hero-copy,
.theme-urban .hero-copy {
    color: #ffffff;
}

.theme-launchpad .hero-copy p,
.theme-urban .hero-copy p {
    color: rgba(255, 255, 255, .82);
}

.theme-launchpad .public-header,
.theme-urban .public-header {
    background: rgba(255, 255, 255, .94);
}

.hero-copy h1 {
    text-wrap: balance;
}

.theme-visual-card,
.blog-card,
.campaign-card,
.event-card,
.home-event-card,
.home-story-card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.theme-visual-card:hover,
.blog-card:hover,
.campaign-card:hover,
.event-card:hover,
.home-event-card:hover,
.home-story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 64px rgba(15, 23, 42, .12);
}

.theme-visual-card img,
.campaign-image img,
.blog-image img,
.event-image img,
.event-detail-media img,
.home-story-card img {
    transition: transform .7s ease;
}

.theme-visual-card:hover img,
.campaign-card:hover .campaign-image img,
.blog-card:hover .blog-image img,
.event-card:hover .event-image img,
.event-detail-media:hover img,
.home-story-card:hover img {
    transform: scale(1.045);
}

.home-feature-section {
    display: grid;
    gap: 24px;
}

.home-event-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-event-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    border: 1px solid rgba(15, 23, 42, .09);
    border-left: 6px solid var(--tenant-accent);
    border-radius: 8px;
    padding: 14px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(248, 250, 252, .9)),
        #ffffff;
}

.home-event-date {
    display: grid;
    min-height: 68px;
    place-items: center;
    border-radius: 8px;
    background: var(--tenant-accent);
    color: #ffffff;
    text-align: center;
}

.home-event-date strong,
.home-event-date em {
    display: block;
    font-style: normal;
    line-height: 1;
}

.home-event-date em {
    font-size: 27px;
    font-weight: 900;
}

.home-event-card > span:last-child {
    min-width: 0;
}

.home-event-card > span:last-child strong,
.home-story-card strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 17px;
    line-height: 1.24;
}

.home-event-card small,
.home-story-card small {
    display: -webkit-box;
    margin-top: 5px;
    overflow: hidden;
    color: #64748b;
    font-weight: 700;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-story-head {
    margin-top: 14px;
}

.home-story-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-story-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .09);
    border-radius: 8px;
    padding: 12px;
    background: #ffffff;
}

.home-story-card img {
    width: 112px;
    height: 88px;
    border-radius: 8px;
    object-fit: cover;
}

.event-page-head {
    min-height: 320px;
    display: grid;
    align-content: center;
    border-radius: 0 0 8px 8px;
}

.event-filter {
    grid-template-columns: minmax(240px, 1fr) 180px 160px auto;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.event-card {
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, .1);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .07);
}

.event-image {
    display: grid;
    min-height: 230px;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--tenant-accent) 72%, #111827), #111827);
    color: #ffffff;
    font-size: 28px;
    font-weight: 900;
}

.event-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.event-card-body {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 18px;
}

.event-date-chip {
    position: absolute;
    top: -42px;
    right: 16px;
    display: grid;
    min-width: 76px;
    min-height: 70px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .14);
    text-align: center;
}

.event-date-chip strong,
.event-date-chip span {
    display: block;
    line-height: 1.1;
}

.event-date-chip span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.event-card h2 {
    margin: 0;
    padding-right: 82px;
    font-size: 22px;
    line-height: 1.2;
}

.event-card p {
    margin: 0;
    color: #4b5563;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.event-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 10px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
}

.event-meta .icon {
    width: 15px;
    height: 15px;
    color: var(--tenant-accent);
}

.event-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(360px, .78fr);
    gap: 32px;
    align-items: center;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 48px 0;
}

.event-detail-hero h1 {
    margin: 0;
    font-size: 44px;
    line-height: 1.08;
    text-wrap: balance;
}

.event-detail-hero p {
    color: #4b5563;
    font-size: 18px;
}

.event-meta-large {
    margin-top: 18px;
}

.event-detail-media {
    min-height: 390px;
    overflow: hidden;
    border-radius: 8px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--tenant-accent) 72%, #111827), #111827);
    box-shadow: 0 24px 58px rgba(15, 23, 42, .13);
}

.event-detail-media img {
    width: 100%;
    height: 100%;
    min-height: 390px;
    object-fit: cover;
}

.event-detail-placeholder {
    display: grid;
    min-height: 390px;
    place-items: center;
    color: #ffffff;
    text-align: center;
}

.event-detail-placeholder strong,
.event-detail-placeholder span {
    display: block;
    line-height: 1;
}

.event-detail-placeholder strong {
    font-size: 26px;
}

.event-detail-placeholder span {
    font-size: 90px;
    font-weight: 900;
}

.event-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding-bottom: 54px;
}

.event-register-panel {
    box-shadow: 0 22px 52px rgba(15, 23, 42, .1);
}

.event-related {
    margin-top: 30px;
}

.event-mini-list {
    display: grid;
    gap: 10px;
}

.event-mini-list a {
    display: grid;
    gap: 3px;
    border: 1px solid #e2e8f0;
    border-left: 5px solid var(--tenant-accent);
    border-radius: 8px;
    padding: 12px;
    background: #ffffff;
}

.event-mini-list span {
    color: #64748b;
    font-weight: 800;
}

.event-registration-panel {
    margin-top: 18px;
}

.event-registration-form {
    display: grid;
    grid-template-columns: 140px minmax(180px, 1fr) auto;
    gap: 8px;
    min-width: 420px;
}

.event-registration-form input,
.event-registration-form select {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 13px;
}

.payment-gateway-list {
    display: grid;
    gap: 9px;
}

.payment-gateway-list article {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    background: #f8fafc;
}

.payment-gateway-list article > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    background: color-mix(in srgb, var(--tenant-accent) 14%, #ffffff);
    color: var(--tenant-accent);
}

.payment-gateway-list strong,
.payment-gateway-list small,
.payment-gateway-list em {
    display: block;
}

.payment-gateway-list small {
    color: #64748b;
    font-weight: 700;
}

.payment-gateway-list em {
    margin-top: 4px;
    color: #0f766e;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.payment-admin-grid {
    display: grid;
    gap: 16px;
}

.gateway-admin-card {
    display: grid;
    gap: 16px;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 8px;
    padding: 18px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .06);
}

.gateway-admin-head {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
}

.gateway-admin-head h2 {
    margin: 0;
    font-size: 20px;
}

.gateway-admin-head p {
    margin: 4px 0 0;
    color: #64748b;
}

.gateway-admin-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
}

.gateway-locked {
    background: #f8fafc;
}

.gateway-locked .gateway-admin-icon {
    background: #f1f5f9;
    color: #94a3b8;
}

.badge-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.badge-attended {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-registered {
    background: #dcfce7;
    color: #166534;
}

@media (max-width: 1100px) {
    .home-event-strip,
    .home-story-strip,
    .event-grid,
    .event-detail-hero,
    .event-detail-grid {
        grid-template-columns: 1fr;
    }

    .event-detail-grid {
        width: min(100% - 28px, 1180px);
    }
}

@media (max-width: 760px) {
    .public-header {
        position: static;
    }

    .public-brand small {
        max-width: none;
    }

    .public-hero::after {
        display: none;
    }

    .home-event-card,
    .home-story-card,
    .event-registration-form {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .home-story-card img {
        width: 100%;
        height: 180px;
    }

    .event-card h2 {
        padding-right: 0;
    }

    .event-date-chip {
        position: static;
        width: fit-content;
        margin-top: -46px;
        margin-bottom: 8px;
    }

    .event-filter {
        display: flex;
        flex-direction: column;
    }

    .event-detail-hero {
        grid-template-columns: 1fr;
        width: min(100% - 28px, 1180px);
    }

    .event-detail-hero h1 {
        font-size: 32px;
    }
}

/* Premium six-theme public redesign */
.theme-impact {
    --theme-ink: #12312f;
    --theme-secondary: #f59e0b;
    --theme-band: #ecfdf5;
    --theme-card-border: rgba(15, 118, 110, .18);
}

.theme-launchpad {
    --theme-ink: #fff7ed;
    --theme-secondary: #22d3ee;
    --theme-band: #111827;
    --theme-card-border: rgba(249, 115, 22, .32);
}

.theme-community {
    --theme-ink: #2e1b4b;
    --theme-secondary: #f43f5e;
    --theme-band: #fdf2f8;
    --theme-card-border: rgba(244, 63, 94, .20);
}

.theme-ocean {
    --theme-ink: #083344;
    --theme-secondary: #fb7185;
    --theme-band: #ecfeff;
    --theme-card-border: rgba(8, 145, 178, .20);
}

.theme-summit {
    --theme-ink: #132319;
    --theme-secondary: #ca8a04;
    --theme-band: #f7fee7;
    --theme-card-border: rgba(22, 163, 74, .22);
}

.theme-urban {
    --theme-ink: #f8fafc;
    --theme-secondary: #a3e635;
    --theme-band: #101827;
    --theme-card-border: rgba(37, 99, 235, .32);
}

.public-body {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .40)),
        var(--tenant-surface);
}

.public-header {
    min-height: 74px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.theme-launchpad .public-header,
.theme-urban .public-header {
    border-bottom-color: rgba(255, 255, 255, .18);
}

.public-header nav {
    gap: 6px;
}

.public-header nav a {
    border-radius: 8px;
    padding: 8px 11px;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.public-header nav a:hover {
    background: color-mix(in srgb, var(--tenant-accent) 10%, #ffffff);
    color: var(--tenant-accent);
    transform: translateY(-1px);
}

.public-header nav a::after {
    display: none;
}

.public-hero {
    min-height: 650px;
    grid-template-columns: minmax(0, .92fr) minmax(380px, .78fr);
    gap: 42px;
    padding: 70px 42px 58px;
}

.public-hero::before {
    transform: scale(1.01);
}

.public-hero::after {
    inset: auto 0 0 0;
    z-index: -1;
    width: auto;
    height: 9px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(90deg, var(--tenant-accent), var(--theme-secondary), #ffffff00);
    box-shadow: none;
    animation: none;
}

.theme-impact .public-hero::before {
    background:
        linear-gradient(105deg, rgba(236, 253, 245, .98) 0%, rgba(255, 255, 255, .86) 48%, rgba(255, 247, 237, .62) 100%),
        url("https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&w=1900&q=82") center / cover;
}

.theme-launchpad .public-hero::before {
    background:
        linear-gradient(115deg, rgba(17, 24, 39, .96) 0%, rgba(30, 41, 59, .86) 55%, rgba(249, 115, 22, .28) 100%),
        url("https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1900&q=82") center / cover;
}

.theme-community .public-hero::before {
    background:
        linear-gradient(105deg, rgba(255, 241, 242, .96) 0%, rgba(250, 245, 255, .84) 52%, rgba(240, 253, 250, .60) 100%),
        url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1900&q=82") center / cover;
}

.theme-ocean .public-hero::before {
    background:
        linear-gradient(105deg, rgba(236, 254, 255, .98) 0%, rgba(255, 255, 255, .76) 50%, rgba(255, 228, 230, .50) 100%),
        url("https://images.unsplash.com/photo-1518837695005-2083093ee35b?auto=format&fit=crop&w=1900&q=82") center / cover;
}

.theme-summit .public-hero::before {
    background:
        linear-gradient(105deg, rgba(247, 254, 231, .97) 0%, rgba(255, 255, 255, .80) 50%, rgba(254, 249, 195, .56) 100%),
        url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1900&q=82") center / cover;
}

.theme-urban .public-hero::before {
    background:
        linear-gradient(112deg, rgba(15, 23, 42, .95) 0%, rgba(30, 64, 175, .72) 52%, rgba(163, 230, 53, .20) 100%),
        url("https://images.unsplash.com/photo-1494526585095-c41746248156?auto=format&fit=crop&w=1900&q=82") center / cover;
}

.theme-launchpad .public-hero,
.theme-urban .public-hero {
    color: #ffffff;
}

.theme-launchpad .public-eyebrow,
.theme-urban .public-eyebrow {
    color: var(--theme-secondary);
}

.theme-launchpad .hero-copy p,
.theme-urban .hero-copy p {
    color: rgba(255, 255, 255, .84);
}

.theme-community .public-eyebrow {
    color: #be123c;
}

.theme-ocean .public-eyebrow {
    color: #0e7490;
}

.theme-summit .public-eyebrow {
    color: #15803d;
}

.hero-copy {
    display: grid;
    align-content: center;
    gap: 18px;
}

.hero-copy h1 {
    max-width: 780px;
    color: var(--theme-ink);
    font-size: 52px;
    line-height: 1.02;
}

.theme-launchpad .hero-copy h1,
.theme-urban .hero-copy h1 {
    color: #ffffff;
}

.hero-copy p {
    max-width: 690px;
    margin: 0;
    color: #334155;
    font-size: 19px;
    line-height: 1.68;
}

.hero-action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.public-button {
    box-shadow: 0 14px 34px color-mix(in srgb, var(--tenant-accent) 22%, transparent);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.public-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px color-mix(in srgb, var(--tenant-accent) 28%, transparent);
}

.public-button-secondary {
    border-color: rgba(15, 23, 42, .12);
    background: rgba(255, 255, 255, .72);
    color: #0f172a;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
    backdrop-filter: blur(12px);
}

.theme-launchpad .public-button-secondary,
.theme-urban .public-button-secondary {
    border-color: rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .12);
    color: #ffffff;
}

.hero-metric-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 150px));
    gap: 10px;
    margin-top: 8px;
}

.hero-metric-strip span {
    display: grid;
    gap: 2px;
    min-height: 78px;
    align-content: center;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, .74);
    box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
    backdrop-filter: blur(14px);
}

.theme-launchpad .hero-metric-strip span,
.theme-urban .hero-metric-strip span {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .11);
}

.hero-metric-strip strong {
    color: var(--tenant-accent);
    font-size: 25px;
    line-height: 1;
}

.theme-launchpad .hero-metric-strip strong,
.theme-urban .hero-metric-strip strong {
    color: var(--theme-secondary);
}

.hero-metric-strip small {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.theme-launchpad .hero-metric-strip small,
.theme-urban .hero-metric-strip small {
    color: rgba(255, 255, 255, .78);
}

.theme-visual-card {
    min-height: 480px;
    border-color: var(--theme-card-border);
    border-radius: 8px;
    box-shadow: 0 32px 80px rgba(15, 23, 42, .20);
}

.theme-visual-card img,
.theme-visual-placeholder {
    min-height: 480px;
}

.theme-impact .theme-visual-card {
    border-bottom: 8px solid #f59e0b;
}

.theme-launchpad .theme-visual-card {
    border: 1px solid rgba(249, 115, 22, .42);
    transform: rotate(1deg);
}

.theme-community .theme-visual-card {
    border-top: 8px solid #f43f5e;
}

.theme-ocean .theme-visual-card {
    border-bottom: 8px solid #06b6d4;
}

.theme-summit .theme-visual-card {
    border-left: 8px solid #ca8a04;
}

.theme-urban .theme-visual-card {
    border: 1px solid rgba(163, 230, 53, .42);
    box-shadow: 0 32px 90px rgba(37, 99, 235, .25);
}

.theme-visual-overlay {
    border: 1px solid rgba(255, 255, 255, .54);
    background: rgba(255, 255, 255, .90);
    backdrop-filter: blur(16px);
}

.theme-launchpad .theme-visual-overlay,
.theme-urban .theme-visual-overlay {
    border-color: rgba(255, 255, 255, .20);
    background: rgba(15, 23, 42, .82);
    color: #ffffff;
}

.theme-launchpad .theme-visual-overlay small,
.theme-urban .theme-visual-overlay small {
    color: rgba(255, 255, 255, .76);
}

.launch-tile,
.community-note {
    border-color: var(--theme-card-border);
    box-shadow: 0 20px 50px rgba(15, 23, 42, .10);
}

.theme-launchpad .launch-tile,
.theme-urban .launch-tile {
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(16px);
}

.theme-community .community-note {
    background:
        linear-gradient(135deg, rgba(255, 241, 242, .92), rgba(255, 255, 255, .90)),
        #ffffff;
}

.theme-ocean .community-note {
    background:
        linear-gradient(135deg, rgba(236, 254, 255, .94), rgba(255, 255, 255, .90)),
        #ffffff;
}

.trust-band.public-section,
.home-feature-section,
.public-section:has(.campaign-grid) {
    position: relative;
}

.trust-band {
    margin-top: 22px;
}

.trust-copy,
.trust-metric-grid,
.trust-feature-grid,
.campaign-card,
.blog-card,
.event-card,
.home-event-card,
.home-story-card {
    border-color: var(--theme-card-border);
}

.theme-impact .trust-copy,
.theme-impact .campaign-card,
.theme-impact .home-event-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(236, 253, 245, .84));
}

.theme-launchpad .public-section,
.theme-urban .public-section {
    color: #111827;
}

.theme-launchpad .home-feature-section,
.theme-urban .home-feature-section {
    width: auto;
    max-width: none;
    padding: 54px max(24px, calc((100% - 1180px) / 2));
    background:
        linear-gradient(135deg, rgba(17, 24, 39, .96), rgba(30, 41, 59, .92)),
        #111827;
    color: #ffffff;
}

.theme-launchpad .home-feature-section .section-head a,
.theme-urban .home-feature-section .section-head a,
.theme-launchpad .home-feature-section h2,
.theme-urban .home-feature-section h2 {
    color: #ffffff;
}

.theme-launchpad .home-event-card,
.theme-launchpad .home-story-card,
.theme-urban .home-event-card,
.theme-urban .home-story-card {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .10);
    color: #ffffff;
    backdrop-filter: blur(14px);
}

.theme-launchpad .home-event-card small,
.theme-launchpad .home-story-card small,
.theme-urban .home-event-card small,
.theme-urban .home-story-card small {
    color: rgba(255, 255, 255, .74);
}

.theme-community .home-feature-section {
    width: auto;
    max-width: none;
    padding: 54px max(24px, calc((100% - 1180px) / 2));
    background:
        linear-gradient(135deg, rgba(255, 241, 242, .88), rgba(250, 245, 255, .78)),
        #fff7fb;
}

.theme-ocean .home-feature-section {
    width: auto;
    max-width: none;
    padding: 54px max(24px, calc((100% - 1180px) / 2));
    background:
        linear-gradient(135deg, rgba(236, 254, 255, .94), rgba(255, 228, 230, .44)),
        #ecfeff;
}

.theme-summit .home-feature-section {
    width: auto;
    max-width: none;
    padding: 54px max(24px, calc((100% - 1180px) / 2));
    background:
        linear-gradient(135deg, rgba(247, 254, 231, .94), rgba(254, 249, 195, .50)),
        #f7fee7;
}

.campaign-card,
.blog-card,
.event-card {
    box-shadow: 0 20px 50px rgba(15, 23, 42, .08);
}

.campaign-card h3,
.blog-card h2,
.event-card h2 {
    text-wrap: balance;
}

.campaign-image,
.blog-image,
.event-image {
    position: relative;
}

.campaign-image::after,
.blog-image::after,
.event-image::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 54%, rgba(15, 23, 42, .22));
    content: "";
    pointer-events: none;
}

.progress span {
    background: linear-gradient(90deg, var(--tenant-accent), var(--theme-secondary));
}

@media (max-width: 1100px) {
    .public-hero {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

    .hero-metric-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .public-hero {
        padding: 36px 18px 28px;
    }

    .hero-copy {
        gap: 14px;
    }

    .hero-copy h1 {
        font-size: 32px;
        line-height: 1.08;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .hero-action-row {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-action-row .public-button {
        width: 100%;
    }

    .hero-metric-strip {
        grid-template-columns: 1fr;
    }

    .theme-visual-card,
    .theme-visual-card img,
    .theme-visual-placeholder {
        min-height: 330px;
    }

    .theme-launchpad .theme-visual-card {
        transform: none;
    }

    .theme-launchpad .home-feature-section,
    .theme-community .home-feature-section,
    .theme-ocean .home-feature-section,
    .theme-summit .home-feature-section,
    .theme-urban .home-feature-section {
        padding: 34px 18px;
    }

    .gateway-admin-head {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .gateway-admin-head .badge {
        grid-column: 1 / -1;
        width: fit-content;
    }
}

/* Reference-inspired theme variants */
.theme-launchpad {
    --tenant-accent: #5b5cf6;
    --theme-secondary: #ff4d6d;
    --theme-ink: #111827;
    --theme-band: #fff9ef;
}

.theme-launchpad .public-body,
body.theme-launchpad {
    background:
        linear-gradient(180deg, #fff9ef 0%, #ffffff 44%, #f4f7ff 100%);
}

.theme-launchpad .public-hero {
    color: #111827;
}

.theme-launchpad .public-hero::before {
    background:
        linear-gradient(108deg, rgba(255, 249, 239, .96) 0%, rgba(255, 255, 255, .88) 48%, rgba(227, 232, 255, .72) 100%),
        url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1900&q=82") center / cover;
}

.theme-launchpad .hero-copy h1 {
    max-width: 760px;
    color: #111827;
    text-transform: uppercase;
}

.theme-launchpad .hero-copy h1::first-line {
    color: #ff4d6d;
}

.theme-launchpad .hero-copy p {
    color: #475569;
}

.theme-launchpad .public-eyebrow {
    color: #ff4d6d;
}

.theme-launchpad .public-button {
    background: #5b5cf6;
}

.theme-launchpad .public-button-secondary {
    border-color: rgba(91, 92, 246, .18);
    background: #ffffff;
    color: #111827;
}

.theme-launchpad .hero-metric-strip span {
    border-color: rgba(91, 92, 246, .16);
    background: #ffffff;
}

.theme-launchpad .hero-metric-strip strong {
    color: #5b5cf6;
}

.theme-launchpad .hero-metric-strip small {
    color: #64748b;
}

.theme-launchpad .theme-visual-card {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.theme-launchpad .theme-visual-card::before,
.theme-launchpad .theme-visual-card::after {
    position: absolute;
    z-index: 2;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(91, 92, 246, .18);
    content: "";
    animation: preview-float 5.8s ease-in-out infinite;
}

.theme-launchpad .theme-visual-card::before {
    top: 42px;
    left: -22px;
    width: 132px;
    height: 86px;
    border-left: 7px solid #ff4d6d;
}

.theme-launchpad .theme-visual-card::after {
    right: -18px;
    bottom: 104px;
    width: 156px;
    height: 102px;
    border-left: 7px solid #5b5cf6;
    animation-delay: .8s;
}

.theme-launchpad .theme-visual-card img,
.theme-launchpad .theme-visual-placeholder {
    width: min(88%, 420px);
    min-height: 500px;
    margin: 0 auto;
    border: 12px solid #111827;
    border-radius: 28px;
    box-shadow: 0 32px 88px rgba(15, 23, 42, .22);
}

.theme-launchpad .theme-visual-overlay {
    right: 44px;
    bottom: 30px;
    left: 44px;
    border: 1px solid rgba(91, 92, 246, .12);
    background: rgba(255, 255, 255, .94);
    color: #111827;
}

.theme-launchpad .theme-visual-overlay small {
    color: #64748b;
}

.theme-launchpad .home-feature-section {
    background:
        linear-gradient(135deg, #111827 0%, #312e81 62%, #5b5cf6 100%),
        #111827;
}

.theme-launchpad .campaign-card {
    border-color: rgba(91, 92, 246, .15);
    box-shadow: 0 22px 56px rgba(91, 92, 246, .12);
}

.theme-impact {
    --tenant-accent: #16a085;
    --theme-secondary: #ffb703;
}

.theme-impact .public-hero {
    align-items: end;
    min-height: 620px;
}

.theme-impact .public-hero::before {
    background:
        linear-gradient(104deg, rgba(255, 255, 255, .98) 0%, rgba(241, 255, 252, .88) 50%, rgba(255, 248, 225, .72) 100%),
        url("https://images.unsplash.com/photo-1559027615-cd4628902d4a?auto=format&fit=crop&w=1900&q=82") center / cover;
}

.theme-impact .hero-copy {
    align-content: end;
    padding-bottom: 22px;
}

.theme-impact .hero-copy h1 {
    color: #12312f;
}

.theme-impact .hero-action-row {
    position: sticky;
    bottom: 14px;
    z-index: 4;
    width: fit-content;
    border: 1px solid rgba(15, 118, 110, .16);
    border-radius: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 22px 54px rgba(15, 118, 110, .16);
    backdrop-filter: blur(16px);
}

.theme-impact .theme-visual-card {
    border: 1px solid rgba(15, 118, 110, .14);
    border-bottom: 0;
}

.theme-impact .theme-visual-card::after {
    position: absolute;
    inset: auto 0 0 0;
    height: 78px;
    background: linear-gradient(90deg, #16a085, #ffb703, #ffffff);
    content: "";
    opacity: .92;
}

.theme-impact .theme-visual-overlay {
    bottom: 34px;
}

.theme-impact .trust-band {
    width: auto;
    max-width: none;
    padding: 54px max(24px, calc((100% - 1180px) / 2));
    background:
        linear-gradient(135deg, rgba(236, 253, 245, .92), rgba(255, 251, 235, .82)),
        #f8fafc;
}

.theme-impact .trust-copy,
.theme-impact .trust-metric-grid,
.theme-impact .trust-feature-grid {
    background: rgba(255, 255, 255, .92);
}

.theme-community {
    --tenant-accent: #f59e0b;
    --theme-secondary: #111827;
    --theme-ink: #111827;
    --theme-band: #fff7ed;
}

.theme-community .public-hero {
    min-height: 680px;
}

.theme-community .public-hero::before {
    background:
        linear-gradient(100deg, rgba(17, 24, 39, .48) 0%, rgba(17, 24, 39, .20) 35%, rgba(255, 247, 237, .94) 100%),
        url("https://images.unsplash.com/photo-1469571486292-0ba58a3f068b?auto=format&fit=crop&w=1900&q=82") center / cover;
}

.theme-community .hero-copy h1 {
    color: #111827;
}

.theme-community .public-eyebrow {
    color: #b45309;
}

.theme-community .public-button {
    background: #111827;
    border-color: #111827;
}

.theme-community .public-button-secondary {
    border-color: rgba(17, 24, 39, .18);
    background: #f59e0b;
    color: #111827;
}

.theme-community .hero-metric-strip {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
}

.theme-community .hero-metric-strip span {
    min-height: 64px;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
    background: #fbbf24;
}

.theme-community .hero-metric-strip strong {
    color: #111827;
}

.theme-community .hero-metric-strip small {
    color: #111827;
}

.theme-community .theme-visual-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    min-height: 500px;
    padding: 12px;
    border: 0;
    background: rgba(255, 255, 255, .86);
}

.theme-community .theme-visual-card img,
.theme-community .theme-visual-placeholder {
    min-height: 476px;
    border-radius: 8px;
}

.theme-community .theme-visual-overlay {
    right: 28px;
    bottom: 28px;
    left: 28px;
    border-color: rgba(245, 158, 11, .28);
    background: #111827;
    color: #ffffff;
}

.theme-community .theme-visual-overlay span,
.theme-community .theme-visual-overlay small {
    color: #fbbf24;
}

.theme-community .community-note {
    min-height: 170px;
    border: 0;
    background: #111827;
    color: #ffffff;
}

.theme-community .community-note strong {
    color: #fbbf24;
}

.theme-community .home-feature-section,
.theme-community .public-section:has(.campaign-grid) {
    background:
        linear-gradient(180deg, #fff7ed, #ffffff),
        #fff7ed;
}

.theme-community .campaign-card {
    border-color: rgba(245, 158, 11, .25);
}

.theme-community .campaign-card .public-button,
.theme-community .text-link {
    color: #b45309;
}

@media (max-width: 760px) {
    .theme-impact .hero-action-row {
        position: static;
        width: 100%;
    }

    .theme-launchpad .theme-visual-card::before,
    .theme-launchpad .theme-visual-card::after {
        display: none;
    }

    .theme-launchpad .theme-visual-card img,
    .theme-launchpad .theme-visual-placeholder {
        width: 100%;
        min-height: 360px;
        border-width: 8px;
        border-radius: 18px;
    }

    .theme-community .theme-visual-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .theme-community .theme-visual-card img,
    .theme-community .theme-visual-placeholder {
        min-height: 340px;
    }

    .theme-community .hero-metric-strip span {
        grid-template-columns: 1fr;
    }
}

/* Advanced visitor-ready theme layer */
.public-header nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    color: inherit;
    transition: color .2s ease, transform .2s ease;
}

.public-header nav a::after {
    position: absolute;
    right: 0;
    bottom: 1px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
    opacity: .22;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}

.public-header nav a:hover {
    transform: translateY(-1px);
}

.public-header nav a:hover::after {
    transform: scaleX(1);
}

.public-button {
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 34px color-mix(in srgb, var(--tenant-accent) 28%, transparent);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.public-button::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, .28) 45%, transparent 72%);
    content: "";
    transform: translateX(-120%);
    transition: transform .55s ease;
}

.public-button:hover {
    box-shadow: 0 22px 44px color-mix(in srgb, var(--tenant-accent) 34%, transparent);
    filter: saturate(1.08);
    transform: translateY(-2px);
}

.public-button:hover::after {
    transform: translateX(120%);
}

.hero-copy h1,
.public-page-head h1,
.section-head h2,
.visitor-copy h2 {
    text-wrap: balance;
}

.hero-copy p,
.visitor-copy p {
    max-width: 68ch;
}

.theme-visual-card {
    isolation: isolate;
}

.theme-visual-badges {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: calc(100% - 36px);
}

.theme-visual-badges span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 999px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, .82);
    color: #111827;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .14);
    backdrop-filter: blur(14px);
}

.theme-visual-badges .icon {
    width: 14px;
    height: 14px;
    color: var(--tenant-accent);
}

.theme-visual-spark {
    position: absolute;
    top: 76px;
    right: 20px;
    z-index: 3;
    display: flex;
    align-items: end;
    gap: 5px;
    min-height: 58px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 8px;
    padding: 12px 10px;
    background: rgba(15, 23, 42, .68);
    box-shadow: 0 18px 34px rgba(15, 23, 42, .18);
    backdrop-filter: blur(14px);
}

.theme-visual-spark span {
    width: 8px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff, var(--tenant-accent));
    animation: spark-rise 1.8s ease-in-out infinite;
}

.theme-visual-spark span:nth-child(2) {
    height: 30px;
    animation-delay: .12s;
}

.theme-visual-spark span:nth-child(3) {
    height: 44px;
    animation-delay: .24s;
}

.theme-visual-spark span:nth-child(4) {
    height: 26px;
    animation-delay: .36s;
}

.theme-visual-spark span:nth-child(5) {
    height: 38px;
    animation-delay: .48s;
}

@keyframes spark-rise {
    0%, 100% {
        transform: scaleY(.72);
    }

    50% {
        transform: scaleY(1.08);
    }
}

.visitor-journey {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(280px, .92fr) minmax(300px, .88fr);
    gap: 24px;
    align-items: stretch;
    padding: 74px 0;
}

.visitor-journey::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: -2;
    width: 100vw;
    background:
        radial-gradient(circle at 16% 22%, color-mix(in srgb, var(--tenant-accent) 16%, transparent), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .94));
    content: "";
    transform: translateX(-50%);
}

.visitor-journey::after {
    position: absolute;
    top: 54px;
    right: -18px;
    z-index: -1;
    width: 180px;
    height: 180px;
    border: 1px solid color-mix(in srgb, var(--tenant-accent) 22%, transparent);
    border-radius: 999px;
    content: "";
    opacity: .48;
    animation: orbit-soft 13s linear infinite;
}

@keyframes orbit-soft {
    from {
        transform: rotate(0deg) translateX(10px) rotate(0deg);
    }

    to {
        transform: rotate(360deg) translateX(10px) rotate(-360deg);
    }
}

.visitor-copy,
.visitor-path,
.visitor-media-panel {
    position: relative;
    z-index: 1;
}

.visitor-copy {
    display: grid;
    align-content: center;
    gap: 16px;
}

.visitor-copy h2 {
    max-width: 700px;
    margin: 0;
    color: var(--theme-ink, #111827);
    font-size: 52px;
    line-height: .98;
}

.visitor-copy p {
    margin: 0;
    color: #475569;
    font-size: 17px;
    line-height: 1.75;
}

.visitor-proof-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.visitor-proof-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid color-mix(in srgb, var(--tenant-accent) 18%, rgba(15, 23, 42, .08));
    border-radius: 999px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, .72);
    color: #0f172a;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
    backdrop-filter: blur(14px);
}

.visitor-proof-row .icon {
    width: 14px;
    height: 14px;
    color: var(--tenant-accent);
}

.visitor-path {
    display: grid;
    gap: 14px;
    align-content: center;
}

.visitor-path article {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 8px;
    padding: 18px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
    opacity: 0;
    transform: translateY(18px);
    animation: journey-in .72s ease-out forwards;
    animation-delay: calc(var(--step-index) * .09s);
}

@keyframes journey-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.journey-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 8px;
    background: var(--tenant-accent);
    color: #ffffff;
    box-shadow: 0 16px 26px color-mix(in srgb, var(--tenant-accent) 32%, transparent);
}

.journey-icon .icon {
    width: 22px;
    height: 22px;
}

.visitor-path strong {
    display: block;
    color: #0f172a;
    font-size: 16px;
}

.visitor-path p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
}

.visitor-media-panel {
    overflow: hidden;
    min-height: 470px;
    border-radius: 8px;
    background: #111827;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .18);
}

.visitor-media-panel img {
    width: 100%;
    height: 100%;
    min-height: 470px;
    object-fit: cover;
    transform: scale(1.04);
    animation: visitor-image-drift 14s ease-in-out infinite alternate;
}

@keyframes visitor-image-drift {
    from {
        transform: scale(1.04) translate3d(-8px, 0, 0);
    }

    to {
        transform: scale(1.1) translate3d(8px, -8px, 0);
    }
}

.visitor-donation-card,
.visitor-impact-badge {
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 8px;
    background: rgba(255, 255, 255, .9);
    color: #111827;
    box-shadow: 0 22px 54px rgba(15, 23, 42, .2);
    backdrop-filter: blur(16px);
}

.visitor-donation-card {
    right: 18px;
    bottom: 18px;
    left: 18px;
    display: grid;
    gap: 8px;
    padding: 18px;
}

.visitor-donation-card span,
.visitor-impact-badge span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.visitor-donation-card strong {
    color: #111827;
    font-size: 18px;
    line-height: 1.25;
}

.visitor-donation-card a {
    width: fit-content;
    border-radius: 999px;
    padding: 9px 13px;
    background: var(--tenant-accent);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.visitor-impact-badge {
    top: 18px;
    left: 18px;
    display: grid;
    gap: 2px;
    padding: 14px 16px;
}

.visitor-impact-badge strong {
    color: var(--tenant-accent);
    font-size: 26px;
    line-height: 1;
}

.theme-impact .visitor-journey::before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .98), rgba(236, 253, 245, .92)),
        #ffffff;
}

.theme-impact .visitor-media-panel {
    border: 1px solid rgba(22, 160, 133, .18);
}

.theme-impact .journey-icon {
    background: linear-gradient(135deg, #16a085, #34d399);
}

.theme-launchpad .visitor-journey::before {
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 77, 109, .22), transparent 30%),
        radial-gradient(circle at 84% 78%, rgba(91, 92, 246, .34), transparent 32%),
        linear-gradient(135deg, #111827, #1e1b4b);
}

.theme-launchpad .visitor-copy h2,
.theme-launchpad .visitor-path strong {
    color: #ffffff;
}

.theme-launchpad .visitor-copy p,
.theme-launchpad .visitor-path p {
    color: #cbd5e1;
}

.theme-launchpad .visitor-proof-row span,
.theme-launchpad .visitor-path article {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
}

.theme-launchpad .visitor-media-panel {
    border: 10px solid #020617;
    box-shadow: 0 38px 94px rgba(2, 6, 23, .38);
}

.theme-launchpad .journey-icon {
    background: linear-gradient(135deg, #5b5cf6, #ff4d6d);
}

.theme-community .visitor-journey::before {
    background:
        radial-gradient(circle at 12% 18%, rgba(245, 158, 11, .26), transparent 26%),
        linear-gradient(135deg, #fff7ed, #ffffff 54%, #fef3c7);
}

.theme-community .visitor-copy h2 {
    color: #111827;
    font-family: Georgia, "Times New Roman", serif;
}

.theme-community .visitor-proof-row span {
    background: #111827;
    color: #ffffff;
}

.theme-community .visitor-path article {
    border-color: rgba(245, 158, 11, .24);
    background: #ffffff;
}

.theme-community .journey-icon,
.theme-community .visitor-donation-card a {
    background: #f59e0b;
    color: #111827;
}

.theme-ocean .visitor-journey::before {
    background:
        radial-gradient(circle at 80% 16%, rgba(20, 184, 166, .22), transparent 30%),
        linear-gradient(135deg, #ecfeff, #f8fafc 56%, #e0f2fe);
}

.theme-ocean .visitor-media-panel {
    border: 1px solid rgba(14, 165, 233, .18);
}

.theme-ocean .journey-icon {
    background: linear-gradient(135deg, #0891b2, #14b8a6);
}

.theme-summit .visitor-journey::before {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(30, 41, 59, .94)),
        #0f172a;
}

.theme-summit .visitor-copy h2,
.theme-summit .visitor-path strong {
    color: #ffffff;
}

.theme-summit .visitor-copy p,
.theme-summit .visitor-path p {
    color: #cbd5e1;
}

.theme-summit .visitor-proof-row span,
.theme-summit .visitor-path article {
    border-color: rgba(250, 204, 21, .18);
    background: rgba(255, 255, 255, .08);
    color: #f8fafc;
}

.theme-summit .journey-icon,
.theme-summit .visitor-donation-card a {
    background: #facc15;
    color: #111827;
}

.theme-urban .visitor-journey::before {
    background:
        linear-gradient(128deg, rgba(2, 6, 23, .98) 0%, rgba(17, 24, 39, .96) 54%, rgba(236, 72, 153, .72) 100%),
        #020617;
}

.theme-urban .visitor-journey::after {
    border-radius: 8px;
    transform: rotate(12deg);
}

.theme-urban .visitor-copy h2,
.theme-urban .visitor-path strong {
    color: #ffffff;
}

.theme-urban .visitor-copy p,
.theme-urban .visitor-path p {
    color: #dbeafe;
}

.theme-urban .visitor-proof-row span,
.theme-urban .visitor-path article {
    border-color: rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .09);
    color: #ffffff;
}

.theme-urban .journey-icon,
.theme-urban .visitor-donation-card a {
    background: linear-gradient(135deg, #ec4899, #22d3ee);
}

@media (max-width: 1100px) {
    .visitor-journey {
        grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
    }

    .visitor-copy {
        grid-column: 1 / -1;
    }

    .visitor-copy h2 {
        font-size: 44px;
    }
}

@media (max-width: 780px) {
    .public-header nav {
        gap: 10px;
    }

    .theme-visual-badges,
    .theme-visual-spark {
        display: none;
    }

    .visitor-journey {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 52px 0;
    }

    .visitor-copy h2 {
        font-size: 34px;
        line-height: 1.06;
    }

    .visitor-path article {
        grid-template-columns: 44px minmax(0, 1fr);
        padding: 16px;
    }

    .journey-icon {
        width: 44px;
        height: 44px;
    }

    .visitor-media-panel,
    .visitor-media-panel img {
        min-height: 380px;
    }

    .visitor-donation-card {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .theme-visual-spark span,
    .visitor-journey::after,
    .visitor-path article,
    .visitor-media-panel img,
    .public-button::after {
        animation: none;
        transition: none;
    }
}

/* Donor-wall theme polish */
.campaign-card {
    position: relative;
    transform: translateY(0);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.campaign-card:hover {
    border-color: color-mix(in srgb, var(--tenant-accent) 34%, rgba(15, 23, 42, .12));
    box-shadow: 0 26px 62px rgba(15, 23, 42, .13);
    transform: translateY(-5px);
}

.campaign-image {
    position: relative;
}

.campaign-image::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 46%, rgba(15, 23, 42, .56));
    content: "";
    opacity: .76;
    transition: opacity .2s ease;
}

.campaign-card:hover .campaign-image::after {
    opacity: .92;
}

.campaign-image-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    border-radius: 999px;
    padding: 7px 10px;
    background: rgba(255, 255, 255, .92);
    color: #111827;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .18);
    backdrop-filter: blur(14px);
}

.campaign-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    border-top: 1px solid rgba(15, 23, 42, .08);
    padding-top: 14px;
    color: #64748b;
    font-size: 13px;
    font-weight: 850;
}

.campaign-card-footer span,
.campaign-card-footer a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.campaign-card-footer .icon {
    width: 15px;
    height: 15px;
    color: var(--tenant-accent);
}

.campaign-card-footer a {
    color: var(--tenant-accent);
}

.supporter-pulse {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: 22px;
    padding: 68px 0;
}

.supporter-pulse::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: -1;
    width: 100vw;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .97), rgba(248, 250, 252, .92)),
        #ffffff;
    content: "";
    transform: translateX(-50%);
}

.supporter-pulse-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
}

.supporter-pulse-head h2 {
    max-width: 760px;
    margin: 4px 0 0;
    color: var(--theme-ink, #111827);
    font-size: 44px;
    line-height: 1.03;
    text-wrap: balance;
}

.supporter-pulse-head p {
    max-width: 720px;
    margin: 12px 0 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
}

.supporter-pulse-head > a {
    flex: 0 0 auto;
    border: 1px solid color-mix(in srgb, var(--tenant-accent) 22%, rgba(15, 23, 42, .08));
    border-radius: 999px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, .8);
    color: var(--tenant-accent);
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .08);
}

.supporter-pulse-grid {
    display: grid;
    grid-template-columns: .86fr .72fr 1.2fr;
    gap: 16px;
}

.supporter-total-card,
.supporter-gift-card,
.supporter-message-card {
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 8px;
    padding: 22px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 22px 52px rgba(15, 23, 42, .08);
    backdrop-filter: blur(16px);
}

.supporter-total-card,
.supporter-gift-card {
    display: grid;
    align-content: space-between;
    min-height: 230px;
}

.supporter-total-card > span,
.supporter-gift-card > span,
.supporter-message-card > span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.supporter-total-card strong {
    margin-top: 10px;
    color: var(--tenant-accent);
    font-size: 52px;
    line-height: .95;
}

.supporter-total-card small,
.supporter-gift-card small {
    color: #475569;
    font-weight: 800;
}

.pulse-meter {
    overflow: hidden;
    height: 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .08);
}

.pulse-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--tenant-accent), var(--theme-secondary, #22c55e));
    animation: pulse-progress 2.8s ease-in-out infinite;
}

.gift-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.gift-chip-row a {
    border-radius: 999px;
    padding: 12px 15px;
    background: #0f172a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 950;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .18);
}

.donor-wall-mini {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.donor-wall-mini a {
    display: grid;
    gap: 4px;
    border: 1px solid rgba(15, 23, 42, .07);
    border-radius: 8px;
    padding: 13px 14px;
    background: rgba(248, 250, 252, .86);
    color: inherit;
    transition: transform .2s ease, background .2s ease;
}

.donor-wall-mini a:hover {
    background: #ffffff;
    transform: translateX(4px);
}

.donor-wall-mini strong {
    color: #111827;
    font-size: 14px;
}

.donor-wall-mini small {
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.supporter-campaign-ribbon {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.supporter-campaign-ribbon a {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 6px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 8px;
    padding: 18px;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .06);
}

.supporter-campaign-ribbon a::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--tenant-accent);
    content: "";
}

.supporter-campaign-ribbon span,
.supporter-campaign-ribbon small {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.supporter-campaign-ribbon strong {
    color: var(--tenant-accent);
    font-size: 28px;
    line-height: 1;
}

.theme-launchpad .supporter-pulse::before,
.theme-summit .supporter-pulse::before,
.theme-urban .supporter-pulse::before {
    background:
        radial-gradient(circle at 14% 18%, color-mix(in srgb, var(--tenant-accent) 22%, transparent), transparent 30%),
        linear-gradient(135deg, rgba(15, 23, 42, .98), rgba(30, 41, 59, .96));
}

.theme-launchpad .supporter-pulse-head h2,
.theme-summit .supporter-pulse-head h2,
.theme-urban .supporter-pulse-head h2,
.theme-launchpad .donor-wall-mini strong,
.theme-summit .donor-wall-mini strong,
.theme-urban .donor-wall-mini strong {
    color: #ffffff;
}

.theme-launchpad .supporter-pulse-head p,
.theme-summit .supporter-pulse-head p,
.theme-urban .supporter-pulse-head p,
.theme-launchpad .donor-wall-mini small,
.theme-summit .donor-wall-mini small,
.theme-urban .donor-wall-mini small {
    color: #cbd5e1;
}

.theme-launchpad .supporter-total-card,
.theme-launchpad .supporter-gift-card,
.theme-launchpad .supporter-message-card,
.theme-launchpad .supporter-campaign-ribbon a,
.theme-summit .supporter-total-card,
.theme-summit .supporter-gift-card,
.theme-summit .supporter-message-card,
.theme-summit .supporter-campaign-ribbon a,
.theme-urban .supporter-total-card,
.theme-urban .supporter-gift-card,
.theme-urban .supporter-message-card,
.theme-urban .supporter-campaign-ribbon a {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .08);
    color: #ffffff;
}

.theme-launchpad .donor-wall-mini a,
.theme-summit .donor-wall-mini a,
.theme-urban .donor-wall-mini a {
    border-color: rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .08);
}

.theme-community .supporter-pulse::before {
    background:
        linear-gradient(135deg, #111827 0%, #111827 48%, #f59e0b 160%),
        #111827;
}

.theme-community .supporter-pulse-head h2,
.theme-community .donor-wall-mini strong {
    color: #ffffff;
}

.theme-community .supporter-pulse-head p,
.theme-community .donor-wall-mini small {
    color: #fde68a;
}

.theme-community .supporter-total-card,
.theme-community .supporter-gift-card,
.theme-community .supporter-message-card,
.theme-community .supporter-campaign-ribbon a {
    border-color: rgba(245, 158, 11, .24);
    background: rgba(255, 255, 255, .1);
    color: #ffffff;
}

.theme-community .gift-chip-row a {
    background: #f59e0b;
    color: #111827;
}

.theme-ocean .supporter-pulse::before {
    background:
        radial-gradient(circle at 86% 12%, rgba(20, 184, 166, .2), transparent 28%),
        linear-gradient(135deg, #ecfeff, #ffffff 54%, #dbeafe);
}

@media (max-width: 1060px) {
    .supporter-pulse-grid {
        grid-template-columns: 1fr 1fr;
    }

    .supporter-message-card {
        grid-column: 1 / -1;
    }

    .supporter-campaign-ribbon {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .supporter-pulse {
        padding: 52px 0;
    }

    .supporter-pulse-head {
        display: grid;
    }

    .supporter-pulse-head h2 {
        font-size: 34px;
        line-height: 1.08;
    }

    .supporter-pulse-grid,
    .supporter-campaign-ribbon {
        grid-template-columns: 1fr;
    }

    .supporter-message-card {
        grid-column: auto;
    }

    .campaign-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Theme-specific public headers, footers, and tenant logo tools */
.public-header {
    position: sticky;
    top: 0;
    z-index: 50;
}

.public-header-kicker {
    display: none;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.public-header-kicker span {
    border-radius: 999px;
    padding: 5px 9px;
    background: color-mix(in srgb, var(--tenant-accent) 12%, #ffffff);
    color: var(--tenant-accent);
}

.public-header-kicker strong {
    color: inherit;
    font-size: 12px;
}

.public-nav {
    min-width: 0;
}

.public-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 999px;
    padding: 10px 15px;
    background: var(--tenant-accent);
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
    box-shadow: 0 14px 30px color-mix(in srgb, var(--tenant-accent) 28%, transparent);
}

.public-footer {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(240px, .85fr) minmax(150px, .5fr) minmax(240px, .8fr) minmax(240px, .8fr);
    align-items: stretch;
}

.public-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.public-footer-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.public-footer-metrics span {
    display: grid;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, .08);
}

.public-footer-metrics strong {
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
}

.public-footer-metrics small {
    color: rgba(255, 255, 255, .68);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.public-footer-links {
    display: grid;
    align-content: start;
    gap: 9px;
}

.public-footer-links a {
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    font-weight: 900;
}

.public-footer-links a:hover {
    color: #ffffff;
}

.theme-impact .public-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    row-gap: 10px;
    background: rgba(255, 255, 255, .94);
}

.theme-impact .public-header-kicker {
    display: flex;
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 28px;
    border-bottom: 1px solid rgba(15, 118, 110, .1);
    color: #0f766e;
}

.theme-impact .public-nav {
    justify-content: center;
}

.theme-impact .public-footer {
    background:
        linear-gradient(135deg, #ecfdf5, #ffffff 50%, #fefce8),
        #ffffff;
    color: #12312f;
}

.theme-impact .public-footer p,
.theme-impact .public-footer-links a,
.theme-impact .public-footer-form strong,
.theme-impact .public-footer-metrics small {
    color: #475569;
}

.theme-impact .public-footer-form input,
.theme-impact .public-footer-form textarea,
.theme-impact .public-footer-metrics span {
    border-color: rgba(15, 118, 110, .14);
    background: rgba(255, 255, 255, .86);
    color: #111827;
}

.theme-impact .public-footer-form input::placeholder,
.theme-impact .public-footer-form textarea::placeholder,
.theme-ocean .public-footer-form input::placeholder,
.theme-ocean .public-footer-form textarea::placeholder {
    color: #64748b;
}

.theme-impact .public-footer-links a:hover,
.theme-ocean .public-footer-links a:hover {
    color: var(--tenant-accent);
}

.theme-impact .public-footer-metrics strong {
    color: #0f766e;
}

.theme-launchpad .public-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, .98), rgba(49, 46, 129, .96)),
        #111827;
    color: #ffffff;
}

.theme-launchpad .public-brand small,
.theme-launchpad .public-header nav a {
    color: #cbd5e1;
}

.theme-launchpad .public-nav {
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    padding: 7px 10px;
    background: rgba(255, 255, 255, .08);
}

.theme-launchpad .public-nav-cta {
    background: #ff4d6d;
}

.theme-launchpad .public-footer {
    background:
        linear-gradient(135deg, #020617 0%, #312e81 58%, #5b5cf6 130%),
        #020617;
}

.theme-community .public-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    row-gap: 12px;
    background: #fff7ed;
}

.theme-community .public-brand {
    grid-column: 2;
    justify-self: center;
}

.theme-community .public-nav {
    grid-column: 1 / -1;
    justify-content: center;
    order: 4;
}

.theme-community .public-nav-cta {
    justify-self: end;
    background: #111827;
    color: #fbbf24;
}

.theme-community .public-header-kicker {
    display: flex;
    justify-self: start;
    align-self: center;
    color: #92400e;
}

.theme-community .public-footer {
    background:
        linear-gradient(135deg, #111827 0%, #111827 58%, #f59e0b 150%),
        #111827;
}

.theme-community .public-footer .public-brand-mark,
.theme-community .public-footer-form .public-button {
    background: #f59e0b;
    color: #111827;
}

.theme-ocean .public-header {
    width: min(1180px, calc(100% - 32px));
    margin: 14px auto 0;
    border: 1px solid rgba(8, 145, 178, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 22px 48px rgba(8, 145, 178, .12);
}

.theme-ocean .public-header-kicker {
    display: flex;
    order: 4;
    margin-left: auto;
}

.theme-ocean .public-nav-cta {
    background: linear-gradient(135deg, #0891b2, #14b8a6);
}

.theme-ocean .public-footer {
    background:
        linear-gradient(135deg, #ecfeff, #ffffff 42%, #dbeafe),
        #ecfeff;
    color: #0f172a;
}

.theme-ocean .public-footer p,
.theme-ocean .public-footer-links a,
.theme-ocean .public-footer-form strong,
.theme-ocean .public-footer-metrics small {
    color: #475569;
}

.theme-ocean .public-footer-form input,
.theme-ocean .public-footer-form textarea,
.theme-ocean .public-footer-metrics span {
    border-color: rgba(8, 145, 178, .18);
    background: rgba(255, 255, 255, .78);
    color: #0f172a;
}

.theme-ocean .public-footer-metrics strong {
    color: #0891b2;
}

.theme-summit .public-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    border-bottom: 4px solid #facc15;
    background: #0f172a;
    color: #ffffff;
}

.theme-summit .public-header-kicker {
    display: flex;
    grid-column: 1 / -1;
    justify-content: space-between;
    padding-bottom: 10px;
    color: #facc15;
}

.theme-summit .public-header-kicker span {
    background: rgba(250, 204, 21, .14);
    color: #facc15;
}

.theme-summit .public-brand small,
.theme-summit .public-header nav a {
    color: #cbd5e1;
}

.theme-summit .public-nav {
    justify-content: center;
}

.theme-summit .public-nav a {
    font-size: 12px;
    text-transform: uppercase;
}

.theme-summit .public-nav-cta {
    background: #facc15;
    color: #111827;
}

.theme-summit .public-footer {
    border-top: 4px solid #facc15;
    background:
        linear-gradient(135deg, #0f172a, #111827),
        #0f172a;
}

.theme-urban .public-header {
    background:
        linear-gradient(120deg, #020617 0%, #111827 48%, #ec4899 130%),
        #020617;
    color: #ffffff;
}

.theme-urban .public-header::after {
    position: absolute;
    right: 30px;
    bottom: -5px;
    width: 180px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ec4899, #22d3ee);
    content: "";
}

.theme-urban .public-brand small,
.theme-urban .public-header nav a {
    color: #dbeafe;
}

.theme-urban .public-brand-mark,
.theme-urban .public-nav-cta {
    background: linear-gradient(135deg, #ec4899, #22d3ee);
}

.theme-urban .public-nav {
    justify-content: center;
}

.theme-urban .public-footer {
    background:
        linear-gradient(125deg, #020617 0%, #111827 42%, #831843 120%),
        #020617;
}

.logo-preview-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 8px;
    padding: 12px;
    background: #f8fafc;
}

.logo-preview-row img {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    object-fit: cover;
    background: #ffffff;
}

.logo-preview-row strong,
.logo-preview-row small {
    display: block;
}

.logo-preview-row small {
    overflow: hidden;
    color: #64748b;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1180px) {
    .public-header {
        flex-wrap: wrap;
    }

    .public-nav {
        flex-wrap: wrap;
    }

    .public-footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .public-header,
    .theme-impact .public-header,
    .theme-launchpad .public-header,
    .theme-community .public-header,
    .theme-ocean .public-header,
    .theme-summit .public-header,
    .theme-urban .public-header {
        position: static;
        display: grid;
        width: 100%;
        margin: 0;
        grid-template-columns: 1fr;
        border-radius: 0;
    }

    .public-header-kicker,
    .theme-impact .public-header-kicker,
    .theme-community .public-header-kicker,
    .theme-ocean .public-header-kicker,
    .theme-summit .public-header-kicker {
        display: grid;
        justify-content: stretch;
    }

    .public-brand,
    .theme-community .public-brand {
        grid-column: auto;
        justify-self: start;
    }

    .public-nav,
    .theme-community .public-nav {
        display: flex;
        width: 100%;
        grid-column: auto;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .public-nav a {
        white-space: nowrap;
    }

    .public-nav-cta,
    .theme-community .public-nav-cta {
        width: 100%;
        justify-self: stretch;
    }

    .public-footer {
        grid-template-columns: 1fr;
    }

    .public-footer-metrics {
        grid-template-columns: 1fr;
    }

    .logo-preview-row {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .logo-preview-row .check-row {
        grid-column: 1 / -1;
    }
}

.advanced-donation-panel {
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background:
        radial-gradient(circle at 12% 8%, rgba(20, 184, 166, 0.16), transparent 28%),
        radial-gradient(circle at 88% 4%, rgba(249, 115, 22, 0.14), transparent 30%),
        #ffffff;
}

.donation-panel-head,
.receipt-head,
.portal-hero,
.fundraiser-hero,
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.donation-panel-head h2 {
    margin: 0;
}

.donation-orbit {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e, #f97316);
    box-shadow: 0 18px 40px rgba(15, 118, 110, 0.24);
    animation: floatY 4s ease-in-out infinite;
}

.fundraiser-credit-card,
.donor-assurance,
.receipt-note {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 18px;
    background: rgba(240, 253, 250, 0.86);
}

.fundraiser-credit-card span,
.donor-assurance span,
.receipt-note p {
    color: #475569;
}

.quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

.quick-amounts button {
    min-height: 42px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    color: #0f172a;
    background: #ffffff;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.quick-amounts button:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 118, 110, 0.35);
    background: #f0fdfa;
}

.tribute-grid,
.portal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.donor-assurance {
    grid-template-columns: 1fr;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 247, 237, 0.92));
}

.donor-assurance span {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 800;
}

.peer-fundraising-block,
.portal-summary-card,
.fundraiser-hero-card,
.receipt-card {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.peer-fundraising-block {
    display: grid;
    gap: 1.25rem;
    margin: 1.5rem 0;
    padding: 1.25rem;
}

.share-qr {
    width: 96px;
    height: 96px;
    padding: 0.45rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 18px;
    background: #ffffff;
}

.fundraiser-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.fundraiser-card {
    display: grid;
    gap: 0.55rem;
    padding: 1rem;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 20px;
    color: inherit;
    text-decoration: none;
    background: linear-gradient(145deg, #ffffff, #eff6ff);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fundraiser-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.14);
}

.fundraiser-card span,
.fundraiser-card small {
    color: #64748b;
}

.fundraiser-card strong {
    color: #0f172a;
}

.fundraiser-create-form {
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.fundraiser-hero,
.portal-hero {
    align-items: stretch;
    margin: 2rem auto;
    max-width: 1180px;
    padding: 2rem;
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.94), rgba(37, 99, 235, 0.86)),
        url("https://images.unsplash.com/photo-1559027615-cd4628902d4a?auto=format&fit=crop&w=1600&q=80") center/cover;
    background-blend-mode: multiply;
    color: #ffffff;
    overflow: hidden;
}

.fundraiser-hero h1,
.portal-hero h1 {
    max-width: 760px;
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 4.8rem);
    line-height: 0.98;
    margin: 0.7rem 0;
}

.fundraiser-hero p,
.portal-hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
}

.fundraiser-hero .share-row a,
.fundraiser-hero .share-row span {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
}

.fundraiser-hero-card,
.portal-summary-card {
    min-width: 280px;
    padding: 1.4rem;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.95);
}

.fundraiser-hero-card > span,
.portal-summary-card span,
.receipt-total span {
    color: #64748b;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.fundraiser-hero-card strong,
.portal-summary-card strong,
.receipt-total strong {
    display: block;
    margin: 0.35rem 0 0.8rem;
    color: #0f172a;
    font-size: 2rem;
}

.detail-stats.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 1rem 0;
}

.detail-stats.compact strong,
.detail-stats.compact span {
    display: block;
}

.fundraiser-detail-grid {
    align-items: start;
}

.portal-grid {
    max-width: 1180px;
    margin: 0 auto 3rem;
}

.portal-summary-card {
    display: grid;
    align-content: center;
}

.receipt-shell {
    max-width: 940px;
    margin: 2rem auto 4rem;
    padding: 0 1rem;
}

.receipt-card {
    display: grid;
    gap: 1.4rem;
    padding: 2rem;
}

.receipt-total {
    padding: 1.4rem;
    border-radius: 24px;
    color: #0f172a;
    background: linear-gradient(135deg, #f0fdfa, #eff6ff);
}

.receipt-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
}

.receipt-details div {
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: #ffffff;
}

.receipt-details dt {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.receipt-details dd {
    margin: 0.3rem 0 0;
    color: #0f172a;
    font-weight: 800;
}

@keyframes floatY {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

@media (max-width: 820px) {
    .donation-panel-head,
    .receipt-head,
    .portal-hero,
    .fundraiser-hero,
    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .quick-amounts,
    .fundraiser-card-grid,
    .tribute-grid,
    .portal-grid,
    .receipt-details {
        grid-template-columns: 1fr;
    }

    .fundraiser-hero,
    .portal-hero {
        margin: 1rem;
        padding: 1.25rem;
        border-radius: 24px;
    }

    .fundraiser-hero-card,
    .portal-summary-card {
        width: 100%;
        min-width: 0;
    }

    .share-qr {
        width: 86px;
        height: 86px;
    }
}

@media print {
    .public-header,
    .public-footer,
    .public-button,
    .share-row {
        display: none !important;
    }

    .receipt-shell {
        margin: 0;
        max-width: none;
    }

    .receipt-card {
        border: 0;
        box-shadow: none;
    }
}

/* Authenticated SaaS console redesign */
.app-body {
    color: #102033;
    background:
        linear-gradient(90deg, rgba(15, 118, 110, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(37, 99, 235, 0.07) 1px, transparent 1px),
        linear-gradient(135deg, #f8fbff 0%, #f7f8ff 38%, #fff7ed 100%);
    background-size: 34px 34px, 34px 34px, auto;
}

.app-shell {
    grid-template-columns: 292px minmax(0, 1fr);
}

.app-shell .sidebar {
    position: sticky;
    isolation: isolate;
    overflow-y: auto;
    gap: 16px;
    padding: 18px;
    background:
        linear-gradient(145deg, rgba(8, 15, 32, 0.98), rgba(15, 52, 72, 0.94) 48%, rgba(67, 24, 84, 0.9)),
        url("https://images.unsplash.com/photo-1557804506-669a67965ba0?auto=format&fit=crop&w=900&q=70") center / cover;
    background-blend-mode: multiply;
    box-shadow: 18px 0 48px rgba(16, 24, 40, 0.24);
}

.app-shell .sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
}

.sidebar-glow {
    position: absolute;
    z-index: -1;
    display: block;
    width: 210px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.8), rgba(249, 115, 22, 0.7), transparent);
    animation: sidebarSweep 7s ease-in-out infinite;
}

.sidebar-glow-one {
    top: 92px;
    left: -34px;
    transform: rotate(-16deg);
}

.sidebar-glow-two {
    right: -52px;
    bottom: 210px;
    transform: rotate(18deg);
    animation-delay: -2.4s;
}

.app-shell .brand {
    position: relative;
    border-radius: 8px;
    border-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.app-shell .brand small {
    color: #bae6fd;
}

.app-shell .brand-mark {
    border-radius: 8px;
    background: linear-gradient(135deg, #14b8a6, #f97316 55%, #ec4899);
    box-shadow: 0 14px 30px rgba(20, 184, 166, 0.28);
}

.sidebar-visual {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.09);
}

.sidebar-visual img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 8px;
    filter: saturate(1.12);
    animation: consoleFloat 5.5s ease-in-out infinite;
}

.sidebar-visual span,
.nav-section > span {
    color: #93c5fd;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.sidebar-visual strong {
    display: block;
    color: #ffffff;
    font-size: 0.92rem;
    line-height: 1.25;
}

.app-shell .nav-list {
    gap: 12px;
    padding: 2px 0 10px;
}

.nav-section {
    display: grid;
    gap: 5px;
}

.nav-section > span {
    padding: 0 8px;
}

.app-shell .nav-list a {
    position: relative;
    min-height: 42px;
    padding: 9px 10px;
    border-radius: 8px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.app-shell .nav-list a .icon {
    width: 18px;
    height: 18px;
    padding: 6px;
    box-sizing: content-box;
    border-radius: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.18s ease, background 0.18s ease;
}

.app-shell .nav-list a:hover,
.app-shell .nav-list a.active {
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.26), rgba(37, 99, 235, 0.18), rgba(249, 115, 22, 0.18));
    transform: translateX(4px);
}

.app-shell .nav-list a.active::before {
    content: "";
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: -6px;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, #2dd4bf, #f97316);
}

.app-shell .nav-list a:hover .icon,
.app-shell .nav-list a.active .icon {
    background: linear-gradient(135deg, #14b8a6, #2563eb);
    transform: rotate(-4deg) scale(1.04);
}

.app-shell .sidebar-footer {
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.app-shell .user-chip {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.app-shell .main-panel {
    padding: 28px;
}

.dashboard-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 24px;
    align-items: center;
    margin-bottom: 22px;
    padding: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(236, 254, 255, 0.82)),
        linear-gradient(90deg, rgba(20, 184, 166, 0.08), rgba(249, 115, 22, 0.08));
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.09);
    overflow: hidden;
}

.platform-dashboard-hero {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.84)),
        linear-gradient(90deg, rgba(37, 99, 235, 0.1), rgba(236, 72, 153, 0.08));
}

.tenant-dashboard-hero {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 247, 237, 0.84)),
        linear-gradient(90deg, rgba(20, 184, 166, 0.1), rgba(249, 115, 22, 0.08));
}

.dashboard-hero h1 {
    max-width: 880px;
    margin: 6px 0 10px;
    color: #0f172a;
    font-size: clamp(2rem, 4vw, 4.15rem);
    line-height: 1;
}

.dashboard-hero .muted {
    max-width: 720px;
    font-size: 1.02rem;
}

.hero-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-action-row .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dashboard-hero-visual {
    position: relative;
    min-height: 300px;
}

.dashboard-hero-visual img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    animation: consoleFloat 6s ease-in-out infinite;
}

.floating-kpi {
    position: absolute;
    display: grid;
    gap: 2px;
    min-width: 116px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
    animation: kpiLift 4.5s ease-in-out infinite;
}

.floating-kpi span {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.floating-kpi strong {
    color: #0f172a;
    font-size: 1.45rem;
}

.kpi-one {
    left: -8px;
    bottom: 28px;
}

.kpi-two {
    top: 18px;
    right: -8px;
    animation-delay: -1.8s;
}

.app-shell .metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.app-shell .metric {
    min-height: 126px;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), color-mix(in srgb, var(--metric-accent, #14b8a6) 12%, white));
}

.app-shell .metric::after {
    right: -34px;
    bottom: 12px;
    width: 110px;
    height: 18px;
    border-radius: 3px;
    background: color-mix(in srgb, var(--metric-accent, #14b8a6) 28%, transparent);
    transform: rotate(-28deg);
}

.app-shell .metric .icon {
    color: var(--metric-accent, #14b8a6);
}

.metric-teal { --metric-accent: #14b8a6; }
.metric-green { --metric-accent: #22c55e; }
.metric-amber { --metric-accent: #f59e0b; }
.metric-red { --metric-accent: #ef4444; }
.metric-blue { --metric-accent: #2563eb; }
.metric-purple { --metric-accent: #7c3aed; }
.metric-pink { --metric-accent: #ec4899; }
.metric-orange { --metric-accent: #f97316; }
.metric-cyan { --metric-accent: #0891b2; }
.metric-lime { --metric-accent: #65a30d; }

.app-shell .analytics-grid {
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 16px;
}

.app-shell .chart-card,
.app-shell .panel,
.app-shell .page-head,
.insight-card {
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
}

.app-shell .chart-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92)),
        linear-gradient(90deg, rgba(20, 184, 166, 0.08), rgba(236, 72, 153, 0.06));
}

.app-shell .bar-track {
    border-radius: 8px;
    background: linear-gradient(180deg, #eef2ff, #f8fafc);
}

.app-shell .bar-track span {
    border-radius: 8px 8px 2px 2px;
    background: linear-gradient(180deg, #2563eb, #14b8a6 52%, #f97316);
    box-shadow: 0 -10px 24px rgba(20, 184, 166, 0.24);
}

.bar-item:nth-child(2n) .bar-track span {
    background: linear-gradient(180deg, #7c3aed, #2563eb);
}

.bar-item:nth-child(3n) .bar-track span {
    background: linear-gradient(180deg, #f97316, #ec4899);
}

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

.insight-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 18px;
    overflow: hidden;
}

.owner-image-card,
.campaign-spotlight-card {
    grid-template-columns: 180px minmax(0, 1fr);
}

.owner-image-card img,
.campaign-spotlight-card img {
    width: 180px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    animation: consoleFloat 6s ease-in-out infinite;
}

.insight-card h2 {
    margin: 4px 0 8px;
    color: #0f172a;
    font-size: 1.35rem;
}

.radial-meter {
    display: grid;
    width: 132px;
    height: 132px;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #ffffff 0 56%, transparent 57%),
        conic-gradient(#14b8a6 calc(var(--value) * 1%), #e2e8f0 0);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08), 0 16px 34px rgba(20, 184, 166, 0.15);
    animation: meterPop 0.8s ease-out both;
}

.radial-meter span {
    color: #0f172a;
    font-size: 1.55rem;
    font-weight: 900;
}

.app-shell .split-grid {
    gap: 16px;
}

.app-shell .panel {
    overflow: hidden;
}

.app-shell .panel-head {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.app-shell .panel-head h2 {
    color: #0f172a;
}

.app-shell .table-wrap {
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.app-shell .table-wrap table {
    overflow: hidden;
}

.app-shell thead {
    background: linear-gradient(90deg, #f8fafc, #eef2ff);
}

.app-shell tbody tr {
    transition: background 0.18s ease, transform 0.18s ease;
}

.app-shell tbody tr:hover {
    background: #f0fdfa;
}

.app-shell .activity-list article {
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.app-shell .activity-list article:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.renewal-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.app-shell .filter-bar,
.app-shell .form-grid,
.app-shell .inline-form {
    border-radius: 8px;
}

.app-shell input,
.app-shell select,
.app-shell textarea {
    border-radius: 8px;
    border-color: rgba(15, 23, 42, 0.13);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.app-shell input:focus,
.app-shell select:focus,
.app-shell textarea:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
    outline: none;
}

@keyframes sidebarSweep {
    0%,
    100% {
        opacity: 0.35;
        translate: 0 0;
    }

    50% {
        opacity: 1;
        translate: 24px 18px;
    }
}

@keyframes consoleFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

@keyframes kpiLift {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes meterPop {
    from {
        transform: scale(0.92);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 1180px) {
    .app-shell {
        grid-template-columns: 248px minmax(0, 1fr);
    }

    .dashboard-hero,
    .insight-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-shell .sidebar {
        position: relative;
        height: auto;
        max-height: none;
    }

    .app-shell .nav-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-shell .main-panel {
        padding: 18px;
    }

    .dashboard-hero {
        padding: 18px;
    }

    .dashboard-hero-visual,
    .dashboard-hero-visual img {
        min-height: 240px;
        height: 240px;
    }
}

@media (max-width: 640px) {
    .app-shell .nav-list,
    .owner-image-card,
    .campaign-spotlight-card,
    .insight-card {
        grid-template-columns: 1fr;
    }

    .owner-image-card img,
    .campaign-spotlight-card img {
        width: 100%;
    }

    .floating-kpi {
        position: static;
        margin-top: 8px;
    }

    .dashboard-hero-visual {
        display: grid;
        gap: 8px;
    }
}
/* AI Copilot */
.ai-copilot-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    gap: 28px;
    align-items: stretch;
    padding: 30px;
    border-radius: 8px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(12, 18, 44, .96), rgba(18, 103, 119, .92)),
        linear-gradient(45deg, #172554, #0f766e);
    overflow: hidden;
    position: relative;
}

.ai-copilot-hero h1 {
    max-width: 740px;
    font-size: clamp(2rem, 3.8vw, 4.4rem);
    line-height: 1;
    margin: 10px 0 16px;
    letter-spacing: 0;
}

.ai-copilot-hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, .82);
    font-size: 1.04rem;
}

.ai-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.ai-pill-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

.ai-hero-art {
    position: relative;
    min-height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
    isolation: isolate;
}

.ai-hero-art::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 8, 20, .08), rgba(4, 8, 20, .56));
    z-index: 1;
}

.ai-hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    animation: aiImageDrift 12s ease-in-out infinite alternate;
}

.ai-hero-card {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #102033;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 18px 44px rgba(15, 23, 42, .22);
    font-weight: 900;
    animation: aiPanelFloat 5s ease-in-out infinite;
}

.ai-hero-card-one { top: 18px; left: 18px; }
.ai-hero-card-two { right: 18px; top: 42%; animation-delay: .9s; }
.ai-hero-card-three { left: 28px; bottom: 20px; animation-delay: 1.6s; }

.ai-copilot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
    gap: 22px;
    margin-top: 22px;
    align-items: start;
}

.ai-form-card,
.ai-history-card,
.ai-generated-shell,
.ai-empty-preview {
    animation: aiPanelIn .45s ease both;
}

.ai-form-card .panel-head > .icon,
.ai-history-card .panel-head > .icon {
    width: 34px;
    height: 34px;
    padding: 8px;
    border-radius: 8px;
    color: #0f766e;
    background: #ccfbf1;
}

.ai-form-card label {
    color: #334155;
    font-weight: 800;
}

.ai-form-card input,
.ai-form-card select,
.ai-form-card textarea {
    margin-top: 8px;
    border-color: #dbe5ef;
    background: #f8fafc;
}

.ai-form-card input:focus,
.ai-form-card select:focus,
.ai-form-card textarea:focus {
    outline: 3px solid rgba(20, 184, 166, .18);
    border-color: #14b8a6;
    background: #fff;
}

.ai-generate-button {
    width: 100%;
    justify-content: center;
    margin-top: 14px;
}

.ai-history-list {
    display: grid;
    gap: 10px;
}

.ai-history-list a {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #102033;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ai-history-list a:hover,
.ai-history-list a.active {
    transform: translateY(-2px);
    border-color: #14b8a6;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .09);
}

.ai-history-list a span {
    width: max-content;
    padding: 5px 8px;
    border-radius: 8px;
    color: #155e75;
    background: #cffafe;
    font-size: .74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ai-history-list a small {
    color: #64748b;
}

.ai-generated-shell {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid #dce7f3;
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
    box-shadow: 0 20px 60px rgba(15, 23, 42, .08);
}

.ai-output-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 20px;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.ai-output-header h2 {
    margin: 8px 0;
    font-size: clamp(1.55rem, 3vw, 3rem);
    letter-spacing: 0;
}

.ai-output-header p {
    color: #475569;
}

.ai-score-card {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border-radius: 50%;
    background: conic-gradient(#14b8a6 calc(var(--score) * 1%), #e2e8f0 0);
    position: relative;
}

.ai-score-card::after {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    background: #fff;
}

.ai-score-card div {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    text-align: center;
}

.ai-score-card strong {
    color: #0f172a;
    font-size: 2rem;
}

.ai-score-card span {
    color: #64748b;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ai-output-actions {
    display: grid;
    gap: 12px;
    justify-items: center;
}

.ai-apply-form {
    display: grid;
    gap: 7px;
    width: 100%;
}

.ai-apply-form .button {
    justify-content: center;
    width: 100%;
}

.ai-apply-form small {
    color: #64748b;
    font-weight: 800;
    text-align: center;
}

.ai-output-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.ai-output-card {
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
}

.ai-output-card-wide {
    grid-column: 1 / -1;
}

.ai-section-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.ai-section-title h3 {
    margin: 0;
    font-size: 1rem;
}

.ai-copy-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid #dbe5ef;
    border-radius: 8px;
    color: #0f766e;
    background: #f0fdfa;
    font-weight: 900;
    cursor: pointer;
}

.ai-copy-button .icon {
    width: 15px;
    height: 15px;
}

.ai-story-block,
.ai-risk-list div,
.ai-social-grid div,
.ai-tier-list div {
    padding: 13px;
    border-radius: 8px;
    background: #f8fafc;
}

.ai-story-block + .ai-story-block,
.ai-risk-list div + div,
.ai-tier-list div + div {
    margin-top: 10px;
}

.ai-story-block span,
.ai-social-grid span {
    display: inline-block;
    margin-bottom: 6px;
    color: #0f766e;
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ai-faq-list {
    display: grid;
    gap: 10px;
}

.ai-faq-list details {
    padding: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.ai-faq-list summary {
    cursor: pointer;
    color: #0f172a;
    font-weight: 900;
}

.ai-keywords,
.ai-social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ai-keywords span {
    padding: 6px 9px;
    border-radius: 8px;
    color: #7c2d12;
    background: #ffedd5;
    font-size: .8rem;
    font-weight: 900;
}

.ai-social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-risk-list span {
    display: inline-flex;
    margin-bottom: 7px;
    padding: 5px 8px;
    border-radius: 8px;
    color: #991b1b;
    background: #fee2e2;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ai-risk-list span.ready {
    color: #166534;
    background: #dcfce7;
}

.ai-action-list {
    margin: 0;
    padding-left: 20px;
    color: #475569;
}

.ai-action-list li + li {
    margin-top: 9px;
}

.ai-empty-preview {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 24px;
    padding: 24px;
    border-style: dashed;
}

.ai-empty-preview > .icon {
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 8px;
    color: #0f766e;
    background: #ccfbf1;
}

@keyframes aiImageDrift {
    from { transform: scale(1.04) translateX(-1%); }
    to { transform: scale(1.11) translateX(2%); }
}

@keyframes aiPanelFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes aiPanelIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
    .ai-copilot-hero,
    .ai-copilot-grid,
    .ai-output-header {
        grid-template-columns: 1fr;
    }

    .ai-score-card {
        width: 150px;
    }
}

@media (max-width: 760px) {
    .ai-copilot-hero,
    .ai-generated-shell {
        padding: 18px;
    }

    .ai-output-grid,
    .ai-social-grid {
        grid-template-columns: 1fr;
    }

    .ai-hero-art {
        min-height: 240px;
    }
}
.ai-compact-list,
.ai-mini-stack,
.ai-metric-list,
.ai-budget-list,
.ai-safety-list {
    display: grid;
    gap: 10px;
}

.ai-compact-list {
    margin: 0;
    padding-left: 18px;
    color: #475569;
}

.ai-mini-stack > div,
.ai-metric-list > div,
.ai-budget-list > div,
.ai-safety-list > div,
.ai-persona-grid > div {
    padding: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.ai-mini-stack span,
.ai-metric-list span,
.ai-budget-list span,
.ai-persona-grid span,
.ai-safety-list span {
    display: inline-flex;
    width: max-content;
    margin: 0 0 7px;
    padding: 5px 8px;
    border-radius: 8px;
    color: #155e75;
    background: #cffafe;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ai-mini-stack p,
.ai-metric-list p,
.ai-budget-list p,
.ai-persona-grid p,
.ai-safety-list p {
    margin: 6px 0 0;
    color: #475569;
}

.ai-metric-list small,
.ai-persona-grid small {
    color: #64748b;
    font-weight: 800;
}

.ai-persona-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ai-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 8px;
    color: #155e75;
    background: #cffafe;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ai-status-badge.blocked,
.ai-safety-list .high span {
    color: #991b1b;
    background: #fee2e2;
}

.ai-status-badge.review,
.ai-status-badge.needs-review,
.ai-safety-list .medium span {
    color: #92400e;
    background: #fef3c7;
}

.ai-status-badge.ready,
.ai-safety-list .ready span,
.ai-safety-list .low span {
    color: #166534;
    background: #dcfce7;
}

@media (max-width: 900px) {
    .ai-persona-grid {
        grid-template-columns: 1fr;
    }
}

.ai-provider-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(236, 253, 245, 0.92));
    border-color: rgba(20, 184, 166, 0.28);
}

.ai-provider-card .ai-mini-stack div {
    border-left: 3px solid rgba(20, 184, 166, 0.55);
}

.ai-provider-card small {
    color: #64748b;
    display: block;
    font-weight: 650;
    line-height: 1.55;
    margin-top: 0.35rem;
}
.ai-settings-panel {
    margin: 1.25rem 0;
    overflow: hidden;
    position: relative;
}

.ai-settings-panel::after {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.16), rgba(59, 130, 246, 0.08));
    content: "";
    height: 100%;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    width: 35%;
}

.ai-settings-form {
    position: relative;
    z-index: 1;
}

.danger-toggle span {
    color: #b91c1c;
}