.cid-assist { position:fixed; right:max(16px,env(safe-area-inset-right)); bottom:max(16px,env(safe-area-inset-bottom)); z-index:900; font:14px/1.45 system-ui,sans-serif; color:#18312f; }
.cid-assist *, .cid-assist *::before, .cid-assist *::after { box-sizing:border-box; }
.cid-launch { display:grid; place-items:center; width:54px; height:54px; padding:3px; margin-left:auto; border:1px solid #d3e6df; border-radius:17px; background:#087e70; box-shadow:0 4px 18px #102c2540; cursor:pointer; }
.cid-launch svg { width:46px; height:46px; }
.cid-panel { width:min(360px,calc(100vw - 32px)); height:min(590px,calc(100dvh - 100px)); min-height:260px; margin-bottom:10px; display:flex; flex-direction:column; background:#fff; border:1px solid #c6ded4; border-radius:16px; box-shadow:0 8px 30px #102c2540; overflow:hidden; }
.cid-panel[hidden] { display:none; }
.cid-head { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:12px 14px; background:#087e70; color:#fff; }
.cid-head strong,.cid-head small { display:block; } .cid-head small { opacity:.95; }
.cid-close { border:0; background:transparent; color:#fff; font-size:24px; cursor:pointer; padding:2px 8px; }
.cid-content { overflow-y:auto; padding:14px; flex:1; min-height:0; }
.cid-content p { margin:0 0 10px; } .cid-content a { color:#075f55; }
.cid-content .cid-msg { padding:10px; background:#edf6f2; border-radius:10px; overflow-wrap:anywhere; }
.cid-quick { display:flex; flex-wrap:wrap; gap:6px; margin:10px 0; } .cid-quick button { background:#fff; color:#075f55; border:1px solid #b8d8cc; border-radius:20px; padding:7px 10px; cursor:pointer; font:inherit; }
.cid-form { border-top:1px solid #dce9e4; padding:10px 12px; } .cid-form label { display:block; margin-bottom:5px; }
.cid-form textarea { width:100%; height:56px; resize:vertical; padding:8px; border:1px solid #9dbdb0; border-radius:8px; font:inherit; }
.cid-form .cid-submit { border:0; border-radius:8px; background:#087e70; color:#fff; padding:9px 14px; font:inherit; font-weight:700; cursor:pointer; }
.cid-form .cid-submit:disabled { opacity:.6; } .cid-form .cid-ai { display:flex; gap:7px; align-items:flex-start; font-size:12px; }
.cid-note { font-size:12px; color:#49645c; } .cid-result { border-top:1px solid #dce9e4; margin-top:9px; padding-top:9px; overflow-wrap:anywhere; }
.cid-assist :focus-visible { outline:3px solid #db9a00; outline-offset:2px; }
@media(max-width:450px) { .cid-assist { right:max(10px,env(safe-area-inset-right)); bottom:max(10px,env(safe-area-inset-bottom)); } .cid-panel { width:min(360px,calc(100vw - 20px)); height:min(560px,calc(100dvh - 90px)); } }
@media print { .cid-assist { display:none!important; } }
