/* Dashlite's .gap-* classes are fixed-height spacers. Flex rows use them for spacing, so keep the gap and let the row grow. */
.d-flex.gap-2,
.d-inline-flex.gap-2 {
    height: auto;
}

.operations-assistant__toggle {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1040;
    border: 0;
    border-radius: 999px;
    background: #0fac81;
    color: #fff;
    font-weight: 600;
    padding: 0.7rem 1.1rem;
    box-shadow: 0 8px 24px rgba(15, 172, 129, 0.28);
}

.operations-assistant {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(22rem, 100vw);
    z-index: 1050;
    background: #fff;
    border-left: 1px solid #e5e9f2;
    box-shadow: -8px 0 24px rgba(15, 23, 42, 0.08);
}

.operations-assistant__panel {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.operations-assistant__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem 0.75rem;
    border-bottom: 1px solid #e5e9f2;
}

.operations-assistant__title {
    font-weight: 700;
    font-size: 1rem;
}

.operations-assistant__subtitle {
    color: #8094ae;
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.operations-assistant__icon-btn {
    border: 0;
    background: transparent;
    color: #526484;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0 0.25rem;
}

.operations-assistant__body {
    flex: 1;
    overflow: auto;
    padding: 1rem;
}

.operations-assistant__welcome-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.operations-assistant__chips {
    display: flex;
    flex-wrap: wrap;
}

.operations-assistant__chips > * + * {
    margin-left: 0.4rem;
}

.operations-assistant__chip {
    border: 1px solid #dbdfea;
    background: #f5f6fa;
    color: #364a63;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
    margin-bottom: 0.4rem;
}

.operations-assistant__bubble {
    white-space: pre-wrap;
    border-radius: 0.75rem;
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

.operations-assistant__bubble--user {
    background: #e8fff6;
    color: #0b7a5b;
    margin-left: 1.5rem;
}

.operations-assistant__bubble--assistant {
    background: #f5f6fa;
    color: #364a63;
    margin-right: 1.5rem;
}

.operations-assistant__links {
    margin-top: 0.6rem;
}

.operations-assistant__links a {
    display: block;
    font-size: 0.82rem;
    margin-top: 0.25rem;
}

.operations-assistant__form {
    display: flex;
    gap: 0.5rem;
    padding: 0.85rem 1rem 1rem;
    border-top: 1px solid #e5e9f2;
}

.operations-assistant__form .form-control {
    flex: 1;
}

@media (min-width: 1200px) {
    body.operations-assistant-open .nk-wrap {
        margin-right: 22rem;
    }
}
