:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#233f3d;background:#f7f8f5;font-size:15px;line-height:1.6;font-synthesis:none;--forest:#123b3b;--teal:#28615b;--gold:#c3a66c;--muted:#73827c;--line:#e2e7e0}*{box-sizing:border-box}body{margin:0;height:100dvh;display:flex;flex-direction:column;overflow:hidden}button,input,textarea,select{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #b99a54;outline-offset:4px}svg{width:20px;height:20px;flex-shrink:0}a{color:var(--teal)}button{border:1px solid var(--line);border-radius:10px;background:white;color:var(--forest);padding:10px 15px}button:hover:not(:disabled){background:#edf2ed}button,a,textarea{transition:background .18s,border-color .18s,box-shadow .18s}.topbar{flex:0 0 76px;display:flex;align-items:center;gap:25px;padding:0 30px;background:var(--forest);color:#fff;border-bottom:1px solid #ffffff10}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:white;font-size:21px;font-weight:700;letter-spacing:.02em}.brand img{border-radius:10px}.brand small{display:block;font-size:8px;font-weight:500;letter-spacing:.2em;color:#b6c8bf;margin-top:-1px}.topbar-divider{height:28px;width:1px;background:#ffffff25}.module-name{color:#d0dfd7;font-size:14px}.back-link{margin-left:auto;display:flex;align-items:center;gap:10px;font-size:12px;color:#d9e5dc;text-decoration:none}.back-link:hover{color:white}.back-link svg{width:16px}.app-shell{display:grid;grid-template-columns:232px minmax(0,1fr);flex:1;min-height:0}.sidebar{background:var(--forest);color:#c9d8cf;display:flex;flex-direction:column;justify-content:space-between;padding:30px 18px 22px}.nav-label{font-size:9px;font-weight:600;letter-spacing:.18em;margin:0 14px 18px;color:#9bb4a8}.new-chat{width:100%;display:flex;align-items:center;gap:12px;border-color:#809b823e;background:#ffffff0a;color:#f6f4e9;padding:13px 15px;margin-bottom:28px;font-size:13px}.sidebar .new-chat:hover{background:#ffffff15}.nav-button,.nav-current{width:100%;display:flex;align-items:center;gap:12px;border:0;text-align:left;border-radius:9px;padding:13px 15px;font-size:13px;background:transparent;color:#b7cdc0}.nav-current{background:#ffffff0e;color:#ead7aa;margin-bottom:4px}.nav-dot{width:5px;height:5px;border-radius:50%;background:var(--gold);margin-left:auto}.sidebar .nav-button:hover{background:#ffffff0b;color:white}.sidebar-note{margin:0 15px 28px;padding-top:22px;border-top:1px solid #ffffff15}.tiny-star{color:var(--gold);font-size:23px}.sidebar-note p{font-size:13px;line-height:1.9;color:#b8cabb}.sidebar-signature{display:block;font-size:8px;letter-spacing:.18em;color:#86a499;padding:18px 15px 0}.workspace{min-width:0;min-height:0;display:flex;flex-direction:column;background:radial-gradient(ellipse at 50% 28%,#edf2eaa0,transparent 65%),#f8f9f6}.workspace-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 34px;border-bottom:1px solid var(--line);flex-shrink:0;font-size:12px}.workspace-heading>span:first-child{display:flex;align-items:center;gap:9px;font-weight:600}.workspace-heading svg{color:#8d9b83;width:17px}.workspace-caption{font-size:11px;color:var(--muted)}.conversation-scroll{overflow:auto;overscroll-behavior:contain;min-height:0;flex:1;padding:30px 32px;scrollbar-width:thin;scrollbar-color:#c8d3c8 transparent}.intro{max-width:790px;margin:clamp(6px,4vh,44px) auto 20px;text-align:center}.intro-symbol{display:grid;place-items:center;width:63px;height:63px;margin:0 auto 23px;border-radius:22px;background:linear-gradient(145deg,#f4f2e4,#e5eee2);border:1px solid #dce4d3;box-shadow:0 8px 20px #24452907;color:#647a51}.intro-symbol svg{width:31px;height:31px;stroke-width:1.2}.eyebrow{font-size:9px;letter-spacing:.19em;font-weight:650;color:#7d8c6b;margin:0 0 15px}h1{font-size:clamp(28px,3.2vw,44px);font-weight:500;letter-spacing:-.045em;line-height:1.23;margin:0 0 19px}h1 em{font-weight:400;font-style:normal;color:#658266}.intro-description{font-size:13px;line-height:1.85;color:#738279;margin:0 auto 30px}.starters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;text-align:left}.starters button{position:relative;display:flex;flex-direction:column;align-items:flex-start;padding:18px 16px;background:#ffffffb8;border-color:#dfe6dc;border-radius:14px;min-height:144px}.starters button:hover:not(:disabled){background:white;border-color:#97af94;box-shadow:0 8px 24px #274b3410}.starter-icon{display:grid;place-items:center;width:33px;height:33px;background:#eff3ea;border-radius:9px;color:#648563;margin-bottom:14px}.starter-icon svg{width:18px;height:18px}.starters strong{font-size:11px;font-weight:600;line-height:1.6}.starters button>span:not(.starter-icon){font-size:10px;color:#819082;margin-top:3px}.starters button>svg{position:absolute;right:13px;top:20px;width:14px;height:14px;color:#8b9d86}#messages{max-width:790px;margin:auto;display:flex;flex-direction:column;gap:26px}#messages:empty{display:none}.message{padding:2px 0;overflow-wrap:anywhere;animation:arrive .2s ease-out}.message.user{align-self:flex-end;max-width:85%;padding:13px 20px;border:1px solid #dfe7dc;border-radius:18px 18px 4px 18px;background:#eaf0e6;color:#244d40}.message.user p{margin:0}.message.assistant{max-width:100%;font-size:14px;line-height:1.85}.message-label{display:flex;align-items:center;gap:9px;margin:0 0 12px;font-size:10px;font-weight:650;letter-spacing:.04em;color:#6c8065}.message-label:before{content:'✦';font-size:19px;color:#8b996c}.message p{white-space:pre-wrap;margin:0 0 15px}.message .actions{margin-top:18px}.message .actions button{font-size:12px;background:transparent;border-color:#d7e2d3}.copy-button{display:inline-flex;align-items:center;padding:7px 0;border:0;background:transparent;font-size:11px;color:#7a8974;margin-top:12px}.copy-button:hover:not(:disabled){background:transparent;color:var(--forest)}.sources{font-size:12px;color:#5f795d;border-top:1px solid var(--line);padding-top:10px}.sources a,.sources span{display:block;margin:6px 0}.composer{flex-shrink:0;width:min(100%,854px);margin:0 auto;padding:12px 32px 18px;background:linear-gradient(0deg,#f8f9f6 80%,#f8f9f600)}#chat-form{background:#fff;border:1px solid #d5dfd2;box-shadow:0 5px 22px #213e3010;border-radius:18px;padding:16px 16px 12px}#chat-form:focus-within{border-color:#799e78;box-shadow:0 4px 24px #315c3514}textarea{display:block;width:100%;resize:vertical;padding:12px;border:1px solid #cbd9ca;border-radius:10px;background:#fff;color:#233f3d;min-height:60px}#message{padding:0 4px;border:0;border-radius:0;outline:none;font-size:14px;line-height:1.7;resize:none;min-height:48px;max-height:132px;overflow-y:auto}#message::placeholder{color:#8a9786}.composer-toolbar{display:flex;align-items:center;gap:10px;margin-top:10px}.mode-control{display:flex;align-items:center;min-width:0;gap:4px;color:#6d8663}.mode-control svg{width:15px;height:15px}.mode-control select{border:0;background:transparent;font-size:11px;color:#577150;padding:8px 19px 8px 4px;max-width:100%;cursor:pointer}.keyboard-hint{margin-left:auto;font-size:9px;color:#9ba693}#send{display:flex;align-items:center;justify-content:center;gap:6px;background:var(--forest);color:white;border:0;border-radius:10px;min-height:38px;padding:8px 14px;font-size:11px}#send:hover:not(:disabled){background:#28615b}#send svg{width:16px;height:16px}#stop{font-size:11px;padding:7px 10px;min-height:38px}.composer-meta{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:9px 4px 0;font-size:10px;color:#7d8b77}#status{margin:0;max-width:70%;line-height:1.5}#status[data-state="error"]{color:#9a4b32}#status[data-state="busy"]:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:7px;background:#6d936a;animation:pulse 1s infinite alternate}#learning-indicator{border:0;background:transparent;padding:0;color:#6b8263;font-size:10px;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}.composer-disclaimer{font-size:9px;color:#879180;text-align:center;margin:7px 0 0}dialog{border:1px solid #d8e0d4;border-radius:22px;padding:28px;color:#29443d;background:#fafbf8;width:min(760px,calc(100% - 28px));max-height:85dvh;overflow:auto;box-shadow:0 25px 100px #082b3830}dialog::backdrop{background:#0b29296e;backdrop-filter:blur(5px)}dialog p{font-size:13px;line-height:1.8}dialog .eyebrow{margin-bottom:6px}.learning-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:20px}h2{font-size:24px;letter-spacing:-.03em;margin:0}h3{font-size:16px;margin:28px 0 10px}.learning-heading button{font-size:12px;flex-shrink:0}#close-info{display:grid;place-items:center;padding:10px}.actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.actions button,.actions a{font-size:12px}.actions a{padding:8px 0}.learning-row{border-top:1px solid var(--line);margin-top:20px;padding:16px 0}.source-text{white-space:pre-wrap;max-height:260px;overflow:auto;padding:12px;background:#edf2ea;overflow-wrap:anywhere}summary{cursor:pointer;font-weight:550;font-size:13px}#learning>details{margin-top:24px;padding:18px;background:#eef3e9;border-radius:12px}.check{display:flex;gap:10px;font-size:12px;font-weight:400}.check input{align-self:center}.subtle{font-size:12px;color:#72816d}label{display:block;font-size:13px;font-weight:600;margin:12px 0 6px}#learning button{margin-top:4px}#learning .ki-learning-bar{font-size:12px;margin:24px 0 0;box-shadow:none}#learning .ki-learning-bar a{display:none}.sr-only,.skip-link:not(:focus){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:focus{position:fixed;top:10px;left:10px;z-index:20;background:white;padding:12px;border-radius:10px}[hidden]{display:none!important}@keyframes arrive{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}@keyframes pulse{to{opacity:.3}}
@media(min-width:1500px){.intro{margin-top:8vh}}
@media(max-width:1000px){.app-shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding-inline:12px}.starters{gap:8px}.starters button{padding:15px 12px}.conversation-scroll{padding:24px}.composer{padding-inline:24px}.workspace-caption{display:none}}
@media(max-width:700px){.topbar{flex-basis:64px;padding:0 18px;gap:14px}.brand{font-size:18px;gap:9px}.brand img{width:35px;height:35px}.brand small{font-size:6px}.module-name{font-size:12px}.topbar-divider{height:23px}.back-link{font-size:10px;gap:5px}.back-link svg{width:13px}.app-shell{display:flex;flex-direction:column}.sidebar{padding:8px 14px;background:#f4f6f0;flex-direction:row;justify-content:space-between;gap:8px;border-bottom:1px solid var(--line);flex-shrink:0}.sidebar-top{display:flex;gap:6px;min-width:0}.sidebar-bottom{display:flex}.nav-label,.nav-current,.sidebar-note,.sidebar-signature{display:none}.new-chat,.nav-button{width:auto;margin:0;gap:7px;font-size:11px;padding:8px 10px;min-height:38px;color:#52704f;white-space:nowrap}.new-chat{background:white;border-color:#d9e3d5;color:var(--forest)}.sidebar .new-chat:hover,.sidebar .nav-button:hover{background:#e3ebdf;color:var(--forest)}.sidebar .nav-button svg,.new-chat svg{width:16px;height:16px}.sidebar-bottom .nav-button{padding:8px}.sidebar-bottom .nav-button span{display:none}.workspace{flex:1}.workspace-heading{display:none}.conversation-scroll{padding:24px 20px 18px}.intro{margin:2px auto 14px}.intro-symbol{width:48px;height:48px;border-radius:16px;margin-bottom:17px}.intro-symbol svg{width:25px;height:25px}.eyebrow{font-size:8px;letter-spacing:.15em;margin-bottom:13px}h1{font-size:30px;margin-bottom:15px;line-height:1.2}.intro-description{font-size:12px;line-height:1.7;max-width:310px;margin-bottom:22px}.desktop-break{display:none}.starters{grid-template-columns:1fr;gap:8px;max-width:390px;margin:auto}.starters button{display:grid;grid-template-columns:34px 1fr;column-gap:11px;min-height:67px;padding:12px 35px 12px 13px;border-radius:12px}.starter-icon{grid-row:1/3;margin:0;align-self:center;width:32px;height:32px}.starters strong{font-size:11px;align-self:end}.starters button>span:not(.starter-icon){font-size:10px;margin-top:0}.starters button>svg{top:25px}.composer{padding:9px 14px max(10px,env(safe-area-inset-bottom));width:100%}#chat-form{padding:13px 13px 10px;border-radius:16px}#message{font-size:16px;min-height:44px;max-height:100px}.composer-toolbar{margin-top:4px;gap:8px}.mode-control select{font-size:11px;min-height:40px;padding-right:5px}.keyboard-hint{display:none}#send{margin-left:auto;width:40px;height:40px;padding:0}#send span{display:none}#send svg{width:19px;height:19px}.composer-meta{padding-top:7px;font-size:9px;gap:6px}#learning-indicator{font-size:9px;min-height:24px}#status{max-width:60%}.composer-disclaimer{font-size:8px;margin:3px 0 0}.message.assistant{font-size:14px}.message.user{font-size:14px;max-width:90%;padding:11px 16px}.message-label{font-size:9px}dialog{padding:20px;border-radius:18px;max-height:90dvh}.learning-heading{gap:8px}h2{font-size:21px}.learning-heading button{font-size:11px;padding:8px}.actions button{min-height:40px}}
@media(max-width:360px){.module-name,.topbar-divider{display:none}.conversation-scroll{padding:20px 15px}h1{font-size:27px}.new-chat,.nav-button{font-size:10px;padding-inline:8px}}
@media(prefers-reduced-motion:reduce){*,*:before{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

#capture-toggle{border:0;background:transparent;padding:0;color:#52704f;font-size:10px;text-decoration:underline;text-underline-offset:3px;min-height:24px}#capture-toggle:hover{background:transparent;color:#123b3b}

#research-form{display:grid;gap:12px}#research-query{width:100%;padding:12px;border:1px solid #b5cbc7;border-radius:8px;font:inherit}#open-research{padding:8px 14px;border:1px solid #b5cbc7;border-radius:8px;background:#fff;color:#123b3b;cursor:pointer}

[hidden]{display:none!important}.attachment-actions{display:flex;gap:8px;margin:3px 0 8px}.attachment-actions button{padding:7px 12px;font-size:13px;border:1px solid #d5dfec;background:#fff}#attachment-status{font-size:12px;color:#526881;max-height:70px;overflow:auto;overflow-wrap:anywhere}#attachments{display:flex;gap:8px;overflow:auto;max-height:140px;margin:6px 0}#attachments:empty{display:none}.attachment-card{flex:0 0 auto;display:flex;align-items:center;gap:8px;padding:9px;border:1px solid #ccd9e8;border-radius:10px;max-width:100%;background:#f8fafd}.attachment-card.selected{border-color:#4776ae;background:#f0f5fc}.attachment-card img{object-fit:cover;border-radius:6px}.attachment-detail{min-width:0}.attachment-detail strong{display:block;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.attachment-detail small{display:block;font-size:11px;color:#536880}.attachment-card button{font-size:12px;padding:5px 7px;background:#fff;border:1px solid #d5dfec}#attachment-tools{font-size:11px;color:#64748b;margin-bottom:8px}#attachment-tools button{font-size:12px;padding:4px 7px;margin-right:6px}#document-dialog{width:min(860px,calc(100% - 24px))}.document-dialog h2{overflow-wrap:anywhere}.document-dialog input,.document-dialog textarea{font:inherit;width:100%;min-width:0;padding:10px;border:1px solid #b7c7dc;border-radius:8px;color:#1b2c46;background:white}.document-dialog textarea{resize:vertical;line-height:1.5}.document-command-row{display:flex;gap:8px;margin:6px 0}.document-command-row button{white-space:nowrap}.document-instructions{font-size:13px;margin:14px 0}.document-instructions summary{cursor:pointer}.document-pagination,.document-footer{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:16px 0}.document-pagination{justify-content:space-between;font-size:12px}.document-field{display:block;margin:14px 0}.document-field textarea{display:block;margin:5px 0;font-weight:400}.document-footer{padding-top:12px;border-top:1px solid #dbe3ee}.primary{background:#214f8c;color:white}#document-feedback{padding:10px;background:#eef4fc;border-radius:8px;white-space:pre-wrap}#document-feedback:empty{display:none}.document-change{border:1px solid #d6e1ef;border-radius:9px;padding:12px;margin:12px 0}.document-change h3{font-size:15px;margin:0 0 8px}.document-change pre{font:14px/1.5 system-ui;white-space:pre-wrap;overflow-wrap:anywhere;background:#f4f7fb;padding:10px;border-radius:6px}.document-change small{font-weight:700;color:#526881}#camera-video,#attached-image{display:block;width:100%;max-height:52dvh;object-fit:contain;background:#101c2b;border-radius:10px;margin:14px auto}.camera-actions{display:flex;flex-wrap:wrap;gap:8px}textarea:focus-visible{outline:3px solid #739ed8;outline-offset:2px}@media(max-width:600px){.document-command-row{flex-wrap:wrap}.document-command-row button{width:100%}.attachment-detail strong{max-width:130px}.composer{padding-top:6px}.composer-note{margin-top:5px}.attachment-actions{margin-bottom:4px}.attachment-actions button{padding:6px 9px}#attachment-tools span{display:block;margin-top:3px}.document-footer button{flex:1 1 auto;font-size:13px}.document-dialog{padding:16px}.document-dialog .dialog-head h2{font-size:17px}}
.document-dialog{width:min(900px,95vw);max-height:90dvh;overflow:auto}.document-dialog textarea,.document-dialog input{font:inherit;width:100%;box-sizing:border-box}.document-dialog button{padding:8px 12px;border:1px solid #b5cbc7;border-radius:7px;cursor:pointer}.document-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere}.composer{max-height:65dvh;overflow:auto}
