@font-face{font-family:"DM Sans";src:url('/fonts/dm-sans-400.woff2') format('woff2'),url('/fonts/dm-sans-400.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"DM Sans";src:url('/fonts/dm-sans-500.woff2') format('woff2'),url('/fonts/dm-sans-500.ttf') format('truetype');font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:"DM Sans";src:url('/fonts/dm-sans-600.woff2') format('woff2'),url('/fonts/dm-sans-600.ttf') format('truetype');font-style:normal;font-weight:600;font-display:swap}
@font-face{font-family:"DM Sans";src:url('/fonts/dm-sans-700.woff2') format('woff2'),url('/fonts/dm-sans-700.ttf') format('truetype');font-style:normal;font-weight:700;font-display:swap}
@font-face{font-family:"DM Sans Fallback";src:local("Arial"),local("Liberation Sans"),local("Helvetica");font-weight:400 500;size-adjust:105.82%;ascent-override:93.75%;descent-override:29.3%;line-gap-override:0%}
@font-face{font-family:"DM Sans Fallback";src:local("Arial Bold"),local("Arial-BoldMT"),local("Liberation Sans Bold"),local("Helvetica Bold");font-weight:600 700;size-adjust:103.23%;ascent-override:96.1%;descent-override:30.03%;line-gap-override:0%}

:root{color-scheme:light;--answer:#3d4753;--answer-muted:#5a6674;--answer-font:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;--ink:#294b63;--deep:#25485d;--muted:#57758a;--blue:#3e749e;--line:rgba(30,73,100,.15);--paper:#fff;--gold:#e3ac30;font-family:"DM Sans","DM Sans Fallback",system-ui,sans-serif;color:var(--ink);background:#e6eef0;font-synthesis:none}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-width:320px;min-height:100vh;font-size:16px;line-height:1.5}
body[data-page=home]{background:#dfeaf0}
body[data-page=chat]{background:#f5f8f8}
button,textarea{font:inherit}
button{cursor:pointer}
button:disabled{cursor:default}
a{color:inherit;text-decoration:none}
button,a,textarea{outline-offset:4px}
button:focus-visible,a:focus-visible,textarea:focus-visible{outline:3px solid #075ace}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:absolute;z-index:50;left:16px;top:-70px;padding:10px 15px;border-radius:10px;background:#fff;box-shadow:0 6px 20px #25485d33}
.skip-link:focus{top:12px}
.sky-scene{position:fixed;z-index:0;inset:0;pointer-events:none;background:url('/assets/james-sunset-2026.png') right center / cover no-repeat;background-image:image-set(url('/assets/james-sunset-2026.webp') type('image/webp'),url('/assets/james-sunset-2026.png') type('image/png'))} /* THE SKY AS WEBP (Code QA's RO stall 10-05: the 1.41 MB PNG starved the page's scripts on a busy link): 48 KB, the same picture (mean diff ~1.3/255); a browser without image-set/type() keeps the PNG */
body[data-page=chat] .sky-scene{opacity:.38;mask-image:linear-gradient(#000 0%,#000 42%,transparent 90%)}
body[data-page=home] .sky-scene::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#e7f3fa10 0%,#fff5e407 100%)}
.home-header,.home-main,.chat-header,.chat-main{position:relative;z-index:1}
.home-header{position:absolute;z-index:3;top:0;right:0;width:100%;padding:28px clamp(20px,4vw,55px);display:flex;justify-content:flex-end}
.home-account-link{display:inline-flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid rgba(35,75,101,.35);font-size:.83rem;font-weight:600;transition:border-color .18s,color .18s}
.home-account-link:hover{border-color:var(--deep);color:#0d3d5d}
.home-account-link span{font-size:1.05rem}
.test-indicator{display:inline-flex;align-items:center;padding:8px 12px;border:1px solid #d9c8a2;border-radius:99px;background:#fff9ebd9;color:#6a5429;font-size:.68rem;font-weight:700;letter-spacing:.09em;white-space:nowrap}
.home-main{min-height:100dvh;padding:clamp(150px,21vh,220px) 24px 58px}
.home-stage{max-width:760px;margin:0 auto}
.home-brand{margin:0 0 96px;font-size:0;line-height:0}
.home-brand img{display:block;width:230px;height:auto}
.composer{position:relative;border:1px solid rgba(255,255,255,.85);border-radius:25px;background:rgba(255,255,255,.98);box-shadow:0 15px 55px -23px #1946664d;text-align:left;transition:box-shadow .2s,border-color .2s}
.composer:focus-within{border-color:#8db8d4;box-shadow:0 14px 50px -19px #19466654,0 0 0 3px rgba(255,255,255,.52)}
.home-composer{padding:22px 23px 18px}
.composer textarea{display:block;width:100%;min-height:88px;max-height:260px;padding:2px 2px 6px;border:0;resize:none;background:transparent;color:var(--ink);font-size:1.19rem;line-height:1.55;overflow-y:auto}
.composer textarea:focus-visible{outline:0}
.composer textarea::placeholder{color:#7390a4;opacity:1}
.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px}
.send-button{width:46px;height:46px;flex:0 0 auto;display:grid;place-items:center;margin-left:auto;padding:0;border:0;border-radius:50%;background:var(--deep);color:white;box-shadow:0 3px 9px #214e6721;transition:transform .18s,background .18s}
.send-button:hover:not(:disabled){background:#326e91;transform:translateY(-2px)}
.send-button:disabled{background:#e0ebf2;color:#5d7b8e;box-shadow:none}
.send-button svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.noscript{position:relative;z-index:4;max-width:680px;margin:20px auto;padding:16px;background:#fff;border-radius:10px;text-align:center}
.noscript a{text-decoration:underline}

.chat-header{max-width:1540px;height:92px;margin:0 auto;padding:0 56px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line)}
.chat-brand{display:inline-flex;align-items:center;flex:0 0 auto}
.chat-brand img{display:block;width:143px;height:auto}
.chat-header-actions{display:flex;align-items:center;gap:14px}
.balance-link{display:inline-flex;align-items:center;padding:8px 13px;border:1px solid #ccdee9;border-radius:99px;background:#ffffffc9;font-size:.75rem;font-weight:700;white-space:nowrap}
.balance-link:hover{background:#fff}
.account-link{display:inline-flex;align-items:center;gap:9px;padding:9px 17px;border:1px solid rgba(37,72,93,.25);border-radius:99px;background:#ffffffb7;font-size:.82rem;font-weight:700;white-space:nowrap}
.account-link:hover{background:#fff}
.account-link span{font-size:1rem}
.chat-main{width:min(100%,875px);min-height:calc(100dvh - 92px);margin:0 auto;padding:0 23px 15px;display:flex;flex-direction:column}
.share-chat{display:inline-flex;align-items:center;gap:7px;margin-left:18px;padding:8px 0;border:0;background:transparent;color:var(--ink);font-size:.83rem;font-weight:600;white-space:nowrap}
.share-chat:hover:not(:disabled){color:#125a82}
.share-chat:disabled{opacity:.42}
.share-chat svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.new-chat{display:inline-flex;align-items:center;gap:8px;margin-left:30px;padding:8px 0;border:0;background:transparent;color:var(--ink);font-size:.83rem;font-weight:600;white-space:nowrap}
.new-chat:hover:not(:disabled){color:#125a82}
.new-chat:disabled{opacity:.45}
.new-chat span{font-size:1.18rem;font-weight:400;line-height:1}
.conversation-area{min-height:150px;flex:1;display:flex;flex-direction:column}
.empty-state{flex:1;min-height:250px}
.conversation{width:100%;display:flex;flex-direction:column;gap:21px;padding:10px 0 42px}
.message{min-width:0;max-width:100%;overflow-wrap:anywhere}
.message-user{align-self:flex-end;max-width:min(82%,660px);padding:15px 19px;border-radius:20px 20px 5px 20px;background:#e7f2f9;border:1px solid #deecf5}
.message-assistant{align-self:stretch;width:100%;max-width:760px;margin:0 auto;padding:24px 29px 27px;border:1px solid #e2eaf0;border-radius:18px;background:#fffffff0;box-shadow:0 9px 30px -31px #183f6652}
.message-label{display:flex;align-items:center;gap:7px;margin-bottom:8px;color:#45677e;font-size:.74rem;font-weight:700}
.message-label img{width:20px;height:20px}
.message-content{margin:0;color:var(--answer);font-family:var(--answer-font);font-size:1rem;line-height:1.6;letter-spacing:normal;overflow-wrap:anywhere}
.message-user .message-content,.message-thinking .message-content{white-space:pre-wrap}
.message-user .message-content{line-height:1.6}
.message-user .message-content a{color:#165e88;text-decoration:underline;text-decoration-color:#8db8d0;text-underline-offset:3px}
.message-user .message-content a:hover{text-decoration-color:currentColor}
.message-prose{max-width:70ch;color:var(--answer);font-family:var(--answer-font);font-size:1.0625rem;line-height:1.6;letter-spacing:normal;overflow-wrap:break-word}
/* Answer text (founder 2026-09-27): the system UI font and a near slate grey-blue (11.5:1 on the card, 8:1 over the sky). A dark theme would use --answer #d5dbe2 / --answer-muted #aab4bf (10.9:1 / 7.2:1 on #1f2630); the site has no dark theme yet. */
.message-prose>:first-child{margin-top:0}
.message-prose>:last-child{margin-bottom:0}
.message-prose p{margin:0 0 1em}
.message-prose h1,.message-prose h2,.message-prose h3,.message-prose h4,.message-prose h5,.message-prose h6{margin:1.5em 0 .55em;color:#1d2b35;font-family:inherit;font-weight:700;line-height:1.3;letter-spacing:-.025em}
.message-prose h1{font-size:1.46em}
.message-prose h2{font-size:1.28em}
.message-prose h3{font-size:1.13em}
.message-prose h4,.message-prose h5,.message-prose h6{font-size:1em}
.message-prose strong{font-weight:700;color:#1d2b35}
.message-prose ul,.message-prose ol{margin:.35em 0 1.1em;padding-left:1.5em}
.message-prose li{margin:.34em 0;padding-left:.15em}
.message-prose li::marker{color:#537992}
.message-prose li>p{margin:.35em 0}
.message-prose blockquote{margin:1.2em 0;padding:.2em 1.1em;border-left:3px solid #8eb4ca;color:var(--answer-muted);background:#f5f9fb}
.message-prose blockquote>:last-child{margin-bottom:0}
.message-prose a{color:#105d86;text-decoration:underline;text-decoration-color:#a6c8d9;text-underline-offset:3px}
.message-prose a:hover{text-decoration-color:currentColor}
.message-prose :not(pre)>code{padding:.13em .34em;border:1px solid #e3eaf0;border-radius:5px;background:#f3f6f8;color:#364452;font:85%/1.45 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;overflow-wrap:anywhere}
.message-prose pre{max-width:100%;margin:1.15em 0 1.3em;padding:17px 19px;overflow-x:auto;border:1px solid #e2e9ee;border-radius:12px;background:#f4f7f9;color:#253746;white-space:pre;overflow-wrap:normal;tab-size:2}
.message-prose pre code{padding:0;border:0;background:transparent;color:inherit;font: .84rem/1.55 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;white-space:inherit;overflow-wrap:normal}
.message-prose table{display:block;width:max-content;max-width:100%;margin:1.1em 0 1.35em;overflow-x:auto;border-collapse:collapse;font-size:.92em}
.message-prose th,.message-prose td{padding:8px 11px;border:1px solid #dce6ec;text-align:left;vertical-align:top}
.message-prose th{background:#f3f7f9;font-weight:700}
.message-prose tr:nth-child(even) td{background:#f8fafb}
.message-prose hr{height:1px;margin:1.5em 0;border:0;background:#dce7ed}
.message-thinking .message-content{color:var(--muted)}
.activity-panel{max-width:70ch;color:#324b5d;font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.activity-heading{display:flex;align-items:center;gap:9px;color:#60798a;font-size:.86rem;line-height:1.4}
.activity-heading strong{font-weight:600}
.activity-pulse{width:9px;height:9px;flex:0 0 auto;border-radius:50%;background:#5a9cbb;box-shadow:0 0 0 4px #dbeef6;animation:activity-pulse 1.8s ease-in-out infinite}
.activity-timer{margin-left:auto;color:#9aadb8;font-size:.7rem;font-variant-numeric:tabular-nums}
.activity-steps{margin:17px 0 10px 4px;padding:0 0 0 19px;border-left:1px solid #d6e5ed;list-style:none}
.activity-steps li{position:relative;display:flex;justify-content:space-between;gap:14px;margin:0;padding:0 0 12px 7px;color:#7b8f9c;font-size:.78rem;line-height:1.45}
.activity-steps li:last-child{padding-bottom:0}
.activity-steps li::before{content:"";position:absolute;left:-24px;top:5px;width:8px;height:8px;border:2px solid #8fb7cb;border-radius:50%;background:#fff}
.activity-steps li.is-active{color:#587a90;font-weight:500}
.activity-steps li.is-active::before{background:#70acc9;box-shadow:0 0 0 3px #e0f0f6}
.activity-step-time{flex:0 0 auto;color:#9dafb8;font-size:.69rem;font-weight:400;font-variant-numeric:tabular-nums}
.activity-note{margin:14px 0 0;color:#8499a6;font-size:.74rem;line-height:1.5}
.activity-draft{margin-top:19px;padding-top:17px;border-top:1px solid #e3ebef}
.activity-stall{display:flex;align-items:center;gap:9px;max-width:70ch;margin:14px 0 0;color:#7b8f9c;font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:.8rem;line-height:1.4}
.message-working.is-writing .activity-steps,.message-working.is-writing .activity-note{display:none}
.message-working.is-writing .activity-draft{margin-top:16px;padding-top:0;border-top:0}
@keyframes jt-fade-in{from{opacity:0}to{opacity:1}}
.message-prose [data-jt-fade]{animation:jt-fade-in .32s ease-out both}
@media (prefers-reduced-motion:reduce){.message-prose [data-jt-fade]{animation:none}}
.activity-summary{margin:0 0 16px;color:#627886;font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:.73rem}
.activity-summary summary{display:list-item;width:max-content;max-width:100%;cursor:pointer;list-style-position:inside;text-underline-offset:3px}
.activity-summary summary:hover{color:#285879;text-decoration:underline}
.activity-summary ol{max-width:30em;margin:10px 0 0 5px;padding:0 0 0 19px;border-left:1px solid #d8e5ec;list-style:none}
.activity-summary li{display:flex;justify-content:space-between;gap:18px;margin:0;padding:4px 0 4px 9px;line-height:1.4}
.activity-summary li span:last-child{color:#657781;font-variant-numeric:tabular-nums}
@keyframes activity-pulse{50%{opacity:.5;transform:scale(.75)}}
.thinking-dots{display:inline-flex;gap:4px;vertical-align:middle;margin-left:5px}
.thinking-dots i{width:4px;height:4px;border-radius:50%;background:#7ca1b7;animation:thinking 1.2s infinite}
.thinking-dots i:nth-child(2){animation-delay:.18s}.thinking-dots i:nth-child(3){animation-delay:.36s}
@keyframes thinking{50%{opacity:.25;transform:translateY(-3px)}}
.chat-dock{position:sticky;bottom:0;z-index:2;padding:14px 0 1px;background:linear-gradient(180deg,#f5f8f800 0%,#f5f8f8f5 22%,#f5f8f8 58%)}
.chat-composer{padding:17px 20px 15px}
.chat-composer textarea{min-height:58px;font-size:1.08rem}
.composer-hint{color:#607889;font-size:.72rem}
.chat-footnote{margin:11px 0 0;color:#5f7381;font-size:.69rem;text-align:center}
.chat-footnote a{text-decoration:underline;text-underline-offset:2px}
.chat-status,.access-note{margin:0 0 13px;padding:13px 16px;border-radius:11px;font-size:.82rem;line-height:1.5}
.chat-status{border:1px solid #e7c8bf;background:#fff3f0;color:#933e34}
.status-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:10px}
.status-actions a{text-decoration:underline;text-underline-offset:3px;font-weight:700}
.status-actions button{padding:6px 11px;border:1px solid #d9a9a0;border-radius:8px;background:white;color:#81392f;font-size:.76rem;font-weight:700}
.status-actions button:hover{background:#fff9f7}
.access-note{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #e7d39e;background:#fff9e9;color:#735a25}
.access-note a{font-weight:700;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.access-note a:hover{color:#463411}
.share-dialog{width:min(470px,calc(100vw - 30px));max-height:calc(100dvh - 30px);margin:auto;padding:25px 27px 27px;overflow-y:auto;border:1px solid #d9e7ee;border-radius:20px;background:#fff;color:#253f51;box-shadow:0 25px 85px #17374c40;font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.share-dialog::backdrop{background:#1a3b5080;backdrop-filter:blur(4px)}
.share-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:15px}
.share-dialog h2{margin:0;color:#203b4d;font-size:1.3rem;line-height:1.3;letter-spacing:-.025em}
.share-close{width:32px;height:32px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:#698292;font-size:1.55rem;line-height:1}
.share-close:hover{background:#eef5f8;color:#244f69}
.share-description{margin:15px 0 23px;color:#597182;font-size:.91rem;line-height:1.6}
.share-primary{padding:10px 15px;border:0;border-radius:10px;background:#2b596f;color:#fff;font-size:.85rem;font-weight:700;white-space:nowrap}
.share-primary:hover:not(:disabled){background:#39728e}
.share-primary:disabled{opacity:.55}
.share-result{margin-top:5px}
.share-result label{display:block;margin-bottom:7px;color:#516a7b;font-size:.74rem;font-weight:700}
.share-link-row{display:flex;gap:8px}
.share-link-row input{min-width:0;flex:1;padding:10px 11px;border:1px solid #cbdde7;border-radius:10px;background:#f6fafb;color:#2a4659;font: .83rem/1.3 ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.share-result-actions{display:flex;align-items:center;gap:18px;margin-top:14px;font-size:.8rem}
.share-result-actions a,.share-result-actions button{padding:0;border:0;background:none;color:#2f7298;font:inherit;text-decoration:underline;text-underline-offset:3px}
.share-result-actions a:hover,.share-result-actions button:hover{color:#174f6f}
.share-local-note{margin:0 0 17px;padding:11px 12px;border-radius:9px;background:#f8f3e8;color:#755c35;font-size:.76rem;line-height:1.45}
.share-feedback{margin:14px 0 0;color:#2d6a60;font-size:.8rem;line-height:1.4}
.share-feedback.is-error{color:#a1433d}

@media(max-width:700px){.home-header{padding:20px 22px}.home-main{padding:137px 18px 40px}.home-brand img{width:202px}.home-composer{padding:22px 20px 17px}.composer textarea{font-size:1.08rem}.chat-header{height:74px;padding:0 14px}.chat-brand img{width:93px}.chat-main{min-height:calc(100dvh - 74px);padding:0 18px 11px}.conversation{padding-bottom:42px}.message{scroll-margin-bottom:185px}.message-assistant{padding:19px 18px 21px}.message-prose{font-size:1rem;line-height:1.65}.message-user{max-width:88%}.chat-composer{padding:16px}.chat-footnote{margin:8px 0 0}}
@media(max-width:520px){.balance-link{display:none!important}.chat-header-actions{gap:6px}.account-link{padding:8px 12px}.access-note{align-items:flex-start;flex-direction:column}.access-note a{white-space:normal}.composer-hint{font-size:.67rem}}
@media(max-width:370px){.home-main{padding-left:13px;padding-right:13px}.home-brand img{width:188px}.home-composer{padding:19px}.chat-header{padding:0 9px}.chat-main{padding-left:13px;padding-right:13px}.chat-brand img{width:82px}.account-link{font-size:.76rem}}
@media(max-width:370px){.share-dialog{padding:21px 18px 23px}}
@media(max-width:700px){.sky-scene{background-position:85% center}}
@media(max-height:620px){.home-main{padding-top:105px}.home-brand{margin-bottom:54px}.empty-state{min-height:160px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}

.chat-header-left{display:flex;align-items:center;gap:26px;min-width:0}
.mode-nav{display:flex;align-items:center;gap:3px;padding:4px;border:1px solid #dce7ed;border-radius:12px;background:#eef4f7}
.mode-nav a{min-width:64px;padding:6px 13px;border-radius:8px;color:#577182;font-size:.8rem;font-weight:700;text-align:center;transition:background .15s,color .15s}
.mode-nav a:hover{color:#2d5d7c}
.mode-nav a[aria-current=page]{background:#fff;box-shadow:0 1px 5px #24516c1b;color:#244a62}
.home-header{gap:19px;align-items:center}
.home-code-link{display:inline-flex;align-items:center;gap:6px;padding:8px 0;border-bottom:1px solid rgba(35,75,101,.35);font-size:.83rem;font-weight:600}
.home-code-link:hover{border-color:var(--deep);color:#0d3d5d}
.home-code-link span{font-size:1.05rem}
@media(max-width:950px){.chat-header{padding-left:24px;padding-right:24px}.chat-header .test-indicator{display:none}.new-chat{margin-left:15px}.share-chat{margin-left:4px}}
@media(max-width:700px){.chat-header{gap:9px;padding-left:14px;padding-right:14px}.chat-header-left{gap:7px}.chat-header-actions{gap:5px}.mode-nav a{min-width:45px;padding:6px 7px;font-size:.72rem}.home-header{gap:12px}.new-chat,.share-chat{width:34px;height:34px;justify-content:center;margin-left:0;padding:0;border-radius:9px}.new-chat:hover:not(:disabled),.share-chat:hover:not(:disabled){background:#ffffffbd}.new-chat .button-label,.share-chat .button-label{display:none}.chat-header .account-link{width:34px;height:34px;justify-content:center;padding:0;font-size:0;gap:0}.chat-header .account-link span{font-size:1rem}}
@media(max-width:370px){.chat-header{padding-left:9px;padding-right:9px}.chat-header-left{gap:5px}.mode-nav a{min-width:42px;padding:5px 5px}}

.chat-sessions-backdrop{display:none;position:fixed;z-index:18;inset:0;width:100%;border:0;background:#17394f51;cursor:default}
.chat-sessions-panel{position:fixed;z-index:3;top:92px;bottom:0;left:max(0px,calc((100vw - 1540px)/2));width:260px;padding:22px 16px;overflow-y:auto;border-right:1px solid #d7e4eb;background:#f8fbfcee;color:#294a5d}
@media(min-width:701px){body.chat-sidebar-open .chat-main{width:min(875px,calc(100vw - 300px));transform:translateX(130px)}}
.chat-sessions-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 9px 15px}
.chat-sessions-head h2{margin:0;font-size:1.05rem;letter-spacing:-.025em}
.chat-sessions-head button{width:31px;height:31px;border:0;border-radius:8px;background:transparent;color:#567689;font-size:1.45rem;line-height:1}
.chat-sessions-head button:hover{background:#e7f1f5}
.chat-sessions-note{min-height:1.3em;margin:0 9px 20px;color:#5c7585;font-size:.73rem;line-height:1.4}
.chat-sessions-list{display:flex;flex-direction:column;gap:3px;color:#4e6d7f;font-size:.86rem}
.chat-sessions-empty{padding:7px 9px;color:#8297a4;font-size:.8rem}
.chat-session-row{display:flex;align-items:center;min-height:42px;border-radius:9px}
.chat-session-row:hover,.chat-session-row.is-current{background:#e9f2f6}
.chat-session-select{min-width:0;flex:1;padding:10px 9px;overflow:hidden;border:0;background:transparent;color:#31546a;text-align:left;text-overflow:ellipsis;white-space:nowrap;font-size:.83rem}
.chat-session-row.is-current .chat-session-select{font-weight:700}
.chat-session-action{width:30px;height:30px;flex:0 0 auto;margin-right:2px;border:0;border-radius:7px;background:transparent;color:#5a6e7b;font-size:1.12rem}
/* PINS (#15): the Pinned / Recent groups and the pin toggle (faint until hovered; solid when pinned) */
.chat-sessions-group{margin:10px 9px 4px;color:#7b8f9b;font-size:.62rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.chat-sessions-group:first-child{margin-top:0}
.chat-session-pin{display:inline-grid;place-items:center;opacity:.4}
.chat-session-row:hover .chat-session-pin,.chat-session-pin:focus-visible{opacity:.85}
.chat-session-row.is-pinned .chat-session-pin{opacity:1;color:#2c7699}
.chat-session-action:hover{background:#d8e9f0;color:#235979}
.chat-session-editor{width:100%;margin:5px;padding:6px 7px;border:1px solid #9fc2d5;border-radius:7px;background:#fff;color:#294a5d;font:inherit}
@media(max-width:700px){.chat-sessions-panel{z-index:19;top:74px;left:0;width:min(340px,calc(100vw - 42px));background:#f8fbfc;box-shadow:12px 0 40px #17394f20}.chat-sessions-backdrop:not([hidden]){display:block}}

/* IMAGES IN CHAT (attachments slice A): attach button, chips, drop target, thumbnails in the sent message */
.attach-button{width:40px;height:40px;flex:0 0 auto;display:grid;place-items:center;padding:0;border:1px solid #d3e2ea;border-radius:50%;background:#fff;color:#3e6680;cursor:pointer;transition:background .15s,border-color .15s}
.attach-button:hover{background:#eef5f9;border-color:#a9c6d8}
.attach-button:focus-visible{outline:2px solid #2c7699;outline-offset:2px}
.attach-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.attach-list{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 10px}
.attach-chip{display:flex;align-items:center;gap:9px;max-width:100%;padding:5px 6px 5px 5px;border:1px solid #d6e4eb;border-radius:12px;background:#f7fbfd;font-size:.8rem;color:#33586c}
.attach-chip img{width:40px;height:40px;flex:0 0 auto;border-radius:8px;object-fit:cover;background:#e8f0f4}
.attach-chip.is-pending{padding:10px 12px;color:#5b7888;font-style:italic}
.attach-text{display:flex;flex-direction:column;min-width:0}
.attach-name{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.attach-meta{color:#5d7a8a;font-size:.72rem}
.attach-remove{width:26px;height:26px;flex:0 0 auto;padding:0;border:0;border-radius:50%;background:transparent;color:#5d7a8a;font-size:1.1rem;line-height:1;cursor:pointer}
.attach-remove:hover{background:#e3edf2;color:#23475b}
.attach-remove:focus-visible{outline:2px solid #2c7699}
.composer.is-drop{border-color:#2c7699;border-style:dashed;box-shadow:0 0 0 3px #2c769933}
.message-images{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.message-images img{max-width:180px;max-height:140px;border-radius:10px;border:1px solid #d6e4eb;object-fit:cover}
@media (max-width:600px){.attach-name{max-width:120px}.message-images img{max-width:120px;max-height:100px}}
.attach-chip.is-file .attach-icon{width:40px;height:40px;flex:0 0 auto;display:grid;place-items:center;border-radius:8px;background:#e5eef4;color:#2f5b74;font-size:.62rem;font-weight:800;letter-spacing:.04em}
.attach-chip.is-linked{border-style:dashed}

/* COPY BUTTONS (the founder 2026-09-28; public/chat-copy.js): top-right of every finished answer, and on every code block. Hover / focus on desktop,
   always on touch screens; the label shows only as "Copied" (or the fallback hint). */
.message-assistant.has-answer-copy{position:relative}
.answer-copy,.code-copy{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border:1px solid #d6e3e9;border-radius:8px;background:#fff;color:#3e6680;font:600 .72rem/1 "DM Sans","DM Sans Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;cursor:pointer;opacity:0;transition:opacity .15s,background .15s,color .15s}
.answer-copy{position:absolute;top:14px;right:14px}
.code-wrap{position:relative}
.code-wrap>pre{padding-top:38px}
.code-copy{position:absolute;top:6px;right:6px}
.message-assistant:hover .answer-copy,.code-wrap:hover .code-copy,.answer-copy:focus-visible,.code-copy:focus-visible,.is-copied,.is-failed{opacity:1}
@media (hover:none),(pointer:coarse){.answer-copy,.code-copy{opacity:1}}
.answer-copy svg,.code-copy svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.answer-copy:hover,.code-copy:hover{background:#eef5f9}
.answer-copy:focus-visible,.code-copy:focus-visible{outline:2px solid #2c7699;outline-offset:2px}
.copy-label{display:none}
.is-copied .copy-label,.is-failed .copy-label{display:inline}
.answer-copy.is-copied,.code-copy.is-copied{color:#1d6b45;border-color:#9fd3b5;background:#f1faf5}

/* JAMES REVISIONS: the quiet "Refined" / "Fixed" chip on an answer James improved after its first draft */
/* PARALLEL CHATS (P147 slot 2): the menu says which chats are answering and marks a finished one; a follow-up waiting its turn says Queued */
.chat-session-answering{margin-left:7px;color:#956b24;font-size:.72rem;font-weight:600;white-space:nowrap}.chat-session-new{display:inline-block;width:8px;height:8px;margin-left:7px;border-radius:50%;background:#1f6d95;vertical-align:middle}
.message.is-queued{opacity:.72}.queued-chip{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:999px;font-size:.7rem;font-weight:600;border:1px dashed currentColor;opacity:.8}
.style-chip{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:999px;font-size:.7rem;font-weight:600;letter-spacing:.02em;line-height:1.5;color:inherit;opacity:.78;border:1px solid color-mix(in srgb,currentColor 28%,transparent)}.style-chip a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.revised-chip{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:999px;font-size:.7rem;font-weight:600;letter-spacing:.02em;line-height:1.5;color:inherit;opacity:.72;border:1px solid color-mix(in srgb,currentColor 28%,transparent);vertical-align:1px;cursor:default}
.memory-chip{position:relative;display:inline-block;margin-left:8px;font-size:.7rem;font-weight:600;line-height:1.5} /* CHAT MEMORY CHIPS */
.memory-chip>summary{list-style:none;padding:1px 8px;border-radius:999px;border:1px solid #b9d3e2;color:#2f6f95;cursor:pointer;white-space:nowrap}
.memory-chip>summary::-webkit-details-marker{display:none}
.memory-chip[open]>summary{background:#eef5f9}
.memory-chip-body{position:absolute;z-index:6;top:calc(100% + 6px);left:0;width:min(300px,78vw);padding:10px 12px;border:1px solid #d6e3e9;border-radius:12px;background:#fff;box-shadow:0 12px 30px #17394f24;color:#35505f;font-size:.8rem;font-weight:500;line-height:1.45}
.memory-chip-body p{margin:0 0 6px}.memory-chip-body ul{margin:0 0 8px;padding-left:18px}.memory-chip-body li{margin:2px 0;overflow-wrap:anywhere}
.memory-chip-body a{color:#2f6f95;text-decoration:underline;text-underline-offset:2px}.memory-chip-manage{display:inline-block;font-weight:700}

/* the plus icon on New chat / New project (replaces the U+FF0B glyph, which some fonts lack: a tofu box) */
.plus-icon{display:inline-block;flex:none;vertical-align:-2px}

/* GENERATED MEDIA IN CHAT (chat-media.js, 2026-09-30): the player, then a Download link */
.message-prose .james-media { margin: 14px 0; display: grid; gap: 8px; justify-items: start; max-width: 100%; }
.message-prose .james-media img { display: block; max-width: min(100%, 640px); height: auto; border-radius: 12px; border: 1px solid var(--line); }
.message-prose .james-media video { display: block; width: min(100%, 640px); max-width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; }
.message-prose .james-media audio { width: min(100%, 480px); }
.message-prose .james-media-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.message-prose .james-media-btn { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); background: transparent; font: 600 .8rem/1 inherit; text-decoration: none; cursor: pointer; }
.message-prose .james-media-btn:hover { border-color: var(--blue); color: var(--blue); }
.message-prose .james-media-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.message-prose .james-media-pending { padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: .9rem; }

/* THE CREATE CHIP (app.html composer; the approved mockup v3) */
.create-wrap { position: relative; }
.create-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px solid color-mix(in srgb, var(--blue) 35%, var(--line)); border-radius: 99px; background: color-mix(in srgb, var(--blue) 10%, transparent); color: var(--blue); font: 600 .78rem/1 inherit; cursor: pointer; }
.create-chip b { font-weight: 700; }
.create-chip svg, .create-opt svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.create-chip.is-set { background: var(--blue); border-color: var(--blue); color: var(--paper); }
.create-chip:focus-visible, .create-opt:focus-visible, .create-routed-again:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.create-menu { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 20; width: min(320px, calc(100vw - 32px)); padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 14px 40px rgba(20, 40, 60, .18); display: grid; gap: 2px; }
.create-opt { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.create-opt svg { color: var(--blue); width: 18px; height: 18px; }
.create-opt:hover, .create-opt[aria-checked="true"] { background: color-mix(in srgb, var(--blue) 10%, transparent); }
.create-opt b { display: block; font-size: .86rem; }
.create-opt small { display: block; font-size: .74rem; color: var(--muted); }
.create-opt em { font-style: normal; font-size: .72rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.send-button.is-labelled { width: auto; padding: 0 16px 0 18px; display: inline-flex; flex-direction: row; align-items: center; gap: 6px; border-radius: 99px; white-space: nowrap; }
.send-button.is-labelled::before { content: attr(data-label); font: 700 .86rem/1 inherit; }
.send-button.is-labelled svg { width: 20px; height: 20px; }
.composer-bottom .composer-hint { min-width: 0; }
@media (max-width: 640px) { .create-wrap ~ .composer-hint { display: none; } } /* the chip takes the hint's room on a phone; Enter still sends */
.create-routed { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: .8rem; color: var(--muted); }
.create-routed-chip { padding: 2px 9px; border-radius: 99px; background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue); font-weight: 700; }
.create-routed-again { border: 0; background: none; padding: 0; color: var(--blue); font: 600 .8rem/1.4 inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
@media (max-width: 560px) { .create-chip > span:not([aria-hidden]) { font-size: 0; } .create-chip > span:not([aria-hidden]) b { font-size: .78rem; } }

/* SHARE GENERATED MEDIA (app.js + lib/media-share.mjs) */
.message-prose .james-share-box { display: grid; gap: 8px; margin: -4px 0 14px; padding: 12px; max-width: min(100%, 640px); border: 1px solid var(--line); border-radius: 12px; }
.message-prose .james-share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.message-prose .james-share-row input { flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; font: 500 .82rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); background: transparent; }
.message-prose .james-share-prompt { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--muted); }
.message-prose .james-share-box small { color: var(--muted); font-size: .76rem; }
.shared-page .james-media-share { display: none; } /* a shared conversation is read-only: Download only */
.age-note button{flex:0 0 auto;padding:6px 14px;border:1px solid #d9bf74;border-radius:99px;background:#fff;color:#735a25;font:inherit;font-weight:700;cursor:pointer}.age-note button:hover{background:#fff3cf}
:root[data-theme="dark"] .age-note button{border-color:#5a4a20;background:#1a1d21;color:#e9d9a6}
/* CITATIONS (the founder 2026-10-01): [n] markers as small superscript links; the trailing Sources list as site-name chips (markdown-format.js) */
.message-prose .cites{white-space:nowrap;margin-left:3px}
.message-prose sup.cite{font-size:.64em;line-height:1;vertical-align:.5em}.message-prose sup.cite+sup.cite{margin-left:2px}
.message-prose sup.cite>a,.message-prose sup.cite-plain{display:inline-block;min-width:1.5em;padding:.12em .36em;line-height:1.2;border-radius:6px;background:#e8f1f6;color:#2f6f96;text-decoration:none;font-weight:700;text-align:center}
.message-prose sup.cite>a:hover{background:#d5e7f1}
.answer-sources{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:16px 0 2px;padding-top:12px;border-top:1px solid #e3edf2}
.sources-label{font-size:.7rem;font-weight:700;color:#5f7381;text-transform:uppercase;letter-spacing:.05em;margin-right:2px}
.sources-toggle{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border:1px solid #d6e3e9;border-radius:99px;background:#f6fafc;color:#2f4f62;font:600 .76rem/1.2 "DM Sans","DM Sans Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer}
.sources-toggle::after{content:"▾";font-size:.7rem;transition:transform .15s}.sources-toggle[aria-expanded="true"]::after{transform:rotate(180deg)}
.sources-chips{display:flex;flex-wrap:wrap;gap:6px}.sources-chips[hidden]{display:none}
.source-chip{display:inline-flex;align-items:center;gap:6px;max-width:220px;padding:4px 11px 4px 5px;border:1px solid #d6e3e9;border-radius:99px;background:#fff;color:#2c4a5c;font:600 .76rem/1.2 "DM Sans","DM Sans Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
a.source-chip:hover{border-color:#a9c9da;background:#f3f9fc}
.source-n{display:inline-grid;place-items:center;flex:0 0 auto;min-width:18px;height:18px;padding:0 4px;border-radius:99px;background:#e8f1f6;color:#2f6f96;font-size:.64rem;font-weight:700}
:root[data-theme="dark"] .message-prose sup.cite>a,:root[data-theme="dark"] .message-prose sup.cite-plain,:root[data-theme="dark"] .source-n{background:#22303a;color:#9cc7e4}
:root[data-theme="dark"] .answer-sources{border-top-color:#2c3338}:root[data-theme="dark"] .sources-label{color:#9aa8b2}
:root[data-theme="dark"] .source-chip,:root[data-theme="dark"] .sources-toggle{border-color:#30383b;background:#16191e;color:#d7e2e8}:root[data-theme="dark"] a.source-chip:hover{border-color:#46545c;background:#1c2127}
.message-prose .answer-sources a.source-chip,.message-prose .answer-sources a.source-chip:hover{text-decoration:none}.message-prose sup.cite>a{text-decoration:none}
/* FOLLOW-UP CHIPS (the founder 2026-10-01): James's suggested next questions under a finished answer */
.answer-suggestions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0}
.suggestion-chip{max-width:100%;padding:8px 14px;border:1px solid #cfe0e9;border-radius:99px;background:#f6fafc;color:#24506a;font:600 .82rem/1.3 "DM Sans","DM Sans Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-align:left;cursor:pointer;transition:background .12s,border-color .12s}
.suggestion-chip:hover{background:#eaf3f8;border-color:#a9c9da}.suggestion-chip:focus-visible{outline:2px solid #2f6f96;outline-offset:2px}
:root[data-theme="dark"] .suggestion-chip{border-color:#34404a;background:#161b20;color:#cfe2ee}:root[data-theme="dark"] .suggestion-chip:hover{background:#1d252c;border-color:#4a5a66}:root[data-theme="dark"] .suggestion-chip:focus-visible{outline-color:#9cc7e4}
/* CHAT BUILD HANDOFF (the Master 10-10; SITE_CHAT_BUILD_HANDOFF): a site asked for in chat opens in Code; its raw files fold under "View code" */
.build-handoff{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin:14px 0 0;padding:14px 16px;border:1px solid #cfe0e9;border-radius:14px;background:#f6fafc}
.build-handoff-text{margin:0;flex:1 1 220px;color:#24506a;font:500 .92rem/1.4 "DM Sans","DM Sans Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.message-prose a.build-handoff-open,a.build-handoff-open{flex:0 0 auto;padding:10px 16px;border-radius:99px;background:#24506a;color:#fff;font:700 .9rem/1.2 "DM Sans","DM Sans Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-decoration:none;white-space:nowrap}
a.build-handoff-open:hover{background:#1b3f54}a.build-handoff-open:focus-visible{outline:2px solid #2f6f96;outline-offset:2px}
.build-handoff.is-offer{padding:10px 14px}.build-handoff.is-offer .build-handoff-text{font-weight:600}
.build-code{margin:10px 0 0}.build-code>summary{cursor:pointer;color:#4a6474;font:600 .85rem/1.4 "DM Sans","DM Sans Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
:root[data-theme="dark"] .build-handoff{border-color:#34404a;background:#161b20}:root[data-theme="dark"] .build-handoff-text{color:#cfe2ee}
:root[data-theme="dark"] a.build-handoff-open{background:#9cc7e4;color:#0f1418}:root[data-theme="dark"] a.build-handoff-open:hover{background:#b6d6eb}:root[data-theme="dark"] .build-code>summary{color:#a9bfcc}
/* THE HIT FLOOR on the chat page (row 15, P40; the /code rule's twin): on touch screens and phone widths every small chat control gets an invisible hit
   box of at least 44 x 44 px around it (a transparent ::after); nothing it shows changes. */
@media (pointer:coarse),(max-width:700px){
  :where(#chat-mode-link,.chat-header .mode-nav a,.chat-header .chat-brand,#new-chat,#account-link,#share-chat,#age-note-ok,#chat-attach,#create-chip,#chat-footnote a,#access-link){position:relative}
  :where(#chat-mode-link,.chat-header .mode-nav a,.chat-header .chat-brand,#new-chat,#account-link,#share-chat,#age-note-ok,#chat-attach,#create-chip,#chat-footnote a,#access-link)::after{content:'';position:absolute;top:min(0px,calc(50% - 22px));bottom:min(0px,calc(50% - 22px));left:min(0px,calc(50% - 22px));right:min(0px,calc(50% - 22px))}
}
/* CHAT CONTROLS (the founder's basics audit 10-04): Stop while answering, a Stopped mark, the error card (Retry / Edit), Edit on a question, Regenerate on the newest answer */
.send-button .send-stop{display:none}.send-button.is-stop .send-arrow{display:none}.send-button.is-stop .send-stop{display:block}.send-button .send-stop rect{fill:currentColor;stroke:none}
.send-button.is-stop:disabled{background:var(--deep);color:white;opacity:.6}
.stopped-chip{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:999px;font-size:.7rem;font-weight:600;color:#7a5b1f;background:#fbf3e2;border:1px solid #ecd9ae}
.message.is-stopped-empty .message-content{color:var(--answer-muted);font-style:italic}
.message-error{border:1px solid #f0d2cf;background:#fdf6f5;border-radius:16px;padding:14px 18px}
.message-error .message-content{color:#7c3a33;margin:6px 0 10px}
.message-error-actions{display:flex;gap:8px;flex-wrap:wrap}
.message-error-actions button,.message-edit-actions button{padding:7px 14px;border-radius:999px;font:600 .82rem/1 "DM Sans","DM Sans Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer}
.retry-button,.edit-save{border:1px solid var(--deep);background:var(--deep);color:#fff}
.error-edit-button,.edit-cancel{border:1px solid #cfdde6;background:#fff;color:var(--ink)}
.retry-button:hover,.edit-save:hover{background:#326e91}.error-edit-button:hover,.edit-cancel:hover{background:#eef5f9}
.message-user{position:relative;min-width:min(8.5rem,82%)} /* a short message ("/K3") was narrower than its Edit button: the label wrapped ("Edi / t") and covered "You" */
.turn-tool{white-space:nowrap}
.turn-tool{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border:1px solid #d6e3e9;border-radius:8px;background:#fff;color:#3e6680;font:600 .72rem/1 "DM Sans","DM Sans Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer;opacity:0;transition:opacity .15s}
.turn-tool svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.turn-tool:hover{background:#eef5f9}.turn-tool:focus-visible{outline:2px solid #2c7699;outline-offset:2px;opacity:1}.turn-tool:disabled{cursor:default;opacity:0!important}
.edit-button{position:absolute;top:-12px;right:10px}
.regen-button{margin-top:10px}
.message-user:hover .edit-button,.message-assistant:hover .regen-button{opacity:1}
@media (hover:none),(pointer:coarse){.turn-tool{opacity:1}}
.message-edit textarea{display:block;width:min(560px,70vw);max-width:100%;min-height:64px;padding:10px 12px;border:1px solid #bcd3e1;border-radius:12px;background:#fff;color:var(--ink);font:inherit;line-height:1.5;resize:vertical}
.message-edit-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}
.error-details{margin-top:10px;font-size:.78rem;color:var(--answer-muted)}.error-details summary{cursor:pointer;width:max-content}.error-details code{display:block;margin-top:6px;white-space:pre-wrap;overflow-wrap:anywhere}
/* SEARCH ACROSS CHATS AND PROJECTS (#16) */
.search-box{display:block;width:calc(100% - 16px);margin:6px 8px 10px;padding:9px 12px;border:1px solid #cfdde6;border-radius:10px;background:#fff;color:var(--ink);font:500 .9rem/1.3 "DM Sans","DM Sans Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.search-box:focus{outline:2px solid #2c7699;outline-offset:1px}
.search-results{display:flex;flex-direction:column;gap:4px;padding:0 6px 10px;overflow:auto}
.search-heading{margin:10px 6px 2px;font:700 .7rem/1 "DM Sans","DM Sans Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--answer-muted)}
.search-note{margin:10px 8px;color:var(--answer-muted);font-size:.85rem}
.search-result{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;padding:9px 10px;border:0;border-radius:10px;background:transparent;color:var(--ink);text-align:left;cursor:pointer}
.search-result:hover,.search-result:focus-visible{background:#eef5f9;outline:none}
.search-title{font-size:.88rem;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.search-meta{font-size:.72rem;color:var(--answer-muted)}
.search-snippet{font-size:.8rem;line-height:1.4;color:var(--answer);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.search-snippet mark{background:#fde9a8;color:inherit;border-radius:3px;padding:0 1px}
/* IMPORT CHATS (ChatGPT / Claude exports): the sidebar link and the dialog (it reuses the share dialog's look) */
.chat-import-link{display:block;margin:-12px 9px 16px;padding:0;border:0;background:none;color:#2f7298;font:600 .76rem/1.4 "DM Sans","DM Sans Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.chat-import-link:hover{color:#174f6f}
.import-how{margin:-8px 0 22px;padding:12px 14px 12px 30px;border-radius:10px;background:#f4f9fb;color:#3d5a6c;font-size:.84rem;line-height:1.7}
.import-actions{display:flex;flex-wrap:wrap;gap:10px}
.share-primary.import-pick{background:#fff;color:#2b596f;box-shadow:inset 0 0 0 1px #b9d0dc}
.share-primary.import-pick:hover:not(:disabled){background:#eef5f8}
.import-progress{display:block;width:100%;height:8px;margin:16px 0 0;accent-color:#2b596f}
/* THE HIT FLOOR, part 2 (P162, Code QA basics #23, 10-04): at phone width "Sign in" and Share sat 5 px apart, so Share's 44 px hit box covered the
   right edge of Sign in's. 10 px between the header actions keeps every 34 px control's own 44 px box. */
@media(max-width:700px){.chat-header-actions{gap:10px}}
/* #22 (2026-10-04): the opt-in 'Notify me when it’s done' under a running answer */
.message-working .finish-notify-offer{display:inline-flex;margin:8px 0 2px;padding:4px 12px;border:1px solid var(--line,#c9d8e2);border-radius:999px;background:transparent;color:var(--blue,#315e76);font-size:.74rem;font-weight:600;cursor:pointer}
.message-working .finish-notify-offer:disabled{opacity:.6;cursor:default}
/* LONG CODE FOLDS (2026-10-04): a code block over 30 lines shows its first ~22 lines, faded, and "Show all N lines" (chat-copy.js foldLong); Copy copies all */
.code-wrap.is-folded>pre{max-height:calc(22 * 1.55 * .84rem + 55px);overflow:hidden;-webkit-mask-image:linear-gradient(#000 70%,transparent);mask-image:linear-gradient(#000 70%,transparent)}
.code-fold{display:inline-flex;align-items:center;min-height:44px;margin:-6px 0 6px;padding:0 4px;border:0;background:transparent;color:var(--blue,#2c6f95);font:600 .82rem/1 "DM Sans","DM Sans Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer}
.code-fold:hover{text-decoration:underline}.code-fold:focus-visible{outline:2px solid #2c7699;outline-offset:2px;border-radius:6px}
/* P8 CHAT SESSIONS (row 110): the signed-out prompt in the sidebar spot (date groups reuse .chat-sessions-group) */
.chat-sessions-signin{margin:4px 9px;padding:12px;border:1px solid #d7e4eb;border-radius:10px;background:#fff;color:#3c5b6d;font-size:.82rem;line-height:1.45}
.chat-sessions-signin a{color:#2f779a;font-weight:700}
:root[data-theme="dark"] .chat-sessions-signin{background:#151a1f;border-color:#2f363d;color:#c9d6de}:root[data-theme="dark"] .chat-sessions-signin a{color:#8cc4e3}
@media(max-width:440px){body .chat-header .mode-nav{gap:0;padding:3px}body .chat-header .mode-nav a{min-width:0;padding:5px 5px;font-size:.72rem}body .chat-header .chat-brand img{width:70px}body .chat-header .new-chat,body .chat-header #new-chat{flex-shrink:0}}@media(max-width:350px){body .chat-header .chat-brand img{width:42px}body .chat-header .mode-nav a{padding:5px 4px}} /* MODELS ON EVERY PAGE (2026-10-05): Chat, Code, Models + New chat + the header buttons fit 320-440px phones with no overlap */
/* THE LEARNING LOOP: the EU / UK question (public/improve-consent.js) */
.improve-consent{position:fixed;z-index:60;left:16px;right:16px;bottom:16px;max-width:460px;margin:0 auto;padding:16px 18px;border:1px solid #d6e3ea;border-radius:14px;background:#fff;box-shadow:0 14px 40px #24516c2e;color:#22394a;font-size:.86rem}
.improve-consent h2{margin:0 0 6px;font-size:1rem}.improve-consent p{margin:0 0 12px;line-height:1.5;color:#4b6575}
.improve-consent-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.improve-consent-actions button{padding:8px 14px;border-radius:99px;border:1px solid #cfe0e9;background:#f7fafb;color:#22394a;font:inherit;font-weight:700;cursor:pointer}
.improve-consent-actions .improve-consent-yes{background:#287eaa;border-color:#287eaa;color:#fff}
.improve-consent-error{margin:8px 0 0!important;color:#9b493e!important}
.improve-consent.is-strip{position:static;z-index:auto;max-width:none;margin:0 0 8px;padding:10px 14px;box-shadow:none;border-radius:12px;display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px}
.improve-consent.is-strip{text-align:left}.improve-consent.is-strip h2{flex:0 0 100%;margin:0;font-size:.9rem}.improve-consent.is-strip p{flex:1 1 320px;margin:0;font-size:.82rem}
.improve-consent.is-strip .improve-consent-actions{margin-left:auto}.improve-consent.is-strip .improve-consent-actions button{padding:6px 12px}
.improve-consent.is-strip .improve-consent-error{flex-basis:100%}
.improve-consent a.improve-consent-more{color:#287eaa;font-weight:600;white-space:nowrap}

/* THE MODEL PIN CHIP (SITE_CHAT_PIN_CHIP): "Using K3 · type /TAO1 to go back", just above the composer */
.pin-chip{width:fit-content;max-width:calc(100% - 8px);box-sizing:border-box;margin:0 0 6px 4px;padding:3px 10px;border:1px solid #c9d6e0;border-radius:99px;background:#eef3f7;color:#2f4a5e;font-size:12.5px;line-height:1.5}
.pin-chip[hidden]{display:none}
.pin-chip code{font:inherit;font-weight:700}
:root[data-theme="dark"] .pin-chip{border-color:#34485a;background:#1b2630;color:#c6d6e3}

/* EXPLODE ANYTHING IN CHAT (SITE_EXPLODE_CARD): the card under an answer about a physical object; the whole card opens the atlas in a new tab */
button.explode-card,button.pulse-card-btn,button.quiz-card-btn,div.backtest-card,a.explode-card,.message-prose a.explode-card{display:flex;align-items:center;gap:14px;margin:14px 0 0;padding:10px 14px 10px 10px;max-width:520px;border:1px solid #cfe0e9;border-radius:14px;background:#f6fafc;color:#24506a;text-decoration:none}
a.explode-card:hover,button.explode-card:hover,button.pulse-card-btn:hover,button.quiz-card-btn:hover{border-color:#9fc0d3;background:#eef5f9}a.explode-card:focus-visible,button.pulse-card-btn:focus-visible,button.quiz-card-btn:focus-visible{outline:2px solid #2f6f96;outline-offset:2px}
.explode-card-thumb{flex:0 0 auto;width:96px;height:64px;object-fit:cover;border-radius:9px;background:#e3edf3}
.explode-card-body{display:flex;flex-direction:column;gap:3px;min-width:0}
.explode-card-title{font:700 .95rem/1.3 "DM Sans","DM Sans Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#1d4560}
.explode-card-sub{font:500 .8rem/1.35 "DM Sans","DM Sans Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#5b7b8f}
:root[data-theme="dark"] a.explode-card,:root[data-theme="dark"] button.explode-card,:root[data-theme="dark"] button.pulse-card-btn,:root[data-theme="dark"] button.quiz-card-btn,:root[data-theme="dark"] div.backtest-card{border-color:#34404a;background:#161b20;color:#cfe2ee}:root[data-theme="dark"] a.explode-card:hover,:root[data-theme="dark"] button.explode-card:hover,:root[data-theme="dark"] button.pulse-card-btn:hover,:root[data-theme="dark"] button.quiz-card-btn:hover{border-color:#4a6274;background:#1b2229}
:root[data-theme="dark"] .explode-card-title{color:#dbeaf3}:root[data-theme="dark"] .explode-card-sub{color:#93adbd}:root[data-theme="dark"] .explode-card-thumb{background:#202a32}

/* XAGRAM IN CHAT (SITE_XAGRAM_CARD): "See <Name>'s personality from their X posts → xagram.me" under a who-is answer; opens in a new tab */
button.xagram-card,a.xagram-card,.message-prose a.xagram-card{width:100%;text-align:left;font:inherit;cursor:pointer;display:flex;align-items:center;gap:12px;margin:12px 0 0;padding:11px 14px;max-width:520px;border:1px solid #d9d3ea;border-radius:14px;background:#f8f6fc;color:#3d2f63;text-decoration:none}
button.xagram-card:hover:not(:disabled){border-color:#b9acd9;background:#f2eefa}button.xagram-card:focus-visible{outline:2px solid #6a55a8;outline-offset:2px}button.xagram-card:disabled{cursor:default;opacity:.6}
.xagram-card-body{display:flex;flex-direction:column;gap:3px;min-width:0}
.xagram-card-title{font:700 .93rem/1.3 "DM Sans","DM Sans Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#33275a}
.xagram-card-sub{font:500 .8rem/1.35 "DM Sans","DM Sans Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#6b6188}
:root[data-theme="dark"] button.xagram-card{border-color:#3d3652;background:#19171f;color:#ddd5f2}:root[data-theme="dark"] button.xagram-card:hover:not(:disabled){border-color:#574d78;background:#201d29}
:root[data-theme="dark"] .xagram-card-title{color:#e6defa}:root[data-theme="dark"] .xagram-card-sub{color:#a59cc2}

/* THE PROFILE CARD (a tao1-profile block in a TAO-1 answer: the xagram read in chat) */
.profile-card{margin:14px 0;padding:14px 16px;max-width:560px;border:1px solid #d9d3ea;border-radius:14px;background:#faf9fd}
.profile-head{margin:0 0 10px;font-size:.95rem}.profile-head strong{color:#33275a}.profile-head span{color:#6b6188;font-size:.85rem}
.profile-bars{display:grid;gap:7px;margin:0 0 10px}
.profile-bar{display:grid;grid-template-columns:minmax(120px,9.5rem) 1fr 2.2rem;align-items:center;gap:10px;font-size:.84rem;color:#40355f}
.profile-bar-track{height:8px;border-radius:99px;background:#e9e4f4;overflow:hidden}.profile-bar-fill{display:block;height:100%;border-radius:99px;background:#7a64c0}
.profile-bar-val{text-align:right;font-variant-numeric:tabular-nums;color:#6b6188}
.profile-enneagram{margin:0 0 8px;font-size:.88rem;color:#40355f}.profile-k{color:#6b6188}
.profile-traits{margin:0 0 8px;padding:0;list-style:none;display:grid;gap:4px;font-size:.85rem;color:#40355f}.profile-traits span{color:#6b6188}
.profile-note{margin:6px 0 0;font-size:.78rem;color:#7d7499}.profile-pending{color:#7d7499;font-size:.85rem;font-style:italic}
.profile-bar-label{white-space:nowrap}.message-prose ul.profile-traits{padding-left:0;margin-left:0}.message-prose .profile-traits li{margin:0;padding:0}
@media (max-width:520px){.profile-bar{grid-template-columns:auto 1fr 1.8rem;gap:8px;font-size:.78rem}}
:root[data-theme="dark"] .profile-card{border-color:#3d3652;background:#17151d}:root[data-theme="dark"] .profile-head strong{color:#e6defa}
:root[data-theme="dark"] .profile-head span,:root[data-theme="dark"] .profile-bar-val,:root[data-theme="dark"] .profile-k,:root[data-theme="dark"] .profile-traits span,:root[data-theme="dark"] .profile-note,:root[data-theme="dark"] .profile-pending{color:#a59cc2}
:root[data-theme="dark"] .profile-bar,:root[data-theme="dark"] .profile-enneagram,:root[data-theme="dark"] .profile-traits{color:#d6cdee}
:root[data-theme="dark"] .profile-bar-track{background:#2a2538}:root[data-theme="dark"] .profile-bar-fill{background:#9b86e0}

/* THE HEADER STAYS (Hunter 4 10-12: in any real conversation the Chat | Code | About | + header scrolled away -- the window scrolls; the founder wants it always
   visible): sticky at the top, a frosted fill across the full width, above the conversation; the sessions panel (top 92 / 74 px) still lines up under it */
.chat-header{position:sticky;top:0;z-index:20;background:#f6f9fbe6;-webkit-backdrop-filter:saturate(1.2) blur(10px);backdrop-filter:saturate(1.2) blur(10px);box-shadow:0 0 0 100vmax #f6f9fbe6;clip-path:inset(0 -100vmax)}
:root[data-theme="dark"] .chat-header{background:#0f1418e6;box-shadow:0 0 0 100vmax #0f1418e6}
/* THE ATLAS IN CHAT (SITE_EXPLODE_INLINE): the card is a button; the atlas unfolds under it */
button.explode-card,button.pulse-card-btn,button.quiz-card-btn{width:100%;font:inherit;text-align:left;cursor:pointer}button.explode-card.is-loading{opacity:.7;cursor:progress}
.explode-atlas{margin:10px 0 0;max-width:620px;padding:14px;border:1px solid #cfe0e9;border-radius:14px;background:#fbfdfe}
.explode-atlas-figure{position:relative;margin:0 0 10px}.explode-atlas-img{display:block;width:100%;height:auto;max-height:440px;object-fit:contain;border-radius:10px;background:#1e2329}
.explode-atlas-flip{position:absolute;right:8px;bottom:8px;padding:5px 10px;border:1px solid #cfe0e9;border-radius:99px;background:#ffffffe6;color:#24506a;font:600 .78rem/1.2 "DM Sans","DM Sans Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer}
.explode-atlas-title{margin:0 0 6px;font-size:1rem;color:#1d4560}.explode-atlas-summary{margin:0 0 10px;font-size:.9rem;line-height:1.5;color:#3f5f73}
.explode-atlas-systems{display:grid;gap:4px;margin:0 0 10px}.explode-atlas-system summary{cursor:pointer;font-weight:600;font-size:.88rem;color:#24506a;padding:4px 0}
.explode-atlas-system ul{margin:4px 0 8px;padding-left:18px;font-size:.84rem;line-height:1.45;color:#3f5f73}.explode-atlas-system li strong{color:#1d4560}
.explode-atlas-sources{margin:0 0 8px;font-size:.8rem;color:#5b7b8f}.explode-atlas-sources a{color:#2f6f96}
.explode-atlas-more{font-weight:700;font-size:.86rem;color:#24506a}
:root[data-theme="dark"] .explode-atlas{border-color:#34404a;background:#141a1f}:root[data-theme="dark"] .explode-atlas-title,:root[data-theme="dark"] .explode-atlas-system li strong{color:#dbeaf3}
:root[data-theme="dark"] .explode-atlas-summary,:root[data-theme="dark"] .explode-atlas-system ul{color:#a9bfcc}:root[data-theme="dark"] .explode-atlas-system summary,:root[data-theme="dark"] .explode-atlas-more{color:#9fc8e2}
:root[data-theme="dark"] .explode-atlas-flip{background:#161b20e6;border-color:#34404a;color:#cfe2ee}:root[data-theme="dark"] .explode-atlas-sources a{color:#8cc4e6}
@media(max-width:700px){.mode-nav a.mode-api{display:none}} /* API NEXT TO ABOUT (the founder 10-12, the /api page): desktop only in the Chat and Code headers; phones reach it from /about, /docs and /pricing */

/* RUMORED (the Master 10-12; chatq's rumored-device atlases): a small amber pill before the explode card's title and the inline atlas title */
.explode-rumored{display:inline-block;vertical-align:.1em;padding:1px 7px;border-radius:99px;background:#fdf1d6;color:#7a5200;border:1px solid #f0d48f;font-size:.68rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;line-height:1.5}
:root[data-theme="dark"] .explode-rumored{background:#3a2c0c;color:#f3cf7a;border-color:#6b5420}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .explode-rumored{background:#3a2c0c;color:#f3cf7a;border-color:#6b5420}}
/* EXPLODE, BUILD MODE (SITE_EXPLODE_BUILD): the "(new)" card while it builds -- a soft pulse on the thumbnail-less card, the stage line updating; the cost line under the atlas */
.explode-card.is-build .explode-card-title{color:inherit}.explode-card.is-building{cursor:progress}.explode-card.is-building .explode-card-sub::before{content:'';display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:#e3ac30;vertical-align:.08em;animation:explode-pulse 1.2s ease-in-out infinite}
@keyframes explode-pulse{0%,100%{opacity:.35}50%{opacity:1}}@media (prefers-reduced-motion: reduce){.explode-card.is-building .explode-card-sub::before{animation:none}}
.explode-atlas-cost{margin:8px 0 0;color:#57758a;font-size:.8rem}:root[data-theme="dark"] .explode-atlas-cost{color:#9db3c1}@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .explode-atlas-cost{color:#9db3c1}}
.chat-sessions-note:empty{display:none} /* the founder 10-12: the signed-in sidebar has no "Saved to your TAO-1 account." line; the note shows only when it has something to say (an error) */

/* EXPLODE BUILD PROGRESS PANEL (the founder 10-13: nothing visible for 7+ min): the job's stage line + elapsed, a moving bar, the trail of stages seen */
.explode-progress{max-width:520px;margin:8px 0 0;padding:10px 14px;border:1px solid #cfe0e9;border-radius:12px;background:#f4f9fc;color:#1d4560;font:500 .9rem/1.4 "DM Sans","DM Sans Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.explode-progress-line{font-weight:700}
.explode-progress-bar{height:4px;margin:8px 0 6px;border-radius:4px;background:#d9e8f1;overflow:hidden}.explode-progress-bar i{display:block;height:100%;width:38%;border-radius:4px;background:#2f6f96;animation:explode-slide 1.4s ease-in-out infinite}
@keyframes explode-slide{0%{transform:translateX(-100%)}100%{transform:translateX(280%)}}
.explode-progress-trail{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px;font-size:.82rem;color:#5b7b8f}.explode-progress-trail li::before{content:'\2713\00a0';color:#2f6f96}.explode-progress-trail li.is-current{color:#1d4560;font-weight:600}.explode-progress-trail li.is-current::before{content:'\25CF\00a0';color:#2f6f96}
.explode-progress.is-narrow .explode-progress-bar,.explode-progress.is-narrow .explode-progress-trail{display:none}
:root[data-theme="dark"] .explode-progress{border-color:#34404a;background:#161b20;color:#dbeaf3}:root[data-theme="dark"] .explode-progress-bar{background:#26333c}:root[data-theme="dark"] .explode-progress-bar i{background:#7fb3d1}:root[data-theme="dark"] .explode-progress-trail{color:#93adbd}:root[data-theme="dark"] .explode-progress-trail li.is-current{color:#dbeaf3}
@media (prefers-reduced-motion: reduce){.explode-progress-bar i{animation:none;width:100%;opacity:.5}}
/* THE SLIM STRIP (Master 10-13): the consent strip takes one tight row on a desktop (title, words, buttons); on a phone the words clamp to two lines until tapped */
.improve-consent.is-strip{padding:7px 12px;gap:2px 12px;align-items:center}
.improve-consent.is-strip h2{flex:0 0 auto;font-size:.82rem;white-space:nowrap}
.improve-consent.is-strip p{flex:1 1 260px;font-size:.74rem;line-height:1.35}
.improve-consent.is-strip .improve-consent-actions button{padding:4px 11px;font-size:.8rem}
@media(max-width:700px){.improve-consent.is-strip h2{flex:0 0 100%}.improve-consent.is-strip p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;cursor:pointer}.improve-consent.is-strip p.is-open{-webkit-line-clamp:unset;display:block}.improve-consent.is-strip .improve-consent-actions{flex:0 0 100%;justify-content:flex-end}}

.improve-consent.is-strip .improve-consent-more{margin-right:auto;font-size:.78rem;align-self:center}
@media(max-width:700px){.improve-consent.is-strip .improve-consent-actions{flex-wrap:wrap;gap:4px 8px;align-items:center;justify-content:flex-end}.improve-consent.is-strip .improve-consent-more{flex:0 0 100%;margin:0;font-size:.76rem}.improve-consent.is-strip .improve-consent-actions button{padding:5px 11px;font-size:.78rem;white-space:nowrap}}
.improve-consent.is-strip.is-narrow h2{flex:0 0 100%}.improve-consent.is-strip.is-narrow p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;cursor:pointer}.improve-consent.is-strip.is-narrow p.is-open{-webkit-line-clamp:unset;display:block}
.improve-consent.is-strip.is-narrow .improve-consent-actions{flex:0 0 100%;flex-wrap:wrap;gap:4px 8px;align-items:center;justify-content:flex-end}.improve-consent.is-strip.is-narrow .improve-consent-more{flex:0 0 100%;margin:0;font-size:.76rem}.improve-consent.is-strip.is-narrow .improve-consent-actions button{padding:5px 11px;font-size:.78rem;white-space:nowrap}
.improve-consent.is-strip.is-narrow .improve-consent-actions{flex:0 0 100%;flex-wrap:nowrap}.improve-consent.is-strip.is-narrow .improve-consent-more{flex:0 0 auto;margin-right:auto;white-space:nowrap}
.improve-consent.is-strip.is-narrow.is-tight .improve-consent-actions{flex-wrap:wrap}.improve-consent.is-strip.is-narrow.is-tight .improve-consent-more{flex:0 0 100%}

/* BACKTEST IDEAS CARD (SITE_BACKTEST_CARD): three rule links under a stock/ETF answer, each opens Backtest Lab in a new tab */
/* the Backtest card is the same shell as Explode / Pulse / Quiz (div.backtest-card is in the shared rules above; its body, title and sub are the Explode classes); it stays a group of three idea buttons, so the container is a div, not a button, and the tile sits at the top */
div.backtest-card{align-items:flex-start;cursor:default}
.backtest-card-list{display:flex;flex-direction:column;gap:6px;margin-top:6px}
button.backtest-card-idea{width:100%;text-align:left;cursor:pointer;display:block;padding:8px 11px;border:1px solid #c9d8e1;border-radius:10px;background:#fff;color:#2c5f86;text-decoration:none;font:500 .88rem/1.35 "DM Sans","DM Sans Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button.backtest-card-idea:hover{border-color:#8fb0c6;background:#eef5f9}button.backtest-card-idea:focus-visible{outline:2px solid #3e749e;outline-offset:2px}
:root[data-theme="dark"] button.backtest-card-idea{border-color:#2f4756;background:#192a35;color:#8fc0e4}:root[data-theme="dark"] button.backtest-card-idea:hover{border-color:#4d7088;background:#1e3340}

/* VIDEO ATTACHMENTS (F0130): the upload progress bar in the composer chip and the thumbnail row in the sent message */
.attach-chip.is-video .attach-progress{display:block;width:140px;height:6px;margin-top:4px;accent-color:#3e749e}
.message-videos img{max-width:140px;max-height:90px;border-radius:8px;object-fit:cover}
.message-videos .attach-icon{display:inline-block;padding:6px 10px;border:1px solid #c9d8e1;border-radius:8px;font-size:.8rem}
/* GALLERY IN THE CHAT HEADER (the founder GO 10-15): one more link in the mode nav, so phones tighten the links; from 400 px down About gives way (the footer has it) so "+" and the account button never collide */
@media(max-width:440px){body .chat-header .mode-nav a{padding:5px 3px}}
@media(max-width:400px){body .chat-header .mode-nav a[href="/about"]{display:none}}
@media(max-width:1100px){body .chat-header .new-chat{width:34px;height:34px;justify-content:center;margin-left:0;padding:0;border-radius:9px}body .chat-header .new-chat .button-label{display:none}} /* the "New chat" label gives way to the "+" alone below 1100 px: the Gallery link took its room (also F0170's overlap with the account button) */

/* THE SIGNED-IN HEADER ON TABLETS (Master 10-15, F0170; 700-1100 px): with the Gallery link the chat header overflowed (Credits, Your account, Share on top of Chat/Code/Gallery/About/API); tighter gaps, API off, Share and New chat as icons, and a signed-in account as a person icon under 900 px (its aria-label keeps the name) */
@media(min-width:701px) and (max-width:1100px){.chat-header{gap:10px;padding-left:20px;padding-right:20px}.chat-header-left{gap:12px}.chat-header-actions{gap:8px}body .chat-header .mode-nav a{min-width:0;padding:6px 10px}body .chat-header .mode-nav a.mode-api{display:none}.chat-brand img{width:112px}.share-chat{width:34px;height:34px;justify-content:center;margin-left:0;padding:0;border-radius:9px}.share-chat .button-label{display:none}.new-chat{margin-left:0}}
@media(min-width:701px) and (max-width:900px){body .chat-header .account-link[data-signed-in]{font-size:0;width:40px;height:40px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:99px}body .chat-header .account-link[data-signed-in] span{display:none}body .chat-header .account-link[data-signed-in]::before{content:'';width:20px;height:20px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7z'/%3E%3C/svg%3E") center/contain no-repeat}}
/* THE REDESIGN HANDOFF CARD (dark flag): "Opening in Code…" with a Stay here button */
.build-handoff.is-opening .build-handoff-text{font-weight:700}.build-handoff-stay{flex:0 0 auto;padding:9px 14px;border:1px solid #bcd6e3;border-radius:99px;background:transparent;color:#24506a;font:600 .85rem/1.2 "DM Sans","DM Sans Fallback",sans-serif;cursor:pointer}
:root[data-theme="dark"] .build-handoff-stay{border-color:#36505f;color:#cfe0e8}
/* THE HEADER OF AN ACCOUNT ON A TEAM (the founder's): Gallery + the Team button overflowed the chat header at 768 and 1280 px; "New chat" is the "+" alone up to 1400 px, and Team is its icon alone under 1000 px */
@media(min-width:1101px) and (max-width:1400px){body .chat-header .new-chat{width:34px;height:34px;justify-content:center;margin-left:0;padding:0;border-radius:9px}body .chat-header .new-chat .button-label{display:none}}
@media(max-width:1000px){body .chat-header .team-open span{display:none}body .chat-header .team-open{width:34px;height:34px;padding:0;justify-content:center;gap:0}}

/* OWNERSHIP QUESTION on the redesign handoff card: "Is this your website?" Yes / No (the page's own photos are used only after an explicit Yes) */
.build-handoff-own{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex-basis:100%;margin-top:8px}.build-handoff-own-q{font-weight:700;font-size:.88rem}.build-handoff-own-btn{padding:8px 13px;border:1px solid #bcd6e3;border-radius:99px;background:transparent;color:#24506a;font:600 .85rem/1.2 "DM Sans","DM Sans Fallback",sans-serif;cursor:pointer}.build-handoff-own-btn:first-of-type{background:#24506a;color:#fff;border-color:#24506a}.build-handoff-own-note{font-size:.85rem;color:#4f6d7d}
:root[data-theme="dark"] .build-handoff-own-btn{border-color:#36505f;color:#cfe0e8}:root[data-theme="dark"] .build-handoff-own-btn:first-of-type{background:#9cc7e4;color:#0f1418;border-color:#9cc7e4}:root[data-theme="dark"] .build-handoff-own-note{color:#a9bcc7}

/* REPORT an answer (F0389): a quiet text button at the bottom right of every assistant answer, always visible (touch has no hover), 44px tall target on touch */
.message-assistant.has-answer-copy{padding-bottom:30px}.answer-report{position:absolute;bottom:6px;right:14px;border:0;background:none;padding:6px 4px;min-height:28px;color:#57758a;font:600 .75rem/1 "DM Sans","DM Sans Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;text-decoration:underline;cursor:pointer}.answer-report:focus-visible{outline:2px solid #3e6680;outline-offset:2px}@media (pointer:coarse){.answer-report{min-height:44px;padding:12px 8px;bottom:0}}
/* THE LARGE PAIR (Master 10-18): two big pictures are the card's main content */
.explode-card-wrap{display:flex;flex-direction:column;gap:8px;margin:10px 0;max-width:640px}.explode-card-wrap>.explode-card{margin:0;max-width:none;width:100%}
.explode-pics{display:grid;grid-template-columns:1fr 1fr;gap:10px}.explode-pics[data-n="1"]{grid-template-columns:minmax(0,70%)}
.explode-pic{position:relative;display:block;padding:0;border:1px solid #dce7ec;border-radius:14px;background:#e3edf3;overflow:hidden;cursor:zoom-in;aspect-ratio:4/3;min-width:0}.explode-pic:focus-visible{outline:2px solid #2f6f95;outline-offset:2px}
.explode-pic-img{display:block;width:100%;height:100%;object-fit:cover}.explode-pic-cap{position:absolute;left:8px;bottom:8px;padding:3px 9px;border-radius:99px;background:rgba(18,32,42,.72);color:#fff;font:600 .72rem/1.2 "DM Sans","DM Sans Fallback",-apple-system,sans-serif;letter-spacing:.02em}
@media (max-width:600px){.explode-pics{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;gap:8px;padding-bottom:4px}.explode-pic{flex:0 0 86%;scroll-snap-align:start}.explode-pics[data-n="1"] .explode-pic{flex-basis:100%}}
.explode-lightbox{border:0;padding:0;background:#0f1a22;color:#fff;border-radius:14px;max-width:min(96vw,1200px);max-height:94vh;overflow:hidden}.explode-lightbox::backdrop{background:rgba(8,14,20,.78)}
.explode-lightbox-img{display:block;max-width:min(96vw,1200px);max-height:calc(94vh - 56px);width:auto;height:auto;margin:0 auto;object-fit:contain}.explode-lightbox-bar{display:flex;align-items:center;gap:10px;padding:10px 14px;font:600 .85rem/1.2 "DM Sans","DM Sans Fallback",-apple-system,sans-serif}
.explode-lightbox-cap{flex:1 1 auto}.explode-lightbox-tabs{display:inline-flex;gap:6px}.explode-lightbox-tab,.explode-lightbox-close{font:600 .8rem/1 "DM Sans","DM Sans Fallback",-apple-system,sans-serif;padding:8px 12px;border-radius:99px;border:1px solid rgba(255,255,255,.35);background:transparent;color:#fff;cursor:pointer}.explode-lightbox-tab[aria-pressed="true"]{background:#fff;color:#12202a}
:root[data-theme="dark"] .explode-pic{border-color:#2a3944;background:#202a32}
.explode-atlas-rumor{margin:2px 0 8px;font:600 .8rem/1.3 "DM Sans","DM Sans Fallback",-apple-system,sans-serif;color:#9a5b00}:root[data-theme="dark"] .explode-atlas-rumor{color:#e0b36a}

/* C9: the file chip's "Keep attached" toggle and the quiet history chip of a file that was sent with an earlier message only */
.attach-pin{min-height:44px;margin-left:6px;padding:0 10px;border:1px solid #cfdde4;border-radius:8px;background:#fff;color:#2d5d7c;font:inherit;font-size:.72rem;font-weight:700;cursor:pointer;white-space:nowrap}
.attach-pin[aria-pressed="true"]{background:#2d5d7c;border-color:#2d5d7c;color:#fff}
.attach-chip.is-history{opacity:.72}
:root[data-theme="dark"] .attach-pin{background:#16232b;border-color:#36505f;color:#cfe2ee}
:root[data-theme="dark"] .attach-pin[aria-pressed="true"]{background:#cfe2ee;border-color:#cfe2ee;color:#10303f}
.share-result-actions .share-stop{color:#a33a2a}
.share-result-actions .share-stop:hover:not(:disabled){color:#7d2a1d}
.share-result-actions .share-stop:disabled{opacity:.55}
@media(max-width:700px){.share-result-actions a,.share-result-actions button{min-height:44px;display:inline-flex;align-items:center}}


/* PHONE POLISH (supermistral U1/U2/U15, 10-19): the site links under the composer, a labelled Sign in, 44 px taps */
.chat-sitelinks{display:flex;flex-wrap:wrap;justify-content:center;gap:0 2px;margin:4px 0 0;font-size:.74rem}
.chat-sitelinks a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:0 10px;color:#5f7381;text-decoration:none;font-weight:600}
.chat-sitelinks a:hover{text-decoration:underline}
@media(max-width:700px){
  body .chat-header .mode-nav a{min-width:44px}
  .chat-header .account-link:not([data-signed-in]){width:auto;min-width:44px;padding:0 10px;font-size:.74rem;gap:0;white-space:nowrap}
  .chat-header .account-link:not([data-signed-in]) span{display:none}
  #chat-footnote a{display:inline-flex;align-items:center;min-height:44px;padding:0 4px}
  .chat-header .account-link[data-signed-in]{width:44px;height:44px}
}
@media(max-width:440px){body .chat-header .chat-brand img{width:54px}body .chat-header .chat-header-actions{gap:3px}.chat-header .account-link:not([data-signed-in]){padding:0 6px;font-size:.68rem}.chat-header{gap:5px;padding-left:8px;padding-right:8px}}
@media(max-width:380px){body .chat-header .mode-nav a{min-width:34px;padding:6px 2px;font-size:.66rem}}
@media(max-width:340px){body .chat-header .chat-brand img{width:50px}body .chat-header .mode-nav a{min-width:30px}}
.chat-history-open{display:none}
@media(max-width:700px){.chat-history-open{display:inline-flex;align-items:center;min-height:44px;margin:2px 0 4px;padding:0 14px;border:1px solid rgba(37,72,93,.25);border-radius:99px;background:#ffffffb7;color:#2a4a5c;font:inherit;font-size:.8rem;font-weight:600}}
/* U48: the history entry is shown on a desktop too (it was phone-only); while the sidebar is open it is not needed */
@media(min-width:701px){.chat-history-open{display:inline-flex;align-items:center;align-self:flex-start;min-height:36px;margin:6px 0 4px;padding:0 14px;border:1px solid rgba(37,72,93,.25);border-radius:99px;background:#ffffffb7;color:#2a4a5c;font:inherit;font-size:.8rem;font-weight:600;cursor:pointer}.chat-history-open:focus-visible{outline:2px solid #2f7298;outline-offset:2px}body.chat-sidebar-open .chat-history-open{display:none}}
#tao1-intro{max-width:720px;margin:14px auto 6px;padding:0 16px}#tao1-intro h1{margin:0 0 8px;font-size:1.35rem;line-height:1.25;letter-spacing:-.01em;color:#25485d}#tao1-intro p{margin:0 0 6px;font-size:.88rem;line-height:1.5;color:#4e6d7f}#tao1-intro a{padding:14px 4px;margin:-14px -4px;color:#2f7298;text-decoration:underline;text-underline-offset:3px}#tao1-intro[hidden],html.known-user #tao1-intro{display:none}
@media(max-width:700px){#tao1-intro{margin:8px auto 4px;padding:0 14px}#tao1-intro h1{font-size:1.08rem}#tao1-intro p{font-size:.8rem;line-height:1.45;margin:0 0 4px}}
