/* Presentation only. API gates and nginx route exclusions disable AI server-side. */
#painsight_ai_menu { display: none !important; }

/* Keep Help distinct and readable, including Bootstrap's navigation hover states. */
#navbar .demo-help-item > #demoGettingStarted {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
    white-space: nowrap;
    color: #fff;
    background: #285e63;
    border: 1px solid #285e63;
    border-radius: 6px;
    text-decoration: none;
    text-shadow: none;
    box-shadow: 0 1px 3px rgba(36, 53, 55, .16);
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

#navbar .demo-help-item > #demoGettingStarted:hover,
#navbar .demo-help-item > #demoGettingStarted:focus {
    color: #fff;
    background: #1e494d;
    border-color: #1e494d;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(36, 53, 55, .22);
}

#navbar .demo-help-item > #demoGettingStarted:active {
    color: #fff;
    background: #16393c;
    border-color: #16393c;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .15);
}

@media (prefers-reduced-motion: reduce) {
    #navbar .demo-help-item > #demoGettingStarted { transition: none; }
}

#demoGettingStarted:focus-visible {
    /* Override the legacy global focus reset for keyboard navigation. */
    outline: 3px solid #243537 !important;
    outline-offset: 3px !important;
}

/* Leave room for the logo and guide link on laptop-width toolbars. */
@media screen and (min-width: 1201px) and (max-width: 1599px) {
    #navbar > ul > li.link { padding-left: 3px; padding-right: 3px; }
    #navbar > ul > li.link-user > a.btn-normal {
        min-width: 115px;
        max-width: 155px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media screen and (max-width: 1200px) {
    #navbar .demo-help-item > #demoGettingStarted {
        padding: 7px 9px;
        font-size: 12px;
        margin-top: 5px;
    }
}

@media print {
    #navbar .demo-help-item { display: none !important; }
}
