.ai-man-preview-note{position:relative;z-index:101;background:#2d2414;color:#f1ce84;text-align:center;padding:10px 16px;font:700 12px/1.5 Arial,sans-serif;border-bottom:1px solid #a58542}.ai-man-dock{position:fixed;right:22px;bottom:24px;z-index:1100;display:flex;align-items:center;gap:0;max-width:calc(100vw - 12px);border:1px solid #d2a94e;border-radius:40px;background:linear-gradient(120deg,#372711,#13110d);box-shadow:0 4px 24px #0009,0 0 18px #d7ae4128}.ai-man-dock button{border:0;color:#f9df9c;background:transparent;cursor:pointer;font:italic 800 14px Arial,sans-serif}.ai-man-grip{touch-action:none;padding:15px 8px 15px 13px;font-size:24px!important;cursor:grab!important}.ai-man-launch{padding:7px 18px 7px 4px;display:flex;align-items:center;gap:10px;white-space:nowrap}.ai-man-orb{position:relative;display:grid;place-items:center;width:40px;height:40px;background:radial-gradient(circle at 30% 25%,#ffeaa8,#b17a23 65%,#4c3214);border:1px solid #ffe4a1;border-radius:50%;color:#22170a;font:italic 900 23px Arial,sans-serif;animation:man-orb 3s ease-in-out infinite}.ai-man-orb:after{content:'';position:absolute;inset:-5px;border:1px solid #edc87599;border-radius:50%;animation:man-ring 2.8s ease-out infinite}@keyframes man-orb{50%{box-shadow:0 0 18px #e1b54d99;transform:translateY(-2px)}}@keyframes man-ring{0%{transform:scale(.9);opacity:.8}100%{transform:scale(1.25);opacity:0}}.ai-man-chat{position:fixed;right:22px;bottom:96px;width:390px;max-width:calc(100vw - 24px);height:590px;max-height:calc(100dvh - 120px);z-index:1101;display:flex;flex-direction:column;border:1px solid #b99550;border-radius:18px;background:#14120f;color:#f7e8ca;box-shadow:0 12px 55px #000c;overflow:hidden;font:14px/1.5 Arial,sans-serif}.ai-man-chat[hidden]{display:none!important}.ai-man-chat .ai-man-head{position:static!important;width:auto!important;height:auto!important;min-height:65px;padding:14px 18px;display:flex;justify-content:space-between;align-items:center;gap:12px;background:linear-gradient(120deg,#3f2e16,#20190e);border-bottom:1px solid #bd974c55;flex-shrink:0}.ai-man-head strong{display:block;font:italic 800 20px Arial,sans-serif;color:#f5d48a}.ai-man-head small{display:block;font-size:11px;color:#d2c5ad}.ai-man-head button{background:none;border:0;color:#f5d48a;font-size:30px;cursor:pointer;padding:0 4px}.ai-man-intro{font-size:11px;margin:10px 16px;color:#b9ad96;flex-shrink:0}.ai-man-feed{flex:1;min-height:0;overflow-y:auto;padding:8px 14px;overscroll-behavior:contain}.ai-man-bubble{padding:12px;margin-bottom:12px;border-radius:12px;background:#2b2419;border:1px solid #d5ac4b22;overflow-wrap:anywhere}.ai-man-bubble.user{margin-left:28px;background:#3a2c16}.ai-man-bubble.assistant{margin-right:14px}.ai-man-bubble>small{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#dfbf7b}.ai-man-bubble>p{white-space:pre-wrap;margin:5px 0 0}.ai-man-motor{margin-top:12px;padding:10px;border:1px solid #bb975044;border-radius:9px;background:#17130e}.ai-man-motor img{display:block;width:100%;height:140px;object-fit:contain;background:#0e0d0b;border-radius:7px;margin-bottom:8px}.ai-man-motor strong,.ai-man-motor small{display:block}.ai-man-motor p{color:#f0ca75;margin:4px 0;font-size:19px;font-weight:800}.ai-man-motor a{display:block;margin-top:10px;padding:9px;color:#21170a;background:#e8c477;border-radius:7px;text-decoration:none;font-weight:700;font-size:12px}.ai-man-status{min-height:16px;font-size:11px;color:#d2c5ad;margin:5px 16px;flex-shrink:0}.ai-man-form{display:flex;gap:8px;padding:10px 12px;border-top:1px solid #ba965044;flex-shrink:0}.ai-man-form input{flex:1;min-width:0;background:#0d0c0b;border:1px solid #b18b4855;color:#fff1d2;border-radius:9px;padding:12px;font:14px Arial,sans-serif}.ai-man-form button{background:#e3bd70;color:#1c140a;border:0;border-radius:9px;padding:10px;font:700 13px Arial,sans-serif;cursor:pointer}.ai-man-reset{margin:0 12px 10px;align-self:flex-start;background:none;border:0;color:#d5b879;font-size:11px;text-decoration:underline;cursor:pointer}.ai-man-chat button:disabled{opacity:.5;cursor:wait}.ai-man-chat button:focus-visible,.ai-man-dock button:focus-visible{outline:2px solid #ffe3a0;outline-offset:3px}.ai-man-motor a:hover,.ai-man-dock:hover{box-shadow:0 0 22px #e3ba6a55}@media(max-width:600px){.ai-man-dock{right:14px;bottom:20px}.ai-man-chat{right:12px;bottom:88px;width:calc(100vw - 24px);height:560px;max-height:calc(100dvh - 110px)}.ai-man-launch{font-size:13px!important}}@media(prefers-reduced-motion:reduce){.ai-man-orb,.ai-man-orb:after{animation:none!important}}

.ai-man-footer-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 12px 10px;flex-shrink:0}.ai-man-footer-actions .ai-man-reset{margin:0;text-align:right}.ai-man-handoff{border:1px solid #a88444;background:#302414;color:#f1d08c;border-radius:7px;padding:8px 10px;font:700 12px Arial,sans-serif;cursor:pointer}.ai-man-handoff:hover{box-shadow:0 0 18px #e3ba6a55}

.ai-man-choice{display:block;width:100%;margin:10px 0;padding:10px;border:1px solid #e0b96c;border-radius:8px;background:#e5c079;color:#211609;font:700 12px Arial,sans-serif;cursor:pointer}.ai-man-choice:hover{box-shadow:0 0 18px #e3ba6a55}

/* Owner preview: original blue mark on a translucent glass launcher. */
.ai-man-dock{isolation:isolate;border-color:#8edff27a;background:linear-gradient(125deg,#d2f7ff03,#152c4806 65%,#83bcff02);-webkit-backdrop-filter:blur(2px) saturate(105%);backdrop-filter:blur(2px) saturate(105%);box-shadow:inset 0 1px 0 #e3fbff38,0 4px 16px #0003;}
.ai-man-dock:before{content:'';position:absolute;inset:-1px;border:1px solid #66cfff;pointer-events:none;border-radius:inherit;opacity:.25;animation:man-blue-halo 3.8s ease-in-out infinite;}
.ai-man-dock button{color:#f0fcff;text-shadow:0 1px 3px #001528,0 0 8px #001528aa;font-style:normal;}
.ai-man-grip{color:#a5d9eb!important;padding-left:12px;padding-right:7px;}
.ai-man-launch{gap:9px;padding:5px 17px 5px 0;min-height:62px;font-size:15px!important;font-weight:800!important;letter-spacing:.01em;}
.ai-man-orb{width:62px;height:52px;background:none;border:0;border-radius:0;color:inherit;animation:man-blue-float 3.8s ease-in-out infinite;}
.ai-man-orb img{display:block;width:62px;height:52px;object-fit:contain;filter:drop-shadow(0 1px 2px #00122280);}
.ai-man-orb:after{display:none;}
.ai-man-dock:hover{box-shadow:inset 0 1px 0 #edfcff55,0 4px 18px #0003,0 0 18px #5db9ff30;}
.ai-man-dock button:focus-visible{outline-color:#8be5ff;}
.ai-man-chat{background:linear-gradient(125deg,#d2f7ff03,#152c4806 65%,#83bcff02);border-color:#81d9f07a;-webkit-backdrop-filter:blur(2px) saturate(105%);backdrop-filter:blur(2px) saturate(105%);box-shadow:0 8px 30px #0004;}
.ai-man-chat .ai-man-head{background:linear-gradient(120deg,#469ce208,#65d6e005);border-bottom-color:#81d9f03b;}
.ai-man-head strong,.ai-man-head button{color:#b6edff;}
@keyframes man-blue-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
@keyframes man-blue-halo{0%,100%{opacity:.2}50%{opacity:.65}}
@media(max-width:600px){.ai-man-launch{font-size:14px!important;padding-right:14px;}}
@media(prefers-reduced-motion:reduce){.ai-man-dock:before,.ai-man-orb{animation:none!important}}

/* Keep text legible while the panel itself remains clear glass. */
.ai-man-chat{color:#f7faff;text-shadow:0 1px 3px #001020,0 0 5px #001020;}
.ai-man-intro,.ai-man-status,.ai-man-head small{color:#e4f4ff;}
.ai-man-bubble,.ai-man-bubble.user{background:#111a25d9;border-color:#9cdaed40;}
.ai-man-chat .ai-man-form input{background:#0d1520e8;}
.ai-man-motor a,.ai-man-form button,.ai-man-choice{text-shadow:none;}

/* Gold conversation text; preserve the approved clear-glass backgrounds. */
.ai-man-bubble>p{color:#f5d48a;font-weight:600;text-shadow:0 1px 3px #130c00,0 0 5px #130c00;}
.ai-man-bubble>small{color:#ffe4a1;font-weight:800;letter-spacing:.09em;}
.ai-man-chat .ai-man-form input{color:#f5d48a;caret-color:#ffe4a1;}
.ai-man-chat .ai-man-form input::placeholder{color:#dfc58c;opacity:1;}

/* Compact touch launcher: smaller artwork and spacing, readable type and touch targets. */
@media(max-width:1024px){
 .ai-man-dock{right:12px;bottom:16px;border-radius:28px;}
 .ai-man-grip{min-height:44px;padding:7px 5px 7px 9px;font-size:20px!important;}
 .ai-man-launch{min-height:44px;padding:4px 12px 4px 0;gap:7px;font-size:14px!important;}
 .ai-man-orb,.ai-man-orb img{width:40px;height:34px;}
 .ai-man-chat{right:12px;bottom:72px;width:360px;height:500px;max-height:calc(100dvh - 96px);font-size:14px;}
 .ai-man-chat .ai-man-head{min-height:54px;padding:10px 14px;}
 .ai-man-head strong{font-size:18px;}
 .ai-man-chat .ai-man-form input{font-size:16px;}
}
@media(max-width:480px){
 .ai-man-launch{font-size:13px!important;padding-right:11px;}
 .ai-man-orb,.ai-man-orb img{width:36px;height:32px;}
 .ai-man-chat{width:calc(100vw - 24px);height:470px;max-height:calc(100dvh - 92px);}
}
