@font-face{font-family:"DM Sans";src: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.ttf') format('truetype');font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:"DM Sans";src: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.ttf') format('truetype');font-style:normal;font-weight:700;font-display:swap}

:root{color-scheme:light;--answer:#303a46;--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",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}
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:185px}.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}
.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",-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 */
.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}

/* 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 */
