.chat-help-nudge {
    position: relative;
    isolation: isolate;
}

.chat-help-nudge-ring,
.chat-help-target-ring {
    position: absolute;
    z-index: 1;
    top: -1px;
    left: -1px;
    width: calc(100% + 2px);
    min-width: calc(100% + 2px);
    max-width: none;
    height: calc(100% + 2px);
    overflow: visible;
    pointer-events: none;
    shape-rendering: geometricPrecision;
}

.chat-help-nudge-pulse {
    fill: none;
    vector-effect: non-scaling-stroke;
    stroke-width: 2;
}

.chat-help-offer > p {
    margin-top: 12px;
}

.chat-help-tour {
    outline: none;
    position: fixed;
    z-index: 10030;
    top: var(--chat-help-top, 12px);
    left: var(--chat-help-left, 12px);
    width: min(340px, calc(100vw - 24px));
    box-sizing: border-box;
    padding: 20px;
    color: var(--chat-text, #f4efe6);
    border: 1px solid var(--chat-border-strong, rgba(232, 226, 242, 0.23));
    border-radius: 16px;
    background: var(--chat-panel-raised, #11101a);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
    font-family: "Inter", system-ui, sans-serif;
}

.chat-help-tour h3 {
    margin: 0 30px 6px 0;
    color: inherit;
    font-size: 15px;
    font-weight: 680;
    line-height: 1.25;
}

.chat-help-tour p {
    margin: 0;
    color: var(--chat-muted, #aaa5b0);
    font-size: 13px;
    line-height: 1.65;
}

.chat-help-tour-close {
    position: absolute;
    top: 9px;
    right: 9px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    color: var(--chat-muted, #aaa5b0);
    border: 0;
    border-radius: 999px;
    background: transparent;
    font: 20px/1 system-ui, sans-serif;
    cursor: pointer;
}

.chat-help-tour-close:hover,
.chat-help-tour-close:focus-visible {
    color: var(--chat-text, #f4efe6);
    background: rgba(244, 239, 230, 0.07);
}

.chat-help-tour-actions[hidden] { display: none; }

.chat-help-tour-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    margin-top: 18px;
}

.chat-help-tour-actions button {
    min-width: 66px;
    min-height: 36px;
    padding: 0 12px;
    color: var(--chat-text, #f4efe6);
    border: 1px solid var(--chat-border-strong, rgba(232, 226, 242, 0.23));
    border-radius: 999px;
    background: transparent;
    font: 600 12px "Inter", system-ui, sans-serif;
    cursor: pointer;
}

.chat-help-tour-actions button:hover,
.chat-help-tour-actions button:focus-visible {
    background: rgba(232, 226, 242, 0.12);
}

.chat-help-tour-actions button:disabled {
    cursor: default;
    opacity: 0.55;
}

.chat-help-spotlight {
    position: relative;
    z-index: 13;
    outline: none !important;
}

@media (max-width: 768px) {
    .chat-help-tour {
        width: min(340px, calc(100vw - 24px));
        padding: 18px;
    }

    .chat-help-tour-actions button {
        min-height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .chat-help-nudge-pulse {
        animation: none;
    }
}

@media (max-width: 768px) {
    .osint-chat-shell.chat-help-show-model .osint-chat-model-button {
        display: inline-flex !important;
    }
    .osint-chat-shell.chat-help-show-model .osint-chat-composer-left {
        flex: 0 0 auto !important;
        gap: 6px !important;
    }
}

.chat-help-tour-actions button:focus-visible, .chat-help-tour-close:focus-visible { outline: 2px solid var(--chat-muted); outline-offset: 3px; }

@media (max-width: 768px) {
    .osint-chat-shell.chat-help-composer-expanded .osint-chat-tool-picker {
        bottom: var(--chat-help-picker-bottom, 172px);
    }
    .chat-help-tour.chat-help-tour-embedded {
        position: relative;
        inset: auto;
        flex: 0 0 auto;
        width: 100%;
        padding: 18px;
        border: 0;
        border-bottom: 1px solid var(--chat-border);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }
}

.chat-help-target-ring {
    position: fixed;
    z-index: 10029;
    min-width: 0;
    animation: chat-help-target-enter 320ms ease-out;
}

@keyframes chat-help-target-enter {
    from { opacity: 0; }
    to { opacity: 1; }
}

.chat-help-tour-actions button {
    color: var(--chat-muted, #aaa5b0);
    border-color: transparent;
    transition: color 160ms ease, background-color 160ms ease;
}

.chat-help-tour-actions button:hover:not(:disabled),
.chat-help-tour-actions button:focus-visible {
    color: var(--chat-text, #f4efe6);
}

@media (prefers-reduced-motion: reduce) {
    .chat-help-target-ring { animation: none; }
    .chat-help-tour-actions button { transition: none; }
}
