html body .messages{flex-direction:column;gap:34px;max-width:900px;padding:32px 32px 40px;display:flex}html body .message{min-width:0;margin:0}html body .message.user{background:var(--soft);border-radius:16px 16px 4px;align-self:flex-end;width:fit-content;max-width:80%;padding:16px 20px}html body .message.assistant{width:100%;padding:0}html body .message-label{font:500 14px/1.4 var(--font-ui);color:var(--text);gap:10px;margin-bottom:16px}.message-avatar{background:color-mix(in srgb, var(--blue) 12%, var(--soft));width:26px;height:26px;color:var(--blue);border-radius:50%;justify-content:center;align-items:center;display:inline-flex}html body .message-brand{flex-shrink:0;width:30px;height:30px}.message-generating{color:var(--muted);align-items:center;gap:6px;margin-left:auto;font-size:12px;display:inline-flex}.message-generating svg,.chat-credit-note svg{animation:1s linear infinite chat-spinner}html body .message-prose{overflow-wrap:anywhere;max-width:72ch;font-size:16px}html body .message-prose p{margin:0 0 16px}html body .message-prose p:last-child{margin-bottom:0}html body .message-prose :is(h1,h2,h3,h4){margin:28px 0 12px;line-height:1.35}html body .message-prose :is(h1,h2){font-size:24px}html body .message-prose :is(h3,h4){font-size:20px}html body .message-prose :is(ul,ol){margin-block:16px;padding-inline-start:24px}html body .message-prose li{margin-block:8px}html body .message-prose blockquote{background:var(--surface);border-left:1px solid var(--blue);color:var(--muted);border-radius:0 12px 12px 0;margin:20px 0;padding:16px 20px}html body .message-prose table{border-collapse:collapse;max-width:100%;margin-block:20px;font-size:14px;display:block;overflow-x:auto}html body .message-prose :is(th,td){border-bottom:1px solid var(--line);text-align:start;min-width:100px;padding:12px 16px}html body .message-prose th{background:var(--surface);font-weight:600}html body .message-prose .code-block{margin-block:20px}html body .message-actions{border-top:1px solid var(--line);gap:8px;margin-top:16px;padding-top:12px;font-size:12px}html body .message-actions button{min-height:40px;color:var(--muted);border-radius:8px;padding:8px 10px}html body .message-actions button:hover{background:var(--surface);color:var(--blue)}html body .latest-message{min-height:40px;padding:8px 14px;font-size:14px}html body .chat-credit-trigger{border:1px solid var(--line);background:var(--surface);min-height:40px;color:var(--text);cursor:pointer;font:500 14px/1.4 var(--font-ui);border-radius:12px;align-items:center;gap:9px;padding:8px 12px;display:inline-flex}.chat-credit-trigger>svg{color:var(--blue);flex-shrink:0}.chat-credit-trigger:focus-visible,.chat-credit-links a:focus-visible{outline:2px solid var(--blue);outline-offset:3px}.chat-credit-trigger:hover,.chat-credit-trigger[data-popup-open]{border-color:var(--blue)}.chat-credit-number{font-variant-numeric:tabular-nums;animation:.65s ease-out credit-settle}.chat-credit-positioner{z-index:1200;max-width:calc(100vw - 24px)}.chat-credit-popup{background:var(--surface);width:300px;max-width:calc(100vw - 24px);color:var(--text);outline:1px solid var(--line);font:400 14px/1.65 var(--font-ui);border-radius:16px;padding:22px;box-shadow:0 14px 40px #0005}.chat-credit-popup h2{margin:0 0 18px;font-size:16px}.chat-credit-popup dl{margin:0}.chat-credit-popup dl>div{justify-content:space-between;align-items:baseline;gap:14px;padding-block:9px;display:flex}.chat-credit-popup dt{color:var(--muted)}.chat-credit-popup dd{font-variant-numeric:tabular-nums;margin:0;font-weight:600}.chat-credit-popup dl>div:first-child dd{color:var(--blue);font-size:24px}.chat-credit-note{color:var(--muted);align-items:flex-start;gap:6px;margin:14px 0 18px;font-size:12px;display:flex}.chat-credit-note svg{flex-shrink:0;margin-top:3px}.chat-credit-links{border-top:1px solid var(--line);gap:10px;padding-top:16px;display:flex}.chat-credit-links a{min-height:40px;color:var(--blue);align-items:center;gap:6px;display:flex}.chat-credit-links a:last-child{margin-left:auto;font-weight:600}@keyframes chat-spinner{to{transform:rotate(360deg)}}@keyframes credit-settle{0%{color:var(--blue)}to{color:var(--text)}}@media (width<=640px){html body .messages{gap:28px;padding:24px 18px 32px}html body .message.user{max-width:92%;padding:14px 16px}html body .chat-credit-trigger{gap:6px;padding:8px}html body .chat-toolbar b{text-overflow:ellipsis;white-space:nowrap;max-width:100%;display:block;overflow:hidden}.message-generating{font-size:12px}}:is(html:has(.chat-site),body:has(.chat-site)){overscroll-behavior:none;overflow:hidden}html body .chat-site{inset-inline:0;top:var(--visible-top,0px);height:var(--visible-height,100dvh);position:fixed;overflow:hidden}html body .chat-layout,html body .chat-main{min-height:0}html body .chat-toolbar{border-bottom:1px solid var(--line);height:auto;min-height:60px;padding:8px 20px}html body .chat-model{order:1;min-width:0}html body .chat-model-label{min-width:0}html body .chat-model-label b{white-space:nowrap;text-overflow:ellipsis;display:block;overflow:hidden}html body .chat-toolbar-balance{order:2;margin-left:auto}html body .chat-tools{flex-shrink:0;order:3}html body .chat-toolbar .icon-button,html body .chat-credit-trigger,html body .composer-actions .icon-button,html body .send-button{min-width:44px;min-height:44px}html body .chat-toolbar-status,html body .chat-mobile-more{display:none}.chat-menu-positioner{z-index:1200;max-width:calc(100vw - 24px)}.chat-actions-menu{width:min(260px,100vw - 24px);max-height:min(var(--available-height,100dvh), calc(var(--visible-height,100dvh) - 24px));background:var(--surface);color:var(--text);border-radius:12px;padding:6px;overflow:auto;box-shadow:0 12px 36px #0005}.chat-actions-menu [role=menuitem]{cursor:pointer;overflow-wrap:anywhere;border-radius:8px;align-items:center;gap:12px;min-height:44px;padding:10px 12px;font-size:14px;line-height:1.5;display:flex}.chat-actions-menu [data-highlighted]{background:var(--soft);color:var(--blue)}.chat-actions-menu [data-disabled]{opacity:.5;cursor:default}html body .chat-credit-popup{max-height:min(var(--available-height,100dvh), calc(var(--visible-height,100dvh) - 24px));overscroll-behavior:contain;overflow-y:auto}html body .chat-credit-popup dl>div{flex-wrap:wrap}html body .chat-composer textarea{min-height:0;display:block;overflow-y:auto}.chat-drawer-backdrop{z-index:100;background:#0008;position:fixed;inset:0}html body .chat-mobile-drawer{top:var(--visible-top,0px);bottom:auto;height:var(--visible-height,100dvh);max-height:var(--visible-height,100dvh);z-index:101;width:min(420px,100%);padding:16px 18px max(16px, env(safe-area-inset-bottom));overscroll-behavior:contain;background:var(--surface);position:fixed;inset-inline:auto 0;overflow-y:auto;box-shadow:-12px 0 36px #0004}html body .chat-mobile-drawer.is-history{width:min(320px,90%);display:flex;inset-inline:0 auto}html body .chat-mobile-drawer.is-settings{border:0;display:block}html body .chat-mobile-drawer.is-settings>div:first-of-type{background:var(--surface);z-index:2;padding-block:12px;position:sticky;top:-16px}html body .chat-mobile-drawer .icon-button{min-width:44px;min-height:44px}html body .chat-mobile-drawer :is(input:not([type=range]),textarea){font-size:16px}html body .chat-mobile-drawer .sidebar-top{margin-bottom:16px}html body .chat-mobile-drawer .sidebar-bottom{flex-shrink:0}html body .chat-mobile-drawer .history-list button{min-height:44px}html body .chat-mobile-drawer .chat-sidebar-brand{flex-shrink:0;min-height:44px}@media (width<=900px){html body .chat-toolbar{padding:max(4px, env(safe-area-inset-top)) 12px 4px;grid-template-rows:auto auto;grid-template-columns:minmax(0,1fr) auto;gap:0 10px;display:grid}html body .chat-model{grid-area:1/1;gap:8px}html body .chat-tools{grid-area:1/2;justify-self:end}html body .chat-toolbar .chat-desktop-control,html body .chat-model-label small{display:none}html body .chat-toolbar .history-toggle,html body .chat-mobile-more{flex-shrink:0;width:44px;display:inline-flex}html body .chat-model-label b{font-size:14px;line-height:1.4}html body .chat-toolbar-status{min-width:0;color:var(--muted);overflow-wrap:anywhere;grid-area:2/1;align-items:center;gap:6px;font-size:12px;line-height:1.4;display:flex}.chat-toolbar-status svg{animation:1s linear infinite chat-spinner}html body .chat-toolbar-balance{grid-area:2/2;justify-self:end;margin:0}html body .chat-credit-trigger{padding:8px 10px;font-size:13px}:is(html body .chat-main .composer-wrap,html body .chat-main:has(.chat-empty) .composer-wrap){padding:8px 12px max(8px, env(safe-area-inset-bottom));overscroll-behavior:contain;max-height:52%;overflow-y:auto}html body .chat-composer textarea{height:48px;max-height:112px;padding:12px 14px;font-size:16px}html body .composer-actions{padding:4px 8px 8px}html body .composer-actions>span,html body .chat-state{display:none}html body .composer-actions .icon-button{min-width:44px;min-height:44px}html body .composer-actions .send-button{width:44px;height:44px;margin-left:auto}html body .composer-note{margin:6px 0 0;font-size:11px}html body .message-actions{flex-wrap:wrap;gap:4px}html body .message-actions button{min-height:44px}html body .latest-message{max-width:100%;min-height:44px;margin-bottom:6px;padding:8px 12px;font-size:13px}html body .message-prose :is(h1,h2){font-size:22px}html body .message-prose :is(h3,h4){font-size:18px}html body .message-generating{flex-wrap:wrap;justify-content:end}html body .error-message{overflow-wrap:anywhere;max-height:104px;overflow-y:auto}html body .login-hint{flex-wrap:wrap;min-height:44px;font-size:12px}html body .login-hint a{min-height:44px}html[data-short-viewport=true] body .composer-note,html[data-short-viewport=true] body .mobile-dock{display:none}html[data-short-viewport=true] body .site:not(.chat-site){padding-bottom:0}html[data-short-viewport=true] body .chat-prompts{grid-template-columns:1fr}}@media (prefers-reduced-motion:reduce){.chat-toolbar-status svg,.message-generating svg,.chat-credit-note svg,.chat-credit-number{animation:none}}html body .chat-main{--chat-rail:900px;--chat-gutter:24px}:is(html body .chat-main .messages,html body .chat-main .composer-wrap,html body .chat-main:has(.chat-empty) .composer-wrap){width:100%;max-width:var(--chat-rail);padding-inline:var(--chat-gutter);box-sizing:border-box;margin-inline:auto}html body .message-prose :is(h1,h2,h3,h4){letter-spacing:normal;text-wrap:pretty}html body .message-prose blockquote{margin-block:16px;padding:10px 16px}html body .message-prose blockquote p{margin-block:0}html body .message-prose :is(pre,.code-block,table){max-width:100%}.history-search{border:1px solid var(--line);border-radius:12px;align-items:center;gap:8px;margin-block:12px;padding:8px 12px;display:flex}.history-search input{width:100%;min-width:0;min-height:32px;color:var(--text);background:0 0;border:0;padding:0}.history-row{grid-template-columns:minmax(0,1fr) 44px;align-items:center;display:grid}.history-row .history-date{grid-column:1/-1;margin:12px 8px 4px}.history-row>button:first-of-type{min-width:0}.history-date{color:var(--muted);font-size:12px;display:block}.history-rename{min-width:44px;min-height:44px}.history-status{color:var(--muted);overflow-wrap:anywhere;margin-block:6px;font-size:12px;line-height:1.5}.history-status.is-failed,.history-status.is-conflict{color:var(--text);background:var(--soft);border-radius:8px;padding:8px}.composer-settings{color:var(--muted);margin:4px 0 8px;font-size:12px;line-height:1.5}.composer-settings span{display:block}@media (width<=900px){html body .chat-main{--chat-gutter:12px}html body .chat-main .messages{padding-top:20px}html body .chat-main .composer-wrap{padding-bottom:max(8px, env(safe-area-inset-bottom))}.composer-settings,.history-status{font-size:11px}}
