.custom-countdown-creator .page-heading p {
    max-width: 560px;
    margin-right: auto;
    margin-left: auto;
}

.custom-guidance {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    max-width: 700px;
    gap: 10px;
    margin: 0 auto 20px;
}

.custom-guidance-step {
    padding: 15px;
    text-align: left;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.custom-guidance-step > span {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    margin-bottom: 11px;
    color: #fff;
    background: var(--accent);
    border-radius: 50%;
    font-size: .72rem;
    font-weight: 800;
}

.custom-guidance-step strong {
    display: block;
    margin-bottom: 3px;
    font-size: .86rem;
}

.custom-guidance-step p {
    margin: 0;
    color: var(--text-secondary);
    font-size: .74rem;
    line-height: 1.45;
}

.custom-form-card {
    box-shadow: 0 22px 65px rgba(0, 0, 0, .18);
}

.custom-form-card .form-card-heading {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.form-card-heading h2 {
    margin: 0 0 5px;
    font-size: 1.2rem;
}

.form-card-heading p {
    margin: 0;
    color: var(--text-secondary);
    font-size: .85rem;
}

.custom-countdown-page .countdown-target {
    max-width: 620px;
    margin: 13px auto 0;
    color: var(--text-secondary);
}

.customization-panel {
    margin-top: 30px;
    padding: 24px;
    background: rgba(255, 255, 255, .025);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.customization-panel .form-card-heading {
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: 0;
}

.theme-picker {
    padding: 0;
    border: 0;
}

.theme-picker legend {
    margin-bottom: 10px;
    font-weight: 700;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.theme-option {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 1px 10px;
    min-height: 64px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-size: .82rem;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.theme-option:has(input:checked) {
    border-color: var(--accent);
    background: rgba(255, 255, 255, .06);
    box-shadow: 0 0 0 2px rgba(142, 227, 207, .14);
}

.theme-option:hover {
    background: rgba(255, 255, 255, .05);
    transform: translateY(-1px);
}

.theme-option input {
    grid-row: span 2;
    align-self: center;
}

.theme-option small {
    color: var(--text-secondary);
    font-size: .68rem;
}

.theme-option-copy {
    display: grid;
    align-content: center;
    min-width: 0;
}

.theme-option-copy strong,
.theme-option-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-swatch {
    display: block;
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.theme-option-aurora .theme-swatch { background: linear-gradient(135deg, #102a43, #8ee3cf); }
.theme-option-sunset .theme-swatch { background: linear-gradient(135deg, #3d1f2b, #ff9b71); }
.theme-option-paper .theme-swatch { background: linear-gradient(135deg, #f4efe5, #68747a); }
.theme-option-neon .theme-swatch { background: linear-gradient(135deg, #171329, #d66efd); }

.customize-inline-fields {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 16px;
    align-items: end;
}

.customize-inline-fields input[type="color"] {
    width: 100%;
    min-height: 42px;
    padding: 4px;
}

.custom-countdown-page {
    --custom-background: var(--background);
    --custom-surface: var(--surface);
    --custom-text: var(--text);
    --custom-muted: var(--text-secondary);
    --custom-accent: var(--accent);
    background: var(--custom-background);
    color: var(--custom-text);
}

.custom-countdown-page .custom-countdown-unit {
    background: var(--custom-surface);
    border-color: color-mix(in srgb, var(--custom-accent), transparent 65%);
}

.custom-countdown-page .custom-countdown-unit strong { color: var(--custom-accent); }
.custom-countdown-page .countdown-target,
.custom-countdown-page .custom-share-hint,
.custom-countdown-subtitle { color: var(--custom-muted); }

.custom-countdown-subtitle {
    margin: 18px auto 0;
    font-size: 1.05rem;
}

.custom-layout-compact .custom-countdown-page .custom-countdown-grid { gap: 10px; }
.custom-layout-compact .custom-countdown-page .custom-countdown-unit { padding: 20px 12px; }

.custom-share-hint {
    margin: 15px auto 0;
    color: var(--text-secondary);
    font-size: .82rem;
}

.custom-countdown-page .custom-countdown-grid {
    margin-top: 30px;
}

@media (max-width: 650px) {
    .custom-guidance {
        grid-template-columns: 1fr;
    }

    .custom-guidance-step {
        display: grid;
        grid-template-columns: 25px 1fr;
        column-gap: 10px;
        align-items: center;
    }

    .custom-guidance-step > span {
        grid-row: span 2;
        margin: 0;
    }

    .customization-panel {
        padding: 18px;
    }

    .theme-options,
    .customize-inline-fields {
        grid-template-columns: 1fr;
    }
}
