html {
    scrollbar-gutter: stable;
}
.assistant-launcher {
    position: fixed;
    right: 0;
    bottom: max(32px, env(safe-area-inset-bottom));
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px 16px 18px;
    border: 1px solid var(--ink, #f5f5f5);
    border-right: 0;
    background: var(--ink, #f5f5f5);
    color: var(--bg, #080808);
    font: 500 13px var(--sans, Manrope, Arial, sans-serif);
}
.assistant-launcher svg {
    width: 20px;
    height: 20px;
}
.assistant-panel {
    position: fixed;
    inset: 0 0 0 auto;
    margin: 0;
    padding: 0;
    width: min(460px, 100vw);
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-left: 1px solid var(--line, #292929);
    background: var(--bg, #080808);
    color: var(--ink, #f5f5f5);
    font: 14px/1.6 var(--sans, Manrope, Arial, sans-serif);
    box-shadow: -24px 0 64px #0005;
}
.assistant-panel[open] {
    display: flex;
    flex-direction: column;
    animation: assistant-reveal 230ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.assistant-panel::backdrop {
    background: #0005;
    animation: assistant-shade-in 230ms ease both;
}
.assistant-panel[open][data-closing="true"] {
    animation: assistant-dismiss 200ms cubic-bezier(0.4, 0, 1, 1) both;
}
.assistant-panel[data-closing="true"]::backdrop {
    animation: assistant-shade-out 200ms ease both;
}
.assistant-is-open {
    overflow: hidden;
}
.assistant-panel * {
    box-sizing: border-box;
}
.assistant-panel [hidden] {
    display: none !important;
}
.assistant-panel button,
.assistant-panel textarea {
    font: inherit;
}
.assistant-panel svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.assistant-panel button:focus-visible,
.assistant-panel a:focus-visible {
    outline: 1px solid #aaa;
    outline-offset: 3px;
}
.assistant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 14px 24px;
    flex-shrink: 0;
}
.assistant-wordmark {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -1.2px;
}
.assistant-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #c7c7c7;
}
.assistant-icon:disabled {
    color: #777;
    cursor: default;
}
.assistant-icon:hover:not(:disabled) {
    background: #252525;
}
.assistant-scroll {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px 28px 40px;
    flex: 1;
    min-height: 0;
}
.assistant-scroll.assistant-has-messages {
    justify-content: flex-start;
}
.assistant-suggestions {
    flex-shrink: 0;
    margin: auto 0;
}
.assistant-title {
    margin: 0 0 30px;
    font-size: 27px;
    line-height: 1.25;
    letter-spacing: -0.9px;
    font-weight: 500;
    max-width: 310px;
}
.assistant-mono {
    font: 10px/1.5 var(--mono, "Courier New", monospace);
    letter-spacing: 0.08em;
    color: #a0a0a0;
}
.assistant-suggestion {
    width: 100%;
    display: grid;
    grid-template-columns: 22px 1fr 16px;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    text-align: left;
    border: 0;
    border-top: 1px solid var(--line, #292929);
    border-radius: 0;
    padding: 14px 0;
    background: transparent;
    color: inherit;
    font-size: 12px !important;
}
.assistant-suggestion:last-child {
    border-bottom: 1px solid var(--line, #292929);
}
.assistant-suggestion svg {
    width: 16px;
    height: 16px;
    color: #aaa;
}
.assistant-composer {
    padding: 12px 20px max(18px, env(safe-area-inset-bottom));
    flex-shrink: 0;
}
.assistant-composer-shell {
    padding: 14px 12px 10px;
    background: #1c1c1c;
    border-radius: 18px;
}
.assistant-input,
.assistant-input:focus,
.assistant-input:focus-visible {
    display: block;
    width: 100%;
    min-height: 72px;
    max-height: 180px;
    resize: none;
    border: 0;
    border-radius: 0;
    outline: none;
    box-shadow: none;
    background: transparent;
    color: #f5f5f5;
    padding: 2px 6px 10px;
    line-height: 1.6 !important;
    font-size: 14px !important;
}
.assistant-input::placeholder {
    color: #aaa;
    opacity: 1;
}
.assistant-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}
.assistant-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 7px;
    border: 0;
    border-radius: 50%;
    background: #f5f5f5;
    color: #080808;
}
.assistant-send:disabled {
    background: #383838;
    color: #999;
    cursor: default;
}
.assistant-connection {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 10px;
    min-height: 20px;
    margin-top: 12px;
    font-size: 10px;
    color: #a0a0a0;
}
.assistant-account-action,
.assistant-text-button {
    background: transparent;
    padding: 3px 5px;
    border: 0;
    color: #c5c5c5;
    font-size: 11px !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.assistant-disconnect {
    width: 28px;
    height: 28px;
    padding: 5px;
}
.assistant-status {
    margin: 10px 6px 0;
    font-size: 12px;
    color: #f5f5f5;
}
.assistant-status:empty,
.assistant-conversation:empty {
    display: none;
}
.assistant-message {
    padding: 14px 0;
}
.assistant-message-body {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 14px;
}
.assistant-message-you {
    align-self: flex-end;
    max-width: 90%;
    margin-left: auto;
    padding: 12px 16px;
    background: #222;
    border-radius: 18px 18px 4px 18px;
}
.assistant-message-moebius {
    padding: 24px 0;
}
.assistant-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}
.assistant-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
@keyframes assistant-reveal {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}
@keyframes assistant-dismiss {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(104%);
        opacity: 0;
    }
}
@keyframes assistant-shade-in {
    from {
        background-color: transparent;
    }
    to {
        background-color: #0005;
    }
}
@keyframes assistant-shade-out {
    from {
        background-color: #0005;
    }
    to {
        background-color: transparent;
    }
}
@media (max-width: 540px) {
    .assistant-launcher {
        bottom: max(18px, env(safe-area-inset-bottom));
        padding: 14px 18px 14px 14px;
    }
    .assistant-panel {
        width: 100vw;
        border-left: 0;
    }
    .assistant-header {
        min-height: 64px;
        padding: 12px 18px;
    }
    .assistant-scroll {
        padding: 20px 24px 30px;
    }
    .assistant-title {
        font-size: 26px;
    }
    .assistant-composer {
        padding: 10px 14px max(14px, env(safe-area-inset-bottom));
    }
    .assistant-input,
    .assistant-input:focus,
    .assistant-input:focus-visible {
        font-size: 16px !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    .assistant-panel[open],
    .assistant-panel[open][data-closing="true"],
    .assistant-panel::backdrop,
    .assistant-panel[data-closing="true"]::backdrop {
        animation: none;
    }
}
html[data-motion-paused="true"] .assistant-panel[open],
html[data-motion-paused="true"] .assistant-panel[open][data-closing="true"],
html[data-motion-paused="true"] .assistant-panel::backdrop,
html[data-motion-paused="true"]
    .assistant-panel[data-closing="true"]::backdrop {
    animation: none;
}
