#apc-root{--apc-deep:#123a5c;--apc-ink:#1a2a3a;--apc-muted:#4d5d6e;--apc-tint:#eef4f9;--apc-line:#d6e1ec;--apc-bottom-offset:0px;position:fixed;bottom:calc(20px + var(--apc-bottom-offset));z-index:2147483000;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px;line-height:1.5;color:var(--apc-ink)}
#apc-root.apc-side-right{right:20px}
#apc-root.apc-side-left{left:20px}
#apc-root *{box-sizing:border-box}
#apc-root button{font:inherit;text-transform:none;letter-spacing:0;min-height:0;box-shadow:none}
#apc-root .apc-launch{display:flex;align-items:center;gap:8px;height:52px;padding:0 20px 0 16px;border:0;border-radius:999px;background:var(--apc-deep);color:#fff;font-weight:700;cursor:pointer;box-shadow:0 10px 24px rgba(10,42,72,.28)}
#apc-root .apc-launch:hover{background:#0d2c47}
#apc-root.apc-is-open .apc-launch{display:none}
#apc-root .apc-panel{position:absolute;bottom:0;width:380px;height:min(600px,calc(100vh - 40px));display:flex;flex-direction:column;background:#fff;border:1px solid var(--apc-line);border-radius:18px;overflow:hidden;box-shadow:0 18px 50px rgba(10,42,72,.25)}
#apc-root.apc-side-right .apc-panel{right:0}
#apc-root.apc-side-left .apc-panel{left:0}
#apc-root .apc-panel[hidden]{display:none}
#apc-root .apc-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 14px 14px 18px;background:var(--apc-deep);color:#fff}
#apc-root .apc-title{font-weight:800;font-size:16px;font-family:Manrope,Inter,sans-serif}
#apc-root .apc-sub{font-size:12px;color:#d5e3f1;display:flex;align-items:center;gap:6px}
#apc-root .apc-dot{width:8px;height:8px;border-radius:50%;background:#4ade80}
#apc-root .apc-head-btns{display:flex;gap:4px}
#apc-root .apc-head button{width:36px;height:36px;border-radius:50%;border:0;background:transparent;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
#apc-root .apc-head button:hover{background:rgba(255,255,255,.15)}
#apc-root .apc-log{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;background:#f7fafc}
#apc-root .apc-msg{max-width:88%;padding:10px 13px;border-radius:14px;word-wrap:break-word;overflow-wrap:anywhere}
#apc-root .apc-msg p{margin:0 0 6px}
#apc-root .apc-msg p:last-child{margin-bottom:0}
#apc-root .apc-msg ul{margin:4px 0 6px;padding-left:18px}
#apc-root .apc-msg li{margin:2px 0}
#apc-root .apc-bot{align-self:flex-start;background:#fff;border:1px solid var(--apc-line);border-bottom-left-radius:4px}
#apc-root .apc-user{align-self:flex-end;background:var(--apc-deep);color:#fff;border-bottom-right-radius:4px;white-space:pre-wrap}
#apc-root .apc-bot a{color:var(--apc-deep);font-weight:600;text-decoration:underline}
#apc-root .apc-img{display:block;width:100%;max-width:220px;aspect-ratio:1/1;object-fit:contain;background:#f1f6fb;border:1px solid var(--apc-line);border-radius:10px;margin:6px 0 4px}
#apc-root .apc-typing{display:flex;gap:4px;padding:12px 14px}
#apc-root .apc-typing span{width:7px;height:7px;border-radius:50%;background:#9fb3c8;animation:apc-b 1s infinite ease-in-out}
#apc-root .apc-typing span:nth-child(2){animation-delay:.15s}
#apc-root .apc-typing span:nth-child(3){animation-delay:.3s}
@keyframes apc-b{0%,80%,100%{transform:translateY(0);opacity:.5}40%{transform:translateY(-4px);opacity:1}}
#apc-root .apc-chips{display:flex;flex-direction:column;gap:8px;padding:10px 14px 4px;background:#f7fafc}
#apc-root .apc-chips[hidden]{display:none}
#apc-root .apc-chip{display:block;width:100%;text-align:left;border:1px solid #c8d6e4;background:#fff;color:var(--apc-deep);border-radius:12px;padding:11px 14px;font-size:14px;font-weight:600;line-height:1.3;cursor:pointer;text-decoration:none}
#apc-root .apc-chip:hover{border-color:var(--apc-deep);background:#eef4f9;color:var(--apc-deep)}
#apc-root .apc-humanbar[hidden]{display:none}
#apc-root .apc-humanbar{padding:8px 14px 0;background:#f7fafc;display:flex;justify-content:center}
#apc-root .apc-human{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--apc-deep);background:#fff;color:var(--apc-deep);border-radius:999px;padding:7px 14px;font-size:13px;font-weight:700;cursor:pointer}
#apc-root .apc-human:hover{background:var(--apc-deep);color:#fff}
#apc-root .apc-form{display:flex;align-items:flex-end;gap:8px;padding:12px 14px;border-top:1px solid var(--apc-line);background:#fff}
#apc-root textarea{flex:1;min-width:0;resize:none;border:1px solid #c8d6e4;border-radius:12px;padding:10px 12px;font:inherit;color:var(--apc-ink);max-height:120px;outline:none;background:#fff;margin:0;box-shadow:none}
#apc-root textarea{min-height:44px!important;height:44px;line-height:1.4!important;font-size:14px!important;padding:11px 12px!important}
#apc-root textarea:focus{border-color:var(--apc-deep)}
#apc-root .apc-send{flex:none;width:44px;height:44px;border-radius:12px;border:0;background:var(--apc-deep);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
#apc-root .apc-foot{padding:0 14px 10px;font-size:11px;color:var(--apc-muted);background:#fff}
#apc-root .apc-foot a{color:var(--apc-deep);font-weight:600}
#apc-root .apc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (max-width:520px){
#apc-root{bottom:calc(14px + var(--apc-bottom-offset))}
#apc-root.apc-side-right{right:14px}
#apc-root.apc-side-left{left:14px}
#apc-root.apc-is-open{left:0;right:0;bottom:0;top:0}
#apc-root.apc-is-open .apc-panel{position:fixed;inset:0;width:100%;height:100%;border-radius:0;border:0}
#apc-root .apc-launch span{display:none}
#apc-root .apc-launch{width:56px;height:56px;padding:0;justify-content:center}
}
