#kp-adineh-root{position:fixed;bottom:20px;right:20px;z-index:99990;font:14px/1.55 system-ui,-apple-system,sans-serif;color:#17294b;direction:ltr}
#kp-adineh-root *{box-sizing:border-box}
#kp-adineh-toggle{background:#112d52;border:1px solid #b99b53;border-radius:35px;color:#fff;padding:12px 18px;cursor:pointer;box-shadow:0 6px 24px #0003}
#kp-adineh-panel{width:min(350px,calc(100vw - 28px));height:470px;max-height:75vh;background:#fff;border:1px solid #b99b53;border-radius:16px;box-shadow:0 12px 35px #0003;overflow:hidden;position:absolute;right:0;bottom:55px;display:flex;flex-direction:column}
#kp-adineh-panel[hidden]{display:none}
.kp-adineh-head{padding:13px 15px;background:#112d52;color:#fff;display:flex;flex-direction:column}
.kp-adineh-head span{color:#e9d39a;font-size:12px}
.kp-adineh-messages{padding:12px;overflow:auto;flex:1;background:#f9f7f0}
.kp-adineh-messages p{white-space:pre-wrap;overflow-wrap:anywhere;padding:10px 12px;border-radius:12px;margin:6px 0;max-width:94%}
.kp-adineh-bot{background:#fff;border:1px solid #ede6d6;align-self:flex-start}
.kp-adineh-user{background:#e6e9f1;margin-left:auto!important}
#kp-adineh-form{padding:8px 12px;display:flex;flex-direction:column;gap:5px;background:#fff}
#kp-adineh-form label{font-size:12px;color:#343f54}
#kp-adineh-text{font:inherit;resize:vertical;border:1px solid #a8b0ba;border-radius:7px;width:100%;padding:5px}
.kp-adineh-actions{display:flex;gap:6px;align-items:center;justify-content:space-between}
.kp-adineh-actions label{max-width:70%;font-size:10px;display:flex;align-items:start;gap:4px}
.kp-adineh-actions button{background:#112d52;color:#fff;padding:7px;border:0;border-radius:6px;cursor:pointer}
#kp-adineh-delete{font-size:11px;cursor:pointer;background:#fff;border:0;border-top:1px solid #ddd;padding:7px;color:#535b6d}
@media(max-width:500px){#kp-adineh-root{right:12px;bottom:12px}}

.kp-adineh-avatar{width:46px;height:46px;object-fit:cover;object-position:50% 22%;border-radius:50%;border:2px solid #c49c52;vertical-align:middle;margin-inline-end:8px}#kp-adineh-toggle{display:flex;align-items:center}.kp-adineh-head{flex-wrap:wrap}
/* 1.0.1: readable links and a compact panel on small screens. */
#kp-adineh-panel{bottom:calc(100% + 10px);height:500px;max-height:min(75vh,calc(100dvh - 150px));text-align:start}
.kp-adineh-head{display:grid;grid-template-columns:46px 1fr;column-gap:10px;align-items:center;flex-shrink:0;padding:12px}
.kp-adineh-head .kp-adineh-avatar{grid-column:1;grid-row:1 / 3;margin:0}
.kp-adineh-head strong,.kp-adineh-head span{grid-column:2;line-height:1.6}
.kp-adineh-messages{min-height:0;text-align:start;overscroll-behavior:contain}
#kp-adineh-form,#kp-adineh-delete{flex-shrink:0}
#kp-adineh-text{font-size:16px;max-height:90px;min-height:52px}
.kp-adineh-actions span{font-size:11px;line-height:1.6;flex:1}
.kp-adineh-actions button{min-width:62px;flex-shrink:0}
.kp-adineh-book-link{display:inline-block;padding:7px 12px;margin:5px 2px;background:#112d52;color:#fff!important;border:1px solid #b99b53;border-radius:7px;text-decoration:none!important;white-space:normal;overflow-wrap:normal}
@media(max-width:500px){#kp-adineh-toggle{padding:7px 12px}.kp-adineh-head{padding:9px 12px}.kp-adineh-head span{font-size:11px}#kp-adineh-panel{max-height:calc(100dvh - 160px)}#kp-adineh-text{resize:none}}
