:root{color-scheme:light;--ink:#23251f;--muted:#6d7166;--line:#e5e7df;--accent:#788626}*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--ink);font-family:Arial,Helvetica,sans-serif}::selection{background:#e7edbc}button,textarea{font:inherit}button{cursor:pointer}button:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:4px}main{max-width:1060px;margin:auto;padding:36px 32px 60px}header{display:flex;align-items:center;justify-content:space-between}h1{font-size:26px;letter-spacing:-.03em;margin:0;font-weight:600}.status{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:8px}.status::before{content:'';width:6px;height:6px;border-radius:50%;background:#b9c385}body.thinking .status::before{background:#9eaf21}.stage{height:365px;position:relative;margin:12px 0 0;touch-action:pan-y}.stage canvas{width:100%;height:100%;display:block;cursor:grab}.stage canvas:active{cursor:grabbing}.view-labels{position:absolute;bottom:5px;width:100%;display:flex;justify-content:space-around;color:#646b5c;font-size:12px;pointer-events:none}.viewer-controls{display:flex;justify-content:center;gap:14px;margin:10px 0 38px}.viewer-controls button{background:none;border:0;color:#72786a;padding:6px;font-size:12px}.viewer-controls button:hover{color:#1c2410}.entry{max-width:720px;margin:auto}label{display:block;font-size:15px;margin-bottom:12px}textarea{width:100%;min-height:104px;resize:vertical;max-height:240px;border:1px solid #d7dbce;border-radius:12px;padding:18px 20px;background:#fcfdf9;font-size:19px;line-height:1.5;color:var(--ink);caret-color:var(--accent)}textarea::placeholder{color:#646b5c}.form-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:12px;gap:14px}.hint{font-size:12px;color:var(--muted)}.send{border:0;border-radius:8px;color:white;background:#292e22;padding:13px 25px;min-width:126px;font-size:14px}.send:hover{background:#454d33}.send:disabled{background:#8b907f;cursor:wait}.error{color:#9f352e;font-size:13px;min-height:16px;margin:9px 0}.reply-wrap{max-width:720px;margin:14px auto 0;border-top:1px solid var(--line);padding-top:22px}.reply-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px}.reply-top button{background:none;border:0;color:var(--muted);padding:7px}.reply{font-size:21px;line-height:1.65;letter-spacing:-.015em;margin:13px 0;white-space:pre-wrap}.empty{color:#646b5c;font-size:17px}.error3d{position:absolute;top:30%;width:100%;text-align:center;color:#8a4029;font-size:14px}.progress{height:2px;background:var(--line);position:relative;overflow:hidden;margin-top:18px}body.thinking .progress::after{content:'';position:absolute;inset:0;background:#b9c75c;animation:scan 1s ease-in-out infinite}@keyframes scan{from{transform:translateX(-100%)}to{transform:translateX(100%)}}@media(max-width:600px){main{padding:24px 20px 40px}.stage{height:290px;margin-top:18px}.viewer-controls{margin-bottom:26px}textarea{font-size:17px}.reply{font-size:19px}.hint{max-width:160px;line-height:1.5}.view-labels{font-size:11px}}@media(prefers-reduced-motion:reduce){body.thinking .progress::after{animation:none}}


.telemetry{max-width:720px;margin:-12px auto 28px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:13px 0;font-size:11px}.data-heading{display:flex;justify-content:space-between;gap:12px;color:#646b5c;margin-bottom:12px}.data-heading a{color:inherit;text-underline-offset:3px}.data-stream{height:100px;overflow:hidden;font-family:Consolas,monospace;font-variant-numeric:tabular-nums}.data-row{display:flex;justify-content:space-between;gap:16px;min-height:25px;align-items:center;color:#646b5c}.data-row strong{font-weight:400;color:#233f37;text-align:right}body.thinking .data-row:last-child{color:#254e40;animation:data-in .3s ease-out}.data-row:first-child{opacity:.55}dialog#executive{position:fixed;inset:0;max-width:none;max-height:none;width:100%;height:100dvh;margin:0;padding:36px;border:0;background:#ba211c;color:#fff;overflow:auto}dialog#executive::backdrop{background:#ba211c}.warning-content{max-width:1000px;min-height:100%;margin:auto;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.warning-icon{width:48px;height:48px;margin-bottom:24px}#brief-title{font-size:clamp(52px,10vw,116px);font-weight:600;line-height:.94;letter-spacing:-.04em;margin:0 0 36px}.arrival{font-size:14px;margin:0 0 14px;color:#ffe5df}#executive-quote{font-size:clamp(23px,3.5vw,40px);line-height:1.3;margin:0 0 38px;max-width:800px}.continue{background:#fff;color:#992019;border:0;border-radius:6px;padding:16px 22px}.continue:hover{background:#ffe5df}.continue:focus-visible{outline:2px solid white;outline-offset:6px}.brief-changed{overflow:hidden}@keyframes data-in{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}@media(max-width:600px){dialog#executive{padding:28px 22px}.data-heading{font-size:10px}.data-row{font-size:10px}.data-row strong{max-width:52%}.telemetry{margin-top:-8px}.data-stream{height:112px}.data-row{min-height:28px}}@media(prefers-reduced-motion:reduce){body.thinking .data-row:last-child{animation:none}}

.dataset-reference{font-size:10px;line-height:1.7;color:#646b5c;margin:10px 0 0}.data-row:first-child{opacity:1}body.thinking .data-row:last-child{animation:none}.data-row strong{font-variant-numeric:tabular-nums;letter-spacing:.05em}.data-stream{font-size:12px}

.no-reply{font-size:13px;color:#646b5c;margin:18px 0 8px}.silent .reply{min-height:28px}.silent .progress{background:#2b2f2c}

.no-reply{line-height:1.6}.brain-calculation{position:absolute;left:59%;width:41%;bottom:100px;text-align:center;font:10px Consolas,monospace;font-variant-numeric:tabular-nums;color:#315747;white-space:nowrap;pointer-events:none}@media(max-width:600px){.brain-calculation{font-size:8px;left:57%;width:43%}}

/* Comfortable touch targets and wrapping from narrow phones to wide screens. */
button{min-height:44px}.viewer-controls button,.reply-top button{padding:10px 12px}.entry,.reply-wrap,.telemetry{min-width:0}.reply,#executive-quote,.no-reply{overflow-wrap:anywhere}.status{max-width:65%;text-align:right}.data-row>span{min-width:0}.data-row strong{flex-shrink:0}.warning-content{padding-bottom:env(safe-area-inset-bottom)}
@media(max-width:600px){main{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right));padding-bottom:max(40px,env(safe-area-inset-bottom))}.send{flex-shrink:0}.reply-top{gap:12px}.reply-top button{flex-shrink:0}#brief-title{font-size:clamp(42px,12vw,64px)}}
@media(max-width:360px){main{padding-left:16px;padding-right:16px}.stage{height:260px}.form-bottom{align-items:flex-start}.hint{max-width:130px}.send{min-width:116px;padding:13px 18px}.data-row{gap:8px}.brain-calculation{font-size:7px}.continue{width:100%}}
@media(max-height:500px) and (orientation:landscape){main{padding-top:18px}.stage{height:230px}.viewer-controls{margin-bottom:20px}dialog#executive{padding:24px}.warning-content{justify-content:flex-start}#brief-title{font-size:48px;margin-bottom:20px}#executive-quote{font-size:23px;margin-bottom:24px}}
