/* PW3_CHAT_V6: every visual is scoped to the one shared-partial widget. */
#pw5-root{--pw6-skin:#151929;--pw6-ink:#f2f3ff;--pw6-muted:#9ba3bc;--pw6-line:#aab8f31c;--pw6-purple:#8b38ff;position:fixed;inset:0;z-index:2147483000;pointer-events:none;color:var(--pw6-ink);font-family:Inter,'Segoe UI',system-ui,-apple-system,sans-serif;font-size:14px;line-height:1.5;text-align:left;color-scheme:dark;font-weight:400;letter-spacing:normal}
#pw5-root *,#pw5-root *:before,#pw5-root *:after{box-sizing:border-box}#pw5-root [hidden]{display:none!important}#pw5-root button,#pw5-root textarea{font:inherit;letter-spacing:normal;text-transform:none;margin:0;min-width:0;min-height:0;line-height:1.5}#pw5-root button{cursor:pointer;appearance:none;-webkit-tap-highlight-color:transparent}#pw5-root button:focus-visible{outline:2px solid #72d7fb;outline-offset:4px}#pw5-root button:disabled{cursor:wait;opacity:.5}#pw5-root svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
/* A compact machined circular bezel. No rectangular label is rendered. */
#pw5-root #pw5-launcher{pointer-events:auto;position:fixed;right:24px;bottom:max(24px,env(safe-area-inset-bottom));width:66px;height:66px;padding:7px;border-radius:50%;border:1px solid #aeb2cc66;background:linear-gradient(140deg,#69708a 0%,#202337 24%,#111322 55%,#535970 88%,#8b90a5 100%);box-shadow:6px 9px 21px #03051180,-2px -2px 5px #d6deff24,inset 1px 1px 2px #e4e7ff6b,inset -2px -3px 4px #040512;touch-action:none;user-select:none;transition:box-shadow .25s,filter .25s;display:grid;place-items:center;isolation:isolate}
#pw5-root #pw5-launcher:before{content:'';position:absolute;inset:6px;border-radius:50%;border:1px solid #9d7ade73;background:radial-gradient(circle at 30% 20%,#b982ff 0%,#8e25f5 29%,#6a13cf 48%,#3915b8 75%,#151d75 100%);box-shadow:inset 0 2px 6px #e5bcff9c,inset 0 -5px 7px #18004c,0 0 9px #9a1af537;z-index:-1}
#pw5-root #pw5-launcher:hover{filter:brightness(1.12);box-shadow:7px 12px 26px #03051199,-2px -2px 8px #d6deff2b,0 0 25px #7334fe42}#pw5-root .pw5-launch-icon{color:#faf5ff;display:grid;place-items:center;padding-bottom:4px}#pw5-root .pw5-launch-icon svg{width:28px;height:28px;stroke-width:1.65;filter:drop-shadow(0 2px 1px #27154c)}#pw5-root .pw6-launch-ai{position:absolute;bottom:12px;left:0;right:0;text-align:center;font-size:7px;letter-spacing:1.3px;font-weight:750;color:#f3e4ff}#pw5-root .pw5-launch-text{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}#pw5-root .pw5-unread{position:absolute;right:-1px;top:0;width:18px;height:18px;border-radius:50%;background:#59ddcb;border:2px solid #171b2f;color:#071a21;font-size:9px;font-weight:800;display:grid;place-items:center}
#pw5-root .pw6-mesh{position:relative;display:block;flex-shrink:0;width:70px;height:70px;pointer-events:none}#pw5-root .pw6-mesh img,#pw5-root .pw6-mesh canvas{position:absolute;inset:0;display:block;width:100%!important;height:100%!important;object-fit:contain;pointer-events:none}#pw5-root .pw6-mesh canvas{opacity:0}#pw5-root .pw6-mesh.pw6-webgl canvas{opacity:1}#pw5-root .pw6-mesh.pw6-webgl img{opacity:0}#pw5-root #pw5-launcher>.pw6-mesh{display:none;position:absolute;inset:-7px;width:78px;height:78px}#pw5-root.pw5-speaking #pw5-launcher>.pw6-mesh{display:block}#pw5-root.pw5-speaking #pw5-launcher .pw5-launch-icon,#pw5-root.pw5-speaking .pw6-launch-ai{opacity:0}#pw5-root.pw5-speaking #pw5-launcher:before{opacity:0}#pw5-root.pw5-speaking #pw5-launcher{border-color:#7b70a8;background:transparent;box-shadow:0 0 22px #8b35ff6e}
/* Inset frame, raised controls, soft bevels and a violet-to-blue seam. */
#pw5-root #pw5-room{pointer-events:auto;position:fixed;right:24px;bottom:106px;width:420px;max-width:calc(100vw - 28px);height:min(718px,calc(var(--pw5-vh,100dvh) - 132px));display:flex;flex-direction:column;overflow:hidden;background:linear-gradient(150deg,#1b2135,#111627 40%,#121527);border:1px solid #69728d78;border-radius:27px;box-shadow:18px 24px 75px #02040dbc,-6px -6px 30px #bac6ff09,inset 1px 1px 1px #e2e8ff24,inset -1px -1px 2px #0009;isolation:isolate;animation:pw6-enter .24s ease-out}
#pw5-root #pw5-room:before{content:'';position:absolute;left:24px;right:24px;top:0;height:2px;background:linear-gradient(90deg,transparent,#922eff,#343fff,#56dbf1,transparent);z-index:3}#pw5-root .pw5-head{position:relative;display:flex;align-items:center;gap:9px;min-height:100px;padding:16px 17px 14px 9px;background:radial-gradient(ellipse at 4% 0,#7135c92e,transparent 67%),linear-gradient(150deg,#23283b,#15192b);border-bottom:1px solid #070b1877;box-shadow:0 1px 0 #b7c5ff10;flex-shrink:0}
#pw5-root .pw5-avatar{position:relative;width:68px;height:68px;display:grid;place-items:center;flex-shrink:0}#pw5-root .pw5-avatar .pw6-mesh{position:absolute;width:78px;height:78px;inset:-5px}#pw5-root .pw6-human-icon{display:none;width:49px;height:49px;border-radius:50%;align-items:center;justify-content:center;color:#63dbbd;background:linear-gradient(140deg,#283c3d,#172f32);border:1px solid #77cfba4a;box-shadow:4px 4px 9px #080c1799,-2px -2px 5px #879faa17,inset 1px 1px 1px #dcfff52b}#pw5-root .pw6-human-icon svg{width:25px;height:25px}#pw5-root .pw5-title{flex:1;min-width:0}#pw5-root .pw6-brand{display:flex;align-items:center;gap:6px;font-size:10px;letter-spacing:1.75px;font-weight:750;color:#c3c8e4;white-space:nowrap}#pw5-root .pw6-ai-tag{font-size:7px;font-weight:700;letter-spacing:1px;border:1px solid #b09ae446;color:#c7aff5;background:#9c6fe313;padding:1px 4px;border-radius:4px}#pw5-root .pw5-title strong{display:block;font-size:15px;line-height:1.6;font-weight:650;letter-spacing:-.3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#f2f2ff;margin-top:3px}#pw5-root .pw5-subtitle{font-size:10px;color:#969fba;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#pw5-root .pw5-subtitle i{display:inline-block;width:5px;height:5px;background:#57d8c0;border-radius:50%;margin-right:4px;box-shadow:0 0 6px #57d8c040}
#pw5-root .pw5-head button{display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;padding:7px;color:#b8bfd9;border-radius:50%;border:1px solid #646d841f;background:linear-gradient(140deg,#272d41,#171b2e);box-shadow:3px 3px 7px #0609168c,-2px -2px 5px #c8d5ff0b,inset 1px 1px 1px #ffffff0b}#pw5-root .pw5-head button:hover{color:#fff;background:#30354d}#pw5-root .pw5-head button svg{width:15px;height:15px}
#pw5-root .pw6-routes{padding:15px 18px 16px;border-bottom:1px solid #7181a51a;background:linear-gradient(180deg,#151a2c,#141929);flex-shrink:0}#pw5-root .pw6-route-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 2px 11px;color:#c6cce4;font-size:8px;font-weight:750;letter-spacing:1.6px}#pw5-root .pw6-route-heading span+span{color:#7d87a3;font-size:9px;letter-spacing:0;font-weight:400}#pw5-root .pw6-route-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}#pw5-root .pw6-route{--route:#fa7885;position:relative;display:flex;align-items:center;gap:9px;text-align:left;padding:10px 11px;min-height:62px;border-radius:13px;border:1px solid #8090b621;background:linear-gradient(140deg,#252b40,#181e31);color:var(--pw6-ink);box-shadow:4px 4px 9px #060a1680,-3px -3px 7px #7589b40c,inset 1px 1px 1px #e2e9ff0c;transition:transform .15s,border-color .15s}#pw5-root .pw6-route:hover{transform:translateY(-1px);border-color:var(--route)}#pw5-root .pw6-route:active{transform:translateY(1px);box-shadow:inset 3px 3px 7px #060a1680,inset -2px -2px 5px #8a9bc014}#pw5-root .pw6-route-icon{display:grid;place-items:center;color:var(--route);width:30px;height:30px;border-radius:9px;background:linear-gradient(140deg,#101524,#23293b);box-shadow:inset 2px 2px 5px #06091399,inset -1px -1px 2px #fff1;flex-shrink:0}#pw5-root .pw6-route-icon svg{width:17px;height:17px}#pw5-root .pw6-route strong{display:block;font-size:11px;font-weight:600;white-space:nowrap;color:#e5e8fa}#pw5-root .pw6-route small{display:block;font-size:8px;color:#959fb9;margin-top:1px;white-space:nowrap}#pw5-root .pw6-dot{position:absolute;right:9px;top:11px;width:4px;height:4px;border-radius:50%;background:var(--route);box-shadow:0 0 6px color-mix(in srgb,var(--route),transparent 60%)}#pw5-root .pw6-amber{--route:#edb869}#pw5-root .pw6-green{--route:#62d9ad}#pw5-root .pw6-blue{--route:#72baff}#pw5-root.pw6-routing .pw6-route{pointer-events:none;opacity:.6}
#pw5-root #pw5-log{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#52566f transparent;padding:19px 20px 5px;background:radial-gradient(ellipse at 0 0,#5625840b,transparent 60%),#111626;box-shadow:inset 0 4px 12px #060b172e}#pw5-root .pw6-welcome{padding:7px 2px 16px}#pw5-root .pw6-welcome-mark{display:flex;align-items:center;gap:7px;color:#ab9cce}#pw5-root .pw6-welcome-mark svg{width:14px;height:14px}#pw5-root .pw6-welcome-mark span{font-size:7px;font-weight:700;letter-spacing:1.7px}#pw5-root .pw6-welcome h2{font:650 27px/1.22 Inter,'Segoe UI',system-ui,sans-serif;letter-spacing:-1px;color:#ebedff;margin:12px 0 10px;text-transform:none}#pw5-root .pw6-welcome h2:after{display:none}#pw5-root .pw6-welcome p{font-size:11px;line-height:1.9;color:#9da7c0;margin:0 0 15px;max-width:320px}#pw5-root .pw6-suggestions{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 16px}#pw5-root .pw6-suggestions button{display:flex;align-items:center;gap:5px;font-size:9px;color:#c2bedf;background:linear-gradient(140deg,#22273b,#191e30);border:1px solid #8390bf26;border-radius:8px;padding:8px 9px;box-shadow:3px 3px 5px #050a165e,-1px -1px 3px #c6d0ff0a}#pw5-root .pw6-suggestions svg{width:11px;height:11px}#pw5-root .pw6-boundary{display:flex;gap:6px;align-items:center;font-size:8px;color:#7c88a3}#pw5-root .pw6-boundary svg{width:11px;height:11px;color:#8f8bad}#pw5-root.pw6-has-messages .pw6-welcome{display:none}#pw5-root .pw5-date{text-align:center;color:#6f7b97;font-size:8px;letter-spacing:.5px;margin:5px 0 17px}#pw5-root:not(.pw6-has-messages) .pw5-date{display:none}
#pw5-root .pw5-msg{max-width:90%;margin:0 0 17px}#pw5-root .pw5-who{font-size:8px;color:#999fc1;letter-spacing:.3px;margin:0 0 5px 2px}#pw5-root .pw5-body{padding:11px 13px;border-radius:4px 14px 14px 14px;background:linear-gradient(145deg,#242a40,#1c2237);border:1px solid #7b8cbc1c;color:#e3e7f9;font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;box-shadow:3px 4px 9px #050a1633,inset 1px 1px 1px #f0f3ff08}#pw5-root .pw5-msg.pw5-user{margin-left:auto}#pw5-root .pw5-user .pw5-who{text-align:right;color:#a998da}#pw5-root .pw5-user .pw5-body{background:linear-gradient(135deg,#7033c7,#4b269a 80%);border-color:#be91fb29;border-radius:14px 4px 14px 14px;color:#faf3ff;box-shadow:3px 4px 10px #12042e33,inset 1px 1px 1px #e5ccff15}#pw5-root .pw5-human .pw5-body{background:linear-gradient(145deg,#1c3538,#172b31);border-color:#68cbb534}#pw5-root .pw5-human .pw5-who{color:#6bd5b5}#pw5-root .pw5-msg.pw5-system{max-width:100%}#pw5-root .pw5-system .pw5-body{font-size:10px;line-height:1.8;padding:10px 12px;background:#8c9bca06;border:1px solid #6e85b725;border-radius:10px;color:#adb9d5;box-shadow:inset 2px 2px 5px #070d1829}#pw5-root .pw5-msg time{display:block;font-size:8px;color:#5f6e89;text-align:right;margin:5px 3px 0}#pw5-root .pw5-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}#pw5-root .pw5-actions button{font-size:10px;min-height:36px;padding:7px 12px;color:#cfb6fb;border:1px solid #ae82e540;border-radius:9px;background:linear-gradient(145deg,#33254c,#241e37);box-shadow:3px 3px 6px #070a143f,inset 1px 1px 1px #e3d0ff0c}#pw5-root .pw6-alert-red .pw5-body{border-color:#ea697a77;background:linear-gradient(145deg,#3a2637,#281d2c);color:#ffd0d6;font-size:11px}#pw5-root .pw6-alert-amber .pw5-body{border-color:#e2af6566;background:#3c302122;color:#f5d7a7}
#pw5-root .pw5-typing{display:flex;gap:8px;align-items:center;padding:5px 22px 12px;font-size:9px;color:#998bbd;background:#111626;flex-shrink:0}#pw5-root .pw6-typing-dots{display:flex;gap:3px}#pw5-root .pw6-typing-dots i{width:3px;height:3px;border-radius:50%;background:#ab83ec;animation:pw6-dot 1s infinite}#pw5-root .pw6-typing-dots i:nth-child(2){animation-delay:.15s}#pw5-root .pw6-typing-dots i:nth-child(3){animation-delay:.3s}
#pw5-root .pw5-team-bar{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 19px;border-top:1px solid #73d8bc26;color:#75cdb7;background:#182b2c;font-size:10px;flex-shrink:0}#pw5-root .pw5-team-bar button{padding:6px 9px;font-size:9px;border-radius:7px;border:1px solid #b3d7cf22;color:#c2ddd6;background:linear-gradient(140deg,#263a3c,#1b2d30);box-shadow:2px 2px 5px #070c1433}
#pw5-root .pw5-compose{flex-shrink:0;padding:13px 16px 12px;background:linear-gradient(155deg,#20263a,#171c2e);border-top:1px solid #8493bc26;margin:0;box-shadow:0 -3px 12px #080e161c}#pw5-root .pw5-entry{display:flex;align-items:flex-end;gap:8px;padding:5px 6px 5px 13px;min-height:53px;background:linear-gradient(145deg,#111625,#1b2134);border:1px solid #5e6e9438;border-radius:14px;box-shadow:inset 4px 4px 9px #04091699,inset -2px -2px 5px #8e9cc816,0 1px 0 #bac8e30c}#pw5-root .pw5-entry:focus-within{border-color:#a181d9b3}#pw5-root textarea{width:auto;min-width:0;flex:1;padding:10px 0 7px;color:#edf1ff;background:transparent;border:0!important;outline:0!important;box-shadow:none!important;border-radius:0;height:40px;max-height:110px;resize:none;font-size:16px;line-height:1.5}#pw5-root textarea::placeholder{color:#727e9b;font-size:12px;opacity:1}#pw5-root .pw5-send{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border-radius:11px;border:1px solid #b18aff6e;padding:10px;color:#eee4ff;background:linear-gradient(135deg,#9f42ed,#6434c5 60%,#4c4ad6);box-shadow:3px 3px 7px #030a1c80,-1px -1px 3px #d8b1ff24,inset 1px 1px 2px #ebc9ff42,inset -1px -1px 2px #28027380}#pw5-root .pw5-send svg{width:18px;height:18px}#pw5-root .pw5-footer{display:flex;gap:7px;align-items:center;justify-content:space-between;margin:11px 2px 0;color:#76819f;font-size:8px}#pw5-root .pw5-voice{display:flex;gap:5px;align-items:center;border:0;background:transparent;padding:2px 0;color:#afb3d0;font-size:9px;white-space:nowrap}#pw5-root .pw5-voice svg{width:12px;height:12px;color:#b49cda}#pw5-root .pw6-footer-brand{font-size:7px;font-weight:750;color:#68748f;letter-spacing:1.3px}#pw5-root .pw6-voice-wave{display:none;align-items:center;gap:2px;margin-left:4px;height:12px}#pw5-root .pw6-voice-wave i{width:2px;height:5px;background:#a998e9;border-radius:2px;animation:pw6-wave .5s ease-in-out infinite alternate}#pw5-root .pw6-voice-wave i:nth-child(2){height:10px;animation-delay:.15s}#pw5-root .pw6-voice-wave i:nth-child(3){animation-delay:.3s}#pw5-root.pw5-speaking .pw6-voice-wave{display:flex}#pw5-root .pw5-audio-error{font-size:10px;color:#c1aadf;margin-top:7px}
#pw5-root.pw5-human-active .pw5-avatar>.pw6-mesh{visibility:hidden}#pw5-root.pw5-human-active .pw6-human-icon{display:flex}#pw5-root.pw5-human-active .pw5-subtitle{color:#6cd4b6}#pw5-root.pw5-human-active .pw6-ai-tag{visibility:hidden}#pw5-root.pw5-human-active .pw6-launch-ai{color:#86f2d8}#pw5-root[data-priority=RED] .pw5-team-bar{background:#3d2432;border-color:#e46e7b66;color:#f2a1ad}#pw5-root[data-priority=HIGH] .pw5-team-bar{background:#352f26;color:#e9c491}
#pw5-root .pw5-mini-caption{pointer-events:auto;position:fixed;width:270px;max-width:calc(100vw - 24px);padding:12px 15px;background:linear-gradient(145deg,#252b40,#171c30);border:1px solid #7782a357;border-radius:15px;box-shadow:7px 9px 25px #060a1c77,inset 1px 1px 1px #eff3ff12;color:#dbe1fa;font-size:11px;line-height:1.8;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
@keyframes pw6-enter{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}@keyframes pw6-dot{50%{opacity:.35;transform:translateY(-2px)}}@keyframes pw6-wave{to{height:3px}}
@media(max-width:600px){#pw5-root #pw5-room{left:9px;right:9px;bottom:calc(9px + var(--pw5-keyboard,0px));width:auto;max-width:none;height:min(780px,calc(var(--pw5-vh,100dvh) - 18px));border-radius:25px}#pw5-root #pw5-launcher{right:17px;bottom:max(18px,env(safe-area-inset-bottom));width:62px;height:62px}#pw5-root #pw5-launcher>.pw6-mesh{width:74px;height:74px}#pw5-root.pw5-open #pw5-launcher{display:none}#pw5-root .pw5-head{min-height:93px;padding:11px 14px 11px 7px;gap:6px}#pw5-root .pw5-title strong{font-size:14px}#pw5-root .pw6-brand{font-size:9px;letter-spacing:1.4px}#pw5-root .pw5-subtitle{font-size:9px}#pw5-root .pw5-avatar{width:60px;height:60px}#pw5-root .pw5-avatar .pw6-mesh{width:72px;height:72px;inset:-6px}#pw5-root .pw6-routes{padding:13px 14px 15px}#pw5-root .pw6-route{padding:9px;gap:7px;min-height:61px}#pw5-root #pw5-log{padding:18px 17px 4px}#pw5-root .pw5-compose{padding:12px 13px max(12px,env(safe-area-inset-bottom))}#pw5-root .pw5-msg{max-width:92%}}
@media(max-height:580px){#pw5-root .pw5-head{min-height:72px;padding-block:5px}#pw5-root .pw6-routes{padding-block:8px}#pw5-root .pw6-route-heading{margin-bottom:6px}#pw5-root .pw6-route{min-height:42px;padding-block:5px}#pw5-root .pw6-route small{display:none}#pw5-root .pw6-route-grid{gap:6px}#pw5-root .pw5-compose{padding-block:8px}#pw5-root .pw6-welcome h2{font-size:22px}}
@media(prefers-reduced-motion:reduce){#pw5-root *,#pw5-root *:before{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Guard against page-wide section/header/form rules in the existing EJS views. */
#pw5-root #pw5-room{padding:0!important;margin:0!important;text-align:left;gap:0}#pw5-root .pw5-head{margin:0}#pw5-root .pw6-routes{margin:0}#pw5-root #pw5-log{margin:0}#pw5-root .pw6-route strong{font-size:12px}#pw5-root .pw6-route small{font-size:9px}#pw5-root .pw6-route-heading{font-size:9px}#pw5-root .pw6-route-heading span+span{font-size:10px}#pw5-root .pw6-welcome p{font-size:12px}#pw5-root .pw6-suggestions button{font-size:10px}#pw5-root .pw5-body{font-size:14px;line-height:1.75}#pw5-root .pw5-system .pw5-body{font-size:11px}#pw5-root .pw5-who{font-size:10px}#pw5-root .pw5-msg time{font-size:9px}#pw5-root textarea{height:42px;scrollbar-width:none;overflow-y:auto}#pw5-root textarea::-webkit-scrollbar{display:none}#pw5-root .pw5-entry{min-height:55px}
/* V7: a mini conversation room and one continuous rolling mascot/icon transition. */
#pw5-root #pw5-room{width:360px;height:min(540px,calc(var(--pw5-vh,100dvh) - 120px));bottom:98px;right:20px;border-radius:23px}
#pw5-root .pw5-head{min-height:72px;padding:10px 12px 10px 8px;gap:7px}#pw5-root .pw5-avatar{width:46px;height:46px}#pw5-root .pw5-avatar .pw6-mesh{width:58px;height:58px;inset:-6px}#pw5-root .pw6-human-icon{width:39px;height:39px}#pw5-root .pw5-title strong{font-size:13px;margin-top:2px}#pw5-root .pw6-brand{font-size:8px;letter-spacing:1.4px}#pw5-root .pw5-subtitle{font-size:9px}#pw5-root .pw5-head button{width:28px;height:28px;padding:6px}
#pw5-root .pw6-routes{padding:10px 12px 11px}#pw5-root .pw6-route-heading{font-size:8px;margin-bottom:8px}#pw5-root .pw6-route-heading span+span{font-size:9px}#pw5-root .pw6-route-grid{gap:7px}#pw5-root .pw6-route{min-height:46px;padding:7px 9px;gap:7px;border-radius:11px}#pw5-root .pw6-route strong{font-size:11px}#pw5-root .pw6-route small{font-size:8px}#pw5-root .pw6-route-icon{width:25px;height:25px;border-radius:8px}#pw5-root .pw6-route-icon svg{width:15px;height:15px}
#pw5-root #pw5-log{padding:13px 14px 4px}#pw5-root .pw6-welcome{padding:4px 0 10px}#pw5-root .pw6-welcome h2{font-size:22px;margin:10px 0 8px}#pw5-root .pw6-welcome p{font-size:11px;line-height:1.75;margin-bottom:10px}#pw5-root .pw6-suggestions{margin-bottom:11px;gap:6px}#pw5-root .pw6-suggestions button{padding:7px 8px;font-size:9px}#pw5-root .pw6-boundary{font-size:8px}#pw5-root .pw5-body{font-size:13px;line-height:1.65;padding:10px 11px}#pw5-root .pw5-msg{max-width:94%;margin-bottom:13px}#pw5-root .pw5-compose{padding:10px 11px 9px}#pw5-root .pw5-footer{margin-top:8px}#pw5-root .pw5-entry{min-height:49px;padding:4px 5px 4px 11px;border-radius:12px}#pw5-root textarea{height:40px;padding:8px 0;font-size:16px}#pw5-root .pw5-send{width:37px;height:37px;border-radius:10px}
#pw5-root.pw6-has-messages .pw6-route-heading{display:none}#pw5-root.pw6-has-messages .pw6-route-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}#pw5-root.pw6-has-messages .pw6-route{min-height:43px;padding:5px 2px;display:flex;flex-direction:column;gap:3px;justify-content:center;text-align:center;border-radius:9px}#pw5-root.pw6-has-messages .pw6-route strong{font-size:8px}#pw5-root.pw6-has-messages .pw6-route small{display:none}#pw5-root.pw6-has-messages .pw6-route-icon{width:auto;height:auto;background:transparent;box-shadow:none}#pw5-root.pw6-has-messages .pw6-route-icon svg{width:13px;height:13px}#pw5-root.pw6-has-messages .pw6-dot{right:6px;top:6px;width:3px;height:3px}#pw5-root.pw6-has-messages .pw6-routes{padding-top:8px;padding-bottom:9px}
#pw5-root .pw7-float-voice{pointer-events:auto;position:fixed;display:grid;place-items:center;width:34px;height:34px;padding:8px;border-radius:50%;border:1px solid #8c84b455;background:linear-gradient(140deg,#38324c,#171828);color:#cdb8ee;box-shadow:3px 5px 10px #08081955,inset 1px 1px 1px #dfd0ff24;touch-action:manipulation;z-index:2}#pw5-root .pw7-float-voice svg{width:16px;height:16px}#pw5-root.pw7-muted .pw7-float-voice{color:#8a91aa;background:linear-gradient(140deg,#262a3c,#151829)}
#pw5-root[data-puppet] #pw5-launcher .pw5-launch-icon,#pw5-root[data-puppet] #pw5-launcher .pw6-launch-ai{opacity:1}#pw5-root[data-puppet] #pw5-launcher>.pw6-mesh{position:absolute;display:block;inset:-6px;width:76px;height:76px;opacity:1;transform-origin:50% 56%;will-change:transform,opacity;perspective:300px}#pw5-root[data-puppet] #pw5-launcher:before{opacity:1;transition:opacity .5s .35s}#pw5-root[data-puppet] #pw5-launcher{background:linear-gradient(140deg,#69708a,#202337 24%,#111322 55%,#535970 88%,#8b90a5);box-shadow:6px 9px 21px #03051180,-2px -2px 5px #d6deff24,inset 1px 1px 2px #e4e7ff6b;transition:background .5s,border-color .5s,box-shadow .5s;overflow:visible}
#pw5-root[data-puppet=chat] #pw5-launcher>.pw6-mesh{opacity:0;visibility:hidden;transform:translateX(5px) rotate(360deg) scale(.25,.8)}
#pw5-root[data-puppet=orb] #pw5-launcher:before,#pw5-root[data-puppet=to-orb] #pw5-launcher:before{opacity:0;transition-delay:0s}#pw5-root[data-puppet=orb] #pw5-launcher,#pw5-root[data-puppet=to-orb] #pw5-launcher{background:transparent;border-color:transparent;box-shadow:none}
#pw5-root[data-puppet=orb] #pw5-launcher .pw5-launch-icon,#pw5-root[data-puppet=orb] #pw5-launcher .pw6-launch-ai{opacity:0;transform:scale(.1)}
#pw5-root[data-puppet=to-chat] #pw5-launcher>.pw6-mesh{animation:pw7-fold-orb 1.05s cubic-bezier(.42,0,.2,1) both}#pw5-root[data-puppet=to-chat] #pw5-launcher .pw5-launch-icon,#pw5-root[data-puppet=to-chat] #pw5-launcher .pw6-launch-ai{animation:pw7-unfold-chat 1.05s cubic-bezier(.42,0,.2,1) both}
#pw5-root[data-puppet=to-orb] #pw5-launcher>.pw6-mesh{animation:pw7-unroll-orb 1.05s cubic-bezier(.42,0,.2,1) both}#pw5-root[data-puppet=to-orb] #pw5-launcher .pw5-launch-icon,#pw5-root[data-puppet=to-orb] #pw5-launcher .pw6-launch-ai{animation:pw7-fold-chat 1.05s ease both}
#pw5-root[data-puppet=orb] #pw5-launcher .pw6-mesh img{animation:pw7-orb-life 4.8s ease-in-out infinite}#pw5-root.pw5-speaking[data-puppet=orb] #pw5-launcher{filter:drop-shadow(0 0 9px #a558f06b)}#pw5-root.pw5-speaking[data-puppet=orb] #pw5-launcher .pw6-mesh img{animation:pw7-talk .9s ease-in-out infinite}
@keyframes pw7-fold-orb{0%{opacity:1;transform:translate(0,0) rotate(0) scale(1)}28%{opacity:1;transform:translate(-7px,-3px) rotate(-115deg) scale(1.06,.94)}58%{opacity:1;transform:translate(7px,1px) rotate(160deg) scale(.28,1.08)}78%{opacity:.5;transform:translate(5px,0) rotate(295deg) scale(.35,.77)}100%{opacity:0;transform:translate(5px,0) rotate(360deg) scale(.25,.8)}}
@keyframes pw7-unfold-chat{0%,30%{opacity:0;transform:translate(-5px,0) rotate(-180deg) scale(.08,1)}58%{opacity:.35;transform:rotate(-85deg) scale(.2,1.04)}82%{opacity:1;transform:rotate(12deg) scale(1.12,.9)}100%{opacity:1;transform:rotate(0) scale(1)}}
@keyframes pw7-unroll-orb{0%{opacity:0;transform:translate(5px,0) rotate(360deg) scale(.2,.8)}25%{opacity:.65;transform:translate(3px,0) rotate(275deg) scale(.3,1.05)}60%{opacity:1;transform:translate(-7px,-3px) rotate(-35deg) scale(1.12,.88)}82%{transform:translate(2px,1px) rotate(10deg) scale(.95,1.05)}100%{opacity:1;transform:translate(0,0) rotate(0) scale(1)}}
@keyframes pw7-fold-chat{0%{opacity:1;transform:rotate(0) scale(1)}35%{opacity:.8;transform:rotate(90deg) scale(.3,1.05)}65%,100%{opacity:0;transform:rotate(180deg) scale(.1)}}
@keyframes pw7-orb-life{0%,100%{transform:translateY(0) rotate(0)}18%{transform:translateY(-3px) rotate(-7deg)}38%{transform:translateY(-1px) rotate(5deg)}56%{transform:translateY(-3px) rotate(-4deg)}68%{transform:translateY(-1px) rotate(4deg)}83%{transform:translateY(1px) rotate(-2deg)}}@keyframes pw7-talk{50%{transform:translateY(-2px) scale(1.035,.98)}}
@media(max-width:600px){#pw5-root #pw5-room{left:auto;right:12px;bottom:94px;width:min(330px,calc(100vw - 24px));height:min(520px,72dvh,calc(var(--pw5-vh,100dvh) - 110px));max-width:none;border-radius:22px}#pw5-root.pw5-open #pw5-launcher{display:grid}#pw5-root #pw5-launcher{width:62px;height:62px}#pw5-root[data-puppet] #pw5-launcher>.pw6-mesh{width:72px;height:72px;inset:-6px}#pw5-root .pw5-head{min-height:70px;padding:10px 11px 10px 7px}#pw5-root .pw5-compose{padding-bottom:max(9px,env(safe-area-inset-bottom))}#pw5-root .pw5-entry{min-height:49px}#pw5-root.pw7-keyboard #pw5-room{bottom:calc(8px + var(--pw5-keyboard,0px));height:min(520px,calc(var(--pw5-vh,100dvh) - 16px))}#pw5-root.pw7-keyboard #pw5-launcher,#pw5-root.pw7-keyboard .pw7-float-voice{display:none}}
@media(prefers-reduced-motion:reduce){#pw5-root *,#pw5-root *:before{animation:none!important;transition:none!important;will-change:auto!important}}
/* PW8 formatted progressive replies; existing room and puppet design retained. */
#pw5-root .pw5-body.pw8-rich{white-space:normal}#pw5-root .pw8-rich p{margin:0 0 9px;color:inherit!important;font:inherit;line-height:inherit;white-space:pre-wrap}#pw5-root .pw8-rich p:last-child{margin-bottom:0}#pw5-root .pw8-rich strong{font-weight:700;color:inherit}#pw5-root .pw8-rich ul,#pw5-root .pw8-rich ol{margin:7px 0 11px;padding-left:19px}#pw5-root .pw8-rich li{margin:4px 0;padding-left:2px}#pw5-root .pw8-rich li p{margin-bottom:5px}#pw5-root .pw8-rich h1,#pw5-root .pw8-rich h2,#pw5-root .pw8-rich h3,#pw5-root .pw8-rich h4,#pw5-root .pw8-rich h5,#pw5-root .pw8-rich h6{font:650 1.03em/1.5 system-ui!important;letter-spacing:0;margin:10px 0 6px;color:inherit!important}#pw5-root .pw8-rich h1:after,#pw5-root .pw8-rich h2:after{display:none}#pw5-root .pw8-rich a{color:#c1b0f5;text-decoration:underline;overflow-wrap:anywhere}#pw5-root .pw8-rich pre{margin:8px 0;padding:9px;background:#0a1023;border:1px solid #8d9bc333;border-radius:8px;overflow:auto;white-space:pre-wrap;font-size:11px}#pw5-root .pw8-rich code{font-family:ui-monospace,monospace;font-size:.92em;background:#090f252b;border-radius:3px;padding:1px 3px}#pw5-root .pw8-rich blockquote{margin:8px 0;padding-left:10px;border-left:2px solid #9972cb;color:inherit}#pw5-root .pw8-rich table{width:100%;border-collapse:collapse;font:inherit;font-size:11px;margin:8px 0}#pw5-root .pw8-rich th,#pw5-root .pw8-rich td{padding:5px;border:1px solid #8697ba33;overflow-wrap:anywhere}#pw5-root .pw5-audio-error{font-size:10px;color:#8e99b4;line-height:1.5;margin:6px 2px 0;text-decoration:none}#pw5-root .pw8-caret{display:inline-block;width:2px;height:1em;vertical-align:-.13em;background:#b5a0f2;margin-left:2px;border-radius:1px;animation:pw8-caret 1s steps(2,end) infinite}@keyframes pw8-caret{50%{opacity:0}}@media(prefers-reduced-motion:reduce){#pw5-root .pw8-caret{animation:none}}
#pw5-root .pw8-rich ul{list-style:disc}#pw5-root .pw8-rich ol{list-style:decimal}
/* PW9 spoken captions: paged word chips, never a clipped two-line transcript. */
#pw5-root .pw5-mini-caption{display:flex;flex-wrap:wrap;justify-content:center;align-content:flex-start;gap:5px;padding:6px;max-height:min(190px,35dvh);overflow-y:auto;overflow-x:hidden;-webkit-line-clamp:unset;-webkit-box-orient:unset;background:none;border:0;box-shadow:none;line-height:1.45;scrollbar-width:thin;overscroll-behavior:contain}
#pw5-root .pw9-caption-word{display:inline-block;padding:4px 7px;border:1px solid #9c70db55;border-radius:6px;background:#0d1736ed;color:#b0b7cf;font-size:12px;font-weight:500;box-shadow:0 3px 12px #060b1e40;white-space:normal;overflow-wrap:anywhere;max-width:100%;transition:background .12s,color .12s,box-shadow .12s}
#pw5-root .pw9-caption-word.pw9-spoken{color:#e4def7;background:#161d38ed}
#pw5-root .pw9-caption-word.pw9-current{color:#fff;background:linear-gradient(135deg,#7b1bd1,#5e36d5);border-color:#b68ce4;box-shadow:0 4px 15px #7a28ca55;font-weight:650}
@media(prefers-reduced-motion:reduce){#pw5-root .pw9-caption-word{transition:none}}
