.mrb-intake-root {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    font-family: 'Inter', sans-serif;
}

.mrb-intake-panel {
    width: min(420px, calc(100vw - 32px));
    max-height: min(720px, calc(100vh - 120px));
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(14, 21, 47, 0.94), rgba(4, 8, 20, 0.98)),
        radial-gradient(circle at top, rgba(6, 182, 212, 0.18), transparent 55%);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(22px);
    transform-origin: bottom right;
    animation: mrb-intake-rise 220ms ease-out;
}

.mrb-intake-panel[hidden] {
    display: none;
}

.mrb-intake-header {
    padding: 18px 20px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.mrb-intake-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mrb-intake-eyebrow {
    color: #67e8f9;
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 700;
}

.mrb-intake-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #f8fafc;
}

.mrb-intake-subtitle {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.5;
}

.mrb-intake-close {
    border: 0;
    background: rgba(148, 163, 184, 0.1);
    color: #f8fafc;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1.1rem;
}

.mrb-intake-messages {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    min-height: 240px;
}

.mrb-intake-message {
    max-width: 88%;
    padding: 13px 15px;
    border-radius: 18px;
    line-height: 1.55;
    font-size: 0.96rem;
    white-space: pre-wrap;
}

.mrb-intake-message--assistant,
.mrb-intake-message--status {
    align-self: flex-start;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.18);
    color: #dbeafe;
}

.mrb-intake-message--user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(6, 182, 212, 0.8));
    color: #eff6ff;
}

.mrb-intake-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 18px 14px;
}

.mrb-intake-chip {
    border: 1px solid rgba(103, 232, 249, 0.25);
    background: rgba(8, 47, 73, 0.46);
    color: #cffafe;
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.88rem;
}

.mrb-intake-composer {
    padding: 16px 18px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mrb-intake-textarea {
    width: 100%;
    min-height: 92px;
    resize: vertical;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.9);
    color: #f8fafc;
    padding: 14px 15px;
    font: inherit;
}

.mrb-intake-textarea::placeholder {
    color: #64748b;
}

.mrb-intake-composer-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

.mrb-intake-secondary,
.mrb-intake-send,
.mrb-intake-launcher {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.mrb-intake-secondary,
.mrb-intake-send {
    border-radius: 999px;
    padding: 11px 16px;
}

.mrb-intake-secondary {
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
}

.mrb-intake-send {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #eff6ff;
    font-weight: 700;
}

.mrb-intake-launcher {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #eff6ff;
    padding: 16px 22px;
    border-radius: 999px;
    box-shadow: 0 18px 45px rgba(37, 99, 235, 0.45);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.mrb-intake-statusline {
    padding: 0 18px 14px;
    color: #94a3b8;
    font-size: 0.82rem;
}

.mrb-intake-hidden {
    display: none !important;
}

@keyframes mrb-intake-rise {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 720px) {
    .mrb-intake-root {
        right: 16px;
        left: 16px;
        bottom: 16px;
        align-items: stretch;
    }

    .mrb-intake-panel {
        width: 100%;
        max-height: calc(100vh - 104px);
    }

    .mrb-intake-launcher {
        width: 100%;
    }
}
