.tool-help-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.1);
    color: var(--primary-color);
    cursor: pointer;
    flex-shrink: 0;
}

.tool-help-trigger:hover {
    background: rgba(8, 145, 178, 0.16);
}

.tool-help-trigger:focus-visible {
    outline: 3px solid rgba(8, 145, 178, 0.18);
    outline-offset: 2px;
}

.tool-help-trigger svg {
    width: 12px;
    height: 12px;
    pointer-events: none;
}

.tool-help-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    width: min(260px, calc(100vw - 32px));
    padding: 10px 12px;
    border-radius: 12px;
    background: #0f172a;
    color: white;
    font-size: 0.82rem;
    line-height: 1.45;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 30;
    text-align: left;
}

.tool-help-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #0f172a transparent;
}

.tool-help-trigger:hover .tool-help-tooltip,
.tool-help-trigger:focus-visible .tool-help-tooltip,
.tool-help-trigger.is-open .tool-help-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.tool-help-inline-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
}

.tool-help-trigger.tool-help-trigger--subtle {
    width: 16px;
    height: 16px;
    background: rgba(148, 163, 184, 0.16);
    color: var(--text-light);
}

.tool-help-trigger.tool-help-trigger--subtle:hover {
    background: rgba(148, 163, 184, 0.24);
    color: var(--text-color);
}

@media (max-width: 768px) {
    .tool-help-tooltip {
        width: min(240px, calc(100vw - 24px));
        font-size: 0.8rem;
    }
}
