.help-assistant-fab {
    position: fixed;
    right: 1.25rem;
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(168, 198, 255, 0.28);
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(18, 24, 38, 0.92), rgba(8, 13, 28, 0.88));
    color: #f4f7ff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.help-assistant-fab:hover,
.help-assistant-fab:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.42);
    color: #fff;
}

.help-assistant-fab__label {
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.help-assistant-offcanvas {
    width: min(28rem, 100vw);
    background: linear-gradient(160deg, rgba(8, 13, 28, 0.96), rgba(18, 24, 38, 0.94));
    color: #eef3ff;
    border-left: 1px solid rgba(168, 198, 255, 0.16);
}

.help-assistant-offcanvas__header {
    border-bottom: 1px solid rgba(168, 198, 255, 0.12);
    padding: 1.25rem 1.25rem 1rem;
}

.help-assistant-offcanvas__eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(168, 198, 255, 0.78);
}

.help-assistant-offcanvas__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 650;
}

.help-assistant-offcanvas__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.25rem 1.25rem;
    min-height: 0;
}

.help-assistant-tabs {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

.help-assistant-tabs__tab {
    border: 1px solid rgba(168, 198, 255, 0.22);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(238, 243, 255, 0.78);
    font-size: 0.84rem;
    font-weight: 600;
}

.help-assistant-tabs__tab.is-active,
.help-assistant-tabs__tab[aria-selected="true"] {
    background: #fff;
    color: #111;
    border-color: transparent;
}

.help-assistant-suggest {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 0;
    flex: 1 1 auto;
}

.help-assistant-suggest__lead {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(238, 243, 255, 0.78);
}

.help-assistant-suggest__form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.help-assistant-suggest__kinds {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.help-assistant-suggestions__chip.is-active {
    background: #fff;
    color: #111;
    border-color: transparent;
}

.help-assistant-suggest__success {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.28);
}

.help-assistant-suggest__success p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
}

[data-help-assistant-panel] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
    flex: 1 1 auto;
}

[data-help-assistant-panel][hidden] {
    display: none !important;
}

.help-assistant-thread {
    flex: 1 1 auto;
    min-height: 12rem;
    max-height: calc(100vh - 16rem);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-right: 0.15rem;
}

.help-assistant-message {
    max-width: 92%;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    font-size: 0.92rem;
    line-height: 1.5;
}

.help-assistant-message p {
    margin: 0;
}

.help-assistant-message--assistant {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(168, 198, 255, 0.12);
}

.help-assistant-message--user {
    align-self: flex-end;
    background: rgba(125, 168, 255, 0.18);
    border: 1px solid rgba(125, 168, 255, 0.28);
}

.help-assistant-message--error {
    align-self: flex-start;
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.28);
}

.help-assistant-message__action {
    margin-top: 0.75rem;
}

.help-assistant-message__action .btn {
    font-size: 0.84rem;
    padding: 0.35rem 0.75rem;
}

.help-assistant-compose {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: auto;
}

.help-assistant-suggestions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

.help-assistant-suggestions__label {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(168, 198, 255, 0.72);
}

.help-assistant-suggestions__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.help-assistant-suggestions__chip {
    border: 1px solid rgba(168, 198, 255, 0.22);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    color: #eef3ff;
    font-size: 0.82rem;
    line-height: 1.3;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.help-assistant-suggestions__chip:hover:not(:disabled),
.help-assistant-suggestions__chip:focus-visible:not(:disabled) {
    background: rgba(125, 168, 255, 0.14);
    border-color: rgba(168, 198, 255, 0.38);
    color: #fff;
}

.help-assistant-suggestions__chip:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.help-assistant-compose__input {
    resize: vertical;
    min-height: 4.5rem;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(168, 198, 255, 0.18);
    color: #f4f7ff;
}

.help-assistant-compose__input::placeholder {
    color: rgba(238, 243, 255, 0.45);
}

.help-assistant-compose__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.help-assistant-compose__hint {
    font-size: 0.78rem;
    color: rgba(238, 243, 255, 0.55);
}

.help-assistant-compose__submit:disabled {
    opacity: 0.65;
}

.help-assistant-message--pending {
    opacity: 0.75;
    font-style: italic;
}

@media (max-width: 767.98px) {
    .help-assistant-fab {
        right: 1rem;
        bottom: calc(5.35rem + env(safe-area-inset-bottom, 0px));
        padding: 0.65rem 0.85rem;
    }

    .help-assistant-fab__label {
        display: none;
    }
}
