/* Persistent ALAM Bot. Its conversation is the existing private workspace agent. */
.alam-assistant-layer{position:fixed;inset:0;z-index:90;pointer-events:none;color:var(--studio-text,#f1f3f5);font-family:var(--body,"Segoe UI",Arial,sans-serif)}
.alam-assistant-layer[hidden],.alam-assistant-layer [hidden]{display:none!important}
.alam-bot-position{position:absolute;width:94px;pointer-events:auto}
.alam-bot-handle{display:flex;flex-direction:column;align-items:center;gap:3px;width:94px;background:transparent;border:0;padding:0;color:var(--studio-text,#f1f3f5);touch-action:none;user-select:none;cursor:grab}
.alam-bot-handle:active{cursor:grabbing}
.alam-bot-handle:focus-visible{outline:2px solid var(--studio-silver,#c3c9d2);outline-offset:5px;border-radius:14px}
.alam-bot-name{padding:4px 10px;background:var(--studio-panel,#171d25);border:1px solid var(--studio-line,#323b48);border-radius:20px;font-size:12px;line-height:1.4;font-weight:600;box-shadow:0 3px 9px #0004}
.alam-bot-hint{font-size:10px;line-height:1.5;color:var(--studio-muted,#9ca7b6);text-align:center;white-space:nowrap}
.alam-bot-character{display:block;width:65px;height:81px;position:relative;filter:drop-shadow(0 5px 6px #0004)}
.alam-bot-antenna{position:absolute;top:1px;left:31px;width:3px;height:10px;background:#a8b7c6}
.alam-bot-antenna:after{content:"";position:absolute;top:-2px;left:-2px;width:7px;height:7px;border-radius:50%;background:#c9e6e5}
.alam-bot-head{position:absolute;left:5px;top:10px;width:55px;height:38px;border-radius:18px 18px 14px 14px;background:linear-gradient(145deg,#fff,#e2e9ef 50%,#a6b8ca);box-shadow:inset 0 2px 1px #fff;z-index:2}
.alam-bot-face{position:absolute;left:7px;right:7px;top:12px;height:17px;border-radius:8px;background:linear-gradient(160deg,#2d3f50,#15222f);display:flex;justify-content:center;align-items:center;gap:10px}
.alam-bot-eye{width:6px;height:7px;border-radius:3px;background:#d6f2ee;box-shadow:0 0 5px #c6e8eb55}
.alam-bot-cheek{position:absolute;left:10px;bottom:6px;width:6px;height:2px;background:#d8b4b4;border-radius:50%}
.alam-bot-cheek.right{right:10px;left:auto}
.alam-bot-body{position:absolute;top:47px;left:17px;width:31px;height:23px;border-radius:9px 9px 12px 12px;background:linear-gradient(135deg,#f2f7fc,#b1c3d3)}
.alam-bot-core{position:absolute;top:7px;left:12px;width:7px;height:7px;background:#526b82;border-radius:3px;box-shadow:inset 0 1px 1px #c4e2f5}
.alam-bot-hand{position:absolute;left:8px;top:48px;width:8px;height:19px;background:linear-gradient(90deg,#a9bccb,#eaf2f8);border-radius:6px;transform:rotate(20deg);transform-origin:top}
.alam-bot-hand.right{left:auto;right:8px;transform:rotate(-20deg)}
.alam-bot-foot{position:absolute;left:19px;bottom:2px;width:11px;height:7px;border-radius:5px;background:#8dabc1}
.alam-bot-foot.right{left:auto;right:19px}
.alam-bot-position.is-greeting .alam-bot-hand.right{animation:alam-bot-wave .25s ease-in-out 4 alternate}
.alam-bot-position.is-working .alam-bot-foot{animation:alam-bot-step .22s ease-in-out 4 alternate}
.alam-bot-position.is-working .alam-bot-foot.right{animation-direction:alternate-reverse}
.alam-bot-position.is-dragging .alam-bot-hand{transform:rotate(55deg)}
.alam-bot-position.is-dragging .alam-bot-hand.right{transform:rotate(-55deg)}
.alam-bot-position.is-busy .alam-bot-core{background:#b7d7d9;box-shadow:0 0 6px #b7d7d977}
@keyframes alam-bot-wave{from{transform:rotate(-75deg)}to{transform:rotate(-125deg)}}
@keyframes alam-bot-step{to{transform:translateY(-4px)}}
.alam-bot-panel{position:absolute;display:flex;flex-direction:column;width:370px;max-height:600px;pointer-events:auto;background:var(--studio-panel,#171d25);color:var(--studio-text,#f1f3f5);border:1px solid var(--studio-line,#323b48);border-radius:15px;box-shadow:0 12px 44px #0007;overflow:hidden}
.alam-bot-panel button,.alam-bot-panel textarea,.alam-bot-panel select{font-family:inherit}
.alam-bot-panel{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.alam-bot-panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 15px;border-bottom:1px solid var(--studio-line,#323b48);flex:none}
.alam-bot-panel-head h2{font:600 15px/1.4 var(--body,"Segoe UI",Arial,sans-serif);margin:0}
.alam-bot-panel-head p{font-size:11px;line-height:1.4;color:var(--studio-muted,#9ca7b6);margin:3px 0 0;max-width:225px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.alam-bot-panel-head>div:last-child{display:flex;gap:3px;flex-shrink:0}
.alam-bot-icon{display:inline-flex;align-items:center;justify-content:center;width:33px;height:33px;padding:7px;border:0;background:transparent;color:var(--studio-muted,#9ca7b6);border-radius:7px;flex-shrink:0}
.alam-bot-icon:hover{background:#ffffff0c;color:var(--studio-text,#f1f3f5)}
.alam-bot-icon:disabled,.alam-bot-send:disabled{opacity:.5;cursor:default}
.alam-bot-icon svg,.alam-bot-send svg{width:17px;height:17px}
.alam-bot-transcript{overflow:auto;overscroll-behavior:contain;max-height:245px;min-height:65px;padding:15px;scrollbar-width:thin;scrollbar-color:#526072 transparent}
.alam-bot-welcome strong{font-size:16px;line-height:1.45;font-weight:500}
.alam-bot-welcome p{font-size:12px;line-height:1.7;color:var(--studio-muted,#9ca7b6);margin:6px 0 0}
.alam-bot-message{padding:10px 12px;border-radius:10px;background:#111924;margin:0 0 10px;overflow-wrap:anywhere}
.alam-bot-message:last-child{margin-bottom:0}
.alam-bot-message.from-customer{background:#273342;margin-left:22px}
.alam-bot-message>span{display:block;color:var(--studio-muted,#9ca7b6);font-size:10px;line-height:1.5;margin-bottom:4px}
.alam-bot-message p{font-size:12px;line-height:1.7;margin:0;white-space:normal}
.alam-bot-shortcuts{display:flex;gap:6px;flex-wrap:wrap;padding:0 15px 12px;flex:none}
.alam-bot-shortcuts button{font-size:11px;line-height:1.5;border:1px solid var(--studio-line,#323b48);background:#202a36;color:#d9e1ec;border-radius:6px;padding:6px 8px}
.alam-bot-shortcuts button:hover{background:#2d3c4e}
.alam-bot-input-row{padding:0 15px;flex:none}
.alam-bot-input-row textarea{display:block;width:100%;min-height:67px;max-height:145px;resize:vertical;padding:10px 11px;color:var(--studio-text,#f1f3f5);background:#0e151f;border:1px solid #415168;border-radius:8px;font-size:13px;line-height:1.6}
.alam-bot-input-row textarea:disabled{opacity:.65}
.alam-bot-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 15px 0;flex:none}
.alam-bot-dictation{display:flex;align-items:center;gap:4px;min-width:0}
.alam-bot-dictation label{margin:0;min-width:0}
.alam-bot-dictation select{background:transparent;color:var(--studio-muted,#9ca7b6);border:0;font-size:11px;padding:5px 4px;max-width:105px}
.alam-bot-dictation select option{background:var(--studio-panel,#171d25);color:var(--studio-text,#f1f3f5)}
.alam-bot-icon[aria-pressed="true"]{color:#dce9f4;background:#324558;box-shadow:0 0 0 1px #8599ad}
.alam-bot-send{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:linear-gradient(150deg,#e1e5eb,#acb5c2);border:1px solid #d1d7df;color:#161d27;border-radius:7px;padding:8px 12px;font-size:12px;font-weight:600;line-height:1.5}
.alam-bot-send:hover:not(:disabled){background:#ecf0f7}
.alam-bot-status{padding:0 15px;margin:9px 0 0;min-height:16px;font-size:11px;line-height:1.5;color:#b5c7db;flex:none}
.alam-bot-status.is-error{color:#f0b8b5}
.alam-bot-playback{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:11px 15px 0;flex:none}
.alam-bot-playback button{font-size:10px;line-height:1.6;min-height:34px;padding:6px 8px;color:#d0ddef;border:1px solid #4a5e78;border-radius:7px;background:#24344a}
.alam-bot-playback button[aria-pressed="true"]{background:#3c506a;border-color:#9db0c9;color:#f0f5fc}
.alam-bot-playback button:disabled{opacity:.45;cursor:default}
.alam-bot-playback [data-bot-read-mode]{display:inline-block;font-size:9px;margin-left:5px;color:#bdcde3}
.alam-bot-playback button:focus-visible,.alam-bot-shortcuts button:focus-visible{outline:2px solid #d0ddef;outline-offset:3px}
.alam-bot-voice-help{font-size:10px;line-height:1.6;color:#adbed5;padding:0 15px;margin:6px 0 0;flex:none}
@media(max-width:500px){.alam-bot-playback{padding-left:12px;padding-right:12px}.alam-bot-voice-help{padding:0 12px}}
@media(pointer:coarse){.alam-bot-playback button{min-height:44px}}
.alam-bot-review-note{padding:0 15px 13px;margin:5px 0 0;color:var(--studio-muted,#9ca7b6);font-size:10px;line-height:1.5;flex:none}
@media(max-width:500px){.alam-bot-character{transform:scale(.9);transform-origin:bottom center}.alam-bot-hint{font-size:9px}.alam-bot-panel-head p{max-width:160px}.alam-bot-panel-head{padding:11px 12px}.alam-bot-shortcuts,.alam-bot-transcript{padding-left:12px;padding-right:12px}.alam-bot-input-row{padding:0 12px}.alam-bot-tools{padding-left:12px;padding-right:12px}.alam-bot-status{padding:0 12px}.alam-bot-review-note{padding:0 12px 11px}.alam-bot-transcript{max-height:210px}}
@media(pointer:coarse){.alam-bot-panel button,.alam-bot-panel select{min-height:44px}.alam-bot-icon{width:40px}.alam-bot-input-row textarea{font-size:16px}.alam-bot-transcript{max-height:210px}}
@media(max-height:460px){.alam-bot-shortcuts,.alam-bot-review-note{display:none}.alam-bot-transcript{max-height:80px;padding-top:10px;padding-bottom:10px}.alam-bot-input-row textarea{min-height:45px;max-height:65px}.alam-bot-panel-head{padding-top:9px;padding-bottom:9px}.alam-bot-tools{padding-top:5px}.alam-bot-status{margin-bottom:9px}}
@media(prefers-reduced-motion:reduce){.alam-bot-character *{animation:none!important}}
