:root{--bg:#f3f7fa;--ink:#183145;--soft:#506780;--green:#14685c;--line:#d8e3ec}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 Inter,system-ui,sans-serif}
h1,h2,p{margin:0}h1{font-size:clamp(25px,4vw,38px);line-height:1.18}h2{font-size:18px}
a{color:var(--green);font-weight:700;text-decoration:none}a:hover{text-decoration:underline}
button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:default}
:focus-visible{outline:3px solid #329686;outline-offset:2px}
.bot-shell{width:min(1160px,calc(100% - 28px));margin:auto;padding:20px 0 32px}
.bot-hero{background:linear-gradient(115deg,#17364b,#14685c);color:white;padding:clamp(20px,4vw,34px);border-radius:19px;margin:14px 0}
.bot-hero p{margin-top:7px;color:#e0f1ef}
.bot-grid,.bot-languages{display:grid;gap:14px}.bot-grid{grid-template-columns:minmax(190px,1fr) minmax(0,3fr);align-items:start}.bot-languages{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:12px}
.bot-panel{background:white;border:1px solid var(--line);border-radius:15px;padding:16px;min-width:0}
.bot-bar,.bot-links{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.bot-links{justify-content:flex-start;font-size:13px}
.bot-menus{display:grid;gap:5px;margin-top:12px;max-height:62vh;overflow:auto}
.bot-menus a{display:flex;justify-content:space-between;gap:6px;padding:8px 9px;border-radius:8px;background:#f1f7f6;font-size:13px;overflow-wrap:anywhere}
.bot-menus a[aria-current]{background:#d9eee9}.bot-menus small,.bot-help{color:var(--soft)}
form>label,fieldset label{display:grid;gap:4px;margin-top:9px;font-weight:700}
input,textarea{width:100%;border:1px solid #b9cad8;border-radius:8px;padding:8px;background:white;color:var(--ink)}textarea{resize:vertical}
.bot-check{display:flex;align-items:center;gap:7px}.bot-check input{width:auto}
fieldset{margin:0;min-width:0;border:1px solid var(--line);border-radius:10px;padding:10px}legend{font-weight:800}
.bot-help{margin:12px 0;font-size:13px}
.bot-primary,.bot-danger,.bot-chat button{border:1px solid var(--line);border-radius:8px;padding:8px 12px;color:var(--green);background:white;font-weight:750}
.bot-primary{background:var(--green);color:white}.bot-danger,.bot-error{color:#9a3140}
.bot-notice{background:#e4f4f1;padding:10px 12px;border-radius:9px;margin:0 0 12px}.bot-error{background:#ffe9ed}
.bot-public{display:grid;place-items:center;min-height:100dvh;padding:16px}
.bot-chat{display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:min(100%,650px);height:min(760px,calc(100dvh - 32px));background:#edf5f4;border-radius:18px;overflow:hidden;border:1px solid var(--line)}
.bot-chat-head,.bot-chat-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px;background:white;flex-wrap:wrap}
.bot-chat-head{background:#135e54;color:white}.bot-chat-head a{color:white}.bot-chat-head h1{font-size:20px}.bot-language{display:flex;gap:5px}.bot-language button[aria-pressed="true"]{background:#d5f4e9}
.bot-thread{overflow:auto;padding:15px;display:flex;flex-direction:column;gap:11px}
.bot-bubble{align-self:flex-start;width:fit-content;max-width:92%;white-space:pre-wrap;overflow-wrap:anywhere;background:white;border:1px solid var(--line);border-radius:4px 12px 12px;padding:11px 13px}
.bot-mine{align-self:flex-end;background:#d9f1e8;border-radius:12px 4px 12px 12px}
.bot-choices{display:grid;gap:6px;margin-top:9px}.bot-choices a,.bot-choices button{background:#eff8f6;text-align:left;border-radius:8px;padding:9px;white-space:normal}
.bot-chat-footer{border-top:1px solid var(--line)}
@media(max-width:680px){.bot-grid,.bot-languages{grid-template-columns:1fr}.bot-menus{max-height:185px}.bot-public{padding:0}.bot-chat{height:100dvh;border:0;border-radius:0}}
