@font-face{font-family:Inter;src:url('/fonts/inter.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
:root{
 --paper:#f6f5fa;--paper-2:#f0eef6;--surface:#faf9fd;
 --ink:#36344c;--dim:#68667f;--faint:#78768f;--hair:#e1dfeb;
 --accent:#8b5cf6;--grad:linear-gradient(135deg,#8b5cf6,#06b6d4);
 --up:6px 6px 12px #dfdce8,-6px -6px 12px #fff;
 --small:4px 4px 8px #dedce7,-4px -4px 8px #fff;
 --inset:inset 3px 3px 6px #dedce8,inset -3px -3px 6px #fff;
 --safe-top:env(safe-area-inset-top,0px);--safe-bot:env(safe-area-inset-bottom,0px);
 --text-size:15px;--tap:.16s ease;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
[hidden]{display:none!important}
html,body{margin:0;padding:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none;background:var(--paper)}
body{position:fixed;inset:0;font:400 var(--text-size)/1.5 Inter,Arial,sans-serif;color:var(--dim);letter-spacing:.01em;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;text-transform:lowercase;transition:background var(--tap),box-shadow var(--tap),transform var(--tap)}
button:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
#app{--gutter:20px;display:flex;flex-direction:column;max-width:520px;height:var(--visual-height,100dvh);min-height:0;margin:auto;overflow:hidden;padding:calc(max(var(--safe-top),var(--tg-top,0px)) + 14px) max(var(--gutter),var(--tg-right,0px),env(safe-area-inset-right,0px)) calc(max(var(--safe-bot),var(--tg-bottom,0px)) + 24px) max(var(--gutter),var(--tg-left,0px),env(safe-area-inset-left,0px))}
body.fs #app{padding-top:max(calc(var(--tg-top,0px) + 12px),calc(env(safe-area-inset-top,46px) + 56px))}
:root{--category-up:5px 5px 10px #dedbe7,-5px -5px 10px #fff;--category-in:inset 4px 4px 8px #dad7e4,inset -4px -4px 8px #fff}
/* Payment-style raised keys become recessed trays; only the marks are raised. */
.home-panel,.category-panel{width:100%;border-radius:15px;background:var(--paper);box-shadow:var(--category-up);transition:box-shadow .24s ease,background .24s ease}
.home-panel{flex:none;margin:24px auto 0}
.categories{display:flex;flex-direction:column;gap:20px;margin:18px -12px -12px;padding:12px;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin}
.category-panel{flex:none}
.category-panel.is-open{background:var(--paper);box-shadow:var(--category-in);animation:tray-press .28s ease both}
.category-panel.is-unavailable{box-shadow:none;border:1px solid var(--hair)}
.category-panel.is-unavailable .category-toggle{color:var(--faint);font-weight:400}
.category-toggle{appearance:none;display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;height:92px;padding:0 22px;border:0;border-radius:15px;background:transparent;color:var(--ink);font-weight:500;text-align:start}
.category-toggle svg,.strip-back svg{width:16px;height:16px;flex:none;color:var(--faint)}
.model-strip{display:flex;align-items:center;justify-content:space-between;height:92px;padding:0 12px;gap:4px}
.model-button{appearance:none;display:grid;place-items:center;flex:1;min-width:44px;max-width:72px;height:68px;margin:0;padding:0;border:0;background:transparent;animation:model-enter .36s cubic-bezier(.16,1,.3,1) both;animation-delay:calc(70ms + var(--reveal-order) * 35ms)}
.logo-relief{display:grid;place-items:center;filter:drop-shadow(-1px -1px 0 #fff) drop-shadow(1px 2px 1px #b8b3c1);transition:filter .18s ease,transform .18s ease;pointer-events:none}
.strip-back{appearance:none;display:grid;place-items:center;flex:none;width:44px;height:50px;margin-inline-start:auto;padding:0;border:0;border-radius:10px;background:transparent}
.strip-back svg{transform:rotate(180deg)}
@keyframes tray-press{from{box-shadow:var(--category-up)}to{box-shadow:var(--category-in)}}
@keyframes model-enter{from{opacity:0;transform:translateX(12px) translateY(2px)}to{opacity:1;transform:translateX(0) translateY(0)}}
@media(hover:hover){.model-button:hover .logo-relief{transform:translateY(-1px);filter:drop-shadow(-1px -1px 0 #fff) drop-shadow(1px 3px 2px #aaa4b5)}.category-toggle:hover{color:#242231}.strip-back:hover{color:var(--ink)}}
button.category-toggle:active{box-shadow:var(--category-in);transform:translateY(1px)}
.model-button:active .logo-relief{transform:translateY(2px) scale(.95);filter:drop-shadow(0 -1px 1px #b3adbf) drop-shadow(0 1px 0 #fff)}
.strip-back:active{transform:translateY(1px)}
.section-head{display:flex;align-items:center;flex:none}
.back{display:grid;place-items:center;appearance:none;width:42px;height:42px;padding:0;border:0;border-radius:10px;background:var(--paper);box-shadow:var(--small);color:var(--dim)}
.back:active{box-shadow:var(--inset);transform:translateY(1px)}
.back svg{width:20px;height:20px;transform:rotate(180deg)}
#gate{height:var(--visual-height,100dvh);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;text-align:center;padding:30px;color:var(--dim);font-size:12px}
#gate p{max-width:310px;margin:0}
#retryAuth{border:0;border-radius:10px;padding:10px 16px;background:var(--paper);box-shadow:var(--small)}
@media(max-width:360px){#app{--gutter:16px}.category-toggle{padding-left:18px;padding-right:18px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

.model-logo{display:block;width:40px;height:40px;filter:drop-shadow(.4px 0 0 #514b5d) drop-shadow(-.4px 0 0 #514b5d) drop-shadow(0 .4px 0 #514b5d) drop-shadow(0 -.4px 0 #514b5d);background:linear-gradient(145deg,#7d7789 0%,#595263 38%,#40394c 100%);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain;pointer-events:none;user-select:none}
.model-button[data-id="deepseek"] .model-logo{width:44px;height:44px}
.model-button[data-id="banana"] .model-logo{width:42px;height:42px}

/* The conversation is a clean white workspace, separate from the launcher. */
body.chat-view{background:#fff;color:#28282d;top:var(--visual-top,0px);bottom:auto;height:var(--visual-height,100dvh)}
body.chat-view #app.chat-app{display:flex;flex-direction:column;max-width:760px;height:var(--visual-height,100dvh);min-height:0;padding-bottom:max(var(--safe-bot),var(--tg-bottom,0px),12px)}
.chat-shell{display:flex;flex:1;flex-direction:column;min-height:0}
.chat-head{position:relative;flex:none;gap:4px;min-height:48px}
.chat-head .back{background:transparent;box-shadow:none;color:#58585e;border-radius:50%;width:44px;height:44px}
.chat-head .back:active{background:#f2f2f4;box-shadow:none}
.model-picker{position:relative;min-width:0}
.model-select{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 8px;border:0;border-radius:10px;background:transparent;color:#29292d;font-size:17px;font-weight:550;letter-spacing:-.025em;text-transform:none}
.model-select svg{width:14px;height:14px;transform:rotate(90deg);color:#939398}
.chat-menu{position:absolute;z-index:3;top:calc(100% + 8px);inset-inline-start:0;min-width:180px;max-height:min(var(--menu-space,58dvh),58dvh);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:6px;border:1px solid #ececef;border-radius:17px;background:#fff;box-shadow:0 10px 40px #20202614;animation:menu-appear .15s ease-out}
.chat-menu button{display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:11px;background:transparent;text-align:start;color:#515158;font-size:14px;text-transform:none}
.chat-menu button[aria-pressed=true]{background:#f3f3f5;color:#202025;font-weight:550}
.chat-menu button[aria-pressed=true]::after{content:'✓';font-size:13px}
.conversation{display:flex;flex-direction:column;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin}
.chat-empty{display:flex;flex:1;flex-direction:column;justify-content:center;align-items:center;gap:17px;padding:30px 0 70px;color:#303035;text-align:center}
.chat-mark{display:block;width:45px;height:45px;background:#8c7e73;mask:url('/logos/claude.svg') center/contain no-repeat;-webkit-mask:url('/logos/claude.svg') center/contain no-repeat}
.chat-empty p{margin:0;font-size:23px;font-weight:500;letter-spacing:-.035em;line-height:1.3}
.chat-messages{display:flex;flex-direction:column;align-items:flex-end;gap:18px;padding:24px 0}
.chat-messages:empty{display:none}
.user-message{max-width:88%;margin:0;padding:12px 17px;border-radius:22px;background:#f3f3f5;color:#34343a;font-size:15px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-footer{flex:none;padding-top:12px}
.composer{display:flex;align-items:flex-end;gap:8px;min-height:66px;padding:10px 10px 10px 19px;border:1px solid #e9e9ed;border-radius:30px;background:#fafafa;box-shadow:0 2px 6px #24243004;transition:border-color .16s ease,box-shadow .16s ease}
.composer:focus-within{border-color:#ceced5;box-shadow:0 0 0 3px #ececf34d}
.composer textarea{display:block;flex:1;min-width:0;min-height:44px;max-height:min(144px,calc(var(--visual-height,100dvh) * .2));margin:0;padding:11px 0;border:0;outline:none;resize:none;background:transparent;color:#303035;font:400 16px/22px Inter,Arial,sans-serif;letter-spacing:-.015em;scrollbar-width:thin}
.composer textarea::placeholder{color:#929298}
.composer-actions{display:flex;align-items:center;gap:3px;flex:none;height:44px}
.effort-picker{position:relative;flex:none}
.effort-button{display:flex;align-items:center;justify-content:center;width:40px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:#6d6d76}
.effort-button svg{width:23px;height:23px}
.effort-button span{display:none}
.effort-button[data-level=high],.effort-button[data-level=xhigh],.effort-button[data-level=max]{color:#51496b;background:#eeebf4}
.effort-menu{top:auto;bottom:calc(100% + 17px);inset-inline-start:auto;inset-inline-end:-42px;min-width:210px}
.send-button{display:grid;place-items:center;flex:none;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:#29292e;color:#fff}
.send-button svg{width:22px;height:22px}
.send-button:disabled{background:#e7e7eb;color:#96969f;cursor:default}
.send-button:active:not(:disabled){transform:scale(.94)}
.chat-notice{min-height:15px;margin:8px 4px 0;color:#787882;text-align:center;font-size:10px;line-height:1.5;overflow-wrap:anywhere}
@keyframes menu-appear{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(hover:hover){.model-select:hover:not(:disabled),.chat-menu button:hover:not(:disabled),.effort-button:hover:not(:disabled),.history-button:hover,.chat-head .back:hover,.budget-button:is(button):hover,.context-button:hover{background:#f0f0f3}}
@media(min-width:600px){.effort-button{width:auto;gap:6px;padding:0 10px;border-radius:22px}.effort-button span{display:block;font-size:12px}.composer{padding-left:22px}}
@media(prefers-reduced-motion:reduce){.chat-menu{animation:none}}
.history-picker{position:relative;margin-inline-start:auto;flex:none}
.history-button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:#66666e}
.history-button svg{width:22px;height:22px}
.history-menu{inset-inline-start:auto;inset-inline-end:0;width:min(280px,calc(100vw - 48px));max-height:min(var(--menu-space,40dvh),40dvh)}
.history-menu button{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:block}
.chat-loading{display:grid;place-content:center;gap:20px;flex:1;text-align:center;font-size:13px}
.plain-action{border:0;border-radius:12px;padding:12px 20px;background:#f2f2f5}
.chat-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 4px 8px}
.budget-picker,.context-picker{position:relative}
.budget-button,.context-button{display:flex;align-items:center;gap:5px;min-height:40px;border:0;border-radius:10px;padding:6px 8px;background:transparent;color:#6e6e78;font-size:12px;line-height:1.4;text-transform:none}
.budget-button:is(button)::after,.context-button::after{content:'';width:5px;height:5px;margin-inline-start:2px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:translateY(-2px) rotate(45deg);opacity:.65}
.budget-button{color:#4a4a54;font-variant-numeric:tabular-nums}
.context-button[data-pressure=medium]{color:#a07939}
.context-button[data-pressure=high]{color:#b44c55}
.budget-menu,.context-menu{top:auto;bottom:calc(100% + 8px);width:272px;max-width:calc(100vw - 48px);padding:18px;max-height:min(var(--menu-space,52dvh),52dvh)}
.context-menu{inset-inline-start:auto;inset-inline-end:0}
.budget-menu>b{display:block;font-size:14px;font-weight:550}
.budget-menu output{display:block;margin:12px 0;color:#303039;font-size:26px;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.budget-menu input[type=range]{width:100%;margin:4px 0 8px;accent-color:#5b536d;min-height:28px}
.budget-menu p,.context-menu p{margin:10px 0;color:#70707b;font-size:12px;line-height:1.6}
.context-menu p b{color:#4a4a55;font-weight:500}
.optimization-label{display:flex;align-items:center;gap:10px;padding-top:12px;margin-top:15px;border-top:1px solid #eeeef1;font-size:13px;color:#55555f;min-height:44px}
.optimization-label input{width:18px;height:18px;accent-color:#5b536d}
.assistant-message{align-self:stretch;margin:0;padding:4px 1px;color:#34343a;font-size:15px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.assistant-message.streaming{color:#66666e}
.tool-confirmation{align-self:stretch;padding:16px;border:1px solid #e6e3eb;border-radius:18px;background:#faf9fc;color:#34343a;overflow-wrap:anywhere}
.tool-title{margin:0;font-size:14px;font-weight:550;line-height:1.5}
.tool-summary{margin:8px 0 16px;color:#6e6b77;font-size:13px;line-height:1.6;white-space:pre-wrap}
.tool-actions{display:flex;flex-wrap:wrap;gap:8px}
.tool-actions button{flex:1;min-width:100px;min-height:44px;padding:10px 14px;border:1px solid #e1dfe7;border-radius:11px;background:#fff;color:#504b5d;font-size:13px;font-weight:500;text-transform:none}
.tool-actions button:first-child{background:#514a60;color:#fff;border-color:transparent}
.tool-actions button:disabled{opacity:.5;cursor:default}
.tool-actions button:active:not(:disabled){transform:translateY(1px)}
.stop-mark{width:12px;height:12px;border-radius:3px;background:currentColor}
.send-button.is-stop{background:#55505e}
.model-select{max-width:100%;min-width:0}
.model-select span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-head .model-picker{position:static;flex:1}
@media(max-height:550px){.chat-empty{gap:8px;padding:8px 0}.chat-empty p{font-size:18px}.chat-mark{width:30px;height:30px}.chat-menu{max-height:min(var(--menu-space,45dvh),45dvh)}.chat-notice{margin-top:5px}.chat-footer{padding-top:6px}}

.launcher-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;min-height:88px}
.language-button{appearance:none;display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:12px;background:transparent;color:var(--dim)}
.language-button svg{display:block;width:21px;height:21px;pointer-events:none}
.language-button:active{background:var(--paper-2);box-shadow:var(--inset)}
@media(hover:hover){.language-button:hover{background:var(--paper-2)}.wallet-button:hover{background:var(--surface)}.strip-back:hover{background:#ebe8f240}}
.wallet-button{display:flex;flex:none;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:88px;height:88px;padding:10px;border:0;border-radius:15px;background:var(--paper);box-shadow:var(--small);font-size:12px;font-weight:500;font-variant-numeric:tabular-nums;text-transform:none;color:var(--dim)}
.wallet-button svg{width:21px;height:21px;margin-bottom:3px;color:var(--ink)}
.wallet-button strong{font-size:11px;font-weight:400;color:var(--faint)}
.wallet-button:active{box-shadow:var(--inset);transform:translateY(1px)}
.model-menu{display:flex;flex-direction:column;inset-inline:0;max-height:min(var(--menu-space,58dvh),58dvh);overflow:hidden;padding:8px}
.model-menu input{flex:none;width:100%;height:42px;padding:8px 11px;margin:0 0 6px;border:0;border-radius:10px;background:#f5f5f7;color:#35353d;font:400 14px Inter,Arial,sans-serif;outline-offset:-2px}
.model-options{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.model-options button{font-size:13px;line-height:1.4;gap:8px;overflow-wrap:anywhere}
.model-options button:disabled{opacity:.4;cursor:default}
.image-options{display:flex;gap:8px;margin:0 4px 8px}
.image-options select{min-height:44px;padding:7px 10px;border:1px solid #ececf0;border-radius:12px;background:#fafafa;color:#5c5c66;font:400 12px Inter,Arial,sans-serif;max-width:45%;min-width:72px}
.generated-image{align-self:stretch;max-width:100%;margin:0}
.generated-image img{display:block;width:auto;max-width:100%;max-height:65dvh;object-fit:contain;border-radius:16px;background:#f4f4f6}
.generated-image img:not([src]){min-height:120px;min-width:160px}
.image-download{display:inline-flex;align-items:center;min-height:44px;margin-top:2px;color:#6c6676;text-decoration:none;font-size:12px}
@media(max-width:360px){.chat-head .model-select{font-size:15px;padding-inline-start:3px;gap:5px}}
:root[dir=rtl] :is(.back,.strip-back) svg{transform:none}
:root[dir=rtl] .category-toggle svg{transform:rotate(180deg)}

/* Claude only: the floating thinking capsule from the owner's phone reference. */
.claude-settings{position:fixed;--picker-bottom:max(var(--safe-bot),var(--tg-bottom,0px),20px);inset:auto 0 calc(var(--keyboard-inset,max(0px,100dvh - var(--visual-height,100dvh))) + var(--picker-bottom) + 48px);width:calc(100% - max(24px,var(--tg-left,0px)) - max(24px,var(--tg-right,0px)));max-width:440px;max-height:calc(var(--visual-height,100dvh) - max(72px,var(--tg-top,0px)) - var(--picker-bottom) - 60px);margin:0 auto;padding:0;border:0;overflow:visible;background:transparent;color:#222226;font-family:Inter,Arial,sans-serif}
.claude-settings[open]{display:flex;flex-direction:column;gap:14px;animation:claude-picker-in .18s ease-out}
.claude-settings::backdrop{background:#f6f6f945;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);-webkit-mask-image:linear-gradient(to top,#000 0%,#000 35%,transparent 85%);mask-image:linear-gradient(to top,#000 0%,#000 35%,transparent 85%)}
.claude-picker-caption{display:flex;align-items:center;justify-content:center;gap:6px;flex:none;min-height:44px;width:100%;padding:4px 8px;border:0;border-radius:12px;background:transparent;font-size:20px;font-weight:450;line-height:1.3;letter-spacing:-.035em;text-transform:none}
.claude-picker-model,.claude-picker-effort{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.claude-picker-effort{color:#83838b;font-weight:400}
.claude-picker-caption svg{flex:none;width:15px;height:15px;color:#83838b}
.claude-settings.models-open .claude-picker-caption svg:not(.ultra-icon){transform:rotate(90deg)}
.claude-effort-capsule{position:relative;flex:none;width:100%;height:56px;border:1px solid #ffffffd9;border-radius:32px;background:#f4f4f8b3;box-shadow:0 12px 32px #22222d14,inset 0 1px 0 #fff;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);direction:ltr}
.claude-thinking-row{display:flex;align-items:center;gap:10px;flex:none;min-width:0}
.claude-thinking-row .claude-effort-capsule{flex:1;min-width:0;width:auto}
.context-compact{display:grid;place-items:center;flex:none;width:54px;height:54px;padding:0;border:1px solid #fff;border-radius:50%;background:#f4f4f8c9;color:#77717f;box-shadow:0 8px 24px #22222d0d;backdrop-filter:blur(16px)}
.context-compact svg{width:23px;height:23px}
.claude-effort-fill{position:absolute;inset:5px auto 5px 3px;width:calc(44px + (100% - 50px) * var(--effort-position,0));border-radius:25px;background:#141416;pointer-events:none}
.claude-effort-dots{position:absolute;inset:0 25px;z-index:1;display:flex;align-items:center;justify-content:space-between;pointer-events:none}
.claude-effort-dots span{width:8px;height:8px;border-radius:50%;background:#b8b8bf}
.claude-effort-dots .passed{background:#525255}
.claude-effort-dots .selected{opacity:0}
.claude-effort-capsule input{position:absolute;inset:5px;z-index:2;appearance:none;-webkit-appearance:none;display:block;width:calc(100% - 10px);height:44px;margin:0;padding:0;border:0;border-radius:25px;outline:none;background:transparent;cursor:ew-resize;touch-action:pan-y}
.claude-effort-capsule input::-webkit-slider-runnable-track{height:44px;border-radius:25px;background:transparent}
.claude-effort-capsule input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:40px;height:40px;margin-top:2px;border:0;border-radius:50%;background:#fff;box-shadow:0 1px 5px #00000016}
.claude-effort-capsule input::-moz-range-track{height:44px;border:0;background:transparent}
.claude-effort-capsule input::-moz-range-thumb{width:40px;height:40px;border:0;border-radius:50%;background:#fff;box-shadow:0 1px 5px #00000016}
.claude-settings.using-keyboard .claude-effort-capsule:has(input:focus-visible)::after{content:'';position:absolute;bottom:-8px;left:calc(50% - 18px);width:36px;height:2px;border-radius:1px;background:#62596d}
.claude-settings .model-menu{position:static;flex:0 1 auto;inset:auto;width:100%;max-height:280px;min-height:0;padding:8px;border:1px solid #ffffffd9;border-radius:22px;background:#fffffff2;box-shadow:0 8px 32px #22222d14;animation:none}
.claude-settings .model-options{max-height:260px}
.claude-settings .model-options button{min-height:48px;font-size:15px;padding:12px 14px}
.claude-settings.models-open{inset-block-end:calc(var(--keyboard-inset,max(0px,100dvh - var(--visual-height,100dvh))) + var(--picker-bottom));max-height:calc(var(--visual-height,100dvh) - max(72px,var(--tg-top,0px)) - var(--picker-bottom) - 12px)}
@keyframes claude-picker-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media(max-width:360px){.claude-picker-caption{font-size:18px;gap:5px}}
@media(prefers-reduced-motion:reduce){.claude-settings[open]{animation:none}}

/* The owner's Ultra reference: a violet star field only at explicit max effort. */
.ultra-icon{display:none}
.effort-button[data-ultra]{background:transparent;box-shadow:none}
.effort-button[data-ultra]:focus-visible{position:relative;outline:none}
.effort-button[data-ultra]:focus-visible::after{content:'';position:absolute;bottom:1px;left:12px;right:12px;height:2px;border-radius:1px;background:#62596d}
.effort-button .brain-nebula,.effort-button .brain-stars{display:none}
.effort-button[data-ultra=true]{color:#8246b3;background:transparent;box-shadow:none}
.effort-button[data-ultra=true] .effort-brain{filter:drop-shadow(0 1px 3px #8654c433)}
.effort-button[data-ultra=true] .brain-nebula,.effort-button[data-ultra=true] .brain-stars{display:inline}
.effort-button[data-ultra=true] .brain-lines{stroke:#fff9;stroke-width:1.2}
.claude-settings.is-ultra .ultra-icon{display:block}
.claude-picker-caption .ultra-icon{width:18px;height:18px;color:#8246b3}
.claude-settings.is-ultra .claude-picker-effort{color:#8246b3;font-weight:500}
.claude-settings.is-ultra .claude-effort-capsule{background:#f3eefabf;box-shadow:0 10px 34px #8654c42b,inset 0 1px 0 #fff}
.claude-settings.is-ultra .claude-effort-fill{background:radial-gradient(ellipse at 57% 18%,#e8bcff65,transparent 65%),linear-gradient(105deg,#5259f1 0%,#8659e3 36%,#a574d3 67%,#8056cc 100%)}
.claude-settings.is-ultra .claude-effort-fill::before{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 7% 38%,#fff9 0 1px,transparent 2px),radial-gradient(circle at 12% 70%,#fff9 0 .7px,transparent 1.7px),radial-gradient(circle at 18% 30%,#fffc 0 1.2px,transparent 2.3px),radial-gradient(circle at 24% 45%,#fff8 0 .7px,transparent 1.6px),radial-gradient(circle at 33% 64%,#fff9 0 .8px,transparent 1.9px),radial-gradient(circle at 40% 37%,#fff8 0 1px,transparent 2px),radial-gradient(circle at 46% 75%,#fff7 0 .7px,transparent 1.8px),radial-gradient(circle at 52% 21%,#fffd 0 1.1px,transparent 2.3px),radial-gradient(circle at 60% 36%,#fff9 0 .9px,transparent 1.9px),radial-gradient(circle at 62% 55%,#fff7 0 1px,transparent 2.2px),radial-gradient(circle at 67% 42%,#fffa 0 1px,transparent 2.2px),radial-gradient(circle at 72% 59%,#fff8 0 1px,transparent 2px),radial-gradient(circle at 84% 29%,#fffa 0 1.3px,transparent 2.7px);animation:ultra-reveal .22s ease-out both}
.claude-settings.is-ultra .claude-effort-dots{opacity:0}
@keyframes ultra-reveal{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.claude-settings.is-ultra .claude-effort-fill::before{animation:none}}

/* Claude composer follows the phone reference: a thin resting field, then a
   full-width text area with its own row of controls while writing. */
.claude-composer{display:grid;grid-template-columns:44px minmax(0,1fr) 44px 36px;align-items:center;gap:0;min-height:54px;padding:4px 8px;border-color:#eeeeF0;border-radius:28px;background:#fafafa;box-shadow:0 2px 8px #24243003}
.claude-composer:focus-within{border-color:#e0e0e5;box-shadow:0 1px 5px #24243005}
.claude-composer .composer-actions{display:contents}
.composer-text{position:relative;min-width:0;grid-column:2;grid-row:1}
.claude-composer .composer-text textarea{width:100%;min-height:40px;height:40px;max-height:40px;padding:9px 2px;line-height:22px}
.claude-composer .composer-add{grid-column:1;grid-row:1}
.claude-composer .effort-picker{grid-column:3;grid-row:1;display:flex;justify-content:center;min-width:0}
.claude-composer .send-button{grid-column:4;grid-row:1;width:34px;height:34px;justify-self:end}
.composer-add,.composer-expand{appearance:none;display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:10px;background:transparent;color:#4b4b53}
.composer-add svg{width:24px;height:24px}
.composer-expand{position:absolute;z-index:1;top:0;inset-inline-end:0;width:30px;height:30px;color:#85858e}
.composer-expand svg{width:17px;height:17px}
.claude-composer.is-writing{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:6px 10px;border-radius:25px}
.claude-composer.is-writing .composer-text{width:100%;flex:none}
.claude-composer.is-writing .composer-text textarea{min-height:36px;max-height:min(200px,calc(var(--visual-height,100dvh) * .28));padding:7px 4px 10px;overflow:auto;scroll-padding-block:4px;overscroll-behavior:contain}
.claude-composer .composer-text.has-expand textarea{padding-inline-end:34px}
.claude-composer.is-writing .composer-actions{display:flex;align-items:center;justify-content:space-between;gap:4px;flex:none;height:44px;width:100%}
.claude-composer.is-writing .composer-add{margin-inline-end:auto}
.claude-composer.is-writing .effort-picker{flex:none}
.claude-composer .effort-button{width:44px;height:44px;padding:0}
.claude-composer .effort-button>span{display:none}
.effort-button .effort-brain{width:24px;height:24px}
.effort-button[data-ultra=true] .brain-outline{stroke:url(#claude-brain-nebula);stroke-width:1.6}
.composer-materials{display:flex;align-items:center;gap:8px;flex:none;max-width:100%;padding:3px 0 7px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;touch-action:pan-x}
.material-chip{display:flex;align-items:center;flex:none;gap:7px;max-width:220px;height:52px;padding-inline-start:8px;border:1px solid #e8e6ed;border-radius:13px;background:#fff;color:#55505f}
.material-chip img{width:36px;height:36px;object-fit:cover;border-radius:7px}
.material-chip>span{max-width:140px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px}
.material-chip button{flex:none;width:44px;height:44px;border:0;border-radius:10px;background:transparent;color:#77717f;font-size:20px;line-height:1}
.composer-materials{padding:4px 2px 8px;gap:10px}
.material-chip.photo-chip{position:relative;width:82px;height:82px;max-width:none;padding:0;border:0;border-radius:16px;overflow:visible;background:#f0eef2}
.photo-chip img{display:block;width:82px;height:82px;object-fit:cover;border-radius:16px}
.photo-chip>span:not(.material-uploading){display:none}
.photo-chip button{position:absolute;top:-10px;inset-inline-end:-10px;width:44px;height:44px;border:8px solid transparent;border-radius:50%;background:transparent;color:#fff;font-size:18px;isolation:isolate}
.photo-chip button::before{content:"";position:absolute;inset:0;z-index:-1;border:2px solid #fff;border-radius:50%;background:#53515be8;box-shadow:0 1px 4px #24243019}
.material-uploading{position:absolute;inset:auto 0 0;max-width:none;padding:4px;border-radius:0 0 16px 16px;background:#3a354c99;color:white;text-align:center;font-size:9px!important}
.upload-error{outline:1px solid #c45250}
.message-photos{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px;max-width:250px}
.message-photos:only-child{margin:0}
.message-photos img{display:block;width:min(220px,55vw);height:auto;min-height:70px;max-height:280px;object-fit:contain;border-radius:13px;background:#eeedf1}
.thinking-block{align-self:flex-start;width:100%;max-width:100%;margin:0;color:#89858f;font-size:13px;text-align:start}
.thinking-heading{display:flex;align-items:center;gap:8px;min-height:36px;list-style:none;cursor:default;user-select:none}
details.thinking-block .thinking-heading{cursor:pointer}
.thinking-heading::-webkit-details-marker{display:none}
.thinking-heading svg{width:12px;height:12px;transform:rotate(90deg);color:#a29ca9}
.thinking-block[open] .thinking-heading svg{transform:rotate(-90deg)}
.thinking-content{max-height:200px;margin:4px 0 12px;padding:0 0 0 12px;border-inline-start:2px solid #ece9f0;color:#837e8c;font-size:12px;line-height:1.6;white-space:pre-wrap;overflow:auto;overscroll-behavior:contain}
.thinking-wave{display:flex;align-items:center;gap:3px;height:16px}
.thinking-wave i{display:block;width:4px;height:4px;border-radius:50%;background:#958b9f;animation:thinking-wave 1.15s ease-in-out infinite}
.thinking-wave i:nth-child(2){animation-delay:.15s}.thinking-wave i:nth-child(3){animation-delay:.3s}
@keyframes thinking-wave{0%,65%,100%{transform:translateY(0);opacity:.4}30%{transform:translateY(-3px);opacity:1}}
.composer-editor{position:fixed;inset:calc(var(--visual-top,0px) + max(48px,calc(var(--tg-top,0px) + 8px))) 0 auto;width:min(100%,760px);height:calc(var(--visual-height,100dvh) - max(48px,calc(var(--tg-top,0px) + 8px)));max-width:none;max-height:none;margin:0 auto;padding:12px max(14px,var(--tg-right,0px)) max(12px,var(--tg-bottom,0px),var(--safe-bot)) max(14px,var(--tg-left,0px));border:0;border-radius:28px 28px 0 0;background:#fff;color:#28282d}
.composer-editor[open]{display:flex}
.composer-editor::backdrop{background:#2929322b}
.composer-editor .claude-composer{display:flex;flex-direction:column;flex:1;min-height:0;max-width:100%;padding:4px 0 0;border:0;border-radius:0;background:#fff;box-shadow:none}
.composer-editor .composer-text{display:flex;flex:1!important;min-height:0;padding-top:34px}
.composer-editor .composer-text textarea{flex:1;width:100%;height:100%!important;min-height:0!important;max-height:none!important;margin:0;padding:9px 8px!important;overflow:auto}
.composer-editor .composer-expand{width:40px;height:32px;inset-inline-end:0;top:0}
.composer-editor .composer-expand svg{width:21px;height:21px;color:#52525b}
.composer-editor .composer-actions{padding:8px 4px 0;height:52px!important}
.material-picker{position:fixed;inset:auto 0 calc(var(--keyboard-inset,max(0px,100dvh - var(--visual-height,100dvh))) + max(var(--tg-bottom,0px),20px) + 52px);width:calc(100% - 32px);max-width:380px;max-height:calc(var(--visual-height,100dvh) - 130px);margin:0 auto;padding:7px 12px;border:1px solid #ffffffd9;border-radius:27px;background:#fafafceF;color:#34343c;box-shadow:0 16px 48px #24243020,inset 0 1px 0 #fff;-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);font-family:Inter,Arial,sans-serif}
.material-picker::backdrop{background:#26263019;backdrop-filter:blur(2px)}
.material-option{position:relative;display:flex;align-items:center;gap:15px;width:100%;min-height:58px;padding:13px 12px;border:0;border-radius:15px;background:transparent;color:#39383f;text-align:start;text-transform:none;font-size:16px}
.material-option:not(:last-child)::after{content:'';position:absolute;bottom:0;inset-inline:50px 12px;height:1px;background:#3c3c4314}
.material-picker:not(.using-keyboard) button:focus-visible{outline:none}
.material-picker.using-keyboard button:focus-visible{outline:2px solid #85818d;outline-offset:-3px}
.material-option svg{width:23px;height:23px;flex:none}
@media(hover:hover){.material-option:hover,.composer-add:hover,.composer-expand:hover,.material-chip button:hover{background:#f0eff4}}

.claude-chat-shell .chat-mark{width:45px;height:45px;flex:none;background:#d97757}
.claude-chat-shell .chat-empty{gap:16px}
.claude-chat-shell .chat-empty p{font-size:23px}
.claude-chat-shell .chat-head{justify-content:flex-start}
body.chat-view #app.chat-app:has(.claude-chat-shell){padding:0}
.claude-chat-shell{position:relative}
.claude-chat-shell .chat-head{position:absolute;z-index:2;top:calc(max(var(--safe-top),var(--tg-top,0px),44px) + 12px);inset-inline-start:max(18px,var(--tg-left,0px));min-height:44px;width:44px;background:transparent}
.claude-chat-shell .history-button{margin-inline-start:0;background:transparent;box-shadow:none}
.claude-chat-shell .conversation{overflow-anchor:none;touch-action:pan-x pan-y;position:absolute;inset:0;padding:calc(max(var(--safe-top),var(--tg-top,0px),44px) + 60px) max(16px,var(--tg-right,0px)) calc(var(--composer-space,100px) + max(var(--safe-bot),var(--tg-bottom,0px),12px) + 8px) max(16px,var(--tg-left,0px))}
.claude-chat-shell .chat-footer{position:absolute;z-index:1;bottom:max(var(--safe-bot),var(--tg-bottom,0px),12px);inset-inline:0;pointer-events:none;padding:7px max(9.5%,var(--tg-right,0px)) 0 max(9.5%,var(--tg-left,0px));max-height:calc(var(--visual-height,100dvh) - 60px)}
.claude-chat-shell .chat-footer>*{pointer-events:auto}
body.keyboard-open .claude-chat-shell .chat-footer{bottom:6px;padding-inline-start:max(12px,var(--tg-left,0px));padding-inline-end:max(12px,var(--tg-right,0px))}
body.keyboard-open .claude-chat-shell .conversation{padding-bottom:calc(var(--composer-space,100px) + 14px)}
.claude-chat-shell .history-button:hover{background:transparent}
.claude-chat-shell button:focus-visible{outline-color:#85818d}
body:not(.keyboard-navigation) .claude-chat-shell button:focus-visible{outline:none}
.claude-chat-shell .history-button{margin-inline-start:-6px}
.claude-chat-shell .chat-notice:empty{display:none}
.claude-composer .effort-button[data-context-high=true]{position:relative;color:#c45250}
.claude-composer .effort-button[data-context-high=true]::before{content:'';position:absolute;inset:3px;border-radius:50%;background:conic-gradient(#c45250 var(--context-fill),#c4525020 0);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 1.8px),#000 0);mask:radial-gradient(farthest-side,transparent calc(100% - 1.8px),#000 0);pointer-events:none}
.claude-composer .effort-button[data-context-high=true] .brain-outline{stroke:#c45250}
.claude-composer .effort-button[data-context-high=true] .brain-nebula,.claude-composer .effort-button[data-context-high=true] .brain-stars{display:none}
.claude-composer .effort-button[data-context-high=true] .brain-lines{stroke:currentColor;stroke-width:1.6}
.chat-drawer{position:fixed;inset:var(--visual-top,0px) auto auto 0;display:none;flex-direction:column;width:min(86vw,360px);max-width:calc(100% - 40px);height:var(--visual-height,100dvh);max-height:none;margin:0;padding:max(22px,calc(var(--tg-top,0px) + 12px)) 18px max(20px,var(--safe-bot),var(--tg-bottom,0px));border:0;border-radius:0 26px 26px 0;background:#fafafa;color:#29292d;font:400 15px/1.45 Inter,Arial,sans-serif;overflow:hidden;box-shadow:16px 0 60px #25252d15}
.chat-drawer[open]{display:flex;animation:drawer-in .24s cubic-bezier(.2,.7,.2,1)}
.chat-drawer::backdrop{background:#25252d24;backdrop-filter:blur(2px)}
.drawer-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;margin-bottom:20px}
.drawer-head h2{margin:0;font-size:25px;line-height:1.2;font-weight:600;letter-spacing:-.04em}
.drawer-new{min-height:44px;padding:10px 14px;border:0;border-radius:24px;background:#232325;color:#fff;font-size:13px;font-weight:500;text-transform:none}
.drawer-chats{display:flex;flex-direction:column;gap:5px;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.drawer-chats button{position:relative;display:block;flex:none;width:100%;min-height:48px;padding:12px 14px;border:0;border-radius:14px;background:transparent;color:#171719;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:start;text-transform:none;font-size:16px;font-weight:400;line-height:1.45;letter-spacing:0}
.drawer-chats button[aria-pressed=true]{background:#eeeeF1;font-weight:500}
.drawer-settings{flex:0 1 auto;max-height:62%;margin-top:20px;padding-top:16px;border-top:1px solid #e5e5e8;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.drawer-settings>p{margin:0 12px 8px;color:#626269;font-size:13px;font-weight:500}
.drawer-settings .chat-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:2px;margin:0;padding:0}
.drawer-settings :is(.budget-button,.context-button){width:100%;min-height:46px;padding:10px 12px;border:0;border-radius:12px;background:transparent;text-align:start;text-transform:none;font-size:14px;color:#45454e}
.drawer-settings .chat-menu{position:static;inset:auto;width:100%;min-width:0;max-height:min(36dvh,280px);padding:12px;border:0;border-radius:14px;box-shadow:none;background:#f0f0f3;animation:none}
.drawer-settings .chat-menu p{overflow-wrap:anywhere}
.drawer-settings .inline-budget{display:flex;flex-direction:column;gap:0;max-height:none;padding:0 10px;background:transparent;border-radius:0;overflow:visible}
.chat-drawer{padding-bottom:max(34px,calc(var(--safe-bot) + 16px),calc(var(--tg-bottom,0px) + 16px))}
.drawer-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;margin:20px 10px 0}
.drawer-actions .drawer-new{display:flex;align-items:center;justify-content:center;gap:9px;min-width:110px;min-height:46px;padding:10px 18px;font-size:16px}
.drawer-new svg{width:22px;height:22px}
.drawer-balance{display:flex;flex-direction:column;gap:1px;align-items:flex-end;justify-content:center;min-height:46px;padding:0 4px;border:0;background:transparent;font-size:13px;color:#626269;text-transform:none}
.drawer-balance strong{font-size:18px;font-weight:600;color:#303036;font-variant-numeric:tabular-nums}
.inline-budget .budget-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px}
.budget-heading b{font-size:14px;font-weight:550;color:#36363d}
.inline-budget .budget-heading output{margin:0;font-size:22px;font-weight:600;white-space:nowrap}
.inline-budget .context-summary{display:flex;align-items:center;flex-wrap:wrap;gap:7px;min-height:46px;margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid #e5e5e8;font-size:15px;font-weight:550;color:#36363d}
.context-meter{display:inline-block;width:19px;height:19px;flex:none;border-radius:50%;background:conic-gradient(#8a8494 var(--context-fill),#e6e4eb 0);-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 2.5px),#000 0);mask:radial-gradient(farthest-side,transparent calc(100% - 2.5px),#000 0)}
.context-cost{font-size:11px;color:#85818c;white-space:nowrap;font-variant-numeric:tabular-nums}
.inline-budget .context-cost{flex-basis:100%;font-size:13px;font-weight:400;color:#626269;white-space:normal;line-height:1.5}
.context-filled{font-size:13px;font-weight:500;color:#626269;font-variant-numeric:tabular-nums}
.inline-budget>b{font-size:13px;font-weight:500;color:#62606b}
.inline-budget output{margin:4px 0 12px;font-size:27px;line-height:1.2;font-weight:500}
.inline-budget input[type=range]{display:block;min-height:34px;height:34px;margin:0;accent-color:#61586e;touch-action:pan-y}
.inline-budget>p{margin:4px 0 0;font-size:12.5px;color:#626269;line-height:1.45}
.inline-budget .optimization-label{display:flex;flex-direction:row-reverse;justify-content:space-between;gap:10px;min-height:44px;margin-top:17px;padding-top:10px;border-color:#e5e5e8;font-size:15px;font-weight:500;color:#36363d}
.inline-budget .optimization-label input{appearance:none;position:relative;flex:none;width:37px;height:23px;margin:0;border:0;border-radius:15px;background:#dbd8e1;transition:background .16s}
.inline-budget .optimization-label input::before{content:'';position:absolute;top:3px;left:3px;width:17px;height:17px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #2c263b20;transition:transform .16s}
.inline-budget .optimization-label input:checked{background:#635a70}
.inline-budget .optimization-label input:checked::before{transform:translateX(14px)}
.inline-budget .optimization-label input:focus-visible{outline:2px solid #85818d;outline-offset:3px}
.chat-drawer button:focus-visible{outline:2px solid #85818d;outline-offset:-2px}
#studio-toast{position:fixed;z-index:8;top:max(80px,calc(var(--tg-top,0px) + 66px));left:50%;width:max-content;max-width:calc(100% - 40px);padding:12px 18px;border-radius:22px;background:#303034ee;color:#fff;box-shadow:0 8px 28px #25252d15;text-align:center;font-size:13px;transform:translateX(-50%);pointer-events:none}
.claude-settings #studio-toast{position:absolute;top:auto;bottom:calc(100% + 16px);max-width:100%}
@keyframes drawer-in{from{transform:translateX(-100%);opacity:.7}to{transform:none;opacity:1}}
@media(hover:hover){.drawer-chats button:hover,.drawer-settings :is(.budget-button,.context-button):hover{background:#eeeeF1}}

/* The requested moving Ultra treatment is our CSS animation, with no scripts,
   particle timers or provider requests. Reduced-motion remains static. */
.claude-settings.is-ultra .claude-effort-fill{overflow:hidden;background-size:160% 140%,240% 100%}
.claude-settings.is-ultra[open] .claude-effort-fill{animation:ultra-flow 7s ease-in-out infinite alternate}
.claude-settings.is-ultra[open] .claude-effort-fill::before{inset:-2px;animation:ultra-starlight 3.4s ease-in-out infinite alternate}
.effort-button[data-ultra=true] .brain-stars{transform-origin:center;animation:brain-starlight 3.4s ease-in-out infinite alternate}
.effort-button[data-ultra=true] stop:nth-child(1){animation:nebula-blue 7s ease-in-out infinite alternate}
.effort-button[data-ultra=true] stop:nth-child(2){animation:nebula-lilac 7s ease-in-out infinite alternate}
@keyframes ultra-flow{from{background-position:0% 50%,0% 50%}to{background-position:100% 25%,100% 50%}}
@keyframes ultra-starlight{0%{opacity:.55;transform:translate(-.8px,.3px)}35%{opacity:.95;transform:translate(.5px,-.6px)}70%{opacity:.7;transform:translate(-.3px,.6px)}100%{opacity:1;transform:translate(.8px,-.3px)}}
@keyframes brain-starlight{from{opacity:.6;transform:translate(-.2px,.15px)}to{opacity:1;transform:translate(.25px,-.15px)}}
@keyframes nebula-blue{from{stop-color:#535af1}to{stop-color:#9756d4}}
@keyframes nebula-lilac{from{stop-color:#a475dd}to{stop-color:#7972ef}}
@media(prefers-reduced-motion:reduce){.claude-settings.is-ultra[open] .claude-effort-fill,.claude-settings.is-ultra[open] .claude-effort-fill::before,.effort-button[data-ultra=true] .brain-stars,.effort-button[data-ultra=true] stop{animation:none}}

/* Text follows the supplied phone reference; structured answers stay within
   the conversation, with wide tables/code scrolling independently. */
.claude-chat-shell,.claude-settings,.chat-drawer,.composer-editor,.material-picker{font-family:-apple-system,BlinkMacSystemFont,Inter,Arial,sans-serif}
.chat-drawer{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Inter,Arial,sans-serif;letter-spacing:0}
.claude-composer textarea{font-family:inherit}
.claude-chat-shell :is(.user-message,.assistant-message){font-family:-apple-system,BlinkMacSystemFont,sans-serif;font-size:18px;font-weight:400;line-height:26px;letter-spacing:normal;color:#111}
.claude-chat-shell .user-message{background:#f1f1f1}
.claude-chat-shell .assistant-message{min-width:0;white-space:normal}
.answer-body>:first-child{margin-top:0}.answer-body>:last-child{margin-bottom:0}
.answer-body p{margin:0 0 16px}
.answer-body :is(h1,h2,h3,h4,h5,h6){margin:24px 0 12px;color:#111;font-size:18px;font-weight:650;line-height:1.4}
.answer-body h1{font-size:22px}.answer-body h2{font-size:20px}
.answer-body strong{font-weight:650}
.answer-body :is(ul,ol){margin:12px 0 18px;padding-inline-start:25px}
.answer-body li{margin:6px 0}.answer-body li>p{margin:6px 0}
.answer-body a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.answer-body blockquote{margin:16px 0;padding-inline-start:16px;border-inline-start:3px solid #d9d9d9;color:#666}
.answer-body code{padding:2px 5px;border-radius:4px;background:#f2f2f2;font:13px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap}
.answer-body pre{max-width:100%;margin:16px 0;padding:14px 16px;border-radius:14px;background:#f6f6f6;overflow:auto;overscroll-behavior-x:contain;overscroll-behavior-y:auto;touch-action:pan-x pan-y}
.answer-body pre code{padding:0;background:transparent;white-space:pre;overflow-wrap:normal}
.markdown-table{max-width:100%;margin:18px 0;overflow:auto;overscroll-behavior-x:contain;overscroll-behavior-y:auto;touch-action:pan-x pan-y;scrollbar-width:thin}
.markdown-table table{width:max-content;min-width:100%;border-collapse:collapse;font-size:14px;line-height:1.55}
.markdown-table :is(th,td){max-width:260px;min-width:80px;padding:12px 14px;border-bottom:1px solid #e4e4e4;text-align:start;vertical-align:top;overflow-wrap:normal}
.markdown-table th{color:#111;font-weight:650;border-bottom-color:#cfcfcf}
.answer-body hr{margin:24px 0;border:0;border-top:1px solid #e7e7e7}
.answer-image{display:block;max-width:100%;max-height:500px;height:auto;margin:12px 0;border-radius:16px}

/* Pointer interactions have no focus frame; hardware keyboard focus stays visible. */
.claude-chat-shell dialog{outline:none}
body:not(.keyboard-navigation) .claude-chat-shell :is(button,input,summary,a,section,div):focus-visible{outline:none}
.composer textarea{caret-color:#000}
.claude-composer button:disabled{pointer-events:none}
dialog[data-keep-keyboard=true]{z-index:4}
.claude-settings[data-keep-keyboard=true] input{touch-action:none}
.answer-actions{display:flex;align-items:center;gap:4px;margin-top:8px}
.copy-button{display:inline-grid;place-items:center;flex:none;width:44px;height:44px;padding:13px;border:0;border-radius:9px;background:transparent;color:#85858b;text-transform:none}
.copy-button svg{width:18px;height:18px}
.copy-button:active{background:#eeeef0}
.code-block{margin:18px 0;max-width:100%;min-width:0;border-radius:14px;overflow:hidden;background:#f6f6f6}
.code-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;padding:0 8px 0 16px;color:#77777e;font-size:12px;font-weight:450}
.code-block pre{margin:0;border-radius:0;padding-top:8px}
.clipboard-fallback{position:fixed;left:-9999px;top:0;opacity:0;pointer-events:none}
@media(hover:hover){.copy-button:hover{background:#eeeef0;color:#414147}}

:is(.claude-settings,.material-picker)[data-keep-keyboard=true]{inset-block-end:calc(var(--keyboard-inset,0px) + var(--panel-composer-height,100px) + 18px);max-height:calc(var(--visual-height,100dvh) - max(72px,var(--tg-top,0px)) - var(--panel-composer-height,100px) - 30px)}

.composer-panel-backdrop{position:fixed;z-index:3;top:var(--visual-top,0px);inset-inline:0;bottom:calc(var(--keyboard-inset,0px) + var(--panel-composer-height,100px) + 12px);background:#ffffff50;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);mask-image:linear-gradient(to top,#000 0%,#000 35%,transparent 85%);-webkit-mask-image:linear-gradient(to top,#000 0%,#000 35%,transparent 85%)}

/* Half the whitespace below the answer; copying retains its 44px hit area. */
.claude-chat-shell .chat-messages{padding-bottom:12px}
.claude-chat-shell .answer-actions{margin-top:0;justify-content:flex-start}
.claude-chat-shell .answer-actions .copy-button{margin-inline-start:-13px}

/* Phone reference: a compact resting pill, wider above the keyboard, with
   real frosted translucency so scrolling text remains softly visible. */
:is(.claude-composer,.chat-jump-latest){background:rgba(250,250,250,.72);border-color:rgba(255,255,255,.9);backdrop-filter:blur(20px) saturate(1.15);-webkit-backdrop-filter:blur(20px) saturate(1.15);box-shadow:0 8px 32px #00000012,0 1px 4px #00000006,inset 0 1px 0 #ffffffd9}
.claude-composer:focus-within{border-color:rgba(255,255,255,.9);box-shadow:0 8px 32px #00000012,0 1px 4px #00000006,inset 0 1px 0 #ffffffd9}
.claude-composer textarea{color:#0a0a0a}
.claude-composer textarea::placeholder{color:#909090;opacity:1}
.chat-jump-latest{position:absolute;bottom:calc(100% + 6px);left:50%;display:grid;place-items:center;width:44px;height:44px;padding:10px;transform:translateX(-50%);border-width:1px;border-style:solid;border-radius:50%;color:#171717}
.chat-jump-latest svg{width:22px;height:22px}
.chat-jump-latest:active{box-shadow:0 2px 6px #0000000a,inset 0 1px 0 #ffffffd9}
.composer-editor .claude-composer{backdrop-filter:none;-webkit-backdrop-filter:none}

.composer-editor .claude-composer:focus-within{box-shadow:none;border:0}
