:root{--ink:#172a22;--muted:#66736c;--green:#164d39;--green-dark:#10392b;--sage:#edf3ee;--paper:#f7f7f3;--white:#fff;--line:#dde4de;--sidebar:#f1f3ef}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.55}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}.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}.eyebrow{margin:0 0 9px;color:var(--green);font-size:12px;font-weight:700;letter-spacing:.14em}
.chat-app{height:100vh;overflow:hidden;background:var(--white);display:grid;grid-template-columns:280px 1fr}.chat-sidebar{min-height:0;padding:18px 14px 14px;background:var(--sidebar);border-right:1px solid var(--line);display:flex;flex-direction:column}.sidebar-brand{display:flex;align-items:center;gap:10px;padding:0 7px 18px}.sidebar-brand img{width:42px;height:42px;object-fit:contain}.sidebar-brand span{display:grid}.sidebar-brand strong{font:700 19px/1.1 "Times New Roman",serif}.sidebar-brand small{margin-top:3px;color:#68756d;font-size:10px;letter-spacing:.09em}.new-chat{width:100%;display:flex;align-items:center;gap:9px;padding:11px 13px;border:1px solid #c9d5cd;border-radius:9px;background:white;color:var(--green-dark);font-weight:700;cursor:pointer}.new-chat:hover{background:#f8fbf9;border-color:#91a99b}.new-chat span{font-size:20px;line-height:1}.history-heading{display:flex;align-items:end;justify-content:space-between;padding:24px 8px 8px;color:#59675f}.history-heading span{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.history-heading small{font-size:10px}.history-list{min-height:0;overflow:auto;display:flex;flex-direction:column;gap:3px}.history-list button{border:0;border-radius:8px;background:transparent;padding:9px 10px;text-align:left;cursor:pointer;color:#33453b}.history-list button:hover,.history-list button.active{background:#dfe8e1}.history-list button span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.history-list button small{display:block;color:#7a857e;font-size:11px;margin-top:2px}.empty-history{padding:12px 9px;color:#818a84;font-size:13px}.sidebar-footer{margin-top:auto;padding-top:12px;border-top:1px solid #d9dfda;display:grid;gap:4px}.sidebar-footer a{display:grid;padding:9px 10px;border-radius:8px}.sidebar-footer a:hover{background:#e2e9e4}.sidebar-footer span{font-size:14px;font-weight:700}.sidebar-footer small{font-size:11px;color:#728078}
.chat-workspace{min-width:0;min-height:0;display:flex;flex-direction:column;background:#fbfcfa}.chat-topbar{height:66px;flex:none;display:flex;align-items:center;padding:0 24px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.94)}.chat-topbar>button{display:none}.chat-topbar>div{display:grid}.chat-topbar strong{font:600 18px/1.2 "Times New Roman",serif}.chat-topbar span{color:#738078;font-size:11px}.chat-topbar>a{margin-left:auto;padding:8px 12px;border:1px solid var(--line);border-radius:8px;font-size:13px;font-weight:700}.conversation-view{min-height:0;flex:1;display:flex;flex-direction:column}.messages{flex:1;min-height:0;overflow:auto;padding:42px max(24px,calc((100% - 900px)/2)) 24px;display:flex;flex-direction:column;gap:14px}.welcome-card{width:100%;margin:auto 0;display:grid;grid-template-columns:180px 1fr;gap:26px;align-items:center;padding:24px;border:1px solid var(--line);border-radius:16px;background:white;box-shadow:0 12px 40px rgba(17,55,40,.07)}.welcome-visual{height:180px;border-radius:12px;overflow:hidden}.welcome-visual img{width:100%;height:100%;object-fit:cover}.welcome-card h1{margin:0 0 8px;font:600 clamp(31px,4vw,45px)/1.1 "Times New Roman",serif;letter-spacing:-.025em}.welcome-card p:not(.eyebrow){margin:0;color:var(--muted)}.prompt-list{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px}.prompt-list button{border:1px solid #ccd8d0;border-radius:999px;padding:8px 12px;background:#f8faf8;color:#3c5146;font-size:13px;cursor:pointer}.prompt-list button:hover{border-color:#7d9f8d;background:var(--sage)}.message{width:min(780px,92%);padding:13px 16px;border-radius:12px;background:#eef2ee;color:#304138;line-height:1.7;white-space:pre-wrap;align-self:flex-start}.message.user{width:auto;max-width:76%;align-self:flex-end;background:#dfece3}.message.pending{color:#758078;font-style:italic}.message.error{background:#fff0ec;color:#8a3d30;border:1px solid #f0d0c8}.message a{color:#145c44;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}.composer-wrap{flex:none;padding:10px max(24px,calc((100% - 900px)/2)) 16px;background:linear-gradient(180deg,rgba(251,252,250,0),#fbfcfa 18%)}.composer{display:flex;align-items:flex-end;border:1px solid #cbd6ce;border-radius:14px;background:white;box-shadow:0 8px 26px rgba(27,55,42,.09);overflow:hidden}.composer:focus-within{border-color:var(--green);box-shadow:0 0 0 3px rgba(22,77,57,.1)}.composer textarea{flex:1;resize:none;min-height:54px;max-height:160px;border:0;outline:0;padding:15px 16px;background:transparent;color:var(--ink)}.composer button{height:40px;margin:7px;border:0;border-radius:9px;padding:0 18px;background:var(--green-dark);color:white;font-size:13px;font-weight:700;cursor:pointer}.composer-wrap>p{text-align:center;margin:7px 0 0;color:#7c8680;font-size:11px}
.resources-page{min-height:100vh;background:var(--paper)}.resource-header{height:72px;padding:0 clamp(20px,5vw,72px);display:flex;align-items:center;border-bottom:1px solid var(--line);background:white;position:sticky;top:0;z-index:10}.resource-header .sidebar-brand{padding:0;margin-right:auto}.resource-header nav{display:flex;gap:24px}.resource-header nav a{font-size:14px;font-weight:700;color:#405248}.research-workspace{padding:72px clamp(20px,6vw,88px) 90px}.workspace-heading{max-width:1180px;margin:0 auto 30px;display:grid;grid-template-columns:1fr minmax(320px,520px);gap:50px;align-items:end}.workspace-heading h1{margin:0;font:600 clamp(39px,5vw,58px)/1.05 "Times New Roman",serif;letter-spacing:-.025em}.workspace-heading>p{margin:0;color:var(--muted);font-size:17px}.species-launcher{max-width:1180px;margin:0 auto 18px;display:grid;grid-template-columns:1.1fr 1fr;gap:28px;align-items:center;padding:26px;border-radius:14px;background:var(--green-dark);color:white}.species-launcher .eyebrow{color:#8fc4aa}.species-launcher h2{margin:0 0 5px;font:600 27px/1.2 "Times New Roman",serif}.species-launcher p:not(.eyebrow){margin:0;color:#cedcd4}.species-launcher form{display:flex;border-radius:9px;overflow:hidden;background:white}.species-launcher select{min-width:0;flex:1;border:0;outline:0;padding:13px 38px 13px 14px;color:var(--ink);background:white}.species-launcher button{border:0;background:#24664d;color:white;padding:0 19px;font-weight:700;cursor:pointer}.resource-grid{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.resource-card{min-height:245px;padding:27px;border:1px solid var(--line);border-radius:14px;background:white}.resource-card.featured{background:#edf4ef;border-color:#cadacf}.resource-card>small{color:#60736a;font-size:11px;font-weight:700;letter-spacing:.12em}.resource-card h2{margin:12px 0 9px;font:600 29px/1.2 "Times New Roman",serif}.resource-card p{margin:0 0 26px;color:var(--muted)}.resource-links{display:flex;flex-wrap:wrap;gap:9px}.resource-links a{display:inline-flex;align-items:center;min-height:38px;padding:8px 12px;border:1px solid #cbd7cf;border-radius:8px;background:white;color:var(--green-dark);font-size:14px;font-weight:700}.resource-links a:hover{border-color:var(--green);background:var(--sage)}
@media(max-width:760px){.chat-app{grid-template-columns:1fr}.chat-sidebar{position:fixed;inset:0 auto 0 0;width:280px;z-index:30;transform:translateX(-100%);transition:transform .2s;box-shadow:14px 0 40px rgba(0,0,0,.12)}.sidebar-open .chat-sidebar{transform:none}.chat-topbar>button{display:block;border:0;background:transparent;font-size:21px;margin-right:10px}.chat-topbar{padding:0 14px}.messages{padding:24px 14px}.welcome-card{grid-template-columns:1fr;padding:18px}.welcome-visual{height:150px}.prompt-list{grid-column:auto}.composer-wrap{padding:8px 12px 12px}.workspace-heading{display:block}.workspace-heading>p{margin-top:14px}.species-launcher{grid-template-columns:1fr}.species-launcher form{display:grid}.species-launcher button{min-height:44px}.resource-grid{grid-template-columns:1fr}.research-workspace{padding:50px 15px 65px}.resource-header{padding:0 14px}.resource-header nav a:nth-child(n+2){display:none}}
.chat-workspace{position:relative;isolation:isolate;background:var(--green-dark);overflow:hidden}.chat-workspace::before{content:"";position:absolute;inset:0;z-index:-2;background:url("assets/tropical-fruit-13-hero-v3.png") center/cover no-repeat;transform:scale(1.02)}.chat-workspace::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(248,247,242,.72),rgba(248,247,242,.58) 48%,rgba(248,247,242,.76))}.chat-topbar{border-bottom-color:rgba(255,255,255,.55);background:rgba(250,249,245,.78);backdrop-filter:blur(12px)}.welcome-card{width:min(840px,100%);margin:auto;grid-template-columns:1fr;gap:22px;padding:30px;border-color:rgba(255,255,255,.85);background:rgba(255,255,255,.9);box-shadow:0 18px 52px rgba(17,55,40,.16);backdrop-filter:blur(9px);text-align:center}.welcome-card h1{font-size:clamp(36px,5vw,56px);letter-spacing:-.03em}.welcome-card p:not(.eyebrow){color:#53655b;font-size:17px}.prompt-list{grid-column:auto;justify-content:center}.composer-wrap{background:linear-gradient(180deg,rgba(248,247,242,0),rgba(248,247,242,.82) 24%)}
.chat-topbar>nav{display:flex;gap:7px;margin-left:auto}.chat-topbar>nav a{padding:8px 12px;border:1px solid rgba(205,215,208,.9);border-radius:8px;background:rgba(255,255,255,.62);font-size:13px;font-weight:700}.resources-view{min-height:0;flex:1;background:var(--paper);overflow:hidden}.resources-scroll{height:100%;overflow:auto;padding:54px clamp(20px,5vw,72px) 70px}.resources-scroll .workspace-heading,.resources-scroll .species-launcher,.resources-scroll .resource-grid{max-width:1080px}.resources-mode .chat-workspace::before,.resources-mode .chat-workspace::after{display:none}.resources-mode .chat-topbar{background:white;border-bottom-color:var(--line)}.app-view[hidden]{display:none!important}
.language-switch{display:flex;align-items:center;padding:2px;border:1px solid #cad5ce;border-radius:9px;background:rgba(255,255,255,.72)}.language-switch button{min-width:38px;padding:5px 7px;border:0;border-radius:6px;background:transparent;color:#5f6c65;font-size:12px;font-weight:700;cursor:pointer}.language-switch button.active{background:var(--green-dark);color:white}
@media(max-width:760px){.chat-topbar>nav>a{display:none}.language-switch button{min-width:34px}.chat-topbar>nav{margin-left:auto}}
.message{padding-bottom:8px;outline:none}.message.pending{padding-bottom:13px;color:#795274;font-style:normal}.message.pending .message-content::before{content:"";display:inline-block;width:12px;height:12px;margin-right:9px;border:2px solid rgba(121,82,116,.22);border-top-color:#795274;border-radius:50%;vertical-align:-1px;animation:message-loading .8s linear infinite}.message-actions{display:flex;gap:4px;max-height:0;margin-top:0;padding-top:0;border-top:1px solid transparent;opacity:0;overflow:hidden;pointer-events:none;transform:translateY(-3px);transition:opacity .14s ease,transform .14s ease,max-height .14s ease,margin-top .14s ease,padding-top .14s ease;white-space:normal}.message:hover .message-actions,.message:focus-within .message-actions{max-height:36px;margin-top:7px;padding-top:5px;border-top-color:rgba(68,91,78,.1);opacity:1;pointer-events:auto;transform:none}.message.user .message-actions{justify-content:flex-end}.message-actions button{border:0;border-radius:6px;padding:3px 7px;background:transparent;color:#66766d;font-size:12px;line-height:1.5;cursor:pointer}.message-actions button:hover,.message-actions button:focus-visible{background:rgba(22,77,57,.1);color:var(--green-dark);outline:none}@keyframes message-loading{to{transform:rotate(360deg)}}
.message-references{margin-top:14px;padding-top:9px;border-top:1px solid rgba(68,91,78,.14);white-space:normal}.message-references summary{display:flex;align-items:center;gap:7px;width:max-content;max-width:100%;color:var(--green-dark);font-size:14px;font-weight:700;cursor:pointer;list-style:none;user-select:none}.message-references summary::-webkit-details-marker{display:none}.message-references summary::before{content:"＋";display:inline-grid;place-items:center;width:18px;height:18px;border:1px solid rgba(22,77,57,.28);border-radius:50%;font-size:13px;line-height:1}.message-references[open] summary::before{content:"−"}.message-references-body{margin-top:10px;padding:10px 12px;border-radius:8px;background:rgba(255,255,255,.5);font-size:14px;line-height:1.65;white-space:pre-wrap}.message-references-body a{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom;white-space:nowrap}.message-references summary:focus-visible{outline:2px solid rgba(22,77,57,.28);outline-offset:3px;border-radius:4px}
