:root {
    --bg: #0a0d12;
    --panel: rgba(19, 25, 34, 0.88);
    --panel-strong: #151d27;
    --line: rgba(144, 247, 255, 0.22);
    --text: #f5f8fc;
    --muted: #a9b5c3;
    --cyan: #4de7ff;
    --lime: #9dff57;
    --amber: #ffcc66;
    --magenta: #ff4fd8;
    --danger: #ff5c7a;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
    box-sizing: border-box;
    letter-spacing: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 16% 8%, rgba(77, 231, 255, 0.16), transparent 30%),
        radial-gradient(circle at 86% 18%, rgba(255, 204, 102, 0.12), transparent 28%),
        linear-gradient(135deg, #111821 0%, #101720 44%, #0a0d12 100%);
    font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

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

a {
    color: inherit;
}

#neon-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.32;
    z-index: 0;
}

.front-shell > *:not(#neon-canvas):not(.modal-backdrop) {
    position: relative;
    z-index: 1;
}

.front-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    padding: 24px 0;
}

.front-brand,
.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
}

.brand-mark {
    width: 18px;
    height: 18px;
    display: inline-block;
    background:
        linear-gradient(90deg, transparent 0 30%, var(--cyan) 30% 70%, transparent 70%),
        linear-gradient(0deg, transparent 0 30%, var(--lime) 30% 70%, transparent 70%),
        #151b22;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 20px rgba(77, 231, 255, 0.45);
}

.brand-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: block;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 20px rgba(77, 231, 255, 0.36);
}

.hero-band {
    width: min(1240px, calc(100% - 48px));
    min-height: 56vh;
    margin: 0 auto;
    padding: 64px 0 70px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
    align-items: center;
    gap: clamp(40px, 5.8vw, 72px);
}

.hero-copy {
    min-width: 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0;
    max-width: 720px;
    font-size: clamp(42px, 4.6vw, 56px);
    line-height: 1.12;
    font-weight: 900;
    text-wrap: balance;
}

.hero-subtitle {
    max-width: 610px;
    margin: 20px 0 0;
    color: #d2dbe6;
    font-size: 18px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 30px;
}

.button-primary,
.button-pledge,
.button-secondary,
.button-danger,
.button-muted {
    min-height: 44px;
    border: 0;
    padding: 0 18px;
    color: #061014;
    background: linear-gradient(90deg, var(--cyan), var(--lime));
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.button-primary:hover,
.button-pledge:hover {
    filter: brightness(1.08);
}

.button-primary:disabled,
.button-pledge:disabled {
    cursor: not-allowed;
    color: #7d8793;
    background: #26303b;
}

.button-muted {
    color: var(--text);
    background: #26303b;
}

.button-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.button-muted:hover,
.button-secondary:hover {
    filter: brightness(1.08);
}

.ghost-front-link {
    color: #cbd6e2;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.hero-console {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-self: center;
    padding: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(24, 32, 43, 0.94), rgba(13, 18, 25, 0.92));
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

.project-telemetry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-console::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0 49%, rgba(77, 231, 255, 0.13) 49% 51%, transparent 51%),
        repeating-linear-gradient(0deg, transparent 0 28px, rgba(255, 255, 255, 0.04) 28px 29px);
    opacity: 0.45;
    pointer-events: none;
}

.hero-console::after {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -55%;
    width: 46%;
    background: linear-gradient(90deg, transparent, rgba(77, 231, 255, 0.18), transparent);
    transform: skewX(-14deg);
    animation: console-sweep 5.4s linear infinite;
    pointer-events: none;
}

.hero-console > div {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.18);
    border-radius: 6px;
}

.hero-console .console-title,
.hero-console .console-progress {
    grid-column: 1 / -1;
}

.hero-console .console-title {
    align-items: center;
    min-height: 64px;
    border-color: rgba(255, 204, 102, 0.28);
    background: linear-gradient(90deg, rgba(77, 231, 255, 0.08), rgba(0, 0, 0, 0.2));
}

.console-title span {
    font-size: 15px;
    line-height: 1.4;
}

.console-title strong {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(157, 255, 87, 0.1);
    color: var(--lime);
    font-size: 18px;
}

.project-telemetry .stat-flow-card:nth-of-type(2) {
    grid-column: 1 / -1;
}

.stat-flow-card {
    min-height: 118px;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
}

.stat-flow-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: linear-gradient(115deg, transparent 0 24%, rgba(157, 255, 87, 0.14) 34%, transparent 46% 100%);
    transform: translateX(-105%);
    animation: stat-card-flow 3.8s linear infinite;
    pointer-events: none;
}

.stat-flow-card:nth-of-type(3)::before {
    animation-delay: 0.7s;
}

.stat-flow-card:nth-of-type(4)::before {
    animation-delay: 1.35s;
}

.hero-console span {
    color: var(--muted);
}

.hero-console strong {
    color: var(--text);
    font-size: 22px;
}

.stat-flow-card strong {
    align-self: flex-end;
    margin-top: auto;
    font-size: clamp(34px, 5vw, 46px);
    line-height: 1;
    text-shadow: 0 0 24px rgba(77, 231, 255, 0.32);
}

.stat-flow-card span {
    max-width: 100%;
    color: #cbd6e2;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.console-progress,
.progress-track {
    height: 10px;
    padding: 0 !important;
    border: 1px solid rgba(77, 231, 255, 0.2);
    background: #10151b;
    overflow: hidden;
}

.console-flow {
    position: relative;
    height: 40px;
    align-items: center;
    padding: 0 16px !important;
    border-color: rgba(77, 231, 255, 0.22);
    background:
        radial-gradient(circle at 22% 50%, rgba(77, 231, 255, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(77, 231, 255, 0.055), rgba(0, 0, 0, 0.2));
}

.console-flow::before {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(77, 231, 255, 0.36), rgba(157, 255, 87, 0.24), transparent);
    box-shadow: 0 0 18px rgba(77, 231, 255, 0.18);
}

.console-progress span,
.progress-track span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--lime), var(--amber));
}

.console-flow span {
    position: relative;
    width: 100%;
    height: 24px;
    overflow: hidden;
    background: transparent;
    transform: none;
}

.console-flow span::before,
.console-flow span::after {
    content: "";
    position: absolute;
    inset: 0;
    background-repeat: repeat-x;
    background-position: 0 50%;
    background-size: 240px 24px;
    pointer-events: none;
}

.console-flow span::before {
    width: 220%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='24' viewBox='0 0 240 24'%3E%3Cpath d='M0 12 H20 L26 7 L32 17 L38 12 H68 L74 4 L84 21 L94 12 H126 L132 8 L140 16 L148 12 H182 L188 5 L198 19 L208 12 H240' fill='none' stroke='%239dff57' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    filter: drop-shadow(0 0 6px rgba(157, 255, 87, 0.6));
    opacity: 0.95;
    animation: flow-wave 3.4s linear infinite;
}

.console-flow span::after {
    width: 36%;
    background: linear-gradient(90deg, transparent, rgba(77, 231, 255, 0.08), rgba(255, 204, 102, 0.7), rgba(77, 231, 255, 0.1), transparent);
    filter: blur(3px);
    opacity: 0;
    animation: flow-scan 2.8s ease-in-out infinite;
}

@keyframes console-sweep {
    to {
        left: 112%;
    }
}

@keyframes stat-card-flow {
    to {
        transform: translateX(105%);
    }
}

@keyframes flow-wave {
    to {
        transform: translateX(-240px);
    }
}

@keyframes flow-scan {
    0% {
        opacity: 0;
        transform: translateX(-120%);
    }

    18%,
    78% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(320%);
    }
}

.front-notice,
.setup-warning,
.empty-state {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto 24px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(18, 24, 33, 0.9);
    border-radius: 8px;
}

.front-notice-success {
    border-color: rgba(157, 255, 87, 0.35);
}

.front-notice-error {
    border-color: rgba(255, 92, 122, 0.45);
    color: #ffd5dc;
}

.projects-section {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
    padding: 34px 0 92px;
}

.project-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin: -6px 0 32px;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
}

.filter-button {
    min-height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd6e2;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 0 14px;
    cursor: pointer;
    font-weight: 800;
}

.filter-button.is-active,
.filter-button:hover {
    color: #061014;
    border-color: transparent;
    background: linear-gradient(90deg, var(--cyan), var(--lime));
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-heading h2 {
    margin: 0;
    font-size: 36px;
}

.section-heading > p {
    max-width: 480px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    text-align: right;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 24px;
}

.project-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(22, 29, 39, 0.88), rgba(13, 18, 25, 0.92));
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.24);
    border-radius: 8px;
    overflow: hidden;
}

.project-card[hidden],
.project-filter-empty[hidden] {
    display: none !important;
}

.project-cover {
    min-height: 0;
    aspect-ratio: 16 / 9;
    background: #0e141a;
}

.project-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cover-fallback {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: grid;
    place-items: center;
    color: var(--cyan);
    background:
        repeating-linear-gradient(45deg, rgba(77, 231, 255, 0.08) 0 2px, transparent 2px 18px),
        linear-gradient(135deg, #17202b, #0f151d 55%, #17130c);
}

.cover-fallback span {
    position: absolute;
    width: 104px;
    height: 104px;
    border: 1px solid rgba(77, 231, 255, 0.45);
    transform: rotate(45deg);
}

.cover-fallback strong {
    position: relative;
    color: var(--text);
    font-size: 14px;
}

.project-body {
    padding: 22px;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
}

.project-title-row,
.money-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.project-title-row h3 {
    margin: 0;
    font-size: 24px;
}

.project-title-row h3 a {
    color: inherit;
    text-decoration: none;
}

.project-title-row span {
    color: var(--lime);
    font-weight: 800;
}

.project-state {
    width: fit-content;
    padding: 5px 9px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.state-in-progress {
    color: var(--lime);
    background: rgba(157, 255, 87, 0.1);
}

.state-completed {
    color: var(--amber);
    background: rgba(255, 204, 102, 0.11);
}

.state-upcoming {
    color: var(--cyan);
    background: rgba(77, 231, 255, 0.1);
}

.project-body p,
.project-description,
.money-row {
    color: var(--muted);
    line-height: 1.65;
}

.project-body p {
    margin: 0;
}

.button-pledge {
    width: 100%;
    margin-top: auto;
}

.project-actions {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 10px;
    margin-top: auto;
}

.project-actions .button-pledge {
    margin-top: 0;
}

.project-actions .button-secondary {
    width: 100%;
}

.detail-hero,
.detail-content {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: stretch;
    padding: 46px 0 34px;
}

.detail-cover {
    min-height: 360px;
    border: 1px solid var(--line);
    background: rgba(12, 18, 25, 0.88);
    border-radius: 8px;
    overflow: hidden;
}

.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-summary,
.detail-panel {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(22, 29, 39, 0.88), rgba(13, 18, 25, 0.92));
    border-radius: 8px;
    padding: 24px;
}

.detail-summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-summary h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1.15;
}

.detail-summary p {
    color: var(--muted);
    line-height: 1.75;
    margin: 0;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

.detail-actions .button-pledge {
    width: auto;
    min-width: 160px;
}

.share-status {
    min-height: 24px;
    color: var(--lime) !important;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 24px;
    align-items: start;
    padding: 0 0 92px;
}

.detail-panel h2 {
    margin: 0 0 16px;
}

.rich-text {
    color: #d6e0ea;
    line-height: 1.85;
}

.supporter-panel {
    max-height: min(620px, calc(100vh - 128px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.supporter-list {
    display: grid;
    gap: 10px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
    overscroll-behavior: contain;
    scrollbar-color: rgba(77, 231, 255, 0.55) rgba(255, 255, 255, 0.04);
}

.supporter-list::-webkit-scrollbar {
    width: 8px;
}

.supporter-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

.supporter-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(77, 231, 255, 0.55), rgba(157, 255, 87, 0.5));
    border-radius: 999px;
}

.supporter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.14);
    border-radius: 6px;
}

.supporter-item strong,
.supporter-item span {
    display: block;
}

.supporter-item span,
.muted-text {
    color: var(--muted);
}

.supporter-item b {
    color: var(--lime);
    white-space: nowrap;
}

.modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw;
    min-height: 100vh;
    min-height: 100dvh;
    z-index: 2147483000 !important;
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(18px, 6vh, 72px) 24px 24px;
    margin: 0 !important;
    background: rgba(0, 0, 0, 0.66);
    backdrop-filter: blur(10px);
    overflow-y: auto;
    transform: none !important;
}

.modal-backdrop[hidden] {
    display: none !important;
}

.modal-panel {
    width: min(1080px, 100%);
    max-height: min(860px, calc(100dvh - 48px));
    overflow: auto;
    border: 1px solid rgba(77, 231, 255, 0.28);
    background: #111821;
    box-shadow: var(--shadow);
    border-radius: 8px;
    padding: 24px;
    margin: 0 auto;
    transform: none !important;
}

.modal-panel.is-terms {
    width: min(720px, 100%);
}

.modal-panel.is-payment {
    width: min(1080px, 100%);
}

.modal-close {
    float: right;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #17202a;
    color: var(--text);
    border-radius: 6px;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.modal-heading h2,
.terms-box h3,
.qr-box h3 {
    margin: 0;
}

.pledge-form {
    display: grid;
    gap: 18px;
}

.modal-step[hidden] {
    display: none !important;
}

.modal-grid,
.form-grid {
    display: grid;
    gap: 16px;
}

.modal-grid {
    grid-template-columns: minmax(300px, 0.68fr) minmax(0, 1fr);
}

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

.terms-box,
.qr-box,
.submission-box {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.045);
    padding: 18px;
    border-radius: 8px;
}

.terms-box-wide {
    min-height: 0;
}

.terms-box-wide .terms-content {
    max-height: min(420px, 52vh);
}

.terms-content {
    max-height: 220px;
    overflow: auto;
    margin: 14px 0;
    color: #d3dce7;
    line-height: 1.75;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #e0e8f1;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.16);
    border-radius: 6px;
    cursor: pointer;
}

.checkbox-row input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 2px 0 0;
    accent-color: var(--lime);
}

.checkbox-row span {
    display: block;
    margin: 0;
    color: #e7eef7;
    font-weight: 700;
    line-height: 1.55;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    cursor: pointer;
}

.payment-option:focus-within {
    border-color: var(--method-accent);
}

.payment-option input {
    width: 16px;
    height: 16px;
    accent-color: var(--method-accent);
}

.payment-option input:checked + span {
    color: var(--method-accent);
}

.qr-box img {
    width: 240px;
    max-width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    display: block;
    margin: 16px auto;
    background: #fff;
    border: 8px solid #fff;
}

.qr-box p {
    margin: 0;
    color: var(--muted);
}

.qr-empty {
    min-height: 220px;
    display: grid;
    place-items: center;
    margin-top: 16px;
    color: var(--muted);
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 8px;
}

.submission-box {
    display: grid;
    gap: 16px;
}

.submission-box h3 {
    margin: 0;
}

.step-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

label span {
    display: block;
    margin-bottom: 7px;
    color: #d3dce7;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    color: var(--text);
    background: #121a23;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    padding: 11px 12px;
}

input.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(255, 92, 122, 0.16);
}

.file-help,
.field-error {
    display: block;
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.45;
}

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

.field-error {
    color: #ff9aad;
}

.field-error:empty {
    display: none;
}

textarea {
    resize: vertical;
}

.full-label {
    display: block;
}

@media (max-width: 980px) {
    .hero-band {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 48px 0 58px;
    }

    .hero-copy h1 {
        max-width: 100%;
        font-size: clamp(38px, 7vw, 48px);
    }

    .hero-subtitle {
        max-width: 720px;
    }

    .hero-console {
        width: 100%;
        max-width: 620px;
    }

    .modal-grid {
        grid-template-columns: 1fr;
    }

    .detail-hero,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .project-cover,
    .cover-fallback {
        min-height: 220px;
    }
}

@media (max-width: 640px) {
    .front-header,
    .hero-band,
    .projects-section,
    .front-notice,
    .setup-warning,
    .empty-state {
        width: min(100% - 28px, 1240px);
    }

    .front-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-band {
        min-height: 0;
        padding: 36px 0 44px;
    }

    .hero-copy h1 {
        font-size: clamp(31px, 9.2vw, 38px);
        line-height: 1.16;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-console,
    .project-grid,
    .project-actions,
    .form-grid,
    .payment-methods {
        grid-template-columns: 1fr;
    }

    .project-filter-bar {
        min-height: 0;
        padding: 0;
    }

    .filter-button {
        flex: 1 1 100%;
    }

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

    .detail-hero {
        padding-top: 22px;
    }

    .detail-cover {
        min-height: 240px;
    }

    .detail-summary h1 {
        font-size: 30px;
    }

    .detail-actions {
        flex-direction: column;
    }

    .detail-actions .button-pledge,
    .detail-actions .button-secondary {
        width: 100%;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-heading > p {
        text-align: left;
    }

    .modal-panel {
        padding: 18px;
    }

    .modal-backdrop {
        align-items: flex-start;
        padding: 14px;
    }

    .modal-panel {
        width: 100%;
        max-height: calc(100dvh - 28px);
    }
}
