/* Page guided-tour wizard (built on .intro-wizard base) + inline help tips */

.pw-inner {
    max-width: 460px;
}

.pw-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.pw-sub {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--text-tertiary);
}

.pw-counter {
    flex: none;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    background: var(--bg-3);
    border-radius: 999px;
    padding: 4px 10px;
    white-space: nowrap;
}

.pw-step {
    text-align: left;
    min-height: 140px;
}

.pw-step-num,.ui-step-badge.pw-step-num {
    width: 34px;
    height: 34px;
    font-size: 15px;
    margin-bottom: 14px;
    background: var(--gradient-brand);
    color: var(--on-accent);
}

.pw-title {
    font-size: 20px;
    margin: 0 0 8px;
}

.pw-desc {
    font-size: 15px;
    line-height: 1.55;
}

.pw-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 18px 0 14px;
}

.pw-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bg-3);
    transition: all 0.3s var(--ease);
}

.pw-dot.active {
    width: 22px;
    border-radius: 4px;
    background: var(--gradient-brand-h);
}

.pw-pref {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin: 4px 0 18px;
    cursor: pointer;
}

.pw-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pw-btn-next {
    min-width: 110px;
}

/* Inline help "?" marker + popover */
.helptip {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
}

.helptip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-tertiary);
    background: transparent;
    transition: color 0.15s var(--ease);
}

.helptip-trigger:hover,
.helptip-trigger[aria-expanded="true"] {
    color: var(--accent);
}

.helptip-trigger-icon {
    width: 15px;
    height: 15px;
}

.helptip-pop {
    position: absolute;
    z-index: 60;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 240px;
    padding: 9px 12px;
    font-size: 12.5px;
    line-height: 1.5;
    font-weight: 400;
    color: var(--text-primary);
    text-align: left;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    animation: fadeIn 0.15s var(--ease) both;
}

.helptip-pop::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: var(--bg-2);
}

.helptip-pop--right {
    left: auto;
    right: 0;
    transform: none;
}

.helptip-pop--right::before {
    left: auto;
    right: 6px;
    transform: none;
}

.helptip-backdrop {
    position: fixed;
    inset: 0;
    z-index: 55;
}

/* Profile: per-page guide toggles */
.wiz-page-settings-desc {
    font-size: 13px;
    color: var(--text-3);
    margin: -8px 0 16px;
    line-height: 1.5;
}

.wiz-page-toggles {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wiz-page-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.wiz-page-toggle-row:last-child {
    border-bottom: none;
}

.wiz-page-toggle-label {
    font-size: 14px;
    color: var(--text-primary);
}

.wiz-page-toggle-row input[type=checkbox] {
    flex-shrink: 0;
}
