/* AURA-inspired composition, Thebe identity. One dock for the existing chat and voice runtime. */
:root{--thebe-dock-w:380px;--thebe-dock-accent:#0b66d6;--thebe-dock-bg:#111315;--thebe-dock-ink:#f4f5f6;--thebe-dock-muted:#aab0b8;--thebe-dock-line:#32363c;--thebe-dock-soft:#1b2027}
.thebe-ai-dock[hidden],.thebe-ai-pill[hidden]{display:none!important}
.thebe-ai-dock{position:fixed;z-index:72;display:flex;flex-direction:column;overflow:hidden;isolation:isolate;background:var(--thebe-dock-bg);color:var(--thebe-dock-ink);border:1px solid var(--thebe-dock-line);box-shadow:-12px 0 32px #0002;font-size:14px;color-scheme:dark}
.thebe-ai-dock *{box-sizing:border-box}
.thebe-ai-dock button{font-family:inherit;cursor:pointer}
.thebe-ai-dock button:focus-visible,.thebe-ai-pill:focus-visible,.thebe-ai-dock textarea:focus-visible{outline:2px solid #83baff;outline-offset:3px}
.thebe-ai-dock-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:18px 18px 15px;border-bottom:1px solid var(--thebe-dock-line);flex:none}
.thebe-ai-dock-title{display:flex;align-items:center;gap:10px;min-width:0}
.thebe-ai-mark{display:block;width:34px;height:34px;flex:none;border-radius:10px;background:#fff url('/assets/thebe-desk-logo-symbol.png') center/26px 26px no-repeat;color:transparent;font-size:0}
.thebe-ai-title-copy{min-width:0}.thebe-ai-title-copy b{font-size:17px;font-weight:600;letter-spacing:-.03em}
.thebe-ai-presence{display:flex;align-items:center;gap:6px;font-size:11px;line-height:1.4;color:var(--thebe-dock-muted);margin-top:3px}
.thebe-ai-presence-dot{width:5px;height:5px;flex:none;border-radius:50%;background:#92bfff}
.thebe-ai-head-actions{display:flex;gap:4px;align-items:center}
.thebe-ai-icon-btn{width:36px;height:36px;flex:none;border:1px solid var(--thebe-dock-line);border-radius:10px;background:transparent;color:#ddd;font-size:18px}
.thebe-ai-icon-btn:hover{background:#292e35}
.thebe-ai-attention{border:1px solid #5173a0;border-radius:9px;min-width:28px;min-height:32px;background:#172c47;color:#b7d6ff;font-size:12px}.thebe-ai-attention:empty{display:none}
.thebe-ai-dock-scroll{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#50555e transparent;padding:18px;display:flex;flex-direction:column;gap:16px}
.thebe-ai-voice-card{position:relative;flex:none;text-align:center;padding:10px 0 18px;border-bottom:1px solid var(--thebe-dock-line)}
.thebe-ai-eyebrow{font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:#aab0b8;margin-bottom:12px}
.thebe-ai-orb-button{position:relative;display:block;width:100%;height:152px;border:0;border-radius:18px;padding:0;margin:0 auto 10px;background:transparent;color:#fff;overflow:hidden}
.thebe-particle-orb{--thebe-audio-scale:1;--thebe-audio-ring:8px;--thebe-audio-blur:28px;position:relative;width:100%;height:100%;isolation:isolate;transform:scale(var(--thebe-audio-scale));transition:transform 80ms linear}
.thebe-particle-core{position:absolute;z-index:2;left:50%;top:50%;width:68px;height:68px;display:grid;place-items:center;transform:translate(-50%,-50%);border:1px solid #a9adb3;border-radius:50%;background:#111315;box-shadow:0 0 0 var(--thebe-audio-ring) #ffffff05;color:#fff}
.thebe-particle-core svg{width:22px;height:22px}
.thebe-particle-orb:before,.thebe-particle-orb:after{content:"";position:absolute;z-index:1;width:92px;height:92px;left:50%;top:50%;border:1px solid #ffffff29;border-radius:50%;transform:translate(-50%,-50%)}
.thebe-particle-orb:after{width:116px;height:116px;border-color:#ffffff12}
.thebe-particle-wave{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.thebe-particle{fill:#fff;opacity:.55}
.thebe-particle-wave g{transform-origin:center;animation:thebe-particle-idle 6s ease-in-out infinite alternate}
.thebe-particle-wave g:nth-child(2n){animation-delay:-2s;opacity:.55}
@keyframes thebe-particle-idle{from{transform:translateY(-2px)}to{transform:translateY(3px)}}
@keyframes thebe-particle-speak{from{transform:translateY(-5px) scaleY(.92)}to{transform:translateY(5px) scaleY(1.12)}}
@keyframes thebe-ring-out{from{transform:translate(-50%,-50%) scale(.9);opacity:.65}to{transform:translate(-50%,-50%) scale(1.3);opacity:0}}
@keyframes thebe-pill-pulse{0%,100%{opacity:.5}50%{opacity:1}}
.thebe-particle-orb[data-phase="speaking"] .thebe-particle-wave g,.thebe-particle-orb[data-phase="listening"] .thebe-particle-wave g{animation-name:thebe-particle-speak;animation-duration:.7s}
.thebe-particle-orb[data-phase="speaking"]:before,.thebe-particle-orb[data-phase="listening"]:before{animation:thebe-ring-out 1.5s ease-out infinite}
.thebe-particle-orb[data-phase="thinking"] .thebe-particle-core,.thebe-particle-orb[data-phase="connecting"] .thebe-particle-core{border-style:dashed}
.thebe-particle-orb[data-phase="error"] .thebe-particle-core{border-color:#ffb4ab}
.thebe-ai-voice-label{font-size:23px;line-height:1.25;font-weight:400;letter-spacing:-.035em}
.thebe-ai-voice-sub{font-size:12px;line-height:1.5;color:var(--thebe-dock-muted);margin:8px auto 0;max-width:290px}
.thebe-ai-voice-mount{display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:12px}
.thebe-ai-voice-mount .btn{font-size:12px;min-height:40px;border:1px solid #476b96;border-radius:10px;background:#172c47;color:#dceaff;padding:8px 12px}
.thebe-ai-voice-mount #thebeLiveVoiceStatus{font-size:11px;line-height:1.5;color:#aab0b8;text-align:center}
.thebe-ai-dock[data-surface="public"] .thebe-ai-voice-mount{display:none}
.thebe-ai-live-transcript{margin-top:12px;padding:12px;border:1px solid var(--thebe-dock-line);border-radius:12px;background:#1b1f24;text-align:left;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.thebe-ai-live-transcript[hidden]{display:none}
.thebe-ai-live-line+.thebe-ai-live-line{margin-top:8px}.thebe-ai-live-line b{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#b8c0cb;margin-right:6px}
.thebe-ai-quick{display:grid;gap:8px;flex:none}
.thebe-ai-quick button{position:relative;border:1px solid var(--thebe-dock-line);border-radius:12px;background:#191c20;color:#f4f5f6;padding:12px 30px 12px 13px;font-size:13px;text-align:left;line-height:1.4}
.thebe-ai-quick button:after{content:'↗';position:absolute;right:13px;top:15px;color:#aab0b8}
.thebe-ai-quick button small{display:block;font-size:11px;color:#aab0b8;margin-top:3px}
.thebe-ai-quick button:hover{background:#242a32;border-color:#65758a}
.thebe-ai-response{flex:none;overflow-wrap:anywhere;border:1px solid var(--thebe-dock-line);border-radius:14px;background:#1b2027;padding:15px;font-size:13px;line-height:1.65;color:#e8ecf1}
.thebe-ai-response-title{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#aabbd1;margin-bottom:8px}
.thebe-ai-response-answer{white-space:pre-wrap}
.thebe-ai-response[data-state="error"]{border-color:#a66d69}
.thebe-ai-action{margin-top:10px;padding:10px;border-radius:9px;background:#272e38;border-left:2px solid #8cbaff}.thebe-ai-action b{display:block;font-size:13px}.thebe-ai-action span{display:block;margin-top:4px;font-size:12px;color:#c0c8d3}
.thebe-ai-boundary{font-size:11px;color:#b2bbc8;margin-top:10px}
.thebe-ai-open-full{display:block;margin-top:12px;padding:8px 0;border:0;background:transparent;color:#9ecaff;font-size:12px}
.thebe-ai-public-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.thebe-ai-public-signin,.thebe-ai-public-start,.thebe-ai-public-voice{min-height:40px;border:1px solid #587491;border-radius:10px;padding:8px 10px;background:#202e40;color:#e8f2ff;font-size:12px}
.thebe-ai-public-start{background:#0b66d6;border-color:#0b66d6;color:#fff}
.thebe-ai-compose{flex:none;display:flex;align-items:flex-end;gap:8px;margin:0;padding:14px 16px 10px;border-top:1px solid var(--thebe-dock-line);background:#111315}
.thebe-ai-compose textarea{flex:1;min-width:0;min-height:44px;max-height:106px;resize:vertical;border:1px solid #454c56;border-radius:12px;padding:12px;font:inherit;font-size:14px;line-height:1.4;background:#1b1f25;color:#fff}
.thebe-ai-compose textarea::placeholder{color:#aab0b8}
.thebe-ai-send{width:44px;height:44px;flex:none;border:1px solid #0b66d6;border-radius:12px;background:#0b66d6;color:#fff;font-size:21px}.thebe-ai-send:disabled{opacity:.5;cursor:wait}
.thebe-ai-foot{flex:none;font-size:10px;line-height:1.5;color:#aab0b8;padding:0 17px 12px}
.thebe-ai-dock[data-conversation="true"] .thebe-ai-orb-button{height:80px}
.thebe-ai-dock[data-conversation="true"] .thebe-ai-voice-label{font-size:18px}
.thebe-ai-dock[data-conversation="true"] .thebe-ai-eyebrow{display:none}
.thebe-ai-pill{position:fixed;z-index:181;right:12px;bottom:calc(104px + env(safe-area-inset-bottom));border:1px solid #4c596a;border-radius:999px;padding:13px 17px;background:#111315;color:#fff;font:inherit;font-size:13px;box-shadow:0 6px 24px #0003;cursor:pointer}
.thebe-ai-pill-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#fff;margin-right:8px;animation:thebe-pill-pulse 3s ease-in-out infinite}
.thebe-ai-pill[data-attention]:after{content:attr(data-attention);margin-left:8px;color:#b7d6ff}
@media(min-width:1024px){
 .thebe-ai-dock{top:72px;right:0;bottom:0;left:auto;width:min(var(--thebe-dock-w),calc(100vw - 24px));border-radius:0;border-right:0;border-bottom:0}
 .thebe-ai-dock[data-surface="workspace"]{top:70px}
 .thebe-ai-pill{display:none!important}
 .thebe-ai-minimize{display:none!important}
 body.thebe-ai-expanded{--thebe-dock-w:520px}
}
@media(min-width:1024px) and (max-width:1179px){:root{--thebe-dock-w:320px}body.thebe-ai-expanded{--thebe-dock-w:440px}}
@media(max-width:1023px){
 .thebe-ai-dock{z-index:181;left:8px;right:8px;top:auto;bottom:calc(104px + env(safe-area-inset-bottom));width:auto;max-height:calc(100dvh - 128px - env(safe-area-inset-bottom));border-radius:20px}
 .thebe-ai-dock-head{padding:12px}.thebe-ai-dock-scroll{padding:14px;gap:12px}.thebe-ai-orb-button{height:110px}.thebe-ai-voice-label{font-size:21px}
 .thebe-ai-expand{display:none}.thebe-ai-icon-btn{width:44px;height:44px}.thebe-ai-compose textarea{font-size:16px}
 .thebe-ai-dock[data-keyboard="true"]{bottom:var(--thebe-keyboard-inset,0px);max-height:var(--thebe-visible-height,65dvh)}
}
@media(prefers-reduced-motion:reduce){.thebe-particle-orb{transform:none!important;transition:none!important}.thebe-particle-orb *,.thebe-particle-orb:before,.thebe-particle-orb:after,.thebe-ai-pill-dot{animation:none!important;transition:none!important}}

.thebe-live-language{max-width:100%;min-height:40px;border:1px solid #454c56;border-radius:10px;background:#1b1f25;color:#edf2f8;padding:8px 12px;font:inherit;font-size:12px}.thebe-live-language:disabled{opacity:.68;cursor:not-allowed}.thebe-live-language:focus-visible{outline:2px solid #83baff;outline-offset:3px}


/* V161 dock polish — premium command-surface hierarchy, flat Thebe palette, no gradients. */
:root{
  --thebe-dock-w:392px;
  --thebe-dock-bg:#0b66d6;
  --thebe-dock-panel:#0957b8;
  --thebe-dock-elevated:#084a9c;
  --thebe-dock-ink:#f7f9fb;
  --thebe-dock-muted:#d7e8fb;
  --thebe-dock-line:rgba(255,255,255,.22);
  --thebe-dock-line-strong:rgba(255,255,255,.34);
  --thebe-dock-accent:#0b66d6;
  --thebe-dock-accent-soft:#084a9c;
}
.thebe-ai-dock{
  background:var(--thebe-dock-bg);
  border-color:var(--thebe-dock-line);
  box-shadow:-18px 0 44px rgba(0,0,0,.16);
}
.thebe-ai-dock-head{
  min-height:70px;
  padding:14px 16px 13px 18px;
  border-bottom-color:rgba(255,255,255,.18);
  background:#0957b8;
}
.thebe-ai-dock-title{gap:11px}
.thebe-ai-mark{
  width:36px;height:36px;border-radius:11px;
  background-color:#fff;background-size:27px 27px;
  box-shadow:0 0 0 1px rgba(255,255,255,.08);
}
.thebe-ai-title-copy b{
  display:block;
  font-size:16px;
  font-weight:650;
  letter-spacing:-.025em;
  line-height:1.1;
}
.thebe-ai-presence{
  gap:7px;
  margin-top:5px;
  font-size:10.5px;
  color:#d8e9fb;
}
.thebe-ai-presence-dot{
  width:6px;height:6px;
  background:#fff;
  box-shadow:0 0 0 3px rgba(255,255,255,.14);
}
.thebe-ai-head-actions{gap:6px}
.thebe-ai-icon-btn{
  width:40px;height:40px;
  border-color:rgba(255,255,255,.22);
  border-radius:11px;
  background:#0751ab;
  color:#fff;
  font-size:17px;
  transition:background-color .16s ease,border-color .16s ease,transform .16s ease;
}
.thebe-ai-attention{
  min-width:30px;min-height:34px;
  padding:0 8px;
  border-color:rgba(255,255,255,.30);
  border-radius:999px;
  background:#084a9c;
  color:#fff;
  font-weight:700;
}
@media(hover:hover){
  .thebe-ai-icon-btn:hover{background:#064793;border-color:rgba(255,255,255,.42);transform:translateY(-1px)}
  .thebe-ai-quick button:hover{background:#064793;border-color:rgba(255,255,255,.42);transform:translateY(-1px)}
  .thebe-ai-send:hover{background:#1b73dc;border-color:#1b73dc;transform:translateY(-1px)}
  .thebe-ai-open-full:hover{color:#c7e0ff}
}
.thebe-ai-dock-scroll{
  padding:16px 18px 18px;
  gap:13px;
  background:#0b66d6;
}
.thebe-ai-voice-card{
  padding:14px 14px 16px;
  border:1px solid rgba(255,255,255,.20);
  border-radius:18px;
  background:#0959bd;
  text-align:center;
}
.thebe-ai-eyebrow{
  margin-bottom:8px;
  font-size:9px;
  font-weight:700;
  letter-spacing:.18em;
  color:#d2e5fb;
}
.thebe-ai-orb-button{
  height:132px;
  margin-bottom:8px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:16px;
  background:#084fa8;
  transition:border-color .18s ease,background-color .18s ease;
}
.thebe-ai-orb-button:focus-visible{border-color:#6da8ef}
.thebe-particle-core{
  width:64px;height:64px;
  border-color:rgba(255,255,255,.58);
  background:#0750a8;
  box-shadow:0 0 0 var(--thebe-audio-ring) rgba(255,255,255,.025);
  transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.thebe-particle-core svg{width:21px;height:21px}
.thebe-particle-orb:before{
  width:90px;height:90px;
  border-color:rgba(255,255,255,.34);
}
.thebe-particle-orb:after{
  width:116px;height:116px;
  border-color:rgba(255,255,255,.16);
}
.thebe-particle{fill:#fff;opacity:.68}
.thebe-particle-wave g:nth-child(2n){opacity:.38}
.thebe-particle-orb[data-phase="ready"] .thebe-particle-core,
.thebe-particle-orb[data-phase="listening"] .thebe-particle-core,
.thebe-particle-orb[data-phase="speaking"] .thebe-particle-core{
  border-color:#fff;
  background:#084895;
  box-shadow:0 0 0 var(--thebe-audio-ring) rgba(255,255,255,.13);
}
.thebe-particle-orb[data-phase="thinking"] .thebe-particle-core,
.thebe-particle-orb[data-phase="connecting"] .thebe-particle-core{
  border-color:rgba(255,255,255,.75);
  background:#084a9c;
}
.thebe-ai-voice-label{
  font-size:22px;
  font-weight:520;
  letter-spacing:-.035em;
}
.thebe-ai-voice-sub{
  margin-top:6px;
  max-width:300px;
  font-size:11.5px;
  color:#d5e6f9;
}
.thebe-ai-voice-mount{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  margin-top:12px;
}
.thebe-ai-voice-mount .btn{
  min-height:42px;
  padding:8px 13px;
  border-color:rgba(255,255,255,.30);
  border-radius:11px;
  background:#064793;
  color:#fff;
  font-weight:650;
}
.thebe-ai-voice-mount #thebeLiveVoiceStatus{
  grid-column:1/-1;
  margin-top:1px;
  color:#d5e6f9;
}
.thebe-live-language{
  min-height:42px;
  border-color:rgba(255,255,255,.25);
  border-radius:11px;
  background:#0751ab;
  color:#fff;
}
.thebe-ai-live-transcript{
  margin-top:12px;
  padding:11px 12px;
  border-color:rgba(255,255,255,.20);
  border-radius:11px;
  background:#064895;
  color:#f4f9ff;
}
.thebe-ai-live-line b{color:#fff}
.thebe-ai-quick{
  grid-template-columns:1fr;
  gap:7px;
}
.thebe-ai-quick button{
  min-height:56px;
  padding:11px 34px 11px 13px;
  border-color:rgba(255,255,255,.20);
  border-radius:13px;
  background:#0751ab;
  transition:background-color .16s ease,border-color .16s ease,transform .16s ease;
}
.thebe-ai-quick button:after{
  right:13px;
  top:50%;
  transform:translateY(-50%);
  color:#d4e6fb;
  font-size:12px;
}
.thebe-ai-quick button small{
  margin-top:2px;
  color:#cfe2f8;
}
.thebe-ai-response{
  padding:14px 14px 15px;
  border-color:rgba(255,255,255,.20);
  border-left:2px solid #fff;
  border-radius:13px;
  background:#074c9f;
  color:#f7fbff;
  line-height:1.6;
}
.thebe-ai-response-title{
  margin-bottom:7px;
  color:#d9ebff;
  font-size:9px;
  font-weight:800;
  letter-spacing:.14em;
}
.thebe-ai-action{
  margin-top:9px;
  padding:10px 11px;
  border-radius:10px;
  border-left-color:#fff;
  background:#06448e;
}
.thebe-ai-action span{color:#dbeafd}
.thebe-ai-boundary{color:#c8dcf4}
.thebe-ai-open-full{
  margin-top:10px;
  padding:6px 0 2px;
  color:#fff;
  font-weight:650;
}
.thebe-ai-public-signin,.thebe-ai-public-start,.thebe-ai-public-voice{
  min-height:42px;
  border-radius:11px;
}
.thebe-ai-compose{
  gap:9px;
  padding:12px 16px 10px;
  border-top-color:rgba(255,255,255,.18);
  background:#0957b8;
}
.thebe-ai-compose textarea{
  min-height:46px;
  max-height:118px;
  padding:12px 13px;
  border-color:rgba(255,255,255,.24);
  border-radius:14px;
  background:#0751ab;
  color:#f6f8fa;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.01);
}
.thebe-ai-compose textarea:focus{
  border-color:#fff;
  background:#064793;
}
.thebe-ai-send{
  width:46px;height:46px;
  border-radius:14px;
  background:var(--thebe-dock-accent);
  transition:background-color .16s ease,border-color .16s ease,transform .16s ease;
}
.thebe-ai-foot{
  padding:0 18px 12px;
  color:#c9ddf5;
  background:#0957b8;
  font-size:9.5px;
}
.thebe-ai-dock[data-conversation="true"] .thebe-ai-voice-card{
  display:grid;
  grid-template-columns:72px minmax(0,1fr);
  column-gap:12px;
  row-gap:3px;
  align-items:center;
  padding:11px 12px;
  text-align:left;
}
.thebe-ai-dock[data-conversation="true"] .thebe-ai-eyebrow{display:none}
.thebe-ai-dock[data-conversation="true"] .thebe-ai-orb-button{
  grid-column:1;
  grid-row:1/3;
  width:72px;
  height:72px;
  margin:0;
  border-radius:14px;
}
.thebe-ai-dock[data-conversation="true"] .thebe-particle-core{width:44px;height:44px}
.thebe-ai-dock[data-conversation="true"] .thebe-particle-core svg{width:17px;height:17px}
.thebe-ai-dock[data-conversation="true"] .thebe-particle-orb:before{width:56px;height:56px}
.thebe-ai-dock[data-conversation="true"] .thebe-particle-orb:after{width:68px;height:68px}
.thebe-ai-dock[data-conversation="true"] .thebe-ai-voice-label{
  grid-column:2;
  align-self:end;
  font-size:17px;
  line-height:1.15;
}
.thebe-ai-dock[data-conversation="true"] .thebe-ai-voice-sub{
  grid-column:2;
  align-self:start;
  margin:0;
}
.thebe-ai-dock[data-conversation="true"] .thebe-ai-voice-mount,
.thebe-ai-dock[data-conversation="true"] .thebe-ai-live-transcript{
  grid-column:1/-1;
}
.thebe-ai-pill{
  min-height:46px;
  padding:12px 16px;
  border-color:rgba(255,255,255,.28);
  background:#0750a8;
  box-shadow:0 10px 28px rgba(0,0,0,.22);
}
.thebe-ai-pill-dot{
  background:#fff;
  box-shadow:0 0 0 3px rgba(255,255,255,.14);
}
@media(min-width:1024px){
  .thebe-ai-dock{top:72px;border-top-color:rgba(255,255,255,.18)}
  .thebe-ai-dock[data-surface="workspace"]{top:70px}
  body.thebe-ai-expanded{--thebe-dock-w:528px}
  body.thebe-ai-expanded .thebe-ai-dock-scroll{padding-left:20px;padding-right:20px}
  body.thebe-ai-expanded .thebe-ai-quick{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.thebe-ai-expanded .thebe-ai-quick button:last-child:nth-child(odd){grid-column:1/-1}
}
@media(min-width:1024px) and (max-width:1179px){
  :root{--thebe-dock-w:328px}
  body.thebe-ai-expanded{--thebe-dock-w:452px}
}
@media(max-width:1023px){
  .thebe-ai-dock{
    left:6px;right:6px;
    border-radius:24px 24px 18px 18px;
    box-shadow:0 -10px 38px rgba(0,0,0,.22);
  }
  .thebe-ai-dock:before{
    content:"";
    position:absolute;
    z-index:4;
    top:7px;left:50%;
    width:34px;height:3px;
    transform:translateX(-50%);
    border-radius:999px;
    background:rgba(255,255,255,.58);
  }
  .thebe-ai-dock-head{padding:17px 12px 11px}
  .thebe-ai-dock-scroll{padding:12px;gap:10px}
  .thebe-ai-voice-card{padding:12px}
  .thebe-ai-orb-button{height:104px}
  .thebe-ai-voice-label{font-size:20px}
  .thebe-ai-icon-btn{width:44px;height:44px}
  .thebe-ai-compose{padding:10px 12px 8px}
  .thebe-ai-foot{padding:0 13px 10px}
  .thebe-ai-dock[data-conversation="true"] .thebe-ai-voice-card{grid-template-columns:62px minmax(0,1fr)}
  .thebe-ai-dock[data-conversation="true"] .thebe-ai-orb-button{width:62px;height:62px}
}
@media(max-width:380px){
  .thebe-ai-dock-head{gap:5px}
  .thebe-ai-mark{width:32px;height:32px;background-size:24px 24px}
  .thebe-ai-title-copy b{font-size:15px}
  .thebe-ai-presence{font-size:9.5px}
  .thebe-ai-voice-mount{grid-template-columns:1fr}
  .thebe-ai-voice-mount #thebeLiveVoiceStatus{grid-column:1}
  .thebe-ai-voice-mount .btn{width:100%}
}
@media(prefers-reduced-motion:reduce){
  .thebe-ai-icon-btn,.thebe-ai-quick button,.thebe-ai-send{transition:none!important}
}


/* V162 blue motion — solid Thebe blue dock with visibly animated particle field. */
@keyframes thebe-particle-drift-v162{
  0%{transform:translate3d(-3px,-4px,0) scaleY(.94)}
  35%{transform:translate3d(2px,3px,0) scaleY(1.04)}
  70%{transform:translate3d(-1px,6px,0) scaleY(.98)}
  100%{transform:translate3d(4px,-2px,0) scaleY(1.06)}
}
@keyframes thebe-particle-react-v162{
  0%{transform:translate3d(-5px,-8px,0) scaleY(.82)}
  50%{transform:translate3d(4px,8px,0) scaleY(1.22)}
  100%{transform:translate3d(7px,-4px,0) scaleY(.90)}
}
@keyframes thebe-particle-shimmer-v162{
  0%,100%{opacity:.38;transform:scale(.78)}
  50%{opacity:1;transform:scale(1.38)}
}
@keyframes thebe-particle-orbit-v162{
  0%{transform:translate(-50%,-50%) scale(.92);opacity:.28}
  55%{opacity:.62}
  100%{transform:translate(-50%,-50%) scale(1.24);opacity:.06}
}
.thebe-particle-wave g{
  animation:thebe-particle-drift-v162 3.8s ease-in-out infinite alternate;
  will-change:transform;
}
.thebe-particle-wave g:nth-child(2n){animation-duration:4.7s;animation-delay:-1.8s}
.thebe-particle-wave g:nth-child(3n){animation-duration:3.2s;animation-delay:-2.6s}
.thebe-particle{
  transform-box:fill-box;
  transform-origin:center;
  animation:thebe-particle-shimmer-v162 2.8s ease-in-out infinite;
  will-change:transform,opacity;
}
.thebe-particle:nth-child(3n){animation-delay:-.9s;animation-duration:2.2s}
.thebe-particle:nth-child(5n){animation-delay:-1.7s;animation-duration:3.4s}
.thebe-particle:nth-child(7n){animation-delay:-2.3s;animation-duration:2.6s}
.thebe-particle-orb[data-phase="listening"] .thebe-particle-wave g,
.thebe-particle-orb[data-phase="speaking"] .thebe-particle-wave g{
  animation:thebe-particle-react-v162 .72s ease-in-out infinite alternate;
}
.thebe-particle-orb[data-phase="listening"] .thebe-particle,
.thebe-particle-orb[data-phase="speaking"] .thebe-particle{
  animation-duration:1.1s;
}
.thebe-particle-orb[data-phase="thinking"] .thebe-particle-wave g,
.thebe-particle-orb[data-phase="connecting"] .thebe-particle-wave g{
  animation-duration:1.8s;
}
.thebe-particle-orb[data-phase="ready"]:before{
  animation:thebe-particle-orbit-v162 2.8s ease-out infinite;
}
.thebe-particle-orb[data-phase="ready"]:after{
  animation:thebe-particle-orbit-v162 2.8s ease-out 1.35s infinite;
}
@media(prefers-reduced-motion:reduce){
  .thebe-particle,.thebe-particle-wave g{animation:none!important}
}


/* V164 futuristic command surface — deeper spacing, layered controls and high-contrast AI interaction chrome. */
:root{
  --thebe-dock-w:420px;
  --thebe-future-cyan:#8fd2ff;
  --thebe-future-white:#f8fbff;
  --thebe-future-deep:#06458f;
  --thebe-future-panel:#0757b8;
  --thebe-future-panel-2:#064faa;
}
.thebe-ai-dock{
  box-shadow:-22px 0 54px rgba(2,25,62,.24),-1px 0 0 rgba(143,210,255,.22);
}
.thebe-ai-dock:after{
  content:"";
  position:absolute;
  z-index:3;
  top:70px;
  left:0;
  bottom:0;
  width:1px;
  background:#8fd2ff;
  opacity:.24;
  pointer-events:none;
}
.thebe-ai-dock-head{
  min-height:78px;
  padding:17px 20px 15px 22px;
  background:#084fa8;
  box-shadow:inset 0 -1px 0 rgba(143,210,255,.14);
}
.thebe-ai-mark{
  width:39px;height:39px;
  border-radius:13px;
  background-size:29px 29px;
  box-shadow:0 0 0 1px rgba(255,255,255,.2),0 8px 22px rgba(3,31,73,.22);
}
.thebe-ai-title-copy b{font-size:17px;letter-spacing:-.03em}
.thebe-ai-presence{margin-top:6px;font-size:11px;color:#e0efff}
.thebe-ai-head-actions{gap:8px}
.thebe-ai-icon-btn{
  width:42px;height:42px;
  border-radius:13px;
  border-color:rgba(255,255,255,.28);
  background:#064793;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 8px 18px rgba(3,32,74,.16);
}
.thebe-ai-attention{
  min-height:36px;
  padding:0 10px;
  border-color:rgba(143,210,255,.42);
  background:#064793;
  box-shadow:inset 0 0 0 1px rgba(143,210,255,.08),0 7px 18px rgba(3,32,74,.15);
}
.thebe-ai-dock-scroll{
  padding:22px 22px 24px;
  gap:16px;
}
.thebe-ai-voice-card{
  padding:18px 18px 19px;
  border-color:rgba(143,210,255,.30);
  border-radius:22px;
  background:#0757b8;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 18px 36px rgba(3,34,81,.15);
}
.thebe-ai-eyebrow{
  margin-bottom:11px;
  font-size:9.5px;
  letter-spacing:.2em;
  color:#e2f0ff;
}
.thebe-ai-orb-button{
  height:140px;
  margin-bottom:10px;
  border-color:rgba(143,210,255,.30);
  border-radius:20px;
  background:#064faa;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04),0 12px 28px rgba(3,31,73,.13);
}
.thebe-particle-core{
  border-color:rgba(255,255,255,.72);
  background:#06458f;
  box-shadow:0 0 0 var(--thebe-audio-ring) rgba(143,210,255,.08),0 0 34px rgba(143,210,255,.16);
}
.thebe-particle-orb:before{border-color:rgba(143,210,255,.48)}
.thebe-particle-orb:after{border-color:rgba(143,210,255,.22)}
.thebe-ai-voice-label{font-size:24px;font-weight:560}
.thebe-ai-voice-sub{
  margin-top:7px;
  max-width:320px;
  font-size:12px;
  color:#dcecff;
}
.thebe-ai-voice-mount{
  gap:10px;
  margin-top:14px;
}
.thebe-ai-voice-mount .btn,
.thebe-live-language{
  min-height:44px;
  border-radius:14px;
  border-color:rgba(143,210,255,.34);
  background:#064793;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
.thebe-ai-quick{
  gap:10px;
}
.thebe-ai-quick button{
  min-height:68px;
  padding:13px 48px 13px 54px;
  border:1px solid rgba(143,210,255,.32);
  border-radius:18px;
  background:#064faa;
  color:#f8fbff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 12px 26px rgba(3,31,73,.12);
  overflow:hidden;
}
.thebe-ai-quick button:before{
  content:"✦";
  position:absolute;
  left:14px;
  top:50%;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  transform:translateY(-50%);
  border:1px solid rgba(143,210,255,.44);
  border-radius:10px;
  background:#06458f;
  color:#bfe5ff;
  font-size:12px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04),0 0 16px rgba(143,210,255,.08);
}
.thebe-ai-quick button:nth-child(2):before{content:"◈"}
.thebe-ai-quick button:nth-child(3):before{content:"⌁"}
.thebe-ai-quick button:after{
  content:"↗";
  right:13px;
  top:50%;
  width:25px;
  height:25px;
  display:grid;
  place-items:center;
  transform:translateY(-50%);
  border:1px solid rgba(143,210,255,.32);
  border-radius:9px;
  background:#06458f;
  color:#dff1ff;
  font-size:11px;
}
.thebe-ai-quick button small{
  margin-top:4px;
  color:#cfe7fb;
  line-height:1.35;
}
.thebe-ai-response{
  padding:16px 17px 17px;
  border:1px solid rgba(143,210,255,.28);
  border-left:1px solid rgba(143,210,255,.50);
  border-radius:18px;
  background:#064b9f;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 12px 26px rgba(3,31,73,.11);
}
.thebe-ai-response-title{
  color:#dff1ff;
  letter-spacing:.16em;
}
.thebe-ai-compose{
  gap:10px;
  margin:0 18px 14px;
  padding:10px;
  border:1px solid rgba(143,210,255,.28);
  border-radius:20px;
  background:#0754b2;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 14px 30px rgba(3,31,73,.16);
}
.thebe-ai-compose textarea{
  min-height:50px;
  padding:14px 15px;
  border-color:rgba(255,255,255,.28);
  border-radius:16px;
  background:#064a9b;
  box-shadow:inset 0 0 0 1px rgba(143,210,255,.04);
}
.thebe-ai-compose textarea::placeholder{color:#cfe3f8}
.thebe-ai-send{
  width:50px;height:50px;
  border:1px solid rgba(255,255,255,.9);
  border-radius:16px;
  background:#f8fbff;
  color:#0b66d6;
  font-size:22px;
  font-weight:800;
  box-shadow:0 0 0 4px rgba(143,210,255,.10),0 10px 22px rgba(3,31,73,.18);
}
.thebe-ai-foot{
  padding:0 24px 16px;
  color:#d4e8fb;
  background:#084fa8;
}
@media(hover:hover){
  .thebe-ai-quick button:hover{
    background:#05458f;
    border-color:rgba(143,210,255,.62);
    transform:translateX(3px);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 16px 32px rgba(3,31,73,.18),0 0 0 1px rgba(143,210,255,.08);
  }
  .thebe-ai-quick button:hover:before,
  .thebe-ai-quick button:hover:after{border-color:rgba(255,255,255,.62)}
  .thebe-ai-send:hover{
    background:#fff;
    border-color:#fff;
    transform:translateY(-1px) scale(1.02);
  }
}
.thebe-ai-dock[data-conversation="true"] .thebe-ai-voice-card{
  padding:13px 14px;
  border-radius:18px;
}
@media(min-width:1024px){
  body.thebe-ai-expanded{--thebe-dock-w:560px}
  body.thebe-ai-expanded .thebe-ai-dock-scroll{padding-left:28px;padding-right:28px}
  body.thebe-ai-expanded .thebe-ai-quick{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:1024px) and (max-width:1179px){
  :root{--thebe-dock-w:350px}
  body.thebe-ai-expanded{--thebe-dock-w:474px}
}
@media(max-width:1023px){
  .thebe-ai-dock{left:10px;right:10px;border-radius:26px 26px 20px 20px}
  .thebe-ai-dock-head{padding:19px 16px 13px 17px}
  .thebe-ai-dock-scroll{padding:16px;gap:12px}
  .thebe-ai-voice-card{padding:15px}
  .thebe-ai-quick button{min-height:64px;padding-left:52px}
  .thebe-ai-compose{margin:0 12px 10px;padding:8px}
  .thebe-ai-foot{padding:0 16px 11px}
}
@media(max-width:380px){
  .thebe-ai-dock{left:8px;right:8px}
  .thebe-ai-dock-scroll{padding:13px}
  .thebe-ai-voice-card{padding:13px}
  .thebe-ai-quick button{padding-right:45px}
  .thebe-ai-compose{margin-left:10px;margin-right:10px}
}
@media(prefers-reduced-motion:reduce){
  .thebe-ai-quick button,.thebe-ai-send{transition:none!important}
}


/* V172 governed mission rail — truthful progress plus Owner Command Centre state, without execution inference. */
.thebe-ai-mission{display:none}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-mission{
  grid-column:1/-1;
  display:grid;
  gap:6px;
  padding:8px 10px 9px;
  border:1px solid rgba(143,210,255,.24);
  border-radius:12px;
  background:#064fa8;
}
.thebe-ai-mission-track{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:4px;
}
.thebe-ai-mission-segment{
  height:3px;
  border-radius:999px;
  background:#0a3f7f;
}
.thebe-ai-mission[data-stage="1"] .thebe-ai-mission-segment:nth-child(-n+1),
.thebe-ai-mission[data-stage="2"] .thebe-ai-mission-segment:nth-child(-n+2),
.thebe-ai-mission[data-stage="3"] .thebe-ai-mission-segment:nth-child(-n+3),
.thebe-ai-mission[data-stage="4"] .thebe-ai-mission-segment:nth-child(-n+4){
  background:#8fd2ff;
}
.thebe-ai-mission[data-tone="review"] .thebe-ai-mission-segment:nth-child(4){background:#ffb648}
.thebe-ai-mission[data-tone="error"] .thebe-ai-mission-segment:first-child{background:#ff6268}
.thebe-ai-mission[data-tone="success"] .thebe-ai-mission-segment{background:#83e7b8}
.thebe-ai-mission-copy{
  min-width:0;
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
}
.thebe-ai-mission-label{
  min-width:0;
  color:#eff8ff;
  font-size:10.5px;
  font-weight:650;
  line-height:1.2;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.thebe-ai-mission-meta{
  flex:0 1 auto;
  min-width:0;
  color:#bcdcff;
  font-size:9px;
  line-height:1.2;
  text-align:right;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.thebe-ai-mission[data-tone="review"] .thebe-ai-mission-label{color:#ffd27a}
.thebe-ai-mission[data-tone="error"] .thebe-ai-mission-label{color:#ffb1b5}
.thebe-ai-mission[data-tone="success"] .thebe-ai-mission-label{color:#c8ffe1}
@media(max-width:420px){
  .thebe-ai-dock[data-surface="workspace"] .thebe-ai-mission{padding:7px 8px 8px}
  .thebe-ai-mission-copy{display:grid;gap:2px}
  .thebe-ai-mission-meta{text-align:left;font-size:8.5px}
}
@media(prefers-reduced-motion:reduce){
  .thebe-ai-mission-segment{transition:none!important}
}


/* V182 character-free voice field — particles and state are the visual cue; no mascot or decorative character/symbol inside Talk to Thebe. */
.thebe-ai-voice-card{box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
.thebe-ai-orb-button{overflow:hidden}

/* V183 Phase 0 visual closure — preserve the character-free dock while pinning the reviewed workspace geometry and Property service emphasis. */
#propertyValuationServicePanel{
  background:#f7fbff!important;
  border-color:#a9c8ef!important;
  box-shadow:0 12px 30px rgba(11,102,214,.08)!important;
}
@media(max-width:380px){
  .thebe-ai-dock[data-surface="workspace"][data-conversation="false"] .thebe-ai-orb-button{
    width:64px!important;
    min-width:64px!important;
    max-width:64px!important;
    height:64px!important;
    min-height:64px!important;
  }
}


/* V186 Thebe Command Dock — compact context-aware command surface.
   Character-free voice remains intact; this layer replaces the stacked blue-sidebar feel with a focused AI workspace. */
:root{--thebe-dock-w:408px}
.thebe-ai-dock{
  background:#07131f;
  color:#f7fbff;
  border-color:rgba(125,180,255,.22);
  box-shadow:-20px 0 48px rgba(0,15,35,.22);
}
.thebe-ai-dock-head{
  min-height:68px;
  padding:13px 14px 12px 16px;
  background:#091827;
  border-bottom-color:rgba(125,180,255,.16);
  box-shadow:none;
}
.thebe-ai-mark{
  width:36px;height:36px;border-radius:12px;
  background-color:#f8fbff;
  box-shadow:0 0 0 1px rgba(125,180,255,.18),0 8px 22px rgba(0,0,0,.18);
}
.thebe-ai-title-copy b{font-size:16px;font-weight:700;letter-spacing:-.025em}
.thebe-ai-presence{margin-top:4px;color:#9eb6cf;font-size:10px}
.thebe-ai-presence-dot{background:#55b4ff;box-shadow:0 0 0 4px rgba(85,180,255,.10)}
.thebe-ai-head-actions{gap:6px}
.thebe-ai-icon-btn{
  width:36px;height:36px;
  border:1px solid rgba(125,180,255,.18);
  border-radius:11px;
  background:#0d2032;
  color:#dceaff;
}
.thebe-ai-clear{font-size:20px;line-height:1}
.thebe-ai-attention{
  min-width:34px;height:34px;
  border:1px solid rgba(255,190,92,.36);
  background:#1f2630;
  color:#ffd08a;
}
.thebe-ai-dock-scroll{
  padding:14px 14px 18px;
  gap:11px;
  background:#07131f;
}
.thebe-ai-context-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:46px;
  padding:9px 10px 9px 12px;
  border:1px solid rgba(125,180,255,.16);
  border-radius:14px;
  background:#0b1b2a;
}
.thebe-ai-context-lead{
  min-width:0;
  display:grid;
  grid-template-columns:auto auto minmax(0,1fr);
  align-items:center;
  gap:7px;
}
.thebe-ai-context-dot{
  width:7px;height:7px;border-radius:50%;
  background:#55b4ff;
  box-shadow:0 0 0 4px rgba(85,180,255,.10);
}
.thebe-ai-context-kicker{
  color:#7891aa;
  font-size:9px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.thebe-ai-context-label{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#eff7ff;
  font-size:11px;
  font-weight:650;
}
.thebe-ai-context-action{
  flex:none;
  min-height:30px;
  padding:6px 9px;
  border:1px solid rgba(125,180,255,.22);
  border-radius:9px;
  background:#10263a;
  color:#cfe6ff;
  font-size:10px;
  font-weight:650;
}
.thebe-ai-mode-rail{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
}
.thebe-ai-mode-button{
  min-width:0;
  min-height:48px;
  padding:8px 9px;
  border:1px solid rgba(125,180,255,.14);
  border-radius:13px;
  background:#0a1826;
  color:#b7c8d9;
  text-align:left;
}
.thebe-ai-mode-button>small{
  display:block;
  margin-top:2px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#6f8aa3;
  font-size:8.5px;
  line-height:1.2;
}
.thebe-ai-mode-button.active{
  border-color:rgba(85,180,255,.66);
  background:#0e2941;
  color:#fff;
  box-shadow:inset 0 0 0 1px rgba(85,180,255,.12);
}
.thebe-ai-mode-button.active>small{color:#9fcfff}
.thebe-ai-voice-card{
  display:grid;
  grid-template-columns:82px minmax(0,1fr)!important;
  grid-template-rows:auto auto auto;
  column-gap:12px;
  row-gap:2px;
  align-items:center;
  padding:11px 12px;
  border:1px solid rgba(125,180,255,.18);
  border-radius:16px;
  background:#0b1c2c;
  text-align:left;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.thebe-ai-eyebrow{
  grid-column:2;
  grid-row:1;
  margin:0 0 1px;
  color:#63b9ff;
  font-size:8px;
  font-weight:800;
  letter-spacing:.14em;
}
.thebe-ai-orb-button{
  grid-column:1;
  grid-row:1/4;
  margin:0;
  border:1px solid rgba(85,180,255,.28);
  border-radius:14px;
  background:#0b2237;
  box-shadow:inset 0 0 0 1px rgba(85,180,255,.05);
}
.thebe-particle-core{background:#0b2a45;border-color:rgba(128,202,255,.62)}
.thebe-particle-orb:before{border-color:rgba(85,180,255,.32)}
.thebe-particle-orb:after{border-color:rgba(85,180,255,.14)}
.thebe-particle{fill:#8fd2ff}
.thebe-ai-voice-label{
  grid-column:2;
  grid-row:2;
  font-size:17px;
  font-weight:650;
  letter-spacing:-.025em;
  color:#f4f9ff;
}
.thebe-ai-voice-sub{
  grid-column:2;
  grid-row:3;
  margin:1px 0 0;
  max-width:none;
  color:#91a9c0;
  font-size:10.5px;
  line-height:1.35;
}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-mission{
  grid-column:1/-1;
  margin-top:7px;
  padding:7px 9px 8px;
  border-color:rgba(125,180,255,.14);
  border-radius:11px;
  background:#091827;
}
.thebe-ai-mission-segment{background:#102e48}
.thebe-ai-mission[data-stage="1"] .thebe-ai-mission-segment:nth-child(-n+1),
.thebe-ai-mission[data-stage="2"] .thebe-ai-mission-segment:nth-child(-n+2),
.thebe-ai-mission[data-stage="3"] .thebe-ai-mission-segment:nth-child(-n+3),
.thebe-ai-mission[data-stage="4"] .thebe-ai-mission-segment:nth-child(-n+4){background:#55b4ff}
.thebe-ai-mission-label{font-size:9.5px;color:#dfeeff}
.thebe-ai-mission-meta{font-size:8.5px;color:#7794af}
.thebe-ai-voice-mount{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:7px;
  margin-top:7px;
}
.thebe-ai-voice-mount .btn{
  min-height:38px;
  border-color:rgba(125,180,255,.22);
  border-radius:10px;
  background:#102942;
  color:#e6f3ff;
  font-size:11px;
}
.thebe-live-language{
  min-height:38px;
  border-color:rgba(125,180,255,.18);
  border-radius:10px;
  background:#0d2236;
  color:#dfefff;
  font-size:10.5px;
}
.thebe-ai-voice-mount #thebeLiveVoiceStatus{color:#7f9bb6;font-size:9.5px}
.thebe-ai-live-transcript{
  grid-column:1/-1;
  margin-top:7px;
  padding:9px 10px;
  border-color:rgba(125,180,255,.14);
  border-radius:10px;
  background:#081725;
  color:#dfeeff;
  font-size:10.5px;
}
.thebe-ai-quick{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
}
.thebe-ai-quick button{
  min-height:62px;
  padding:9px 9px 8px;
  border:1px solid rgba(125,180,255,.14);
  border-radius:13px;
  background:#0a1826;
  color:#edf7ff;
  font-size:11px;
  line-height:1.3;
  box-shadow:none;
}
.thebe-ai-quick button:before{
  content:"";
  position:static;
  display:block;
  width:18px;height:3px;
  margin:0 0 7px;
  border:0;
  border-radius:999px;
  background:#2e8fe0;
  box-shadow:none;
  transform:none;
}
.thebe-ai-quick button:nth-child(2):before{content:"";background:#55b4ff}
.thebe-ai-quick button:nth-child(3):before{content:"";background:#87caff}
.thebe-ai-quick button:after{display:none}
.thebe-ai-quick button small{
  margin-top:3px;
  color:#7893ad;
  font-size:8.5px;
  line-height:1.25;
}
.thebe-ai-response{
  padding:13px 14px 14px;
  border:1px solid rgba(125,180,255,.16);
  border-left:1px solid rgba(125,180,255,.16);
  border-radius:15px;
  background:#0a1928;
  color:#edf7ff;
  box-shadow:none;
}
.thebe-ai-response-title{
  margin-bottom:6px;
  color:#6f9fc7;
  font-size:8px;
  font-weight:800;
  letter-spacing:.15em;
}
.thebe-ai-response-answer{font-size:12px;line-height:1.55;color:#e7f1fb}
.thebe-ai-action{
  margin-top:8px;
  padding:9px 10px;
  border:1px solid rgba(125,180,255,.12);
  border-left:2px solid #4daeff;
  border-radius:10px;
  background:#0d2133;
}
.thebe-ai-action b{font-size:11px}
.thebe-ai-action span{font-size:10px;color:#91a9c0}
.thebe-ai-boundary{font-size:9.5px;color:#7993aa}
.thebe-ai-response-tools{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:11px;
  padding-top:9px;
  border-top:1px solid rgba(125,180,255,.12);
}
.thebe-ai-response-tools button{
  min-height:32px;
  padding:6px 9px;
  border:1px solid rgba(125,180,255,.16);
  border-radius:9px;
  background:#0d2236;
  color:#bfe0ff;
  font-size:9.5px;
  font-weight:650;
}
.thebe-ai-open-full{margin:0;padding:6px 9px;color:#eaf6ff}
.thebe-ai-compose{
  gap:8px;
  margin:0 14px 10px;
  padding:8px;
  border:1px solid rgba(125,180,255,.20);
  border-radius:16px;
  background:#0b1b2a;
  box-shadow:0 10px 28px rgba(0,0,0,.16);
}
.thebe-ai-compose-body{min-width:0;flex:1}
#thebeAiDock .thebe-ai-composer-action{flex:0 0 42px;width:42px;min-width:42px;height:42px;min-height:42px;padding:0;display:inline-flex;align-items:center;justify-content:center;align-self:flex-end;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer}
#thebeAiDock .thebe-ai-composer-action:focus-visible{outline:2px solid #83baff;outline-offset:3px}
#thebeAiDock .thebe-ai-audio{background:#0b66d6;color:#fff}
#thebeAiDock .thebe-ai-audio svg{width:22px;height:22px}
#thebeAiDock .thebe-ai-attach{font-size:27px;line-height:1;font-weight:400}
#thebeAiDock .thebe-ai-attachments{display:flex;flex-wrap:wrap;flex:0 0 auto;gap:6px;max-height:110px;overflow:auto;padding:8px 14px}
#thebeAiDock .thebe-ai-file-chip{display:flex;align-items:center;gap:6px;max-width:100%;border:1px solid #aab0b8;border-radius:10px;padding:4px 6px 4px 10px;font-size:12px}
#thebeAiDock .thebe-ai-file-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
#thebeAiDock .thebe-ai-file-chip button{flex:none;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;font-size:20px;cursor:pointer}
.thebe-ai-compose textarea{
  width:100%;
  min-height:42px;
  max-height:112px;
  padding:10px 10px 6px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#f4f9ff;
  box-shadow:none;
}
.thebe-ai-compose textarea:focus{border:0;background:transparent;outline:0}
.thebe-ai-compose textarea::placeholder{color:#617c95}
.thebe-ai-compose-hint{
  padding:0 10px 5px;
  color:#567089;
  font-size:8px;
  line-height:1.25;
}
.thebe-ai-send{
  align-self:flex-end;
  width:42px;height:42px;
  border:1px solid #55b4ff;
  border-radius:12px;
  background:#1478c9;
  color:#fff;
  box-shadow:0 6px 16px rgba(0,73,143,.22);
}
.thebe-ai-foot{
  padding:0 16px 11px;
  background:#07131f;
  color:#57718a;
  font-size:8.5px;
}
@media(hover:hover){
  .thebe-ai-context-action:hover,
  .thebe-ai-mode-button:hover,
  .thebe-ai-response-tools button:hover{border-color:rgba(85,180,255,.48);background:#102942}
  .thebe-ai-quick button:hover{border-color:rgba(85,180,255,.42);background:#0e2235;transform:translateY(-1px)}
  .thebe-ai-icon-btn:hover{background:#11283d;border-color:rgba(85,180,255,.38)}
}
@media(min-width:1024px){
  body.thebe-ai-expanded{--thebe-dock-w:548px}
  body.thebe-ai-expanded .thebe-ai-mode-rail{grid-template-columns:repeat(3,minmax(0,1fr))}
  body.thebe-ai-expanded .thebe-ai-quick{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:1023px){
  .thebe-ai-dock{
    left:8px;right:8px;
    border-radius:22px 22px 16px 16px;
    background:#07131f;
  }
  .thebe-ai-dock-head{padding:16px 12px 10px}
  .thebe-ai-dock-scroll{padding:10px 10px 14px;gap:9px}
  .thebe-ai-context-bar{min-height:42px}
  .thebe-ai-mode-button{min-height:44px;padding:7px}
  .thebe-ai-voice-card{padding:10px}
  .thebe-ai-quick{grid-template-columns:1fr}
  .thebe-ai-quick button{min-height:50px;padding:9px 11px}
  .thebe-ai-compose{margin:0 10px 8px}
  .thebe-ai-foot{padding:0 12px 9px}
}
@media(max-width:380px){
  .thebe-ai-mode-rail{grid-template-columns:1fr}
  .thebe-ai-mode-button{min-height:40px}
  .thebe-ai-context-kicker{display:none}
  .thebe-ai-voice-sub{font-size:9.5px}
  .thebe-ai-compose-hint{display:none}
}
@media(prefers-reduced-motion:reduce){
  .thebe-ai-quick button{transform:none!important}
}


/* V191 canonical workspace dock — CSS owns normal geometry; JavaScript supplies only the dynamic workspace-left coordinate and emergency recovery. */
.thebe-ai-dock[data-surface="workspace"]{
  --thebe-workspace-pad:16px;
  --thebe-dock-w:420px;
  flex-direction:column!important;
  align-items:stretch!important;
  box-sizing:border-box!important;
  background:#07131f;
  border:1px solid rgba(125,180,255,.24)!important;
  color:#f7fbff;
  overflow:hidden;
  overscroll-behavior:contain;
  isolation:isolate;
}
.thebe-ai-dock[data-surface="workspace"]>.thebe-ai-dock-head,
.thebe-ai-dock[data-surface="workspace"]>.thebe-ai-dock-scroll,
.thebe-ai-dock[data-surface="workspace"]>.thebe-ai-foot{
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
.thebe-ai-dock[data-surface="workspace"]>.thebe-ai-dock-head{
  flex:0 0 auto!important;
  padding:14px var(--thebe-workspace-pad) 13px!important;
}
.thebe-ai-dock[data-surface="workspace"]>.thebe-ai-dock-scroll{
  flex:1 1 auto!important;
  flex-direction:column!important;
  align-items:stretch!important;
  overflow:auto!important;
  overflow-x:hidden!important;
  padding:16px var(--thebe-workspace-pad) 20px!important;
  gap:12px!important;
  background:#07131f;
  scrollbar-gutter:stable;
}
.thebe-ai-dock[data-surface="workspace"]>.thebe-ai-foot{
  flex:0 0 auto!important;
  padding:0 var(--thebe-workspace-pad) 12px;
  background:#07131f;
  color:#57718a;
  font-size:8.5px;
  line-height:1.4;
}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-context-bar,
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-mode-rail,
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-voice-card,
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-quick,
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-response{
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-context-bar{
  min-height:48px;
  padding:10px 11px 10px 12px;
  border:1px solid rgba(125,180,255,.20);
  border-radius:14px;
  background:#0b1b2a;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
  backdrop-filter:blur(12px);
}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-context-action{
  min-height:36px;
  padding:7px 10px;
  border-radius:10px;
  background:#102942;
  color:#d8edff;
}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-mode-rail{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-mode-button{
  position:relative;
  overflow:hidden;
  min-width:0;
  min-height:52px;
  padding:9px 10px 9px 14px;
  border:1px solid rgba(125,180,255,.18);
  border-radius:13px;
  background:#0a1a2a;
  color:#b7c8d9;
  text-align:left;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
  backdrop-filter:blur(12px);
}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-mode-button:before{
  content:"";
  position:absolute;
  left:6px;
  top:10px;
  bottom:10px;
  width:2px;
  border-radius:999px;
  background:#244e72;
}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-mode-button.active{
  border-color:rgba(85,180,255,.62);
  background:#0d2942;
  color:#fff;
  box-shadow:inset 0 0 0 1px rgba(85,180,255,.10),0 7px 18px rgba(0,10,24,.16);
}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-mode-button.active:before{
  background:#67beff;
  box-shadow:0 0 10px rgba(85,180,255,.44);
}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-voice-card{
  grid-template-columns:82px minmax(0,1fr)!important;
  padding:12px 13px;
  border:1px solid rgba(125,180,255,.21);
  border-radius:16px;
  background:#0b1c2c;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03),0 9px 22px rgba(0,10,24,.10);
  backdrop-filter:blur(12px);
}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-orb-button{
  width:82px!important;
  min-width:82px!important;
  max-width:82px!important;
  height:82px!important;
  min-height:82px!important;
  border-radius:14px;
  border-color:rgba(85,180,255,.28);
  background:#0b2237;
  box-shadow:inset 0 0 0 1px rgba(85,180,255,.05);
}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-eyebrow{color:#63b9ff}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-voice-label{font-size:17px;color:#f4f9ff}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-voice-sub{font-size:10.5px;color:#91a9c0}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-live-transcript{
  max-height:132px;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-quick{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-quick button{
  position:relative;
  display:block;
  overflow:hidden;
  min-width:0;
  min-height:68px;
  padding:11px 34px 10px 11px;
  border:1px solid rgba(125,180,255,.18);
  border-radius:14px;
  background:#0a1b2b;
  color:#edf7ff;
  text-align:left;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
  backdrop-filter:blur(12px);
}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-quick button:before{
  content:"";
  position:static;
  display:block;
  width:22px;
  height:22px;
  margin:0 0 8px;
  border:1px solid rgba(85,180,255,.34);
  border-radius:7px;
  background:#0d2942;
  box-shadow:inset 0 0 0 5px #0d2942,inset 0 0 0 6px rgba(143,210,255,.22);
  transform:none;
}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-quick button:nth-child(2):before{
  background:#10314e;
  box-shadow:inset 0 0 0 5px #10314e,inset 0 0 0 6px rgba(143,210,255,.28);
}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-quick button:nth-child(3):before{
  background:#123653;
  box-shadow:inset 0 0 0 5px #123653,inset 0 0 0 6px rgba(143,210,255,.34);
}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-quick button:after{
  content:"↗";
  display:grid!important;
  place-items:center;
  position:absolute;
  top:10px;
  right:10px;
  width:22px;
  height:22px;
  border:1px solid rgba(125,180,255,.16);
  border-radius:7px;
  color:#78bfff;
  background:#0a1724;
  font-size:11px;
  line-height:1;
}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-quick button small{
  margin-top:4px;
  color:#879fb7;
  font-size:8.5px;
  line-height:1.3;
}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-response{
  padding:14px 15px 15px;
  border:1px solid rgba(125,180,255,.19);
  border-radius:15px;
  background:#0a1928;
  color:#edf7ff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
  backdrop-filter:blur(12px);
}
/* V192 interaction polish — preserve readable answers, bounded composer growth and compact mobile command browsing without changing V191 geometry ownership. */
/* V193 reading follow — bound long answers, respect user scroll intent, and compact keyboard-open workspace use. */
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-response-title{font-size:8px;color:#6f9fc7}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-response-answer{
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-size:12.5px;
  line-height:1.58;
}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-response[data-long="true"] .thebe-ai-response-answer{
  max-height:min(260px,32dvh);
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  touch-action:pan-y;
  padding-right:5px;
}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-response[data-long="true"] .thebe-ai-response-answer:focus-visible{
  outline:2px solid #8fd2ff;
  outline-offset:3px;
  border-radius:8px;
}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-response-tools{gap:7px}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-response-tools button{
  min-height:36px;
  padding:7px 10px;
  border-radius:10px;
  background:#0d2438;
}
/* V194 response-race closure — stale async replies cannot reappear after clear, and hidden-latest results get one compact affordance. */
.thebe-ai-latest-response{
  align-self:center;
  min-height:34px;
  margin:0 var(--thebe-workspace-pad) 8px;
  padding:6px 11px;
  border:1px solid rgba(85,180,255,.34);
  border-radius:999px;
  background:#0d2942;
  color:#dff2ff;
  font-size:10px;
  font-weight:700;
  letter-spacing:.01em;
  box-shadow:0 8px 18px rgba(0,18,42,.18);
}
.thebe-ai-latest-response[hidden]{display:none!important}
.thebe-ai-latest-response:hover{border-color:rgba(85,180,255,.62);background:#103653}
.thebe-ai-latest-response:focus-visible{outline:2px solid #8fd2ff;outline-offset:2px}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-compose{
  flex:0 0 auto!important;
  align-self:stretch!important;
  min-width:0!important;
  box-sizing:border-box!important;
  margin:0 var(--thebe-workspace-pad) 12px!important;
  padding:9px;
  border:1px solid rgba(125,180,255,.24);
  border-radius:17px;
  background:#0a1b2a;
  box-shadow:0 12px 30px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.025);
  backdrop-filter:blur(12px);
}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-compose:focus-within{
  border-color:rgba(85,180,255,.58);
  box-shadow:0 12px 30px rgba(0,0,0,.18),0 0 0 3px rgba(85,180,255,.08);
}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-compose textarea{
  min-height:42px;
  max-height:112px;
  padding:10px 11px 6px;
  border:0;
  border-radius:10px;
  background:transparent;
  resize:none;
  overflow-y:hidden;
  line-height:1.42;
}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-send{
  width:44px;
  height:44px;
  min-width:44px;
  border-radius:13px;
  background:#137bcf;
  box-shadow:0 7px 18px rgba(0,73,143,.25),inset 0 1px 0 rgba(255,255,255,.12);
}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-send:disabled{
  opacity:.42;
  cursor:not-allowed;
  box-shadow:none;
}
#thebeAiDock[data-surface="workspace"][data-conversation="true"]>.thebe-ai-dock-scroll{gap:9px!important}
.thebe-ai-dock[data-surface="workspace"][data-conversation="true"] .thebe-ai-mode-button{
  min-height:44px;
  padding-top:7px;
  padding-bottom:7px;
}
.thebe-ai-dock[data-surface="workspace"][data-conversation="true"] .thebe-ai-voice-card{
  padding-top:10px;
  padding-bottom:10px;
}
.thebe-ai-dock[data-surface="workspace"][data-conversation="true"] .thebe-ai-quick button{
  min-height:46px;
}
.thebe-ai-dock[data-surface="workspace"][data-conversation="true"] .thebe-ai-quick button small{display:none}
.thebe-ai-dock[data-surface="workspace"][data-busy="true"] :is(.thebe-ai-context-action:disabled,.thebe-ai-mode-button:disabled,.thebe-ai-quick button:disabled){
  cursor:wait;
  opacity:.56;
  transform:none!important;
  box-shadow:none!important;
}
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-context-action,
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-mode-button,
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-quick button,
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-response-tools button,
.thebe-ai-dock[data-surface="workspace"] .thebe-ai-icon-btn{
  transition:transform .16s ease,border-color .16s ease,background-color .16s ease,box-shadow .16s ease;
}
.thebe-ai-dock[data-surface="workspace"] :where(button,textarea):focus-visible{
  outline:2px solid #8fd2ff;
  outline-offset:2px;
}
@media(hover:hover) and (min-width:1024px){
  .thebe-ai-dock[data-surface="workspace"] .thebe-ai-context-action:hover,
  .thebe-ai-dock[data-surface="workspace"] .thebe-ai-mode-button:hover,
  .thebe-ai-dock[data-surface="workspace"] .thebe-ai-quick button:hover,
  .thebe-ai-dock[data-surface="workspace"] .thebe-ai-response-tools button:hover,
  .thebe-ai-dock[data-surface="workspace"] .thebe-ai-icon-btn:hover{
    transform:translateY(-1px);
    border-color:rgba(85,180,255,.48);
    box-shadow:0 8px 20px rgba(1,12,26,.18);
  }
  .thebe-ai-dock[data-surface="workspace"] .thebe-ai-quick button:hover{
    background:#0d2337;
    box-shadow:0 9px 22px rgba(1,12,26,.20),inset 0 1px 0 rgba(255,255,255,.03);
  }
  .thebe-ai-dock[data-surface="workspace"] .thebe-ai-quick button:hover:after{
    color:#d7efff;
    border-color:rgba(85,180,255,.44);
    background:#10314d;
  }
}
@media(min-width:1024px){
  .thebe-ai-dock[data-surface="workspace"]{
    position:fixed!important;
    top:auto!important;
    left:var(--thebe-workspace-left,20px)!important;
    right:auto!important;
    bottom:22px!important;
    width:min(var(--thebe-dock-w),calc(100vw - 40px))!important;
    max-height:min(720px,calc(100dvh - 108px))!important;
    border-radius:24px!important;
    box-shadow:0 24px 70px rgba(2,14,30,.34),0 0 0 1px rgba(85,180,255,.05)!important;
  }
  body.thebe-ai-expanded{--thebe-dock-w:560px}
  .thebe-ai-dock[data-surface="workspace"] .thebe-ai-minimize{display:grid!important;place-items:center}
  .thebe-ai-pill[data-surface="workspace"]:not([hidden]){
    display:inline-flex!important;
    align-items:center;
    left:var(--thebe-workspace-left,20px)!important;
    right:auto!important;
    bottom:22px!important;
    min-height:48px;
    padding:0 17px;
    border:1px solid rgba(125,180,255,.30);
    background:#081827;
    color:#eef7ff;
    box-shadow:0 16px 42px rgba(2,14,30,.28);
  }
}
@media(max-width:1023px){
  .thebe-ai-dock[data-surface="workspace"]{
    --thebe-workspace-pad:12px;
    position:fixed!important;
    top:auto!important;
    left:8px!important;
    right:8px!important;
    bottom:calc(104px + env(safe-area-inset-bottom))!important;
    width:auto!important;
    max-width:none!important;
    max-height:calc(100dvh - 128px - env(safe-area-inset-bottom))!important;
    border-radius:22px!important;
  }
  .thebe-ai-dock[data-surface="workspace"]>.thebe-ai-dock-head{padding:14px 12px 11px!important}
  .thebe-ai-dock[data-surface="workspace"]>.thebe-ai-dock-scroll{padding:12px 12px 16px!important;gap:10px!important}
  .thebe-ai-dock[data-surface="workspace"] .thebe-ai-mode-button{min-height:46px;padding:8px 8px 8px 12px}
  .thebe-ai-dock[data-surface="workspace"] .thebe-ai-quick{
    display:flex!important;
    gap:8px;
    overflow-x:auto;
    overflow-y:hidden;
    overscroll-behavior-inline:contain;
    scroll-snap-type:x proximity;
    scrollbar-width:thin;
    padding-bottom:2px;
  }
  .thebe-ai-dock[data-surface="workspace"] .thebe-ai-quick button{
    flex:0 0 min(260px,78vw);
    scroll-snap-align:start;
    min-height:54px;
    padding:10px 34px 9px 10px;
  }
  .thebe-ai-dock[data-surface="workspace"] .thebe-ai-response-tools{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .thebe-ai-dock[data-surface="workspace"] .thebe-ai-response-tools .thebe-ai-open-full{grid-column:1/-1}
  .thebe-ai-dock[data-surface="workspace"] .thebe-ai-compose{margin:0 12px 10px!important}
  .thebe-ai-dock[data-surface="workspace"] .thebe-ai-response[data-long="true"] .thebe-ai-response-answer{
    max-height:min(210px,30dvh);
  }
  .thebe-ai-dock[data-surface="workspace"][data-keyboard="true"]{
    bottom:max(8px,var(--thebe-keyboard-inset,0px))!important;
    max-height:var(--thebe-visible-height,65dvh)!important;
  }
  .thebe-ai-dock[data-surface="workspace"][data-keyboard="true"] :is(.thebe-ai-foot,.thebe-ai-voice-card,.thebe-ai-quick){
    display:none!important;
  }
  .thebe-ai-dock[data-surface="workspace"][data-keyboard="true"] .thebe-ai-response[data-long="true"] .thebe-ai-response-answer{
    max-height:min(180px,26dvh);
  }
}
@media(max-width:460px){
  .thebe-ai-dock[data-surface="workspace"] .thebe-ai-mode-rail{grid-template-columns:repeat(3,minmax(0,1fr))}
  .thebe-ai-dock[data-surface="workspace"] .thebe-ai-mode-button{min-height:42px;padding:8px 7px 8px 11px;text-align:center}
  .thebe-ai-dock[data-surface="workspace"] .thebe-ai-mode-button>small{display:none}
  .thebe-ai-dock[data-surface="workspace"] .thebe-ai-mode-button:before{left:5px;top:9px;bottom:9px}
  .thebe-ai-dock[data-surface="workspace"] .thebe-ai-context-kicker{display:none}
  .thebe-ai-dock[data-surface="workspace"] .thebe-ai-quick button{flex-basis:min(280px,82vw)}
  .thebe-ai-dock[data-surface="workspace"] .thebe-ai-compose-hint{display:none}
}
@media(max-width:380px){
  .thebe-ai-dock[data-surface="workspace"] .thebe-ai-voice-card{grid-template-columns:64px minmax(0,1fr)!important}
  .thebe-ai-dock[data-surface="workspace"] .thebe-ai-orb-button{
    width:64px!important;
    min-width:64px!important;
    max-width:64px!important;
    height:64px!important;
    min-height:64px!important;
  }
  .thebe-ai-dock[data-surface="workspace"] .thebe-ai-quick button:before{width:20px;height:20px}
}
@media(prefers-reduced-motion:reduce){
  .thebe-ai-dock[data-surface="workspace"] .thebe-ai-context-action,
  .thebe-ai-dock[data-surface="workspace"] .thebe-ai-mode-button,
  .thebe-ai-dock[data-surface="workspace"] .thebe-ai-quick button,
  .thebe-ai-dock[data-surface="workspace"] .thebe-ai-response-tools button,
  .thebe-ai-dock[data-surface="workspace"] .thebe-ai-icon-btn{
    transition:none!important;
    transform:none!important;
  }
}


/* V196 dialog layering closure — accessible workspace dialogs must render above the Thebe dock. */
.modal.bw-dialog-service,
[role="dialog"].bw-dialog-service{
  z-index:240!important;
}



/* V199 workspace column reservation — move the actual main grid child clear of the fixed dock. */
@media(min-width:1180px){
  body.thebe-ai-dock-open #appShell main{
    margin-left:444px!important;
    width:calc(100% - 444px)!important;
    padding-left:30px!important;
  }
  body.thebe-ai-dock-open.thebe-ai-expanded #appShell main{
    margin-left:584px!important;
    width:calc(100% - 584px)!important;
  }
}
@media(min-width:1024px) and (max-width:1179px){
  body.thebe-ai-dock-open #appShell main{
    margin-left:344px!important;
    width:calc(100% - 344px)!important;
    padding-left:24px!important;
  }
  body.thebe-ai-dock-open.thebe-ai-expanded #appShell main{
    margin-left:464px!important;
    width:calc(100% - 464px)!important;
  }
}


/* V209 workspace quickbar safe lane — keep primary workspace actions clear of the fixed desktop Thebe dock. */
@media(min-width:1180px){
  body.thebe-ai-dock-open #workspaceQuickbar{
    margin-left:444px!important;
    width:calc(100% - 444px)!important;
    box-sizing:border-box;
  }
  body.thebe-ai-dock-open.thebe-ai-expanded #workspaceQuickbar{
    margin-left:584px!important;
    width:calc(100% - 584px)!important;
  }
}
@media(min-width:1024px) and (max-width:1179px){
  body.thebe-ai-dock-open #workspaceQuickbar{
    margin-left:344px!important;
    width:calc(100% - 344px)!important;
    box-sizing:border-box;
  }
  body.thebe-ai-dock-open.thebe-ai-expanded #workspaceQuickbar{
    margin-left:464px!important;
    width:calc(100% - 464px)!important;
  }
}

/* V212 desktop workspace pointer lanes — decorative dock surfaces must never block workspace actions beneath the fixed command surface. */
/* V216 closes descendant hit-testing leaks found by the live Phase 0 synthetic lifecycle. */
@media(min-width:1024px){
  #thebeAiDock[data-surface="workspace"]{
    pointer-events:none;
  }
  #thebeAiDock[data-surface="workspace"] *{
    pointer-events:none!important;
  }
  #thebeAiDock[data-surface="workspace"] :is(
    button,
    textarea,
    input,
    select,
    a[href],
    summary,
    label[for],
    [role="button"],
    [tabindex="0"],
    [contenteditable="true"]
  ){
    pointer-events:auto!important;
  }

  /* The main workspace is already moved into a dock-safe lane by V199.
     Keep the quickbar inside that lane instead of shifting it a second time. */
  body.thebe-ai-dock-open #workspaceQuickbar{
    margin-left:0!important;
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box;
  }
}
@media(min-width:1024px) and (max-width:1500px){
  body.thebe-ai-dock-open #workspaceQuickbar .workspace-quick-actions{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}


/* V225 governed run summary — compact goal/evidence/plan visibility with deterministic trust labels. */
.thebe-ai-run-summary{
  display:grid;
  gap:8px;
  margin:0 0 10px;
  padding:9px;
  border:1px solid rgba(125,180,255,.14);
  border-radius:12px;
  background:#081725;
}
.thebe-ai-run-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-width:0;
}
.thebe-ai-run-head small{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#7893ad;
  font-size:8.5px;
}
.thebe-ai-run-status{
  flex:none;
  padding:3px 7px;
  border:1px solid rgba(125,180,255,.24);
  border-radius:999px;
  background:#0d2236;
  color:#bfe0ff;
  font-size:8.5px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.thebe-ai-run-summary[data-trust="verified"] .thebe-ai-run-status{
  border-color:rgba(131,231,184,.38);
  background:#0b2a22;
  color:#bff7d9;
}
.thebe-ai-run-summary[data-trust="grounded"] .thebe-ai-run-status{
  border-color:rgba(85,180,255,.38);
  color:#cbe8ff;
}
.thebe-ai-run-summary[data-trust="advisory"] .thebe-ai-run-status{
  border-color:rgba(255,190,92,.30);
  background:#262114;
  color:#ffd08a;
}
.thebe-ai-run-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px;
}
.thebe-ai-run-cell{
  min-width:0;
  padding:7px 8px;
  border:1px solid rgba(125,180,255,.10);
  border-radius:9px;
  background:#0b1b2a;
}
.thebe-ai-run-key{
  display:block;
  margin-bottom:3px;
  color:#6786a3;
  font-size:7.5px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.thebe-ai-run-value{
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  color:#e7f2fc;
  font-size:9px;
  font-weight:650;
  line-height:1.3;
}
.thebe-ai-run-summary + .thebe-ai-response-answer{margin-top:2px}
@media(max-width:420px){
  .thebe-ai-run-summary{padding:8px;gap:7px}
  .thebe-ai-run-head small{display:none}
  .thebe-ai-run-grid{gap:4px}
  .thebe-ai-run-cell{padding:6px}
  .thebe-ai-run-value{font-size:8.5px}
}


/* V228 Owner Command Centre handoff — one compact navigation action; never an execution control. */
.thebe-ai-mission-action{
  flex:none;
  min-height:28px;
  border:1px solid rgba(143,210,255,.46);
  border-radius:9px;
  padding:5px 9px;
  background:#0b63bd;
  color:#f7fbff;
  font:inherit;
  font-size:9px;
  font-weight:700;
  letter-spacing:.015em;
  line-height:1;
  cursor:pointer;
  box-shadow:0 0 0 1px rgba(143,210,255,.06),0 5px 16px rgba(0,24,58,.22);
}
.thebe-ai-mission-action:hover{background:#1170d0;border-color:#b9e3ff}
.thebe-ai-mission-action:focus-visible{outline:2px solid #c8e9ff;outline-offset:2px}
.thebe-ai-mission-action[hidden]{display:none!important}
.thebe-ai-mission[data-tone="review"] .thebe-ai-mission-action{border-color:rgba(255,210,122,.56);background:#7c5112;color:#fff3d8}
.thebe-ai-mission[data-tone="error"] .thebe-ai-mission-action{border-color:rgba(255,177,181,.58);background:#7b2f38;color:#fff0f1}
@media(max-width:420px){
  .thebe-ai-mission-copy{grid-template-columns:minmax(0,1fr) auto;align-items:center}
  .thebe-ai-mission-label,.thebe-ai-mission-meta{grid-column:1}
  .thebe-ai-mission-action{grid-column:2;grid-row:1/3;align-self:center}
}


/* V233 adversarial workspace density closure — keep the AI command surface useful without stealing the workspace. */
@media(min-width:1024px){
  #thebeAiDock[data-surface="workspace"] .thebe-ai-context-bar{min-height:42px;padding:8px 9px 8px 10px}
  #thebeAiDock[data-surface="workspace"] .thebe-ai-mode-button{
    min-height:44px;
    padding:7px 8px 7px 12px;
  }
  #thebeAiDock[data-surface="workspace"] .thebe-ai-mode-button>small{display:none}
  #thebeAiDock[data-surface="workspace"] .thebe-ai-voice-card{
    grid-template-columns:68px minmax(0,1fr)!important;
    padding:9px 10px;
  }
  #thebeAiDock[data-surface="workspace"] .thebe-ai-orb-button{
    width:68px!important;
    min-width:68px!important;
    max-width:68px!important;
    height:68px!important;
    min-height:68px!important;
  }
  #thebeAiDock[data-surface="workspace"] .thebe-ai-quick button{
    min-height:54px;
    padding:9px 30px 8px 9px;
  }
  #thebeAiDock[data-surface="workspace"] .thebe-ai-quick button:before{
    width:18px;
    height:18px;
    margin-bottom:6px;
  }
  #thebeAiDock[data-surface="workspace"] .thebe-ai-quick button small{display:none}
  #thebeAiDock[data-surface="workspace"] .thebe-ai-compose{
    margin:0 var(--thebe-workspace-pad) 10px!important;
    padding:8px;
  }
  #thebeAiDock[data-surface="workspace"] .thebe-ai-compose textarea{min-height:40px}
  body.thebe-ai-expanded #thebeAiDock[data-surface="workspace"] .thebe-ai-mode-button>small,
  body.thebe-ai-expanded #thebeAiDock[data-surface="workspace"] .thebe-ai-quick button small{display:block}
}
@media(min-width:1180px){
  #thebeAiDock[data-surface="workspace"]{
    --thebe-dock-w:376px;
    --thebe-workspace-pad:14px;
  }
  body.thebe-ai-expanded{--thebe-dock-w:500px}
  body.thebe-ai-dock-open #appShell main{
    margin-left:400px!important;
    width:calc(100% - 400px)!important;
    padding-left:24px!important;
  }
  body.thebe-ai-dock-open.thebe-ai-expanded #appShell main{
    margin-left:524px!important;
    width:calc(100% - 524px)!important;
  }
}
@media(min-width:1024px) and (max-width:1179px){
  #thebeAiDock[data-surface="workspace"]{
    --thebe-dock-w:320px;
    --thebe-workspace-pad:12px;
  }
  body.thebe-ai-expanded{--thebe-dock-w:440px}
  body.thebe-ai-dock-open #appShell main{
    margin-left:344px!important;
    width:calc(100% - 344px)!important;
    padding-left:20px!important;
  }
  body.thebe-ai-dock-open.thebe-ai-expanded #appShell main{
    margin-left:464px!important;
    width:calc(100% - 464px)!important;
  }
  #thebeAiDock[data-surface="workspace"] .thebe-ai-quick{gap:6px}
  #thebeAiDock[data-surface="workspace"] .thebe-ai-quick button{padding-left:8px;padding-right:26px}
}

/* Unified governed plan and result artifacts. */
.thebe-ai-mode-button[hidden]{display:none!important}
.thebe-ai-response-tools button[hidden]{display:none!important}
.thebe-ai-plan-artifact{border:1px solid rgba(125,180,255,.2);border-radius:12px;padding:10px;min-width:0;overflow-wrap:anywhere}
.thebe-ai-plan-artifact>summary{cursor:pointer;font-size:12px;font-weight:650;min-height:28px}
.thebe-ai-plan-artifact>small{display:block;margin:6px 0;color:#b7c8d9}
body.thebe-ai-dock-open .thebe-ai-mode-rail:has([data-thebe-mode="goal_plan"]:not([hidden])){grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:520px){body.thebe-ai-dock-open .thebe-ai-mode-rail:has([data-thebe-mode="goal_plan"]:not([hidden])){grid-template-columns:repeat(2,minmax(0,1fr))}}
