:root {
    --primary: #ff7e5f;
    --primary-glow: rgba(255, 126, 95, 0.28);
    --sidebar-bg: #160f20;
    --user-bubble-bg: #271a33;
    --ai-bubble-bg: transparent;
    --code-bg: #1d1430;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.glass-sidebar {
    background: linear-gradient(180deg, #211538 0%, #160f20 100%);
    border-right: 1px solid #3a2748;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #3a2748;
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #5a3a5e;
}

.user-bubble {
    background: var(--user-bubble-bg);
}
.ai-bubble {
    background: var(--ai-bubble-bg);
}
.vibrant-gradient {
    background: linear-gradient(135deg, #ff7e5f 0%, #ff9a6b 50%, #ffc46b 100%);
    background-size: 200% auto;
}

.message {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    width: 100%;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}
.message.bot {
    justify-content: flex-start;
}
.message.user {
    flex-direction: row-reverse;
    justify-content: flex-start;
}
.message .avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.75rem;
}
.message.bot .avatar {
    color: #fff;
    background: rgba(255, 126, 95, 0.22);
    border: none;
}
.message.user .avatar {
    background: #271a33;
    color: #c7b2c9;
    border: none;
}
.avatar-bot {
    background: radial-gradient(circle at 30% 30%, rgba(255, 196, 107, 0.9), rgba(255, 126, 95, 0.25));
    box-shadow: 0 6px 18px -8px rgba(255, 126, 95, 0.7);
    overflow: hidden;
    padding: 0;
}
.avatar-emblem {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}
.avatar-user {
    background: radial-gradient(circle at 30% 30%, rgba(255, 126, 179, 0.32), rgba(39, 26, 51, 0.92));
}
.message .bubble {
    max-width: 72%;
    padding: 0;
    border-radius: 1rem;
    border: none;
    box-shadow: none;
    line-height: 1.7;
    position: relative;
    padding-right: 1.5rem;
}
.message.bot .bubble {
    background: transparent;
    margin-right: auto;
}
.message.user .bubble {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    margin-left: auto;
    text-align: right;
}
.message-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: #ffffff;
    text-transform: none;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}
.message.user .message-meta {
    justify-content: flex-end;
    text-align: right;
}
.message-name {
    font-weight: 700;
    color: #ffffff;
}
.message.bot .message-name {
    font-family: "Bitcount Prop Single Ink", cursive;
    font-weight: 400;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
}
.message.user .message-name {
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}
.message-time {
    display: none;
}
.message-text {
    font-size: 0.98rem;
    color: #ead9e0;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}
.message-text.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #c7b2c9;
}
.typing-label {
    font-size: 0.95rem;
    background: linear-gradient(135deg, #ffc46b 0%, #ff7e5f 60%, #ff7eb3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 600;
}
.typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffc46b 0%, #ff7e5f 60%, #ff7eb3 100%);
    opacity: 0.4;
    animation: sr-typing 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.18s; }
.typing-dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes sr-typing {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}
.message-text p {
    margin-bottom: 0.65rem;
}
.message-text p:last-child {
    margin-bottom: 0;
}
.message.user .message-text {
    color: #ead9e0;
    text-align: right;
}

.composer-surface {
    background: transparent;
}

/* Dynamic viewport height keeps the composer pinned above the mobile browser chrome */
@supports (height: 100dvh) {
    .flex.h-screen {
        height: 100dvh;
    }
}

@media (max-width: 768px) {
    .chat-surface {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }
    .message {
        gap: 0.875rem;
    }
    .message .avatar {
        width: 2rem;
        height: 2rem;
    }
    .message .bubble {
        max-width: 100%;
        padding-right: 0;
    }
    .message-text {
        font-size: 0.92rem;
    }
    .code-toolbar {
        padding: 0.5rem 0.75rem;
    }
    .ai-code-block {
        font-size: 0.8rem;
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    /* Lock the app to the viewport: only the message list scrolls, composer stays pinned */
    body {
        overflow: hidden;
    }

    /* Header: compact and balanced */
    header {
        padding-top: 0.625rem;
        padding-bottom: 0.625rem;
    }
    #model-select {
        max-width: 52vw;
    }

    /* Message list */
    .chat-surface {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    #chat-window {
        gap: 1.5rem;
    }
    .message-meta {
        font-size: 0.8rem;
    }
    .message-name {
        max-width: 60vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Composer: pinned, breathable, respects the iOS safe area */
    .composer-surface {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        padding-top: 0.5rem;
        padding-bottom: calc(0.625rem + env(safe-area-inset-bottom, 0px));
    }
    .composer-surface form#chat-form {
        padding: 0.75rem;
        border-radius: 1rem;
    }
    .composer-surface #attachment-list {
        margin-top: 0.5rem;
    }
    .composer-surface .material-symbols-outlined {
        font-size: 20px;
    }

    /* 16px keeps iOS Safari from auto-zooming when the field gains focus */
    #message {
        font-size: 16px;
        min-height: 48px;
    }

    /* Toolbar: a single horizontally-scrollable strip with the send button pinned right */
    #chat-form > .flex {
        flex-wrap: nowrap;
        gap: 0.5rem;
        align-items: center;
    }
    #chat-form > .flex > div:first-child {
        flex: 1 1 auto;
        min-width: 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    #chat-form > .flex > div:first-child::-webkit-scrollbar {
        display: none;
    }
    #chat-form > .flex > div:first-child > * {
        flex-shrink: 0;
    }
    #chat-form > .flex > button.send-btn {
        flex-shrink: 0;
        margin-left: 0.25rem;
        padding: 0.625rem;
    }

    /* Footer credit */
    .composer-surface .mt-3.flex.justify-center {
        font-size: 10px;
    }
}

@media (max-width: 380px) {
    #model-select {
        max-width: 44vw;
    }
}
.chat-surface {
    background:
        radial-gradient(1200px 480px at 50% -12%, rgba(255, 126, 95, 0.12), transparent 60%),
        radial-gradient(900px 420px at 92% 0%, rgba(255, 196, 107, 0.09), transparent 55%),
        #1c1426;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-feature-settings: normal;
    font-variation-settings: normal;
    -webkit-tap-highlight-color: transparent;
    --primary: #ff7e5f;
    --primary-glow: rgba(255, 126, 95, 0.28);
    --sidebar-bg: #160f20;
    --user-bubble-gradient: linear-gradient(135deg, #ff7e5f 0%, #ff6b4a 100%);
    --ai-bubble-gradient: linear-gradient(135deg, #fff5ee 0%, #ffe9dc 100%);
    --ai-bubble-gradient-dark: linear-gradient(135deg, #271a33 0%, #150d20 100%);
    line-height: inherit;
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    --tw-bg-opacity: 1;
    --tw-text-opacity: 1;
    color: rgb(241 245 249 / var(--tw-text-opacity, 1));
    --tw-border-spacing-x: 0;
    --tw-border-spacing-y: 0;
    --tw-translate-x: 0;
    --tw-translate-y: 0;
    --tw-rotate: 0;
    --tw-skew-x: 0;
    --tw-skew-y: 0;
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    --tw-pan-x: ;
    --tw-pan-y: ;
    --tw-pinch-zoom: ;
    --tw-scroll-snap-strictness: proximity;
    --tw-gradient-from-position: ;
    --tw-gradient-via-position: ;
    --tw-gradient-to-position: ;
    --tw-ordinal: ;
    --tw-slashed-zero: ;
    --tw-numeric-figure: ;
    --tw-numeric-spacing: ;
    --tw-numeric-fraction: ;
    --tw-ring-inset: ;
    --tw-ring-offset-width: 0px;
    --tw-ring-offset-color: #fff;
    --tw-ring-color: rgb(59 130 246 / 0.5);
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 #0000;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    --tw-blur: ;
    --tw-brightness: ;
    --tw-contrast: ;
    --tw-grayscale: ;
    --tw-hue-rotate: ;
    --tw-invert: ;
    --tw-saturate: ;
    --tw-sepia: ;
    --tw-drop-shadow: ;
    --tw-backdrop-blur: ;
    --tw-backdrop-brightness: ;
    --tw-backdrop-contrast: ;
    --tw-backdrop-grayscale: ;
    --tw-backdrop-hue-rotate: ;
    --tw-backdrop-invert: ;
    --tw-backdrop-opacity: ;
    --tw-backdrop-saturate: ;
    --tw-backdrop-sepia: ;
    --tw-contain-size: ;
    --tw-contain-layout: ;
    --tw-contain-paint: ;
    --tw-contain-style: ;
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
    flex: 1 1 0%;
    overflow-y: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

#chat-window {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dark body {
    background:
        radial-gradient(1100px 720px at 12% -12%, #3a1f3f 0%, transparent 55%),
        radial-gradient(900px 600px at 100% -5%, #54283f 0%, transparent 50%),
        radial-gradient(1000px 820px at 50% 122%, #2a1730 0%, transparent 58%),
        #1c1426;
    color: #fbe9e4;
    font-family: 'Inter', sans-serif;
}

@media (max-width: 1024px) {
    body {
        overflow: hidden;
    }
    #mobile-sidebar {
        position: fixed;
        inset: 0;
        width: 85%;
        max-width: 320px;
        height: 100%;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 30;
        box-shadow: 0 24px 70px -20px rgba(0, 0, 0, 0.65);
    }
    #mobile-sidebar.is-open {
        transform: translateX(0);
    }
    #mobile-sidebar-overlay {
        z-index: 20;
    }
    #mobile-sidebar-overlay.is-open {
        opacity: 1;
        pointer-events: auto;
    }
}

.bubble .timestamp {
    display: none;
}
.message-delete {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
}
.message-delete:hover {
    opacity: 0.9;
}

.message-tts {
    margin-top: 0.4rem;
    display: flex;
    gap: 0.4rem;
}
.tts-speak-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: color .15s, background .15s, border-color .15s;
}
.tts-speak-btn:hover {
    color: #818cf8;
    border-color: rgba(129, 140, 248, 0.5);
    background: rgba(129, 140, 248, 0.08);
}
.tts-speak-btn.is-playing {
    color: #818cf8;
    border-color: rgba(129, 140, 248, 0.6);
    background: rgba(129, 140, 248, 0.12);
}

.code-block-wrap {
    position: relative;
    margin: 1rem 0;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #3a2748;
    background: var(--code-bg);
    --code-accent: #ff9a6b;
    --code-font: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.code-block-wrap::before {
    content: '';
}
.code-toolbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: #160f20;
    border-bottom: 1px solid #3a2748;
}
.code-toolbar .code-dots {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.code-toolbar .dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
}
.code-toolbar .dot.red { background: #ff5f56; }
.code-toolbar .dot.yellow { background: #ffbd2e; }
.code-toolbar .dot.green { background: #27c93f; }
.code-toolbar .code-label {
    margin-left: 0.75rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #c7b2c9;
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.code-toolbar .toolbar-actions {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}
.image-block {
    margin: 1.25rem 0;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #3a2748;
    background: #160f20;
}
.image-toolbar {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #3a2748;
    background: #160f20;
}
.image-download {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.55rem;
    border-radius: 0.4rem;
    border: none;
    background: transparent;
    color: #c7b2c9;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.image-download:hover {
    background: #382647;
    color: #ffffff;
}
.image-block img {
    display: block;
    width: 100%;
    height: auto;
}
.code-toolbar button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.55rem;
    border: none;
    border-radius: 0.4rem;
    background: transparent;
    color: #c7b2c9;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.code-toolbar button:hover {
    background: #382647;
    color: #ffffff;
}
.code-block-wrap:not([data-lang-key="json"]) .format-btn {
    opacity: 0.35;
    pointer-events: none;
}
.code-block-wrap .ai-code-block code {
    font-family: var(--code-font);
}
.ai-code-block {
    padding: 1.25rem;
    font-size: 0.85rem;
    line-height: 1.6;
    border-left: none;
    background: var(--code-bg);
    white-space: pre;
    overflow-x: auto;
}
.code-block-wrap.code-wrap .ai-code-block {
    white-space: pre-wrap;
}
.copy-btn {
    position: static;
    top: auto;
    right: auto;
    padding: 0;
    background: transparent;
}
.code-block-wrap.code-fullscreen {
    position: fixed;
    inset: 1.5rem;
    z-index: 1000;
    border-radius: 1.5rem;
    box-shadow: 0 35px 80px -30px rgba(15, 23, 42, 0.8);
}
.code-block-wrap.code-fullscreen .ai-code-block {
    height: calc(100vh - 8rem);
    overflow: auto;
}
body.code-overlay-open {
    overflow: hidden;
}

.code-lang-javascript { --code-accent: #f7df1e; --code-font: "Fira Code", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.code-lang-typescript { --code-accent: #3178c6; --code-font: "Fira Code", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.code-lang-python { --code-accent: #3776ab; --code-font: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.code-lang-php { --code-accent: #8892bf; --code-font: "Source Code Pro", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.code-lang-markdown { --code-accent: #10b981; --code-font: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.code-lang-html { --code-accent: #e34f26; --code-font: "Fira Code", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.code-lang-css { --code-accent: #264de4; --code-font: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.code-lang-json { --code-accent: #f59e0b; --code-font: "Source Code Pro", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.code-lang-bash { --code-accent: #22c55e; --code-font: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.code-lang-yaml { --code-accent: #f97316; --code-font: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.code-lang-sql { --code-accent: #a855f7; --code-font: "Source Code Pro", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.code-lang-go { --code-accent: #00add8; --code-font: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.code-lang-java { --code-accent: #e76f00; --code-font: "Source Code Pro", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.code-lang-c { --code-accent: #9ca3af; --code-font: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.code-lang-cpp { --code-accent: #0ea5e9; --code-font: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.code-lang-csharp { --code-accent: #a3e635; --code-font: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.code-lang-ruby { --code-accent: #ef4444; --code-font: "Source Code Pro", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.code-lang-xml { --code-accent: #fb7185; --code-font: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.code-lang-diff { --code-accent: #94a3b8; --code-font: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.attachment-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 126, 95, 0.16);
    color: #ff7e5f;
    font-size: 0.75rem;
    font-weight: 600;
}
.dark .attachment-chip {
    background: rgba(255, 126, 95, 0.2);
    color: #ffd0a8;
}
.attachment-remove {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 0.8rem;
}

/* ===== Sunrise polish ===== */
.composer-surface form#chat-form {
    background: linear-gradient(180deg, rgba(56, 38, 71, 0.55) 0%, rgba(39, 26, 51, 0.92) 100%);
    border-color: #3a2748 !important;
    box-shadow: 0 18px 44px -26px rgba(255, 126, 95, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.composer-surface form#chat-form:focus-within {
    border-color: rgba(255, 126, 95, 0.7) !important;
    box-shadow: 0 0 0 3px rgba(255, 126, 95, 0.14), 0 22px 50px -24px rgba(255, 126, 95, 0.65);
}

.send-btn {
    background-image: linear-gradient(135deg, #ff7e5f 0%, #ff9a6b 50%, #ffc46b 100%) !important;
    box-shadow: 0 10px 26px -10px rgba(255, 126, 95, 0.75) !important;
    transition: filter 0.18s ease, transform 0.18s ease;
}
.send-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}
.send-btn:active {
    transform: translateY(0);
}

/* Sidebar New Chat button gets a warm sunrise sheen on hover */
#new-conversation {
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
#new-conversation:hover {
    box-shadow: 0 10px 24px -14px rgba(255, 126, 95, 0.6);
}

/* Header glass with a faint dawn underline */
header {
    border-bottom-color: #3a2748 !important;
}

/* Bot author name uses a sunrise gradient text */
.message.bot .message-name,
.message.user .message-name {
    background: linear-gradient(135deg, #ffc46b 0%, #ff7e5f 60%, #ff7eb3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Selection + focus ring tinting */
::selection {
    background: rgba(255, 126, 95, 0.32);
    color: #fff;
}
.message.user .bubble {
    position: relative;
}
