:root { --kadict-help-purple:#6d28d9; }
.kadict-visually-hidden { position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
.kadict-assistant { position:fixed;right:1.25rem;bottom:1.25rem;z-index:60;font-family:ui-sans-serif,system-ui,sans-serif;line-height:1.5;color:#251a35; }
.kadict-assistant [hidden] { display:none!important; }
.kadict-assistant-launcher { display:flex;align-items:center;gap:.6rem;min-height:3rem;padding:.65rem 1rem;border:1px solid #ffffff40;border-radius:999px;background:#35204f;color:white;box-shadow:0 5px 24px #24103e30;font-size:.8rem;font-weight:650;cursor:pointer; }
.kadict-assistant-launcher>span:first-child { display:grid;place-items:center;width:1.6rem;height:1.6rem;border:1px solid #ffffff80;border-radius:50%;font-weight:750; }
.kadict-assistant-dialog { position:absolute;bottom:3.8rem;right:0;display:flex;flex-direction:column;width:min(25rem,calc(100vw - 2rem));max-height:min(43rem,calc(100dvh - 7rem));background:white;border:1px solid #e4d9f2;border-radius:1.2rem;box-shadow:0 20px 65px #24103e30;overflow:hidden; }
.kadict-assistant-dialog>header { display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1.15rem;background:#f4effc;border-bottom:1px solid #e8dff4;flex-shrink:0; }
.kadict-assistant-dialog header strong { font-size:.95rem;font-weight:750; }
.kadict-assistant-dialog header p { margin:.15rem 0 0;font-size:.68rem;color:#736080; }
.kadict-assistant-dialog header button { border:0;background:transparent;font-size:1.5rem;color:#5a436e;cursor:pointer;width:2rem;height:2rem; }
.kadict-assistant-disclosure { padding:.7rem 1rem;margin:0;border-bottom:1px solid #eee8f5;font-size:.64rem;color:#74647f;flex-shrink:0; }
.kadict-assistant-messages { overflow-y:auto;min-height:5rem;max-height:20rem;padding:1rem;display:flex;flex-direction:column;gap:.7rem; }
.kadict-assistant-messages p { padding:.75rem .85rem;font-size:.77rem;line-height:1.7;border-radius:.8rem;margin:0;overflow-wrap:anywhere; }
.kadict-assistant-reply { background:#f4effc; }
.kadict-assistant-question { background:#6d28d9;color:white;align-self:flex-end; }
.kadict-assistant-messages a { display:inline-block;margin-top:.5rem;color:#5b21b6;text-decoration:underline;font-weight:650; }
.kadict-assistant-topics { display:flex;gap:.4rem;flex-wrap:wrap;padding:0 1rem .8rem;max-height:6.5rem;overflow-y:auto;flex-shrink:0; }
.kadict-assistant-topics button { padding:.35rem .6rem;border:1px solid #ded2ec;border-radius:999px;background:white;color:#67468a;font-size:.63rem;cursor:pointer; }
.kadict-assistant form { display:flex;gap:.45rem;padding:.8rem 1rem;border-top:1px solid #e8dff4;flex-shrink:0; }
.kadict-assistant input { min-width:0;flex:1;min-height:2.6rem!important;padding:.5rem .6rem;border:1px solid #dcd1e8;border-radius:.65rem;background:white;font-size:.75rem;color:#251a35; }
.kadict-assistant form button { padding:.5rem .85rem;border:0;border-radius:.65rem;background:#6d28d9;color:white;font-size:.75rem;font-weight:650;cursor:pointer; }
.kadict-assistant-support { display:block;padding:0 1rem .85rem;font-size:.68rem;color:#6d28d9;text-align:center;flex-shrink:0; }
.kadict-assistant :focus-visible,.kadict-notice button:focus-visible { outline:3px solid #a78bfa;outline-offset:3px; }
.kadict-notifications { position:fixed;top:5.7rem;right:1.25rem;z-index:70;display:flex;flex-direction:column;gap:.65rem;max-width:min(27rem,calc(100vw - 2.5rem));font-family:ui-sans-serif,system-ui,sans-serif; }
.kadict-notice { display:flex;align-items:flex-start;gap:.8rem;padding:1rem 1.1rem;border:1px solid #d8c9ec;border-left:4px solid #7c3aed;border-radius:.9rem;background:white;color:#35204f;box-shadow:0 6px 30px #24103e18;font-size:.8rem;animation:kadict-notice-in .25s ease-out; }
.kadict-notice-success { border-left-color:#16a34a; }
.kadict-notice-error { border-left-color:#dc2626; }
.kadict-notice-warning { border-left-color:#d97706; }
.kadict-notice button { border:0;background:transparent;color:#695675;font-size:1.15rem;line-height:1;padding:.1rem;cursor:pointer; }
.kadict-captcha-field { margin-block:1rem; }
.kadict-captcha-message { font-size:.75rem;color:#b42335;margin-top:.4rem; }
@keyframes kadict-notice-in { from { opacity:0;transform:translateY(-8px); } to { opacity:1;transform:translateY(0); } }
@media(max-width:600px) { .kadict-assistant { bottom:1rem;right:1rem; } .kadict-assistant-launcher>span:last-child { display:none; } .kadict-assistant-launcher { padding:.65rem; } .kadict-assistant-dialog { max-height:calc(100dvh - 6.5rem); } .kadict-notifications { top:5rem;right:1rem;max-width:calc(100vw - 2rem); } }
@media(prefers-reduced-motion:reduce) { .kadict-notice { animation:none; } }
