/* AI_STUDIO_HELP_GUIDE_V126 */
.ai-guide-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.ai-guide-title-row > p {
    margin: 0 !important;
}

.ai-guide-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 25px;
    padding: 0 9px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.9);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease;
}

.ai-guide-trigger:hover {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.45);
}

.ai-guide-trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 900;
}

.ai-help-label {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    overflow: visible !important;
}

.ai-help-dot {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    border: 1px solid #aeb8c8;
    border-radius: 50%;
    background: #fff;
    color: #667085;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    cursor: help;
    outline: none;
    vertical-align: middle;
}

.ai-help-dot:hover,
.ai-help-dot:focus-visible {
    border-color: #52657f;
    color: #26364a;
    background: #f7f9fc;
}

.ai-help-tooltip {
    position: absolute;
    z-index: 10050;
    left: 50%;
    bottom: calc(100% + 9px);
    width: 250px;
    padding: 9px 11px;
    border-radius: 9px;
    background: #111827;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    white-space: normal;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity .12s ease, transform .12s ease, visibility .12s ease;
}

.ai-help-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #111827;
}

.ai-help-dot:hover .ai-help-tooltip,
.ai-help-dot:focus-visible .ai-help-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.ai-guide-modal {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ai-guide-modal.is-open {
    display: flex;
}

.ai-guide-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .50);
    backdrop-filter: blur(2px);
}

.ai-guide-dialog {
    position: relative;
    z-index: 1;
    width: min(690px, calc(100vw - 40px));
    max-height: min(760px, calc(100vh - 48px));
    overflow: hidden;
    border: 1px solid #dfe4ec;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.ai-guide-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px 17px;
    border-bottom: 1px solid #edf0f4;
}

.ai-guide-head h2 {
    margin: 0 0 5px;
    color: #111827;
    font-size: 20px;
    font-weight: 800;
}

.ai-guide-head p {
    margin: 0;
    color: #7b8494;
    font-size: 12px;
}

.ai-guide-close {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: #f1f3f6;
    color: #111827;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
}

.ai-guide-body {
    overflow-y: auto;
    max-height: calc(100vh - 250px);
    padding: 18px 24px;
}

.ai-guide-step {
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 11px;
    align-items: flex-start;
    padding: 11px 0;
    border-bottom: 1px solid #f0f2f5;
}

.ai-guide-step:last-child {
    border-bottom: 0;
}

.ai-guide-step > b {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    font-size: 12px;
}

.ai-guide-step strong {
    display: block;
    margin: 2px 0 4px;
    color: #172033;
    font-size: 13px;
    font-weight: 800;
}

.ai-guide-step p {
    margin: 0;
    color: #596579;
    font-size: 12px;
    line-height: 1.55;
}

.ai-guide-foot {
    padding: 13px 24px 16px;
    border-top: 1px solid #edf0f4;
    background: #fafbfc;
    color: #758094;
    font-size: 11px;
}

.ai-guide-mini-q {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border: 1px solid #aeb8c8;
    border-radius: 50%;
    background: #fff;
    color: #667085;
    font-size: 9px;
    font-weight: 800;
}

body.ai-guide-open {
    overflow: hidden;
}

@media (max-width: 820px) {
    .ai-guide-trigger > span:last-child {
        display: none;
    }

    .ai-guide-trigger {
        width: 26px;
        padding: 0;
        justify-content: center;
    }

    .ai-help-tooltip {
        width: 220px;
    }
}

/* AI_STUDIO_HELP_GUIDE_V127_TABS */
.ai-guide-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px 24px 0;
    background: #fff;
}

.ai-guide-tab {
    min-height: 36px;
    border: 1px solid #d7dee8;
    border-radius: 9px;
    background: #f7f9fc;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.ai-guide-tab.is-active {
    border-color: #111827;
    background: #111827;
    color: #fff;
}

.ai-guide-panel.hidden {
    display: none !important;
}

.ai-guide-panel .ai-guide-step:first-child {
    padding-top: 3px;
}

.ai-guide-panel .ai-guide-step:last-child {
    padding-bottom: 3px;
}

@media (max-width: 560px) {
    .ai-guide-tabs {
        padding-left: 16px;
        padding-right: 16px;
    }
    .ai-guide-body {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* AI_STUDIO_HELP_UI_POLISH_V127R1 */
button[data-action="preview-product-understanding"].ai-help-label {
    font-size: 11px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    letter-spacing: -0.1px;
}

.identity-setcut-pose-v4 .ai-help-dot {
    padding: 0 !important;
    box-sizing: border-box;
}

.identity-setcut-pose-v4 .ai-help-dot-mark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    line-height: 1;
    color: inherit;
    font-size: 9px;
    font-weight: 800;
    text-align: center;
}

.identity-setcut-pose-v4 .ai-help-tooltip {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
