/* Little Loves v37.6.0 — writing assistant, admin settings and public chat. */
.ll-ai-writer{margin:8px 0 4px;border:1px solid #d8e4dc;border-radius:14px;background:#f7fbf8;overflow:hidden}
.ll-ai-writer-toggle{display:flex;align-items:center;gap:7px;width:100%;border:0;background:transparent;color:#315f4a;padding:9px 12px;font:inherit;font-size:.88rem;font-weight:850;text-align:left;cursor:pointer}
.ll-ai-writer-toggle:hover{background:#eef7f1}
.ll-ai-writer-panel{display:grid;gap:9px;border-top:1px solid #d8e4dc;padding:12px}
.ll-ai-writer-panel label{display:grid!important;gap:6px;font-size:.86rem;font-weight:800}
.ll-ai-writer-panel textarea{width:100%;min-height:78px;resize:vertical}
.ll-ai-word-limit{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #d8e4dc;border-radius:11px;background:#fff;padding:8px 10px}
.ll-ai-word-limit label{display:flex!important;grid-template-columns:none;align-items:center;gap:8px;margin:0}
.ll-ai-word-limit input{width:90px;padding:6px 8px}
.ll-ai-word-limit small{color:#65766c;font-size:.76rem}
.ll-ai-writer-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.ll-ai-writer-actions small{color:#65766c}
.ll-ai-writer-status{min-height:18px;margin:0;color:#315f4a;font-size:.82rem}
.ll-ai-writer-status.error{color:#a32626}
.ll-ai-writer-panel.completed{background:#f1f9f3}
.ll-ai-settings>form{display:grid;gap:18px}
.ll-ai-connection-test{display:flex;align-items:center;gap:12px;border:1px solid #dce6df;border-radius:12px;padding:10px;background:#f8fbf9}
.ll-ai-connection-test p{margin:0;color:#65766c;font-size:.82rem}
.ll-ai-connection-test p.success{color:#247044;font-weight:800}
.ll-ai-connection-test p.error{color:#a32626;font-weight:800}
.ll-ai-save-status{margin:0 auto 0 0;color:#315f4a;font-size:.84rem;font-weight:800}
.ll-ai-save-status.error{color:#a32626}
.ll-ai-section-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}
.ll-ai-section-card{display:grid!important;gap:10px;border:1px solid #dce6df;border-radius:14px;padding:13px;background:#fbfdfb}
.ll-ai-section-card>span{display:flex;align-items:center;gap:9px}
.ll-ai-section-card>span:last-child{justify-content:space-between;color:#65766c;font-size:.84rem}
.ll-ai-section-card input[type=number]{width:94px}
.ll-ai-faq-row{display:grid;gap:10px;border:1px solid #dce6df;border-radius:16px;padding:14px;margin-top:12px;background:#fbfdfb}
.ll-ai-faq-head{display:flex;align-items:center;gap:12px}
.ll-ai-faq-head .mini-check{margin-left:auto}
.ll-ai-faq-row>label{display:grid;gap:5px;font-size:.86rem;font-weight:800}
.ll-ai-message-list{display:grid;gap:10px}
.ll-ai-message-list article{display:grid;grid-template-columns:minmax(160px,.8fr) minmax(260px,2fr) 130px;gap:14px;align-items:start;border:1px solid #e0e8e3;border-radius:14px;padding:12px;background:#fff}
.ll-ai-message-list article>div{display:grid;gap:3px}
.ll-ai-message-list article span,.ll-ai-message-list article small{color:#68766e;font-size:.8rem;overflow-wrap:anywhere}
.ll-ai-message-list article p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.ll-maintenance-steps{display:grid;gap:9px;margin:0;padding-left:24px;color:#425249}
.ll-help{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:1200;font-family:var(--font-ui,"Nunito",Arial,sans-serif)}
.ll-help-launch{display:flex;align-items:center;gap:8px;border:0;border-radius:999px;background:#315f4a;color:#fff;padding:13px 18px;box-shadow:0 10px 30px rgba(27,60,44,.28);font:inherit;font-weight:900;cursor:pointer}
.ll-help-launch:hover{background:#264c3a;transform:translateY(-1px)}
.ll-help-window{position:absolute;right:0;bottom:58px;display:flex;flex-direction:column;width:min(390px,calc(100vw - 24px));max-height:min(660px,calc(100vh - 92px));overflow:hidden;border:1px solid #d5e1d9;border-radius:22px;background:#fff;box-shadow:0 22px 60px rgba(27,55,42,.25)}
.ll-help-window>header{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#315f4a;color:#fff;padding:15px 17px}
.ll-help-window>header div{display:grid;gap:2px}
.ll-help-window>header b{font-size:1.02rem}.ll-help-window>header span{font-size:.76rem;opacity:.86}
.ll-help-close{border:0;background:rgba(255,255,255,.14);color:#fff;width:34px;height:34px;border-radius:50%;font-size:1.35rem;cursor:pointer}
.ll-help-messages{display:flex;flex-direction:column;gap:9px;min-height:155px;overflow:auto;padding:15px;background:#f6faf7}
.ll-help-message{align-self:flex-start;max-width:88%;border-radius:16px 16px 16px 5px;background:#fff;border:1px solid #dfe8e2;padding:10px 12px;color:#26372e;font-size:.9rem;line-height:1.45;white-space:pre-wrap;box-shadow:0 3px 10px rgba(30,60,44,.05)}
.ll-help-message.customer{align-self:flex-end;border-radius:16px 16px 5px 16px;background:#315f4a;border-color:#315f4a;color:#fff}
.ll-help-message.error{color:#9e2c2c;border-color:#eccaca;background:#fff7f7}
.ll-help-suggestions{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;overflow-x:hidden;overflow-y:auto;max-height:150px;padding:0 13px 11px;background:#f6faf7}
.ll-help-suggestions button{display:block;width:100%;min-width:0;max-width:100%;border:1px solid #bfd4c5;border-radius:10px;background:#fff;color:#315f4a;padding:6px 9px;font:inherit;font-size:.7rem;line-height:1.3;font-weight:800;text-align:left;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.ll-help-ask{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px;border-top:1px solid #e0e8e3;background:#fff}
.ll-help-ask input{min-width:0;border:1px solid #cbd9d0;border-radius:12px;padding:10px 12px;font:inherit}
.ll-help-ask button,.ll-help-message-form button{border:0;border-radius:12px;background:#315f4a;color:#fff;padding:9px 13px;font:inherit;font-weight:850;cursor:pointer}
.ll-help-contact{display:flex;flex-wrap:wrap;gap:7px;padding:0 12px 10px}
.ll-help-contact a,.ll-help-contact button{border:1px solid #bfd4c5;border-radius:11px;background:#eff8f2;color:#274d3a;padding:8px 10px;text-decoration:none;font:inherit;font-size:.8rem;font-weight:850;cursor:pointer}
.ll-help-message-form{display:grid;gap:9px;max-height:310px;overflow:auto;margin:0 12px 10px;border:1px solid #dce6df;border-radius:14px;padding:12px;background:#fbfdfb}
.ll-help-message-form>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ll-help-message-form label{display:grid;gap:4px;font-size:.75rem;font-weight:800}
.ll-help-message-form input,.ll-help-message-form textarea{width:100%;border:1px solid #cbd9d0;border-radius:9px;padding:8px;font:inherit;font-size:.84rem}
.ll-help-message-form p{min-height:17px;margin:0;color:#315f4a;font-size:.76rem}.ll-help-message-form p.error{color:#a32626}
.ll-help-privacy{display:block;padding:0 13px 11px;color:#718077;font-size:.68rem}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:760px){.ll-ai-message-list article{grid-template-columns:1fr}.ll-ai-connection-test,.ll-ai-word-limit{align-items:stretch;flex-direction:column}.ll-help{right:12px;bottom:max(12px,env(safe-area-inset-bottom))}.ll-help-window{right:0;bottom:56px;max-height:calc(100vh - 80px)}.ll-help-launch{padding:12px 15px}.ll-help-message-form>div{grid-template-columns:1fr}}
