.raffle-editor-screen {
    --raffle-accent: #0f766e;
    --raffle-accent-soft: #d8f3ef;
    --raffle-bg: #f3f5f8;
    --raffle-card: #ffffff;
    --raffle-text: #0f172a;
    --raffle-muted: #64748b;
    --raffle-border: #dbe3ef;
    --raffle-warning: #f59e0b;
    --raffle-ok: #16a34a;
    background: var(--raffle-bg);
}

.raffle-editor-screen #wpbody-content {
    padding-bottom: 44px;
}

.raffle-editor-screen #poststuff #post-body-content {
    max-width: 1040px;
}

.raffle-editor-screen #titlediv,
.raffle-editor-screen #postdivrich {
    border-radius: 14px;
    border: 1px solid var(--raffle-border);
    box-shadow: 0 5px 24px rgba(15, 23, 42, 0.05);
    background: var(--raffle-card);
    overflow: hidden;
}

.raffle-editor-screen #titlediv #title {
    font-size: 22px;
    line-height: 1.3;
    font-weight: 600;
    padding: 14px 18px;
    border: 0;
    position: relative;
    z-index: 2;
    background: #fff;
}

.raffle-editor-screen #titlediv #titlewrap {
    position: relative;
}

.raffle-editor-screen #titlediv #title-prompt-text {
    display: none !important;
}

.raffle-editor-screen #raffle-title-help {
    margin: 0;
    padding: 10px 18px 14px;
    border-top: 1px solid #edf1f7;
    color: var(--raffle-muted);
    font-size: 12px;
}

.raffle-editor-screen #raffle-editor-hero {
    border-radius: 16px;
    border: 1px solid #cae7df;
    background: linear-gradient(135deg, #f2fffb 0%, #edf5ff 100%);
    margin: 14px 0;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.raffle-editor-screen .raffle-editor-hero__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.raffle-editor-screen .raffle-editor-hero__title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--raffle-text);
}

.raffle-editor-screen .raffle-editor-hero__subtitle {
    margin: 4px 0 0;
    color: var(--raffle-muted);
    font-size: 12px;
}

.raffle-editor-screen .raffle-editor-hero__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.raffle-editor-screen .raffle-hero-metric {
    background: var(--raffle-card);
    border: 1px solid #d8e4f3;
    border-radius: 12px;
    padding: 10px 12px;
}

.raffle-editor-screen .raffle-hero-metric__label {
    display: block;
    color: var(--raffle-muted);
    font-size: 11px;
    margin-bottom: 6px;
}

.raffle-editor-screen .raffle-hero-metric__value {
    color: #0b2746;
    font-size: 18px;
    font-weight: 700;
}

.raffle-editor-screen .raffle-editor-hero__presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.raffle-editor-screen .raffle-editor-hero__presets .raffle-apply-preset {
    border-color: #b9cde9;
    border-radius: 999px;
    padding: 3px 12px;
}

.raffle-editor-screen #poststuff #normal-sortables .postbox {
    border: 1px solid var(--raffle-border);
    border-radius: 13px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    margin-bottom: 14px;
}

.raffle-editor-screen #poststuff #normal-sortables .postbox .hndle {
    padding: 12px 14px;
    font-weight: 700;
    border-bottom: 1px solid #edf1f7;
}

.raffle-editor-screen #raffle_creation_guide .inside {
    background: #fcfeff;
    border-top: 1px solid #e4f0ff;
}

.raffle-editor-screen .raffle-guide-box {
    color: var(--raffle-text);
}

.raffle-editor-screen .raffle-guide-box .raffle-guide-lead {
    margin: 0 0 8px;
    color: var(--raffle-muted);
}

.raffle-editor-screen .raffle-guide-box ol {
    margin: 0 0 12px 18px;
}

.raffle-editor-screen .raffle-guide-box li {
    margin-bottom: 7px;
}

.raffle-editor-screen .raffle-guide-presets {
    padding-top: 10px;
    border-top: 1px dashed #dbe6f6;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.raffle-editor-screen .raffle-guide-presets-title {
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 700;
}

.raffle-editor-screen #raffle-step-nav {
    border: 1px solid #dbe8fb;
    border-radius: 12px;
    background: #f7faff;
    margin: 0 14px 14px;
    padding: 10px;
}

.raffle-editor-screen .raffle-step-nav-title {
    margin: 0 0 8px;
    font-size: 12px;
    color: #1e40af;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.raffle-editor-screen .raffle-step-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.raffle-editor-screen .raffle-step-item {
    flex: 0 0 auto;
}

.raffle-editor-screen .raffle-step-btn {
    border: 1px solid #cfddf7;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 11px;
    font-size: 12px;
    cursor: pointer;
}

.raffle-editor-screen .raffle-step-btn .step-index {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #edf2ff;
    color: #1e3a8a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.raffle-editor-screen .raffle-step-btn.is-active {
    background: var(--raffle-accent);
    border-color: var(--raffle-accent);
    color: #fff;
}

.raffle-editor-screen .raffle-step-btn.is-active .step-index {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.raffle-editor-screen .acf-field.raffle-field-essential {
    background: #fbfdff;
    border: 1px solid #dbe7f8;
    border-radius: 10px;
    padding: 14px;
    margin: 6px 0;
}

.raffle-editor-screen .acf-field.raffle-field-essential > .acf-label label {
    font-size: 13px;
}

.raffle-editor-screen #submitdiv,
.raffle-editor-screen #raffle_quick_summary {
    border: 1px solid var(--raffle-border);
    border-radius: 12px;
    overflow: hidden;
}

.raffle-editor-screen #postbox-container-1 .postbox .hndle {
    background: #f8fbff;
    border-bottom: 1px solid #e6edf7;
}

.raffle-editor-screen .raffle-quick-summary {
    font-size: 12px;
}

.raffle-editor-screen .raffle-quick-summary__item {
    margin-bottom: 10px;
}

.raffle-editor-screen .raffle-quick-summary__label {
    display: block;
    color: var(--raffle-muted);
    margin-bottom: 4px;
}

.raffle-editor-screen .raffle-quick-summary__item strong,
.raffle-editor-screen .raffle-quick-summary__grid strong {
    color: var(--raffle-text);
    font-size: 14px;
}

.raffle-editor-screen .raffle-quick-summary__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.raffle-editor-screen .raffle-quick-summary__checklist {
    margin: 0;
    padding: 8px 0 0;
    border-top: 1px dashed #e1e8f4;
}

.raffle-editor-screen .raffle-quick-summary__checklist li {
    list-style: none;
    margin-bottom: 7px;
    padding-left: 20px;
    position: relative;
    color: #7c2d12;
}

.raffle-editor-screen .raffle-quick-summary__checklist li::before {
    content: "!";
    position: absolute;
    left: 0;
    top: -1px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #ffedd5;
    color: #9a3412;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.raffle-editor-screen .raffle-quick-summary__checklist li.is-done {
    color: #14532d;
}

.raffle-editor-screen .raffle-quick-summary__checklist li.is-done::before {
    content: "OK";
    background: #dcfce7;
    color: #166534;
    font-size: 8px;
}

.raffle-editor-screen .raffle-secondary-box .hndle {
    background: #fbfcfe;
}

.raffle-editor-screen .raffle-editor-toast {
    position: fixed;
    right: 20px;
    bottom: 28px;
    z-index: 99999;
    border-radius: 10px;
    background: #0f172a;
    color: #fff;
    padding: 11px 14px;
    font-size: 12px;
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.35);
}

@media (max-width: 1200px) {
    .raffle-editor-screen .raffle-editor-hero__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .raffle-editor-screen .raffle-editor-hero__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .raffle-editor-screen .raffle-editor-hero__metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 782px) {
    .raffle-editor-screen #wpbody-content {
        padding-bottom: 20px;
    }

    .raffle-editor-screen #poststuff {
        padding-top: 0;
    }

    .raffle-editor-screen #poststuff #post-body-content {
        max-width: none;
        min-width: 0;
        margin-right: 0;
    }

    .raffle-editor-screen #post-body.columns-2 #postbox-container-1,
    .raffle-editor-screen #post-body.columns-2 #postbox-container-2 {
        float: none;
        width: 100%;
        margin-right: 0;
    }

    .raffle-editor-screen #poststuff #normal-sortables .postbox,
    .raffle-editor-screen #titlediv,
    .raffle-editor-screen #postdivrich {
        border-radius: 10px;
        margin-bottom: 10px;
    }

    .raffle-editor-screen #titlediv #title {
        font-size: 19px;
        padding: 11px 12px;
    }

    .raffle-editor-screen #raffle-title-help {
        padding: 9px 12px 12px;
    }

    .raffle-editor-screen #raffle-editor-hero {
        border-radius: 12px;
        margin: 10px 0;
        padding: 12px;
    }

    .raffle-editor-screen .raffle-editor-hero__title {
        font-size: 15px;
    }

    .raffle-editor-screen .raffle-editor-hero__presets {
        width: 100%;
    }

    .raffle-editor-screen .raffle-editor-hero__presets .raffle-apply-preset {
        flex: 1 1 calc(50% - 8px);
        min-height: 34px;
        text-align: center;
        justify-content: center;
        display: inline-flex;
        align-items: center;
        line-height: 1.2;
        margin: 0;
    }

    .raffle-editor-screen #raffle-step-nav {
        margin: 0 8px 12px;
        padding: 8px;
        border-radius: 10px;
    }

    .raffle-editor-screen .raffle-step-nav-title {
        font-size: 11px;
    }

    .raffle-editor-screen .raffle-step-list {
        gap: 6px;
        padding-bottom: 2px;
        scroll-snap-type: x mandatory;
    }

    .raffle-editor-screen .raffle-step-item {
        scroll-snap-align: start;
    }

    .raffle-editor-screen .raffle-step-btn {
        padding: 7px 10px;
        font-size: 11px;
        white-space: nowrap;
        min-height: 34px;
    }

    .raffle-editor-screen .raffle-step-btn .step-index {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }

    .raffle-editor-screen .acf-field.raffle-field-essential {
        padding: 10px;
        border-radius: 8px;
        margin: 4px 0;
    }

    .raffle-editor-screen .raffle-guide-presets-title {
        width: 100%;
        margin-bottom: 2px;
    }

    .raffle-editor-screen .raffle-guide-presets .raffle-apply-preset {
        flex: 1 1 calc(50% - 8px);
    }

    .raffle-editor-screen .raffle-quick-summary__grid {
        grid-template-columns: 1fr;
    }

    .raffle-editor-screen #postbox-container-1 .postbox .hndle,
    .raffle-editor-screen #poststuff #normal-sortables .postbox .hndle {
        padding: 10px 12px;
    }

    .raffle-editor-screen .raffle-editor-toast {
        left: 10px;
        right: 10px;
        bottom: 14px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .raffle-editor-screen #raffle-editor-hero {
        padding: 10px;
    }

    .raffle-editor-screen .raffle-editor-hero__metrics {
        gap: 8px;
    }

    .raffle-editor-screen .raffle-hero-metric {
        padding: 8px 10px;
        border-radius: 10px;
    }

    .raffle-editor-screen .raffle-hero-metric__value {
        font-size: 16px;
    }

    .raffle-editor-screen .raffle-editor-hero__presets .raffle-apply-preset,
    .raffle-editor-screen .raffle-guide-presets .raffle-apply-preset {
        flex: 1 1 100%;
    }

    .raffle-editor-screen #titlediv #title {
        font-size: 18px;
    }

    .raffle-editor-screen .raffle-step-btn {
        padding: 6px 9px;
        font-size: 10px;
    }
}
