/* =========================================================
 * 에디터 화면 온보딩 오버레이 (실제 UI 요소를 빨간 테두리로 직접 안내)
 * - 데스크탑: 3개 대상 동시 표시 / 모바일: 1개씩 순차 표시
 * - 전체 화면을 덮는 dim 레이어가 뒤쪽 실제 UI의 클릭/터치를 막아서,
 *   온보딩을 보는 도중 실제 옵션(프로파일/규격 등)이 바뀌지 않게 한다.
========================================================= */
.editorTour {
    position: fixed;
    inset: 0;
    z-index: 9990;
}

.editorTourDim {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.35);
    z-index: 9990;
    pointer-events: auto;
}

.editorTourRing {
    position: fixed;
    border: 2.5px solid var(--bad);
    border-radius: 12px;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 9995;
}

.editorTourLabel {
    position: fixed;
    max-width: 240px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #f3d2ce;
    color: var(--txt);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.24);
    z-index: 9995;
    pointer-events: none;
}

.editorTourLabel::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffffff;
    border-left: 1px solid #f3d2ce;
    border-top: 1px solid #f3d2ce;
    transform: rotate(45deg);
}

.editorTourLabel.arrow-top::before {
    top: -6px;
    left: 20px;
}

.editorTourLabel.arrow-bottom::before {
    bottom: -6px;
    left: 20px;
    transform: rotate(225deg);
}

.editorTourPanel {
    position: fixed;
    left: 50%;
    bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 16px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--txt);
    color: #ffffff;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
    z-index: 9999;
    max-width: calc(100% - 24px);
    pointer-events: auto;
}

.editorTourPanelText {
    white-space: nowrap;
}

.editorTourProgress {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-weight: 800;
    font-size: 12px;
    flex: none;
}

.editorTourNeverAgain {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #c9cedb;
    font-weight: 500;
    white-space: nowrap;
    flex: none;
}

.editorTourBtn {
    appearance: none;
    width: auto;
    min-height: 0;
    border: none;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    flex: none;
    touch-action: manipulation;
}

.editorTourBtnPrimary {
    background: #fdcc63;
    color: var(--txt);
}

.editorTourBtnGhost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

@media (max-width: 768px) {
    .editorTourPanel {
        left: 12px;
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom, 0px));
        transform: none;
        max-width: none;
        flex-wrap: wrap;
    }

    .editorTourPanelText {
        white-space: normal;
    }
}
