:root {
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#253d30;background:#fff;color-scheme:light;
  --green:#285139;--muted:#687869;--line:#e4eade;
  -webkit-text-size-adjust:100%;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;background:radial-gradient(ellipse at 90% 12%,#ecf4df99,transparent 50%),#fff}
button,input,textarea{font:inherit}
button,summary,a,input,textarea{-webkit-tap-highlight-color:transparent}
button,summary{touch-action:manipulation;cursor:pointer}
button:disabled{opacity:.45;cursor:default}
button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #8bae70;outline-offset:4px}
svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
h1,h2,p{margin-top:0}p{line-height:1.65}
em{font-family:Georgia,"Times New Roman",serif;font-weight:400;color:#65844f}
.app-header{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:calc(env(safe-area-inset-top) + 19px) max(24px,env(safe-area-inset-right)) 16px max(24px,env(safe-area-inset-left));z-index:3;background:#ffffffed}
.wordmark{color:#254c35;display:flex;align-items:center;font-size:28px;font-weight:750;letter-spacing:-1.4px;text-decoration:none}
.brand-mark{display:grid;place-items:center;width:34px;height:34px;margin-right:9px;color:#daeec9;background:#294f36;border-radius:12px;font-size:25px;letter-spacing:0;box-shadow:inset 0 1px #ffffff30,0 3px 8px #274f3410}
.brand-dot{color:#78985d}
.connection-badge{display:flex;align-items:center;gap:7px;max-width:52%;border:1px solid #e4eadf;border-radius:30px;padding:8px 10px;color:#546c4c;background:#fafcf7;font-size:10px;line-height:1.4}
.connection-badge:before{content:"";width:5px;height:5px;border-radius:50%;background:#91a181;flex-shrink:0}
.paired .connection-badge:before{background:#658d48;box-shadow:0 0 0 3px #e9f0df}
main{width:100%;max-width:590px;padding:8px 24px 0;margin:0 auto}
.eyebrow{font-size:9px;font-weight:650;letter-spacing:1.9px;color:#667d58}
.pair-hero{text-align:center;padding:0 0 27px}
.pair-hero h1{font-size:42px;line-height:1.12;letter-spacing:-1.9px;margin:17px 0 16px}
.hero-description{font-size:13px;color:var(--muted);margin:0}
.orb-scene{position:relative;width:148px;height:140px;margin:0 auto 4px;display:grid;place-items:center}
.orb{width:91px;height:91px;border-radius:50%;background:radial-gradient(circle at 30% 24%,#fffff0 0%,#e5f3bc 20%,#c3db94 46%,#86ae72 76%,#507954 100%);box-shadow:inset 2px 3px 9px #fff9,inset -7px -6px 15px #466f3829,0 19px 30px #809c5428}
.orb-ring{position:absolute;inset:12px;border:1px solid #dce8cd;border-radius:50%;transform:rotate(-30deg) scaleX(1.18) scaleY(.86)}
.orb-spark{position:absolute;right:4px;top:16px;font-size:27px;color:#7f9f63}
.pair-card{max-width:420px;margin:0 auto;padding:22px;background:#fff;border:1px solid #e1e8d8;border-radius:25px;box-shadow:0 12px 40px #36592d09,0 2px 5px #36592d04}
.card-heading{display:flex;align-items:center;gap:12px;margin-bottom:24px}
.small-mark{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;background:#f0f5e9;border-radius:14px;color:#6c8c55}
.card-heading h2{font-size:16px;letter-spacing:-.4px;margin:0 0 4px}.card-heading p{font-size:11px;color:var(--muted);margin:0}
.pair-card label{display:block;font-size:11px;font-weight:550;color:#53664b;margin-bottom:9px}
.pair-card #code{width:100%;min-width:0;padding:16px 6px;border:1px solid #dce5d3;background:#fafcf7;border-radius:14px;text-align:center;font-size:27px;letter-spacing:7px;color:#315735;outline:none}
#code::placeholder{color:#b1bea2}#code:focus{border-color:#94b279;box-shadow:0 0 0 3px #edf4e4}
.pair-card .remember-option{display:flex;align-items:center;gap:10px;margin:16px 0;font-size:10px;font-weight:400;line-height:1.6;cursor:pointer;color:var(--muted)}
.remember-option input{width:19px;height:19px;flex-shrink:0;margin:0;accent-color:#315936}.remember-option strong{font-size:12px;color:#365232;font-weight:550}
.primary{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:50px;padding:14px 18px;border:0;border-radius:14px;background:#2d5238;color:#fff;font-size:13px;font-weight:600;box-shadow:0 4px 10px #2b513213}.primary span{font-size:20px;color:#cce4b4}
.hint{font-size:11px;line-height:1.65;color:var(--muted)}.pair-card .hint{text-align:center;font-size:10px;margin:13px 0 0}
.warning{display:flex;gap:9px;max-width:420px;margin:18px auto 12px;padding:13px 14px;background:#fcfaf3;border:1px solid #eee7d4;border-radius:14px;font-size:10px;line-height:1.65;color:#79673f}
.warning>span:first-child{flex-shrink:0;width:16px;height:16px;margin-top:2px;border:1px solid #b7a776;border-radius:50%;text-align:center;line-height:15px}
.pair-limits{text-align:center;font-size:10px;max-width:400px;margin:0 auto 20px}
.install-guide{max-width:420px;margin:0 auto 18px;border:1px solid var(--line);border-radius:15px;background:#fff}
.install-guide>summary{padding:15px;font-size:12px;min-height:44px;color:#526b43;list-style:none}.install-guide>summary span{margin-right:6px}
summary::-webkit-details-marker{display:none}
.install-body{padding:0 16px 16px;font-size:12px;color:var(--muted)}.install-body ol{padding-left:20px;line-height:1.7}.install-body li{margin-bottom:10px}
.install-body h3{font-size:12px;color:#385333;margin:10px 0}
.secondary{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:14px;background:white;color:#47603a;font-size:12px;font-weight:550}
footer{max-width:590px;margin:0 auto;padding:16px 24px calc(env(safe-area-inset-bottom) + 20px);font-size:9px;line-height:1.8;text-align:center;color:#73816b}
#home-screen-mode{text-align:center;font-size:9px;margin:0;color:#748368}
#status{margin:8px 0 0;font-size:11px;line-height:1.5;color:#80623a;overflow-wrap:anywhere}#status:empty{display:none}
body.paired{height:100vh;height:100dvh;min-height:0;overflow:hidden;background:#fff}
.paired .app-header{border-bottom:1px solid #f0f3ec}
.paired main{flex:1;min-height:0;max-width:740px;display:flex;flex-direction:column;padding-top:0}
.paired footer,.paired #home-screen-guide,.paired #home-screen-mode{display:none!important}
.paired #status{flex-shrink:0;max-height:42px;overflow:auto;text-align:center;padding:0 3px 7px;font-size:10px;color:#68785b;margin:0}
#chat-panel{flex:1;min-height:0;display:flex;flex-direction:column;position:relative}
.toolbar{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:10px 0 0}
.toolbar .secondary{min-height:44px;background:#f5f7f0;border:1px solid #edf0e7;padding:9px 13px;font-size:11px}.toolbar .secondary span{font-size:17px;color:#7e9867}
.toolbar-right{display:flex;align-items:center;gap:3px}.icon-button,.chat-info>summary{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:14px;background:transparent;color:#6e805d;cursor:pointer}.chat-info{position:relative}.chat-info>summary{list-style:none;font-size:20px}
.info-card{position:absolute;right:-44px;top:49px;z-index:5;width:min(300px,calc(100vw - 48px));padding:20px;background:#fff;border:1px solid #e0e7d9;border-radius:22px;box-shadow:0 18px 50px #25402c20;color:#5e7054;font-size:12px;line-height:1.65}.info-card>strong{font-size:15px;color:#315236}.info-card p{margin:12px 0 0}
#chat-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#dce5d6 transparent;outline:none}
#chat-scroll:focus-visible{outline:2px solid #b7cba3;outline-offset:2px;border-radius:12px}
#chat-welcome{max-width:430px;margin:0 auto;padding:8px 0 24px;text-align:center}
.welcome-art{height:clamp(95px,15dvh,130px);width:220px;position:relative;display:grid;place-items:center;margin:0 auto 6px}
.welcome-art:before{content:"";position:absolute;inset:5px -30px -12px;background:radial-gradient(ellipse,#edf4db99,transparent 68%);z-index:0}
.welcome-symbol{width:94px;height:94px;position:relative;border-radius:50%;background:radial-gradient(circle at 30% 23%,#ffffef 0%,#e2f0b7 21%,#bfd88e 45%,#8cb174 73%,#5b8257 100%);box-shadow:inset 2px 3px 8px #ffffffe0,inset -5px -7px 13px #4e76332b,0 18px 28px #8fa96829}
.welcome-orbit{position:absolute;inset:22px 35px;border:1px solid #dbe7cb;border-radius:50%;transform:rotate(-28deg) scaleX(1.22)}
.art-spark{position:absolute;right:16px;top:26px;font-size:29px;color:#7e9b5b}.art-label{position:absolute;left:-8px;bottom:24px;z-index:1;font-family:Georgia,serif;font-style:italic;font-size:11px;color:#83956c;transform:rotate(-12deg)}
#chat-welcome .eyebrow{margin-bottom:13px;font-size:8px}
#chat-welcome h1{font-size:38px;line-height:1.13;letter-spacing:-1.5px;margin:0 0 12px}
#chat-welcome h1 em{font-size:clamp(28px,8.7vw,37px);white-space:nowrap}
#chat-welcome>p:not(.eyebrow){font-size:12px;color:#6e7e63;line-height:1.75;margin-bottom:20px}
.suggestion-heading{display:flex;align-items:center;justify-content:space-between;margin:0 2px 11px;font-size:8px;font-weight:600;letter-spacing:1.5px;color:#7a896b}.suggestion-heading span:last-child{font-size:18px;font-weight:400;line-height:1}
.prompt-chips{display:grid;grid-template-columns:1fr 1fr;gap:10px;text-align:left}
.prompt-chips button{position:relative;display:flex;align-items:flex-start;flex-direction:column;gap:12px;min-width:0;min-height:114px;padding:14px;border:1px solid #e6ebdc;border-radius:20px;background:linear-gradient(135deg,#f7f9ef,#f0f4e6);text-align:left;color:#3e5836}
.prompt-chips button:nth-child(2){background:linear-gradient(135deg,#fcfaf3,#f6f2e7);border-color:#ede8da;color:#71664a}
.prompt-chips button:nth-child(3){grid-column:1/-1;min-height:73px;flex-direction:row;align-items:center;gap:14px;background:#fafbf7;border-color:#e9ede1}
.prompt-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#fff9;color:#7b945e;font-size:23px;flex-shrink:0}
.prompt-chips button:nth-child(2) .prompt-icon{color:#a29268}
.prompt-copy{display:block;padding-right:4px}.prompt-copy strong{display:block;font-size:12px;font-weight:600;letter-spacing:-.15px;line-height:1.4}.prompt-copy small{display:block;margin-top:5px;font-size:10px;line-height:1.5;color:#6d7d5e}
.prompt-chips button:nth-child(2) small{color:#867b61}.prompt-arrow{position:absolute;right:15px;top:17px;color:#8d9c78;font-size:16px}.prompt-chips button:nth-child(3) .prompt-arrow{top:27px}
#messages{display:flex;flex-direction:column;gap:27px;padding:24px 0 22px}.message{font-size:15px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}
#messages:empty{display:none}
.message>strong{display:flex;align-items:center;gap:8px;margin-bottom:10px;font-size:11px;font-weight:600;color:#546e43}.message.assistant{padding:0 2px}.message.assistant>strong:before{content:"✦";display:grid;place-items:center;width:25px;height:25px;border-radius:9px;background:#eff4e5;color:#79995b;font-size:18px}
.message.user{align-self:flex-end;max-width:88%;padding:13px 17px;border-radius:22px 22px 6px 22px;border:1px solid #e2eacf;background:linear-gradient(125deg,#f0f5e5,#eaf1da);font-size:14px;color:#3f5832}.message.user>strong{display:none}
.message.pending>div{font-size:12px;color:#6e825b}.message.pending>div:after{content:"";display:inline-block;width:5px;height:5px;margin-left:10px;border-radius:50%;background:#8aa76e;box-shadow:8px 0 #b1c39a,16px 0 #d3ddc6;animation:breathe 1.5s ease-in-out infinite}
@keyframes breathe{50%{opacity:.35}}
.composer-dock{flex-shrink:0;padding-top:10px;background:linear-gradient(#ffffffb0,#fff 18px);padding-bottom:calc(env(safe-area-inset-bottom) + 4px)}
#composer{display:flex;align-items:flex-end;gap:7px;padding:7px;border:1px solid #dfe7d5;border-radius:25px;background:#fcfdf9;box-shadow:0 4px 18px #37533209,inset 0 1px #fff}
#composer:focus-within{background:#fff;border-color:#a2bb87;box-shadow:0 0 0 3px #f0f5e7}
#prompt{flex:1;width:0;min-width:0;min-height:46px;max-height:130px;padding:13px 4px 11px 12px;border:0;outline:none;resize:none;background:transparent;line-height:1.4;font-size:16px;color:#36502e;scrollbar-width:none}#prompt::-webkit-scrollbar{display:none}#prompt::placeholder{color:#829272}
.send-button{display:grid;place-items:center;flex-shrink:0;width:46px;height:46px;border:0;border-radius:18px;background:#315638;color:#f3f9e8;box-shadow:inset 0 1px #ffffff20}.send-button:disabled{opacity:1;background:#eaf0df;color:#a0b18a;box-shadow:none}.send-button svg{width:21px;height:21px;stroke-width:1.8}.stop-button rect{fill:currentColor;stroke:none}
.composer-note{font-size:9px;text-align:center;color:#6e7d62;margin:10px 0 8px}.composer-note span{color:#7b886f}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(hover:hover){button:not(:disabled):hover{filter:brightness(.98)}.prompt-chips button:hover{border-color:#bdcda6;transform:translateY(-2px)}.icon-button:hover,.chat-info>summary:hover{background:#f3f6ec}}
@media(prefers-reduced-motion:no-preference){button{transition:background .18s,border-color .18s,transform .18s}button:not(:disabled):active{transform:scale(.975)}.welcome-symbol,.orb{animation:float 7s ease-in-out infinite}@keyframes float{50%{transform:translateY(-5px)}}}
@media(min-width:600px){main{padding-left:32px;padding-right:32px}.paired .app-header{padding-left:max(30px,calc((100vw - 676px)/2));padding-right:max(30px,calc((100vw - 676px)/2))}#chat-welcome{padding-top:24px}.pair-hero{padding-top:18px}}
@media(max-width:350px){main{padding-left:18px;padding-right:18px}.app-header{padding-left:18px;padding-right:18px}.connection-badge{font-size:9px;padding:8px}.wordmark{font-size:25px}.brand-mark{width:31px;height:31px}.pair-hero h1,#chat-welcome h1{font-size:36px}.pair-card{padding:18px}.pair-card #code{letter-spacing:5px}.prompt-chips button{padding:13px}.prompt-copy strong{font-size:11px}.prompt-copy small{font-size:9px}.composer-note span{display:none}}
@media(max-height:700px){.welcome-art{height:115px}.welcome-symbol{width:74px;height:74px}.welcome-orbit{inset:15px 44px}.art-label{bottom:15px;font-size:10px;left:5px}.art-spark{top:15px;right:25px}#chat-welcome h1{font-size:36px}#chat-welcome>p:not(.eyebrow){margin-bottom:20px}.prompt-chips button{min-height:115px;gap:12px}.prompt-chips button:nth-child(3){min-height:73px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
