:root {
    --ui-bg: #010101;
    --ui-surface: #060606;
    --ui-surface-raised: #101010;
    --ui-border: rgba(255, 255, 255, 0.07);
    --ui-border-strong: rgba(255, 255, 255, 0.12);
    --ui-text: #f5f5f5;
    --ui-text-muted: #a3a3a3;
    --ui-text-subtle: #737373;
    --ui-accent: #ffffff;
    --ui-radius: 16px;
    --ui-sidebar-width: 272px;
    --ui-content-width: 860px;
}

.ui-app,
.ui-app *,
.ui-app *::before,
.ui-app *::after {
    box-sizing: border-box;
}

.ui-app {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    background: var(--ui-bg);
    color: var(--ui-text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.ui-app button,
.ui-app textarea {
    font: inherit;
}

.ui-app button {
    cursor: pointer;
}

.ui-app button:focus-visible,
.ui-app textarea:focus-visible {
    outline: 2px solid var(--ui-accent);
    outline-offset: 2px;
}

.ui-app-shell {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    background: var(--ui-bg);
}

.ui-app-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.085), transparent 38%),
        radial-gradient(circle at 12% 80%, rgba(255, 255, 255, 0.04), transparent 34%);
    opacity: 0.9;
}

.ui-sidebar,
.ui-main {
    position: relative;
    z-index: 1;
}

.ui-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: var(--ui-sidebar-width);
    background: var(--ui-surface);
    border-right: 1px solid var(--ui-border);
    transform: translateX(-100%);
    transition: transform 180ms ease;
}

.ui-sidebar.is-open {
    transform: translateX(0);
}

.ui-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 25;
    border: 0;
    background: rgba(0, 0, 0, 0.52);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.ui-sidebar.is-open + .ui-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.ui-main {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.ui-header {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--ui-border);
    background: rgba(5, 5, 5, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.ui-header-title {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 650;
}

.ui-icon-button {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: var(--ui-text);
}

.ui-icon-button:hover {
    background: var(--ui-surface-raised);
    border-color: var(--ui-border);
}

.ui-conversation {
    flex: 1;
    width: 100%;
    overflow-y: auto;
}

.ui-message-list {
    width: min(100%, var(--ui-content-width));
    margin: 0 auto;
    padding: 40px 18px 176px;
}

.ui-message {
    width: 100%;
    margin-bottom: 28px;
}

.ui-message-content {
    max-width: 760px;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.ui-message--user .ui-message-content {
    margin-left: auto;
    width: fit-content;
    max-width: min(760px, 88%);
    padding: 11px 14px;
    border-radius: var(--ui-radius);
    background: var(--ui-surface-raised);
    border: 1px solid var(--ui-border);
}

.ui-message--assistant .ui-message-content {
    margin-right: auto;
}

.ui-welcome {
    position: relative;
    width: min(100%, var(--ui-content-width));
    margin: 0 auto;
    padding: 18vh 24px 96px;
    text-align: center;
}

.ui-welcome::before {
    content: "";
    position: absolute;
    top: 8%;
    left: 50%;
    width: min(620px, 92vw);
    height: 420px;
    transform: translateX(-50%);
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.075), transparent 68%);
    filter: blur(18px);
}

.ui-welcome-title {
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
    font-size: clamp(30px, 7vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.ui-welcome-subtitle {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0 auto;
    color: var(--ui-text-muted);
    line-height: 1.65;
}

.ui-composer-wrap {
    position: fixed;
    inset: auto 0 0;
    z-index: 20;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    background: linear-gradient(
        to top,
        var(--ui-bg) 55%,
        transparent
    );
}

.ui-composer {
    width: min(100%, var(--ui-content-width));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 9px;
    background: rgba(5, 5, 5, 0.86);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--ui-border-strong);
    border-radius: 22px;
}

.ui-composer-controls {
    width: 100%;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.ui-composer textarea {
    min-width: 0;
    flex: 1;
    min-height: 44px;
    max-height: 180px;
    resize: none;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ui-text);
    padding: 10px 8px;
}

.ui-composer textarea::placeholder {
    color: var(--ui-text-subtle);
}

.ui-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.ui-attachment-preview {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 4px;
    border-bottom: 1px solid var(--ui-border);
    overflow: hidden;
}

.ui-attachment-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}

.ui-attachment-thumbnail {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    flex: 0 0 auto;
}

.ui-attachment-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 20px;
    flex: 0 0 auto;
}

.ui-attachment-name {
    min-width: 0;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    color: var(--ui-text);
}

.ui-attachment-remove {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--ui-text-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 auto;
}

.ui-attachment-remove:hover {
    color: var(--ui-text);
}


.ui-file-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border: 1px solid var(--ui-border);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--ui-text-muted);
    font: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.ui-file-button:hover {
    border-color: var(--ui-border-strong);
    background: rgba(255, 255, 255, 0.06);
    color: var(--ui-text);
}

.ui-file-button:active {
    transform: scale(0.96);
}

.ui-file-button:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.45);
    outline-offset: 2px;
}

.ui-send-button {
    min-width: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 15px;
    background: var(--ui-accent);
    color: #050505;
    font-weight: 700;
}

.ui-send-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.ui-loading,
.ui-error {
    width: min(100%, var(--ui-content-width));
    margin: 0 auto;
    padding: 16px;
    color: var(--ui-text-muted);
}

.ui-error {
    color: var(--ui-text);
}

.ui-error button {
    margin-top: 10px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--ui-border-strong);
    border-radius: 12px;
    background: var(--ui-surface-raised);
    color: var(--ui-text);
}

@media (min-width: 768px) {
    .ui-sidebar-backdrop {
        display: none;
    }

    .ui-sidebar {
        position: sticky;
        transform: none;
        flex: 0 0 var(--ui-sidebar-width);
        height: 100vh;
        height: 100dvh;
    }

    .ui-main {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .ui-header {
        padding-left: 24px;
        padding-right: 24px;
    }

    .ui-message-list {
        padding-left: 24px;
        padding-right: 24px;
    }

    .ui-composer-wrap {
        left: var(--ui-sidebar-width);
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ui-sidebar {
        transition: none;
    }
}

.ui-sidebar-brand {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    margin-bottom: 22px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ui-sidebar-nav,
.ui-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ui-sidebar-actions {
    margin-top: 22px;
}

.ui-sidebar-item,
.ui-sidebar-action {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    text-align: left;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: var(--ui-text-muted);
}

.ui-sidebar-item:hover,
.ui-sidebar-action:hover {
    background: var(--ui-surface-raised);
    border-color: var(--ui-border);
    color: var(--ui-text);
}

.ui-sidebar-item.is-active {
    background: var(--ui-surface-raised);
    color: var(--ui-text);
}

.ui-sidebar-logo {
    width: 32px;
    height: 32px;
    display: block;
    object-fit: contain;
    flex: 0 0 auto;
}

.ui-sidebar-brand {
    gap: 10px;
}


@media (min-width: 768px) {
    .ui-icon-button {
        display: none;
    }
}

/* ChatTBM welcome refinement */
.ui-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
    padding: clamp(72px, 14vh, 132px) 18px 190px;
    overflow: hidden;
}

.ui-welcome-identity {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.ui-welcome-logo {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ui-border-strong);
    border-radius: 19px;
    background: rgba(255,255,255,.06);
    box-shadow: 0 18px 50px rgba(0,0,0,.45);
}

.ui-welcome-logo img {
    width: 46px;
    height: 46px;
    display: block;
    object-fit: contain;
    border-radius: 50%;
}

.ui-welcome-brand {
    font-size: 15px;
    font-weight: 700;
}

.ui-welcome-title {
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    font-size: clamp(30px, 8vw, 48px);
    line-height: 1.06;
    letter-spacing: -.045em;
}

.ui-welcome-subtitle {
    position: relative;
    z-index: 1;
    max-width: 540px;
    margin: 0 auto;
    color: var(--ui-text-muted);
    font-size: 15px;
    line-height: 1.65;
}

.ui-welcome-prompts {
    position: relative;
    z-index: 1;
    width: min(100%, 620px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 34px;
}

.ui-welcome-prompt {
    min-width: 0;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--ui-border);
    border-radius: 18px;
    background: rgba(255,255,255,.025);
    color: var(--ui-text);
    text-align: left;
}

.ui-welcome-prompt:hover {
    border-color: var(--ui-border-strong);
    background: rgba(255,255,255,.055);
}

.ui-welcome-prompt-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ui-border);
    border-radius: 12px;
    background: rgba(255,255,255,.035);
}

.ui-welcome-prompt-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ui-welcome-prompt-copy strong {
    font-size: 14px;
}

.ui-welcome-prompt-copy span {
    color: var(--ui-text-subtle);
    font-size: 12px;
}

@media (max-width: 480px) {
    .ui-welcome {
        padding-top: 76px;
    }

    .ui-welcome-prompts {
        gap: 8px;
    }

    .ui-welcome-prompt {
        min-height: 72px;
        padding: 12px;
        gap: 9px;
        border-radius: 16px;
    }

    .ui-welcome-prompt-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }
}

/* ChatTBM assistant message actions */
.ui-message-actions {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.ui-message-copy {
    appearance: none;
    border: 1px solid var(--ui-border);
    border-radius: 10px;
    padding: 6px 10px;
    background: rgba(255,255,255,.025);
    color: var(--ui-text-subtle);
    font: inherit;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    transition:
        border-color .18s ease,
        background .18s ease,
        color .18s ease,
        transform .18s ease;
}

.ui-message-copy:hover {
    border-color: var(--ui-border-strong);
    background: rgba(255,255,255,.06);
    color: var(--ui-text);
}

.ui-message-copy:active {
    transform: scale(.97);
}

.ui-message-copy:focus-visible {
    outline: 2px solid var(--ui-text);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .ui-message-actions {
        margin-top: 8px;
    }

    .ui-message-copy {
        min-height: 32px;
        padding: 7px 11px;
    }
}


.ui-file-button svg {
    width: 22px;
    height: 22px;
    display: block;
    margin: auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ChatTBM voice input */
.ui-voice-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border: 1px solid var(--ui-border);
    border-radius: 15px;
    background: rgba(255,255,255,.035);
    color: var(--ui-text-muted);
    font: inherit;
    font-size: 10px;
    cursor: pointer;
    transition:
        border-color .18s ease,
        background .18s ease,
        color .18s ease,
        transform .18s ease;
}

.ui-voice-button:hover {
    border-color: var(--ui-border-strong);
    background: rgba(255,255,255,.07);
    color: var(--ui-text);
}

.ui-voice-button:active {
    transform: scale(.96);
}

.ui-voice-button.is-listening {
    border-color: var(--ui-border-strong);
    background: rgba(255,255,255,.12);
    color: var(--ui-text);
}

.ui-voice-button:focus-visible {
    outline: 2px solid var(--ui-text);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .ui-voice-button {
        width: 44px;
        min-width: 44px;
        height: 44px;
    }
}

/* ChatTBM mobile edge-to-edge refinement */
html,
body {
    margin: 0;
    min-width: 100%;
    min-height: 100%;
    background: var(--ui-bg);
}

body {
    overflow-x: hidden;
}

.ui-app {
    width: 100%;
    min-width: 100%;
    min-height: 100dvh;
}

/* ChatTBM microphone icon */
.ui-voice-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ui-voice-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.ui-voice-button.is-listening .ui-voice-icon {
    transform: scale(1.08);
}

@media (max-width: 480px) {
    .ui-welcome {
        padding-top: 64px;
        padding-bottom: 176px;
    }

    .ui-welcome-prompts {
        margin-top: 28px;
    }

    .ui-composer-wrap {
        left: 0;
        right: 0;
    }
}


/* Assistant Markdown formatting */
.ui-message--assistant .ui-message-content > :first-child {
    margin-top: 0;
}

.ui-message--assistant .ui-message-content > :last-child {
    margin-bottom: 0;
}

.ui-message--assistant .ui-message-content h1,
.ui-message--assistant .ui-message-content h2,
.ui-message--assistant .ui-message-content h3,
.ui-message--assistant .ui-message-content h4 {
    margin: 1.2em 0 0.55em;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.ui-message--assistant .ui-message-content p {
    margin: 0 0 1em;
}

.ui-message--assistant .ui-message-content ul,
.ui-message--assistant .ui-message-content ol {
    padding-left: 1.5em;
    margin: 0.5em 0 1em;
}

.ui-message--assistant .ui-message-content li {
    margin: 0.25em 0;
}

.ui-message--assistant .ui-message-content pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 14px;
    border: 1px solid var(--ui-border);
    border-radius: 12px;
    background: var(--ui-surface-raised);
    white-space: pre;
}

.ui-message--assistant .ui-message-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9em;
}

.ui-message--assistant .ui-message-content :not(pre) > code {
    padding: 0.12em 0.35em;
    border-radius: 5px;
    background: rgba(255,255,255,.08);
}

.ui-message--assistant .ui-message-content blockquote {
    margin: 0.8em 0;
    padding-left: 1em;
    border-left: 3px solid var(--ui-border-strong);
    color: var(--ui-text-muted);
}

.ui-message--assistant .ui-message-content a {
    color: #b8d8ff;
    text-decoration: underline;
    overflow-wrap: anywhere;
}

.ui-message--assistant .ui-message-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.ui-message--assistant .ui-message-content th,
.ui-message--assistant .ui-message-content td {
    padding: 7px 10px;
    border: 1px solid var(--ui-border-strong);
    text-align: left;
}


/* Compact assistant spacing and keep replies clear of the fixed composer */
.ui-message-list {
    padding-bottom: 220px;
}

.ui-message--assistant .ui-message-content h1,
.ui-message--assistant .ui-message-content h2,
.ui-message--assistant .ui-message-content h3,
.ui-message--assistant .ui-message-content h4 {
    margin-top: 0.8em;
    margin-bottom: 0.4em;
}

.ui-message--assistant .ui-message-content p {
    margin-top: 0;
    margin-bottom: 0.8em;
}

.ui-message--assistant .ui-message-content ul,
.ui-message--assistant .ui-message-content ol {
    margin-top: 0.35em;
    margin-bottom: 0.8em;
}

@media (max-width: 480px) {
    .ui-message-list {
        padding: 24px 18px 250px;
    }
}


/* Mobile conversation scrolling: reserve room for the fixed composer */
html,
body {
    height: 100%;
}

body {
    min-height: 100dvh;
}

.ui-app,
.ui-app-shell,
.ui-main {
    min-height: 0;
}

.ui-app {
    height: 100dvh;
}

.ui-app-shell {
    height: 100%;
}

.ui-main {
    height: 100%;
}

.ui-conversation {
    min-height: 0;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scroll-padding-bottom: 260px;
}

.ui-message-list {
    padding-bottom: 280px;
}

.ui-composer-wrap {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

@media (max-width: 480px) {
    .ui-message-list {
        padding-bottom: 300px;
    }
}


/* Final mobile chat layout: a genuinely bounded, scrollable conversation */
.ui-app {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

.ui-app-shell {
    display: flex;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.ui-main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.ui-conversation {
    flex: 1 1 0;
    height: 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scroll-padding-bottom: 280px;
}

.ui-message-list {
    padding-bottom: 300px;
}

.ui-message--assistant .ui-message-content hr {
    margin: 1.1em 0;
    border: 0;
    border-top: 1px solid var(--ui-border-strong);
}

@media (max-width: 480px) {
    .ui-message-list {
        padding: 24px 18px 320px;
    }
}


/* Keep the composer in document flow so it cannot cover messages */
.ui-main {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.ui-conversation {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ui-composer-wrap {
    position: sticky;
    inset: auto;
    bottom: 0;
    flex: 0 0 auto;
    width: 100%;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--ui-bg) 80%, transparent);
}

.ui-message-list {
    padding-bottom: 36px;
}

@media (max-width: 480px) {
    .ui-message-list {
        padding: 24px 18px 36px;
    }

    .ui-composer-wrap {
        padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
    }
}


/* Final mobile composer and scroll behavior */
.ui-composer-wrap {
    position: relative;
    inset: auto;
    bottom: auto;
    flex: 0 0 auto;
    width: 100%;
    z-index: 20;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--ui-bg);
}

.ui-conversation {
    flex: 1 1 0;
    min-height: 0;
    height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

.ui-message-list {
    padding-bottom: 24px;
}

@media (max-width: 480px) {
    .ui-message-list {
        padding: 24px 18px 24px;
    }
}


/* Mobile chat: fixed composer with a dedicated scroll clearance */
.ui-app {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.ui-app-shell,
.ui-main {
    height: 100%;
    min-height: 0;
}

.ui-main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ui-conversation {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow-y: auto;
    padding-bottom: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.ui-composer-wrap {
    position: relative;
    flex: 0 0 auto;
    bottom: auto;
    z-index: 20;
    background: var(--ui-bg);
}

.ui-message-list {
    padding-bottom: 12px;
}

.ui-message--assistant .ui-message-content h1,
.ui-message--assistant .ui-message-content h2,
.ui-message--assistant .ui-message-content h3,
.ui-message--assistant .ui-message-content h4 {
    margin-top: 0.55em;
    margin-bottom: 0.3em;
}

.ui-message--assistant .ui-message-content hr {
    margin: 0.65em 0;
}

@media (max-width: 480px) {
    .ui-message-list {
        padding: 18px 18px 12px;
    }
}
