@font-face{font-family:"DM Sans";src:url("./assets/dm-sans.woff2") format("woff2");font-weight:100 1000;font-display:swap}
@font-face{font-family:"Bricolage Grotesque";src:url("./assets/bricolage.woff2") format("woff2");font-weight:200 800;font-display:swap}
@font-face{font-family:Symbols;src:url("./assets/symbols.woff2") format("woff2");font-display:block}
:root {
  color-scheme:light;
  --ink:#182820;
  --muted:#56665b;
  --sage:#cced90;
  --edge:#d7ded5;
  --paper:#fafbf7;
  --side:#192b22;
  --display:"Bricolage Grotesque",Arial,sans-serif;
  --body:"DM Sans",Arial,sans-serif;
  font:100%/1.5 var(--body);
}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;color:var(--ink);background:var(--paper)}
button,textarea{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none}
button:disabled{cursor:default}
a{color:inherit}
:focus-visible{outline:3px solid #578733;outline-offset:3px}
.sidebar :focus-visible{outline-color:#d4efae}
.symbol{font-family:Symbols;font-weight:normal;font-style:normal;font-size:1.3rem;line-height:1;letter-spacing:normal;text-transform:none;white-space:nowrap;direction:ltr;font-feature-settings:"liga";-webkit-font-smoothing:antialiased}
.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}
.app-shell{height:100vh;height:100dvh;display:grid;grid-template-columns:clamp(216px,18.7vw,278px) minmax(0,1fr);overflow:hidden}
.sidebar{background:var(--side);color:#f1f5eb;min-height:0}
.side-inner{height:100%;display:flex;flex-direction:column;padding:32px 18px 16px}
.brand{display:flex;align-items:center;gap:11px;padding:0 9px;font:750 2.02rem/1 var(--display);letter-spacing:-.065em}
.brand-mark{--face:#1c3024;--shell:#c8ec88;position:relative;display:inline-grid;place-items:center;flex:none;width:36px;height:36px;background:var(--shell);color:var(--face);border-radius:10px}
.brand-mark:before{content:"";display:block;width:22px;height:16px;background:var(--face);border-radius:5px}
.brand-mark i{position:absolute;left:11px;top:13px;width:3px;height:3px;background:var(--shell);box-shadow:10px 0 var(--shell),4px 5px var(--shell),7px 5px var(--shell)}
.new-chat{display:flex;align-items:center;justify-content:center;gap:8px;background:var(--sage);color:#1b2c20;border-radius:9px;min-height:45px;font-weight:700;margin-top:38px;transition:background .15s,transform .15s}
.new-chat:hover{background:#dcf8a6}
.new-chat:active,.prompt:active,.send:active{transform:translateY(1px)}
.history-heading{font-size:.79rem;color:#a8bbac;letter-spacing:.025em;font-weight:650;margin:32px 10px 9px}
.history{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#536658 transparent;min-height:50px}
.history-item{display:flex;align-items:center;gap:10px;width:100%;text-align:left;color:#c9d5cb;min-height:42px;padding:8px 11px;margin:2px 0;border-radius:7px;font-size:.91rem}
.history-item .symbol{font-size:1.03rem;flex:none}
.history-item span:last-child,.chat-heading h1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.history-item:hover{background:#23392d;color:white}
.history-item[aria-current="page"]{background:#2c4234;color:#f2f6ec}
.history-item[aria-current="page"] .symbol{color:var(--sage)}
.side-footer{margin-top:auto;padding-top:20px}
.about-button{display:flex;align-items:center;gap:11px;border-top:1px solid #3a4d40;padding:18px 8px 3px;width:100%;text-align:left;color:#d4dfd4;font-size:.88rem;font-weight:550}
.about-button:hover{color:#d8f6a7}
.footer-icon{display:grid;place-items:center;border:1px solid #516452;border-radius:7px;width:28px;height:28px;font-size:1.05rem}
.workspace{min-width:0;min-height:0;display:flex;flex-direction:column}
.topbar{min-height:69px;flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--edge);padding:10px clamp(18px,3vw,48px);background:var(--paper)}
.chat-heading,.top-actions{display:flex;align-items:center;gap:10px;min-width:0}
.top-actions{flex:none;gap:8px}
.chat-heading h1{font:650 1rem/1.3 var(--body);letter-spacing:-.025em;margin:0}
.heading-icon{color:#556a58;font-size:1.15rem}
.engine-status{font-size:.8rem;color:#455d48;display:inline-flex;align-items:center;gap:7px;white-space:nowrap;background:#f0f4e9;border:1px solid #dce5d5;border-radius:99px;padding:4px 10px}
.engine-status i{width:7px;height:7px;background:#a98631;border-radius:100%}
.engine-status.ready i{background:#598741}
.engine-status.error i{background:#aa4c39}
.icon-button{display:inline-grid;place-items:center;padding:0;width:38px;height:38px;border-radius:8px;color:var(--muted)}
.icon-button:hover,.text-button:hover{background:#e9eee5;color:var(--ink)}
.text-button{color:#355f35;font-size:.88rem;font-weight:650;text-decoration:underline;padding:5px;border-radius:4px}
.scroll-area{min-height:0;flex:1;overflow-y:auto;scrollbar-color:#c6d0c1 transparent;scrollbar-width:thin;overscroll-behavior:contain}
.welcome{min-height:100%;display:flex;align-items:center;padding:clamp(28px,5vh,66px) clamp(24px,5vw,80px)}
.welcome-inner,.composer-inner,.transcript{width:100%;max-width:890px;margin-inline:auto}
.hero{display:grid;grid-template-columns:1.15fr 1fr;align-items:center;gap:clamp(8px,2vw,36px)}
.hero-text{padding:10px 0}
.hero h2{font:740 clamp(3.45rem,5.6vw,5.5rem)/.94 var(--display);letter-spacing:-.075em;margin:0}
.hero h2 span{color:#658447}
.hero p{color:var(--muted);font-size:clamp(1rem,1.25vw,1.14rem);line-height:1.55;max-width:340px;margin:19px 0 0}
.hero-art{position:relative;display:grid;place-items:center;isolation:isolate;min-width:0;height:clamp(195px,26vw,312px)}
.hero-art:before{content:"";position:absolute;inset:-3% -4%;z-index:-1;background-image:radial-gradient(#b5c4a8 1px,transparent 1.1px);background-size:9px 9px;mask-image:radial-gradient(ellipse at center,#000 27%,transparent 72%)}
.hero-art img{display:block;height:100%;width:100%;object-fit:contain;filter:drop-shadow(0 8px 8px rgb(37 55 32 / 8%))}
.prompt-section{margin-top:clamp(22px,4.1vh,50px)}
.prompt-section h3{font:650 .93rem/1.4 var(--body);letter-spacing:-.015em;color:#455a49;margin:0 0 11px}
.prompt-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.prompt{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:12px;text-align:left;min-height:104px;padding:15px 17px;border:1px solid var(--edge);border-radius:13px;background:#fff;box-shadow:0 2px 3px rgb(37 49 32 / 3%);font-size:.98rem;font-weight:550;line-height:1.34;letter-spacing:-.014em;transition:border-color .15s,background .15s,transform .15s}
.prompt:hover{background:#f7faef;border-color:#91a47f}
.prompt-icon{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;font-size:1.23rem}
.science{background:#eef0fe;color:#5b5f86}
.math{background:#fbefcf;color:#855d2f}
.plant{background:#e8f1df;color:#467149}
.composer-area{flex:none;padding:13px clamp(24px,5vw,80px) max(17px,env(safe-area-inset-bottom));background:var(--paper)}
.composer{display:flex;align-items:flex-end;gap:10px;border:1px solid #b8c6b3;background:#fff;border-radius:16px;padding:10px;box-shadow:0 4px 15px rgb(41 56 34 / 6%)}
.composer:focus-within{border-color:#729764;box-shadow:0 0 0 3px rgb(130 159 99 / 14%)}
.composer textarea{resize:none;min-width:0;min-height:44px;max-height:min(190px,30dvh);flex:1;border:0;border-radius:6px;outline:0;padding:10px 7px 8px;line-height:1.48;background:transparent}
.composer textarea::placeholder{color:#748173;opacity:1}
.send{display:inline-grid;place-items:center;flex:none;width:44px;height:44px;border-radius:11px;background:#243d2c;color:#d4f29c;transition:background .15s}
.send .symbol{font-size:1.18rem}
.send:hover:enabled{background:#365a3f}
.send:disabled{background:#e6eddf;color:#70816a}
.composer-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 3px 0;font-size:.77rem;color:#657362;line-height:1.3}
#privacy{display:inline-flex;align-items:center;gap:5px}
#privacy .symbol{font-size:.9rem}
#privacy a{color:inherit;text-underline-offset:2px;margin-left:3px}
kbd{font:inherit;color:#4e5d4f}
.keyboard-hint b{font-weight:400;margin:0 4px}
.notice{margin:0 0 7px;font-size:.88rem;color:#784923}
.transcript{padding:27px 0 12px;width:calc(100% - clamp(48px,10vw,160px));overflow-wrap:anywhere}
.turn{margin:0 0 24px}
.user-turn{text-align:right}
.user-turn .turn-text{display:inline-block;max-width:85%;text-align:start;white-space:pre-wrap;background:#e8f1dc;padding:11px 16px;border-radius:15px 15px 4px 15px;line-height:1.55}
.bot-byline{display:flex;align-items:center;gap:8px;margin-bottom:8px;font-weight:700;font-size:.93rem}
.bot-byline .brand-mark{transform:scale(.72);transform-origin:left center;margin-right:-9px;margin-block:-4px}
.bot-turn .turn-text{margin-left:35px;white-space:pre-wrap;line-height:1.63;max-width:75ch}
.reply-tools{margin:6px 0 0 32px;display:flex;align-items:center;gap:6px;color:#677668;font-size:.77rem;flex-wrap:wrap}
.copy{width:29px;height:29px}
.copy .symbol{font-size:1rem}
.pending .turn-text,.turn-error .turn-text{color:var(--muted);font-size:.94rem}
.pending .turn-text:after{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#7a9b5d;margin-left:7px;animation:pulse 1.2s ease-in-out infinite alternate}
.retry-turn{margin:5px 0 0 30px}
dialog{width:min(440px,calc(100vw - 32px));padding:0;border:1px solid var(--edge);border-radius:18px;color:var(--ink);background:var(--paper);box-shadow:0 18px 65px #09221233}
dialog::backdrop{background:rgb(13 30 19 / 37%)}
.dialog-content{padding:25px}
.dialog-heading,.dialog-actions{display:flex;justify-content:space-between;align-items:center;gap:12px}
dialog h2{font:700 1.7rem/1.15 var(--display);letter-spacing:-.045em;margin:12px 0}
dialog p{color:var(--muted);margin:12px 0;line-height:1.55}
.source-link{display:inline-flex;align-items:center;gap:8px;color:#355c36;text-underline-offset:3px;font-weight:650;margin-top:6px}
.dialog-actions{justify-content:flex-end;margin-top:22px}
.secondary,.danger{border-radius:8px;padding:8px 14px;font-weight:600}
.secondary{border:1px solid #bac8b6}
.danger{background:#8b392d;color:white}
.mobile-only,.nav-backdrop{display:none}
@keyframes pulse{from{opacity:.3}to{opacity:1}}
@media(min-width:1500px){.welcome-inner,.composer-inner,.transcript{max-width:970px}}
@media(max-height:680px) and (min-width:761px){.hero-art{height:190px}.welcome{padding-block:17px}.prompt-section{margin-top:14px}.hero h2{font-size:3.6rem}.prompt{min-height:86px;gap:7px}.topbar{min-height:58px}}
@media(max-width:850px) and (min-width:701px){.app-shell{grid-template-columns:184px minmax(0,1fr)}.side-inner{padding-inline:12px}.welcome,.composer-area{padding-inline:22px}.transcript{width:calc(100% - 44px)}.hero-art{height:185px}.hero h2{font-size:3.55rem}.prompt{padding:11px;gap:7px}.keyboard-hint{display:none}}
@media(max-width:700px){
  .app-shell{grid-template-columns:minmax(0,1fr)}
  .sidebar{position:fixed;z-index:6;inset:0 auto 0 0;width:min(82vw,290px);transform:translateX(-105%);visibility:hidden;transition:transform .2s,visibility .2s}
  body.nav-open .sidebar{transform:translateX(0);visibility:visible}
  .side-inner{padding:24px 16px max(18px,env(safe-area-inset-bottom))}
  .mobile-only{display:inline-grid}
  .brand .icon-button{margin-left:auto;color:#d3e2d5}
  .brand .icon-button:hover{background:#2e4333}
  .nav-backdrop{display:block;position:fixed;z-index:5;inset:0;background:rgb(10 25 15 / 38%)}
  .topbar{padding:6px 13px;min-height:57px;gap:5px}
  .heading-icon{display:none}.chat-heading{gap:3px}
  .chat-heading h1{font-size:.94rem}
  .engine-status{font-size:.76rem;padding:4px 8px}
  .top-actions{gap:3px}
  .welcome{padding:24px 20px}
  .hero{grid-template-columns:1.05fr .95fr;gap:0}
  .hero h2{font-size:clamp(2.8rem,9vw,4.4rem)}
  .hero p{margin-top:12px;font-size:1rem}
  .hero-art{height:clamp(130px,32vw,213px)}
  .prompt-section{margin-top:22px}
  .prompt-list{gap:7px}
  .prompt{padding:11px 10px;gap:8px;min-height:93px;font-size:.9rem;border-radius:10px}
  .prompt-icon{width:27px;height:27px;font-size:1.05rem}
  .composer-area{padding:7px 15px max(12px,env(safe-area-inset-bottom))}
  .composer{border-radius:13px;padding:7px}
  .composer-foot{padding-top:7px}
  .keyboard-hint{display:none}
  .transcript{width:calc(100% - 34px);padding-top:20px}
}
@media(max-width:480px){
  .welcome{padding:23px 18px 17px}
  .hero{grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr)}
  .hero-art{height:148px}
  .hero-text{padding:4px 0}
  .hero p{font-size:.94rem;max-width:250px}
  .prompt-list{grid-template-columns:1fr;gap:6px}
  .prompt{min-height:45px;flex-direction:row;align-items:center;gap:10px;padding:8px 12px;font-size:.94rem}
  .prompt-section h3{margin-bottom:8px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
