.kido-root{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));z-index:90;font-family:'DM Sans',sans-serif;font-size:15px;line-height:1.55;color:#203c35}
.kido-root *{box-sizing:border-box}.kido-root button,.kido-root input{font:inherit;letter-spacing:0}
.kido-launcher{display:flex;align-items:center;justify-content:center;gap:10px;min-height:58px;padding:10px 20px;color:#f8f7f2;background:#203c35;border:1px solid #c3ad77;border-radius:8px;box-shadow:0 5px 24px #10271e25;cursor:pointer;transition:background .2s,box-shadow .2s}
.kido-launcher svg{width:30px;height:30px;color:#dfc890}.kido-launcher span{font-size:16px}.kido-launcher:hover{background:#2b4b40;box-shadow:0 7px 28px #10271e35}
.kido-panel{position:absolute;bottom:76px;right:0;display:flex;flex-direction:column;width:390px;max-width:calc(100vw - 32px);height:620px;max-height:calc(100dvh - 125px);border:1px solid #c3b88f;background:#f8f7f2;border-radius:8px;box-shadow:0 20px 70px #10271e35;overflow:hidden}
.kido-panel[hidden]{display:none}.kido-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 20px;background:#203c35;color:#f8f7f2;flex:none}.kido-header strong{font-size:24px;font-weight:500;line-height:1.1}.kido-header p{margin:4px 0 0;color:#d4ddd4;font-size:13px}
.kido-close{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:12px;border:0;background:transparent;color:#f8f7f2;cursor:pointer}.kido-close svg{width:20px;height:20px}
.kido-messages{flex:1;min-height:120px;overflow:auto;overscroll-behavior:contain;padding:18px 16px 8px;scrollbar-width:thin}.kido-message{margin-bottom:14px;padding:14px;border-radius:4px;background:#e9ede6;overflow-wrap:anywhere}.kido-message p{margin:4px 0 0;font-size:15px;line-height:1.6;color:inherit}.kido-speaker{font-size:12px;font-weight:600;color:#69735f}.kido-message-user{margin-left:35px;background:#203c35;color:#fffdf4}.kido-message-user .kido-speaker{color:#dbcd9f}
.kido-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.kido-actions a{display:inline-block;padding:9px 11px;background:#f8f7f2;border:1px solid #c5cbbc;border-radius:3px;color:#203c35;text-decoration:none;font-size:14px;line-height:1.4}.kido-actions a:hover{background:#dedfcf}
.kido-topics{flex:none;padding:0 16px;max-height:145px;overflow:auto}.kido-suggestions,.kido-extra{display:flex;flex-wrap:wrap;gap:7px}.kido-suggestions button,.kido-extra button{padding:7px 10px;border:1px solid #c4cebe;border-radius:3px;background:transparent;color:#203c35;font-size:13px;line-height:1.4;cursor:pointer;min-height:35px;max-width:100%;white-space:normal}.kido-suggestions button:hover,.kido-extra button:hover{background:#e9ede6}
.kido-more summary{cursor:pointer;font-size:13px;padding:9px 0;color:#526354;list-style:revert}.kido-extra{padding-bottom:10px}
.kido-form{display:flex;flex:none;gap:8px;padding:10px 16px 0;margin:0}.kido-form input{width:100%;min-width:0;min-height:46px;padding:11px 12px;border:1px solid #bcc8b8;border-radius:3px;background:#fffefa;color:#203c35;font-size:16px}.kido-form button{display:grid;place-items:center;flex:none;width:46px;min-height:46px;padding:11px;border:1px solid #203c35;border-radius:3px;background:#203c35;color:#f8f7f2;cursor:pointer}.kido-form button svg{width:23px;height:23px}
.kido-note{flex:none;font-size:11px;line-height:1.5;color:#64756c;margin:9px 16px 0}.kido-privacy{align-self:flex-start;font-size:11px;color:#64756c;margin:4px 16px 10px;text-decoration:underline;text-underline-offset:3px}.kido-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.kido-root button:focus-visible,.kido-root a:focus-visible,.kido-root summary:focus-visible,.kido-root input:focus-visible{outline:2px solid #ad8c4d;outline-offset:3px}
.kido-message p{font-size:16px}.kido-suggestions button,.kido-extra button{font-size:14px}.kido-note,.kido-privacy{font-size:12px}
.kido-panel>.kido-header{position:static;inset:auto;width:100%;max-width:none;height:auto;min-height:84px;margin:0;padding:16px 20px;flex:0 0 auto;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;transform:none}
.kido-launcher{gap:8px;padding-left:10px;padding-right:18px}
.kido-launcher .kido-launcher-mascot{display:block;width:64px;height:86px;max-width:none;object-fit:contain;margin-top:-28px;margin-bottom:-10px;pointer-events:none}
.kido-header-identity{display:flex;align-items:center;gap:12px;min-width:0;flex:1}
.kido-avatar{width:65px;height:88px;flex:none;margin-block:-7px;pointer-events:none}
.kido-avatar svg{display:block;width:100%;height:100%;overflow:visible}
.kido-header-identity>div:last-child{min-width:0}
.kido-panel>.kido-header{min-height:100px;padding:12px 18px}
body.menu-open .kido-root{visibility:hidden}
@media(max-width:480px){.kido-root{right:16px;bottom:max(16px,env(safe-area-inset-bottom))}.kido-panel{width:calc(100vw - 32px);bottom:72px;height:630px;max-height:calc(100dvh - 108px)}.kido-launcher{min-height:54px;padding:9px 16px}.kido-messages{padding:14px 12px 4px}.kido-topics{padding-inline:12px;max-height:120px}.kido-form{padding-inline:12px}.kido-note{margin-inline:12px}.kido-privacy{margin-left:12px}}
@media(prefers-reduced-motion:reduce){.kido-launcher{transition:none}}
@media(max-width:480px){.kido-launcher{padding-left:8px;padding-right:16px}.kido-launcher .kido-launcher-mascot{width:59px;height:79px;margin-top:-25px;margin-bottom:-10px}.kido-avatar{width:59px;height:80px}.kido-panel>.kido-header{min-height:94px;padding:12px 16px}.kido-header-identity{gap:10px}}
@media(max-height:650px){.kido-messages{min-height:80px}.kido-topics{max-height:108px}}

.kido-launcher .kido-launcher-mascot svg{display:block;width:100%;height:100%;overflow:visible}

.kido-launcher .kido-launcher-label{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;line-height:1.25}.kido-launcher-label strong{font-size:16px;font-weight:500}.kido-launcher-label small{font-size:12px;font-weight:400;color:#d4ddd4;white-space:nowrap}

/* Subtle glass keeps the launcher present without a solid green block. */
.kido-launcher{background:rgba(26,51,44,.88);border-color:rgba(218,201,155,.62);backdrop-filter:blur(12px) saturate(115%);-webkit-backdrop-filter:blur(12px) saturate(115%);box-shadow:0 4px 18px #10271e1c}
.kido-launcher:hover{background:rgba(65,96,81,.84);box-shadow:0 6px 22px #10271e28}
.kido-launcher-shell{display:flex;align-items:center;justify-content:flex-end;gap:5px}
.kido-launcher .kido-launcher-label[hidden]{display:none}
@media(max-width:480px){
 .kido-compact .kido-launcher{gap:0;padding-inline:8px}
}
/* Keep more of the conversation visible when composing a question. */
.kido-panel{height:760px;max-height:calc(100dvh - 110px)}
@media(max-width:480px){
 .kido-panel{height:calc(100dvh - 96px);max-height:calc(100dvh - 96px);bottom:72px}
 .kido-panel>.kido-header{min-height:80px;padding-block:8px}
 .kido-avatar{width:52px;height:70px;margin-block:-3px}
 .kido-open .kido-topics{max-height:84px}
 .kido-messages{min-height:60px}
}


@media(max-width:480px){
 .kido-launcher-shell{gap:4px}
 .kido-compact .kido-launcher{min-height:46px;padding:5px 6px}
 .kido-compact .kido-launcher .kido-launcher-mascot{width:43px;height:58px;margin-top:-17px;margin-bottom:-5px}
}
@media(max-width:480px){
 .kido-launcher-shell{gap:0}
}
@media(max-width:480px){
 .kido-root{right:max(8px,env(safe-area-inset-right))}
 .kido-panel{max-width:calc(100vw - 16px);width:calc(100vw - 16px)}
}

/* A calm, opaque mobile dialog; the composer follows the actual keyboard viewport. */
@media(max-width:767px){
 .kido-open{inset:0;right:0;bottom:0;z-index:10000;background:#f8f7f2;isolation:isolate}
 .kido-open .kido-launcher-shell{display:none}
 .kido-open .kido-panel{position:fixed;inset:auto;top:var(--kido-viewport-top,0px);left:0;right:0;bottom:auto;width:100%;max-width:none;height:var(--kido-viewport-height,100dvh);max-height:none;border:0;border-radius:0;box-shadow:none;background:#f8f7f2;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
 .kido-open .kido-header{min-height:72px;padding:8px 14px}
 .kido-open .kido-avatar{width:42px;height:57px;margin:0}
 .kido-open .kido-messages{min-height:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
 .kido-open .kido-form{padding:10px 12px 0;background:#f8f7f2}
 .kido-open .kido-form input{font-size:16px;min-height:48px;background:#fff;box-shadow:none}
 .kido-open .kido-topics{max-height:90px}
 .kido-typing .kido-topics{display:none}
 .kido-open .kido-note{font-size:11px;margin-top:6px}
 .kido-open .kido-privacy{font-size:11px;margin-bottom:8px}
}

@media(max-width:767px){
 .kido-open .kido-topics{max-height:110px;padding:0 12px;overflow-y:auto;overflow-x:hidden}
 .kido-open .kido-suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:3px 0 5px;overflow:visible}
 .kido-open .kido-suggestions button{min-width:0;min-height:29px;padding:5px 7px;font-size:12px;line-height:1.3;white-space:normal}
 .kido-open .kido-more summary{font-size:12px;padding:3px 0 5px}
 .kido-open .kido-extra button{font-size:12px;min-height:29px;padding:5px 9px}
 .kido-typing .kido-topics{display:none}
}

/* Keep the closed mascot clear of iPhone browser chrome and footer credits. */
@media(max-width:767px){
 .kido-root:not(.kido-open){bottom:calc(40px + env(safe-area-inset-bottom,0px) + var(--kido-viewport-bottom,0px))}
 footer.shared-footer{padding-bottom:calc(136px + env(safe-area-inset-bottom,0px))}
}
