.f15maep-root,
.f15maep-root * {
    box-sizing: border-box;
}

.f15maep-root {
    --f15maep-text: #1f2933;
    --f15maep-muted: #5f6b76;
    --f15maep-border: #d9e0e6;
    --f15maep-panel: #ffffff;
    --f15maep-primary: #0066ff;
    --f15maep-primary-dark: #0052cc;
    max-width: 1480px;
    margin: 0 auto 64px;
    color: var(--f15maep-text);
    font: inherit;
}

.f15maep-root h2,
.f15maep-root h3,
.f15maep-root p {
    margin-top: 0;
}

.f15maep-root h2 {
    margin-bottom: 8px;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
}

.f15maep-root h3 {
    margin-bottom: 8px;
    font-size: clamp(22px, 2.3vw, 30px);
    line-height: 1.18;
}

.f15maep-intro {
    margin-bottom: 18px;
}

.f15maep-intro > p:not(.f15maep-intro-kicker) {
    max-width: 1080px;
    margin-bottom: 8px;
    color: #44566c;
    font-size: 16px;
    line-height: 1.6;
}

.f15maep-intro-kicker,
.f15maep-card-kicker {
    margin-bottom: 8px;
    color: var(--f15maep-primary-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.f15maep-privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 14px;
    padding: 9px 13px;
    border: 1px solid #c9dcff;
    border-left: 4px solid var(--f15maep-primary);
    border-radius: 8px;
    background: #f2f7ff;
    color: #15345f;
    font-size: 14px;
    line-height: 1.45;
}

.f15maep-lock {
    line-height: 1.3;
}

.f15maep-card {
    margin-top: 14px;
    padding: 24px;
    border: 1px solid var(--f15maep-border);
    border-radius: 14px;
    background: var(--f15maep-panel);
    box-shadow: 0 8px 28px rgba(0, 102, 255, .07);
}

.f15maep-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.f15maep-editor-head p:not(.f15maep-card-kicker) {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--f15maep-muted);
    font-size: 14px;
    line-height: 1.55;
}

#f15maep-root .f15maep-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    flex: 0 0 auto !important;
    min-height: 38px !important;
    padding: 7px 12px !important;
    border: 1px solid #b8d2ff !important;
    border-radius: 9px !important;
    background: #f7faff !important;
    color: var(--f15maep-primary-dark) !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-decoration: none !important;
    box-shadow: 0 3px 10px rgba(0, 102, 255, .08) !important;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease !important;
}

#f15maep-root .f15maep-button span {
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

#f15maep-root .f15maep-button-icon {
    width: 15px !important;
    height: 15px !important;
    flex: 0 0 15px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

#f15maep-root .f15maep-button:hover {
    border-color: #83b2ff !important;
    background: #edf5ff !important;
    color: var(--f15maep-primary-dark) !important;
    box-shadow: 0 5px 14px rgba(0, 102, 255, .13) !important;
    transform: translateY(-1px) !important;
}

#f15maep-root .f15maep-button:focus-visible {
    outline: 3px solid rgba(0, 102, 255, .18) !important;
    outline-offset: 2px !important;
}

/* Same-session Fullscreen API mode. The existing iframe is expanded in place,
   so imported/edited data stays in the exact same editor session. */
.f15maep-editor-card:fullscreen,
.f15maep-editor-card:-webkit-full-screen {
    box-sizing: border-box !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 12px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.f15maep-editor-card:fullscreen .f15maep-editor-head,
.f15maep-editor-card:-webkit-full-screen .f15maep-editor-head {
    flex: 0 0 auto !important;
    margin-bottom: 10px !important;
}

.f15maep-editor-card:fullscreen .f15maep-frame-wrap,
.f15maep-editor-card:-webkit-full-screen .f15maep-frame-wrap {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    border-radius: 10px !important;
}

.f15maep-editor-card:fullscreen .f15maep-frame,
.f15maep-editor-card:-webkit-full-screen .f15maep-frame {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
}

#f15maep-root .f15maep-fullscreen-toggle {
    cursor: pointer !important;
}

.f15maep-frame-wrap {
    overflow: hidden;
    border: 1px solid #d8e0e8;
    border-radius: 12px;
    background: #f8f9fa;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
}

.f15maep-frame {
    display: block;
    width: 100%;
    height: clamp(720px, 82vh, 960px);
    border: 0;
    background: #f8f9fa;
}

.f15maep-foot-note {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #e1e7ed;
    border-radius: 10px;
    background: #fafbfd;
    color: #4d5c6b;
    font-size: 13px;
    line-height: 1.55;
}

.f15maep-duplicate-note {
    padding: 12px 14px;
    border: 1px solid #e1e7ed;
    border-radius: 8px;
    background: #fafbfd;
}

@media (max-width: 767px) {
    .f15maep-root {
        margin-bottom: 40px;
    }

    .f15maep-card {
        padding: 14px;
    }

    .f15maep-editor-head {
        align-items: center;
    }

    #f15maep-root .f15maep-button {
        width: auto !important;
    }

    .f15maep-frame {
        height: 760px;
    }
}

/* v1.0.12: optional quick walkthrough video */
.f15maep-editor-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

#f15maep-root .f15maep-walkthrough-toggle {
    cursor: pointer !important;
}

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

.f15maep-walkthrough-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.f15maep-walkthrough-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .72);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.f15maep-walkthrough-dialog {
    position: relative;
    z-index: 1;
    width: min(1040px, 94vw);
    max-height: 92vh;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .35);
}

.f15maep-walkthrough-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px 16px;
    border-bottom: 1px solid #e4e9ef;
}

.f15maep-walkthrough-header .f15maep-card-kicker {
    margin-bottom: 4px;
}

.f15maep-walkthrough-header h3 {
    margin: 0 !important;
    color: var(--f15maep-text);
    font-family: inherit !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

#f15maep-root .f15maep-walkthrough-close {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    border: 1px solid #d7dee7 !important;
    border-radius: 9px !important;
    background: #f8fafc !important;
    color: #425466 !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

#f15maep-root .f15maep-walkthrough-close:hover {
    border-color: #b8c5d4 !important;
    background: #eef3f8 !important;
    color: #1f2933 !important;
}

#f15maep-root .f15maep-walkthrough-close svg {
    width: 17px !important;
    height: 17px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
}

.f15maep-video-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #050b16;
}

.f15maep-walkthrough-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #050b16;
}

body.f15maep-modal-open {
    overflow: hidden !important;
}

@media (max-width: 767px) {
    .f15maep-editor-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .f15maep-editor-actions {
        width: 100%;
        justify-content: flex-start;
    }

    #f15maep-root .f15maep-walkthrough-toggle span {
        white-space: nowrap;
    }

    .f15maep-walkthrough-modal {
        padding: 12px;
    }

    .f15maep-walkthrough-dialog {
        width: 100%;
        max-height: 94vh;
        border-radius: 12px;
    }

    .f15maep-walkthrough-header {
        padding: 14px;
    }

    .f15maep-walkthrough-header h3 {
        font-size: 17px !important;
    }
}
