/* Wolong assistant — blue/white advisor interface, scoped to the widget. */
#wla{--wa-blue:#214db5;--wa-ink:#22324b;--wa-muted:#52637b;--wa-border:#dce4ef;position:fixed;right:24px;bottom:calc(88px + env(safe-area-inset-bottom));z-index:45;color:var(--wa-ink);font-family:inherit;font-size:16px;line-height:1.5}
#wla *,#wla *::before,#wla *::after{box-sizing:border-box}
#wla[hidden],#wla [hidden]{display:none!important}
#wla :where(button,input,textarea){font:inherit}
#wla button,#wla a{cursor:pointer;-webkit-tap-highlight-color:transparent}
#wla button:focus-visible,#wla a:focus-visible,#wla input:focus-visible,#wla textarea:focus-visible,#wla summary:focus-visible{outline:3px solid #214db5;outline-offset:3px}
#wla button{transition:background .18s,box-shadow .18s}
#wla button:disabled{opacity:.5;cursor:wait}
#wla-launch{display:flex;align-items:center;gap:12px;border:1px solid #ffffff30;border-radius:20px;padding:12px 20px 12px 12px;background:linear-gradient(120deg,#173d91,#2458be);color:white;box-shadow:0 8px 28px #163a9233;text-align:left;font-weight:600}
#wla-launch:hover{box-shadow:0 10px 32px #163a924d}
#wla-launch small{display:block;font-size:12px;font-weight:400;color:#d5e3ff;margin-top:2px}
.wla-launch-icon{display:grid;place-items:center;width:40px;height:40px;background:#ffffff18;border:1px solid #ffffff25;border-radius:13px;font-size:24px}
#wla-unread{position:absolute;right:0;top:-5px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#efb14b;color:#172b50;font-size:12px;border:2px solid white}
#wla-greeting{position:absolute;bottom:86px;right:0;width:310px;display:flex;align-items:flex-start;background:#fff;border:1px solid var(--wa-border);border-radius:18px;padding:18px 12px 18px 18px;box-shadow:0 12px 40px #233d621a}
#wla-greeting button{border:0;background:none;text-align:left;line-height:1.7;color:var(--wa-ink);padding:0}
.wla-eyebrow{display:block;color:var(--wa-blue);font-size:12px;font-weight:600;letter-spacing:.04em;margin-bottom:8px}
.wla-greet-hint{display:block;font-size:13px;color:var(--wa-muted);margin-top:5px}
#wla-dismiss{min-width:32px;min-height:32px;font-size:22px!important}
#wla-panel{position:absolute;right:0;bottom:0;width:416px;max-width:calc(100vw - 48px);height:704px;max-height:calc(100dvh - 112px);display:flex;flex-direction:column;overflow:hidden;border:1px solid #dce4ef;border-radius:24px;background:#fff;box-shadow:0 20px 64px #162d5926,0 2px 8px #162d5910;outline:0;animation:wla-enter .2s ease-out}
.wla-header{flex:none;display:flex;align-items:center;gap:12px;padding:22px 20px;color:white;background:linear-gradient(115deg,#173d91,#2458be)}
.wla-avatar{display:grid;place-items:center;flex:none;width:46px;height:46px;border:1px solid #ffffff38;border-radius:15px;background:#ffffff15}
.wla-identity{flex:1;min-width:0}.wla-identity strong{display:block;font-size:19px;font-weight:600;letter-spacing:.025em}.wla-kicker{display:block;color:#c2d5fa;font-size:9px;font-weight:600;letter-spacing:.12em;margin-bottom:4px}.wla-identity small{display:block;font-size:12px;color:#dce7fc;margin-top:3px}
#wla-close{border:1px solid #ffffff20;background:#ffffff10;color:#fff;border-radius:12px;font-size:26px;line-height:1;width:38px;height:38px;flex:none}
#wla-close:hover{background:#ffffff25}
.wla-privacy{flex:none;background:#fff;border-bottom:1px solid #bac8da;font-size:12px;color:#52637b}
.wla-privacy summary{display:flex;justify-content:space-between;gap:8px;cursor:pointer;padding:11px 18px;list-style:none}
.wla-privacy summary::-webkit-details-marker{display:none}
.wla-privacy summary span{color:#315ba1;white-space:nowrap}
.wla-privacy summary span:after{content:'＋';margin-left:4px}
.wla-privacy[open] summary span:after{content:'−'}
.wla-privacy p{font-size:13px;line-height:1.7;margin:0;padding:0 18px 12px;max-height:130px;overflow:auto}
#wla-messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px 18px 4px;background:#edf2f7;scrollbar-width:thin;scrollbar-color:#71849d transparent}
.wla-message{position:relative;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;font-size:15px;padding:14px 16px;margin:0 26px 18px 0;border:1px solid #bac8da;border-radius:5px 17px 17px;background:white;box-shadow:0 2px 4px #20375a03}
.wla-message.user{margin-left:38px;margin-right:0;background:#234fb3;color:white;border-color:#234fb3;border-radius:17px 5px 17px 17px}
.wla-message a{display:block;margin-top:12px;padding-top:10px;border-top:1px solid #e5ebf3;color:#2855a5;font-size:14px;text-decoration:none;font-weight:500}
.wla-message a:hover{text-decoration:underline}
#wla-status{flex:none;margin:0;padding:8px 18px;background:#edf2f7;color:#52637b;font-size:12px;line-height:1.5}
#wla-status:empty{display:none}
#wla-options{flex:none;padding:14px 18px 12px;background:#183457;border-top:1px solid #183457;border-bottom:1px solid #183457}
.wla-options-label{display:block;color:#fff;font-size:13px;font-weight:600;letter-spacing:.02em;margin-bottom:10px}
.wla-option-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
#wla-options button{display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 4px;background:#fff;border:1px solid #8ca4c5;border-radius:11px;color:#183457;font-size:14px;font-weight:600;min-height:58px;white-space:nowrap}
#wla-options button span{color:#214db5;font-size:17px;line-height:1}
#wla-options button:hover{background:#dce9fc;border-color:#fff}
#wla-options button:focus-visible,#wla-close:focus-visible{outline:3px solid #fff;outline-offset:3px}
#wla-options button:active{background:#c5d9f7}
.wla-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 18px;border-top:1px solid #bac8da;background:#fff}
.wla-actions>div{flex:1}.wla-action-label{display:none}
#wla-lead,#wla-transfer{width:100%;min-height:44px;border:0;border-radius:11px;padding:11px 14px;background:var(--wa-blue);color:white;font-size:14px;font-weight:600}
#wla-lead:hover,#wla-transfer:hover{background:#173d91}
.wla-actions>a{display:flex;align-items:center;justify-content:center;min-height:44px;color:#276949;font-size:14px;white-space:nowrap;text-decoration:none;padding:0 3px}
.wla-actions>a:hover{text-decoration:underline}
#wla-compose{flex:none;display:flex;align-items:center;gap:8px;margin:0 18px 9px;padding:5px 5px 5px 12px;border:1px solid #627998;border-radius:14px;background:#fff}
#wla-compose:focus-within{border-color:#214db5;box-shadow:0 0 0 2px #214db5}
#wla-input{flex:1;min-width:0;border:0;background:transparent;outline:none!important;box-shadow:none;padding:9px 0;font-size:16px;color:var(--wa-ink)}
#wla-input::placeholder{font-size:14px;color:#52647c}
#wla-compose button{display:grid;place-items:center;flex:none;width:40px;height:40px;min-height:40px;border:0;border-radius:10px;background:#214db5;color:#fff}
#wla-compose button:hover{background:#173d91}
.wla-bottom{flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 18px 14px;gap:8px;color:#52637b;font-size:12px}
.wla-bottom button{border:0;background:transparent;padding:3px 0;font-size:12px;color:#52637b;white-space:nowrap}
.wla-bottom button:hover{text-decoration:underline}
#wla-summary-box{flex:1;min-height:0;overflow-y:auto;padding:24px 22px 18px;background:#f5f8fd}
#wla-summary-box h2{font-size:24px;letter-spacing:-.02em;line-height:1.45;margin:0 0 12px;font-weight:600;color:#233754}
#wla-summary-box p{font-size:14px;line-height:1.7;color:#52637b;margin:0 0 20px}
#wla-summary-box label{display:flex;justify-content:space-between;gap:8px;font-size:14px;font-weight:600;margin-bottom:10px}
#wla-summary-box label span{font-size:12px;font-weight:400;color:#52637b}
#wla-summary{width:100%;display:block;resize:vertical;min-height:190px;border:1px solid #627998;border-radius:13px;padding:15px;background:white;color:var(--wa-ink);font-size:15px;line-height:1.8;box-shadow:0 3px 12px #19376004}
#wla-summary-box .wla-summary-help{font-size:12px;line-height:1.65;margin:12px 0 18px}
.wla-summary-actions{display:flex;flex-direction:column;gap:7px}
#wla-cancel{min-height:40px;padding:8px;border:0;background:transparent;color:#5b6e8e;font-size:14px}
#wla.wla-review #wla-messages,#wla.wla-review #wla-options,#wla.wla-review #wla-compose,#wla.wla-review .wla-actions,#wla.wla-review #wla-status{display:none}
#wla.wla-review .wla-bottom{padding-top:10px;background:#f5f8fd}
.wla-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body.wla-open #wla{z-index:60}
body.wla-open .quick-contact{visibility:hidden}
@keyframes wla-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:733px){
 #wla{right:12px;bottom:calc(88px + env(safe-area-inset-bottom))}
 #wla-launch{padding:10px 15px 10px 10px;font-size:14px;gap:10px;border-radius:18px}
 .wla-launch-icon{width:34px;height:34px;font-size:21px}
 #wla-launch small{font-size:11px}
 #wla-panel{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));width:auto;max-width:none;height:720px;max-height:calc(100dvh - 24px - env(safe-area-inset-bottom));border-radius:22px}
 .wla-header{padding:17px 16px;gap:11px}.wla-identity strong{font-size:18px}.wla-avatar{width:42px;height:42px}
 .wla-privacy summary{padding:10px 14px;font-size:11px}
 #wla-messages{padding:17px 14px 0}.wla-message{font-size:15px;padding:12px 14px;margin-right:18px;margin-bottom:14px}.wla-message.user{margin-left:28px}
 #wla-options{padding:12px 14px 10px}.wla-option-grid{gap:6px}
 .wla-actions{padding:11px 14px;gap:12px}#wla-compose{margin:0 14px 8px}.wla-bottom{padding:0 14px 12px}
 #wla-summary-box{padding:22px 18px 16px}#wla-summary-box h2{font-size:23px}
}
@media(max-height:650px){.wla-kicker{display:none}.wla-header{padding:12px 16px}.wla-avatar{width:36px;height:36px}.wla-identity strong{font-size:17px}#wla-options{padding-top:8px;padding-bottom:8px}.wla-options-label{display:none}#wla-options button{flex-direction:row;justify-content:center;min-height:44px;font-size:14px}#wla-options button span{display:none}.wla-option-grid{gap:5px}.wla-actions{padding-top:8px;padding-bottom:8px}#wla-summary-box{padding-top:16px}#wla-summary-box h2{font-size:20px}#wla-summary{min-height:130px}}
@media(prefers-reduced-motion:reduce){#wla-panel{animation:none}#wla button{transition:none}}
@media print{#wla{display:none}}

#wla.wla-review.wla-storage-error #wla-status{display:block;color:#913b23;background:#fff3ed}
