/**
 * Native-like guide bubbles.
 *
 * Same shape as the browser "Please fill out this field" tooltip:
 * dark card, amber status icon, caret pointing at the control.
 * Used for tutorials only (never blocks submit).
 */

.guide-tip {
    --gt-bg: #202124;
    --gt-fg: #fff;
    --gt-icon: #f9ab00;
    --gt-icon-fg: #202124;
    --gt-radius: 8px;
    position: fixed;
    z-index: 10850;
    max-width: min(320px, calc(100vw - 24px));
    background: var(--gt-bg);
    color: var(--gt-fg);
    border-radius: var(--gt-radius);
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
    pointer-events: auto;
}
.guide-tip-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.guide-tip-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gt-icon);
    color: var(--gt-icon-fg);
    font-weight: 800;
    font-size: 12px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.guide-tip-body {
    flex: 1;
    min-width: 0;
}
.guide-tip-title {
    font-weight: 700;
    margin: 0 0 2px;
    font-size: 13px;
}
.guide-tip-text {
    margin: 0;
    color: #e8eaed;
}
.guide-tip-step {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #9aa0a6;
    font-weight: 600;
}
.guide-tip-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    margin-top: 8px;
}
.guide-tip-actions .btn {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
}
.guide-tip-caret {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--gt-bg);
    transform: rotate(45deg);
    pointer-events: none;
}
.guide-tip-target {
    outline: 2px solid #f9ab00;
    outline-offset: 3px;
    border-radius: 6px;
}

.guide-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    margin-left: 4px;
    vertical-align: middle;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    background: transparent;
    color: inherit;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    opacity: 0.62;
    cursor: help;
}
.guide-help-btn:hover,
.guide-help-btn:focus-visible {
    opacity: 1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 171, 0, 0.35);
}

[data-theme="dark"] .guide-tip {
    --gt-bg: #3c4043;
}

@media (prefers-reduced-motion: reduce) {
    .guide-tip {
        transition: none !important;
    }
}
