/* Opt-in AI visual preview inside a real LiveKit room. No agent connection is implied. */
body.agent-room-preview{--agent-sage:#d4e89c;--agent-ice:#a8d8cf}
.agent-preview-toggle[aria-pressed=true]{color:#dceec1!important;border-color:#98b681!important;background:#d4e89c12!important}
.agent-preview-toggle[aria-pressed=true]:before{content:"";width:8px;height:8px;display:inline-block;margin-right:7px;border-radius:50%;background:radial-gradient(circle at 30% 30%,#f7ffe7,#b7dba0 53%,#79aa9e)}
body.agent-room-preview .meeting-workspace{grid-template-columns:minmax(0,1fr) 350px;gap:15px}
body.agent-room-preview .meeting-workspace.sidebar-closed{grid-template-columns:minmax(0,1fr)}
body.agent-room-preview .side-panel{background:linear-gradient(160deg,#1d2222,#191e20 72%);border:1px solid #ffffff12}
body.agent-room-preview .panel-tabs{gap:16px}
body.agent-room-preview .panel-tab{font-size:12px}
body.agent-room-preview .panel-tab.selected{color:#d4e89c;box-shadow:0 2px 0 #d4e89c}
body.agent-room-preview .video-grid[data-layout=agent]{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1.55fr) minmax(132px,.88fr);gap:10px;padding:0}
body.agent-room-preview .video-grid[data-layout=agent]:has(.secondary-stage[hidden]){grid-template-rows:minmax(0,1fr)}
body.agent-room-preview .video-grid[data-layout=agent] .primary-stage{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(220px,.95fr);gap:10px}
body.agent-room-preview .video-grid[data-layout=agent] .secondary-stage{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(90px,1fr);grid-template-columns:none;grid-auto-rows:minmax(0,1fr);gap:10px;overflow-x:auto;overflow-y:hidden}
body.agent-room-preview .video-grid[data-layout=agent] .secondary-stage[hidden]{display:none}
body.agent-room-preview .video-grid[data-layout=agent] .secondary-stage .tile{min-height:0}
body.agent-room-preview .video-grid[data-layout=agent] .primary-stage>.featured{outline:1px solid #d4e89c;outline-offset:-2px;box-shadow:0 0 0 2px #d4e89c22}
body.agent-room-preview .ai-preview-tile{display:flex!important;flex-direction:column;align-items:center;justify-content:space-between;border:1px solid #91aa8066;background:radial-gradient(circle at 50% 50%,#34463b 0,#252e2b 39%,#1b2120 74%)!important;isolation:isolate}
body.agent-room-preview .ai-preview-tile:after{content:"";position:absolute;inset:0;background:linear-gradient(145deg,#e9ffd00a,transparent 35%,#0004);pointer-events:none}
.agent-tile-top,.agent-tile-orb-wrap,.agent-tile-bottom{position:relative;z-index:1}
.agent-tile-top{display:flex;width:100%;justify-content:space-between;align-items:center;padding:16px 17px;color:#a9c693;font-size:9px;font-weight:800;letter-spacing:.16em}
.agent-tile-tag{letter-spacing:0;font-weight:650;color:#d6e4ca;border:1px solid #c5dcae55;border-radius:6px;padding:4px 7px}
.agent-tile-orb-wrap{display:grid;place-items:center;flex:1;width:100%;min-height:80px}
.agent-tile-halo{position:absolute;width:210px;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#bfe5a13a,transparent 66%);filter:blur(17px)}
.agent-tile-orb{position:relative;width:clamp(95px,9vw,137px);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 30% 22%,#fbfff1 0,#d9edb2 23%,#9ccabc 57%,#536f67 100%);box-shadow:inset -15px -18px 34px #28483e70,inset 12px 12px 20px #ffffff66,0 16px 55px #91ccb933;animation:none}
.agent-tile-orb:after{content:"";position:absolute;inset:12%;border:1px solid #ffffff55;border-radius:50%;transform:rotate(-24deg) scaleX(.84)}

.agent-tile-bottom{text-align:center;padding:0 10px 19px}
.agent-tile-bottom strong{display:block;font-size:21px;font-weight:650;letter-spacing:-.06em}
.agent-tile-bottom small{display:block;margin-top:2px;color:#b7c7b4;font-size:10px}
.agent-tile-state{display:inline-flex;align-items:center;gap:7px;margin-top:13px;padding:7px 10px;border:1px solid #a6c78e4b;border-radius:999px;background:#1a2a20a6;color:#d9ebca;font-size:9px;white-space:nowrap}
.agent-tile-state i{width:6px;height:6px;border-radius:50%;background:#d4e89c;box-shadow:0 0 0 3px #d4e89c22}
.agent-live-panel{min-height:0;overflow:auto;padding:17px 18px 22px;scrollbar-width:thin;scrollbar-color:#607065 transparent}
.agent-live-intro{display:flex;align-items:center;gap:10px;border:1px solid #d4e89c25;background:#d4e89c0b;border-radius:11px;padding:12px}
.agent-live-intro strong{font-size:11px;color:#e4edda}
.agent-live-intro p{font-size:10px;line-height:1.55;color:#abb9ab;margin:3px 0 0}
.agent-live-mini-orb{display:block;flex:none;width:29px;height:29px;border-radius:50%;background:radial-gradient(circle at 30% 22%,#fbfff1,#d9edb2 32%,#9ccabc 70%,#536f67);box-shadow:0 0 17px #a9da9b36}
.agent-live-disclosure{margin:11px 1px 22px;color:#a9c798;font-size:9px;font-weight:800;letter-spacing:.12em}
.agent-live-eyebrow{display:block;color:#8fa68b;font-size:9px;font-weight:800;letter-spacing:.15em;margin-bottom:12px}
.agent-live-message{display:flex;align-items:flex-start;gap:9px;margin:0 0 15px}
.agent-live-avatar{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:50%;background:#85a191;color:#162019;font-size:10px;font-weight:800}
.agent-live-orb-avatar{background:radial-gradient(circle at 30% 22%,#fbfff1,#d9edb2 32%,#9ccabc 70%,#536f67)}
.agent-live-message>div{min-width:0;flex:1}
.agent-live-message strong{font-size:10px;color:#e5ebe1}
.agent-live-message p{font-size:11px;line-height:1.55;color:#d7ded5;margin:5px 0 0}
.agent-live-answer{font-size:11px;line-height:1.6;color:#e1e8da;background:#2b3430;border:1px solid #d4e89c28;border-radius:10px;padding:12px;margin-top:6px}
.agent-live-sources{display:flex;flex-wrap:wrap;gap:5px;align-items:center;margin-top:11px;padding-top:9px;border-top:1px solid #ffffff15}
.agent-live-sources span{color:#9ab095;font-size:9px;margin-right:2px}
.agent-live-sources button{font-size:9px;color:#d9edb9;background:#395044;border:1px solid #71996c56;border-radius:5px;padding:5px 6px}
.agent-live-sources button:hover{background:#46664e}
.agent-live-next{margin-top:24px}
.agent-live-action{display:flex;align-items:center;gap:9px;padding:10px;background:#242c29;border:1px solid #ffffff17;border-radius:10px}
.agent-live-action>span{display:grid;place-items:center;width:29px;height:29px;background:#d4e89c1b;color:#d4e89c;border-radius:8px;font-size:18px}
.agent-live-action div{flex:1;min-width:0}
.agent-live-action strong{display:block;font-size:10px}
.agent-live-action small{display:block;font-size:9px;color:#a9b7aa;margin-top:2px}
.agent-live-action em{font-style:normal;font-size:9px;color:#d4e89c}
.agent-live-feedback{margin:20px 0 0;padding-left:9px;border-left:2px solid #8ca778;color:#aabaaa;font-size:10px;line-height:1.6}
.agent-live-draft{border-top:1px solid #ffffff14;padding-top:13px}
body.agent-room-preview .meeting-bottom{display:grid;grid-template-columns:auto minmax(240px,1fr) auto;gap:13px;min-height:91px}
body.agent-room-preview .bottom-info,body.agent-room-preview .bottom-brand{display:none}
body.agent-room-preview .control-bar{grid-column:1;grid-row:1;gap:5px;padding:6px;border-radius:15px}
body.agent-room-preview .call-button{width:59px;min-height:56px;border-radius:10px}
body.agent-room-preview #leave-button{grid-column:3;grid-row:1;width:80px;min-height:54px;margin:0;border-radius:11px}
.agent-live-composer{grid-column:2;grid-row:1;display:flex;align-items:center;gap:9px;min-width:0;max-width:700px;width:100%;justify-self:center;min-height:49px;padding:5px 6px 5px 11px;border:1px solid #b0d59880;border-radius:13px;background:#252d29;box-shadow:0 0 0 4px #b0d5980b}
.agent-live-composer[hidden]{display:none}
.agent-live-composer .agent-live-mini-orb{width:23px;height:23px}
.agent-live-composer input{flex:1;min-width:0;background:transparent;border:0;outline:none!important;color:#edf2e9;font-size:11px}
.agent-live-composer input::placeholder{color:#aab8a9}
.agent-live-composer button{width:34px;height:34px;flex:none;border:0;border-radius:9px;background:#d4e89c;color:#213020;font-size:22px;font-weight:750}
.agent-live-composer button:hover{background:#e5f4b7}
.agent-live-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1150px){
 body.agent-room-preview .meeting-workspace{grid-template-columns:minmax(0,1fr) 300px;gap:10px}
 body.agent-room-preview .video-grid[data-layout=agent] .primary-stage{grid-template-columns:minmax(0,1.4fr) minmax(190px,.9fr)}
 body.agent-room-preview .call-button{width:52px;font-size:9px}
 body.agent-room-preview .control-bar{gap:3px}
}
@media(max-width:1000px){
 body.agent-room-preview .meeting-workspace,body.agent-room-preview .meeting-workspace.sidebar-closed{grid-template-columns:minmax(0,1fr)}
 body.agent-room-preview .side-panel{position:fixed;inset:78px 15px 100px auto;z-index:6;width:min(350px,88vw);box-shadow:-15px 5px 60px #000a}
}
@media(max-width:760px){
 body.agent-room-preview .room-heading{gap:5px}
 body.agent-room-preview .room-actions{gap:3px}
 body.agent-room-preview .agent-preview-toggle{font-size:10px;padding:6px}
 body.agent-room-preview .side-panel{inset:94px 12px 123px auto}
 body.agent-room-preview .video-grid[data-layout=agent]{grid-template-rows:minmax(0,1.3fr) minmax(90px,.42fr);gap:7px}
 body.agent-room-preview .video-grid[data-layout=agent] .primary-stage{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 88px;gap:7px}
 body.agent-room-preview .ai-preview-tile{flex-direction:row;padding:0 10px}
 body.agent-room-preview .agent-tile-orb-wrap{flex:none;width:62px;min-height:0;height:100%}
 body.agent-room-preview .agent-tile-bottom{flex:1;text-align:left;padding:0 7px}
 body.agent-room-preview .agent-tile-top{position:absolute;left:9px;top:6px;width:auto;padding:0;font-size:7px}
 body.agent-room-preview .video-grid[data-layout=agent] .secondary-stage{gap:7px}
 body.agent-room-preview .agent-tile-top{padding:8px 6px;font-size:7px}
 body.agent-room-preview .agent-tile-tag{display:none}
 body.agent-room-preview .agent-tile-halo{width:90px}
 body.agent-room-preview .agent-tile-orb{width:52px}
 body.agent-room-preview .agent-tile-bottom{padding:0 3px 10px}
 body.agent-room-preview .agent-tile-bottom strong{font-size:11px}
 body.agent-room-preview .agent-tile-bottom small{display:none}
 body.agent-room-preview .agent-tile-state{display:none}
 body.agent-room-preview .agent-tile-state i{width:4px;height:4px}
 body.agent-room-preview .meeting-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:45px 53px;gap:5px;min-height:117px;padding-bottom:4px}
 body.agent-room-preview .agent-live-composer{grid-column:1/3;grid-row:1;min-height:43px}
 body.agent-room-preview .control-bar{grid-column:1;grid-row:2;justify-self:start;max-width:none}
 body.agent-room-preview .call-button{width:45px;min-height:43px}
 body.agent-room-preview .call-button .button-label{display:none}
 body.agent-room-preview #leave-button{grid-column:2;grid-row:2;width:58px;min-height:43px;font-size:9px}
 body.agent-room-preview .room-title h1{max-width:26vw}
}
@media(prefers-reduced-motion:reduce){body.agent-room-preview .agent-tile-orb{animation:none}}
/* State feedback: occasional entrances only; the video and transcript never move. */
body.agent-room-preview .side-panel:not([hidden]){animation:agent-panel-enter 220ms cubic-bezier(.23,1,.32,1) both}
body.agent-room-preview .ai-preview-tile{animation:agent-tile-enter 220ms cubic-bezier(.23,1,.32,1) both}
body.agent-room-preview .agent-live-draft{animation:agent-message-enter 180ms cubic-bezier(.23,1,.32,1) both}
body.agent-room-preview .agent-preview-toggle,
body.agent-room-preview .agent-live-composer button{transition:background-color 130ms ease,color 130ms ease,transform 130ms ease}
@media(hover:hover) and (pointer:fine){
 body.agent-room-preview .agent-live-composer button:hover{transform:translateY(-1px)}
}
body.agent-room-preview .agent-live-composer button:active{transform:scale(.96)}
@keyframes agent-panel-enter{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}
@keyframes agent-tile-enter{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}
@keyframes agent-message-enter{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){
 body.agent-room-preview .side-panel:not([hidden]),
 body.agent-room-preview .ai-preview-tile,
 body.agent-room-preview .agent-live-draft{animation:agent-fade-in 120ms ease both}
 body.agent-room-preview .agent-live-composer button:active{transform:none}
}
@keyframes agent-fade-in{from{opacity:.7}to{opacity:1}}

/* Agent controls and state presentation. */
.agent-live-tools{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}
.agent-live-tools[hidden]{display:none}
.agent-live-tools button{background:#2c352d;color:#e5eddd;border:1px solid #6f82615c;border-radius:8px;padding:8px 10px;font:inherit;font-size:12px;cursor:pointer}
.agent-live-tools button:disabled{opacity:.5;cursor:wait}
.agent-live-answer{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}
.agent-live-message strong{font-size:12px}
.agent-live-intro strong{font-size:13px}
.agent-live-intro p,.agent-live-feedback{font-size:12px}
.agent-source-quote{width:100%;font-size:12px;line-height:1.5;padding:8px;border-left:2px solid #b3ca91;color:#dbe6d0}
.agent-tile-orb{animation:none}


body[data-agent-state=error] .agent-tile-state{color:#ffbeae;border-color:#d78069}


@media(prefers-reduced-motion:reduce){body[data-agent-state] .agent-tile-orb{animation:none}}

.agent-notes{margin:15px 0;border-top:1px solid #ffffff16;border-bottom:1px solid #ffffff16;padding:12px 0;font-size:12px;line-height:1.6;color:#c9d7c2}
.agent-notes summary{cursor:pointer;color:#d9e8c4;font-weight:650}
.agent-notes .agent-live-answer{margin:8px 0}
.agent-confirm{display:block;margin-top:9px;background:#d4e89c;color:#213020;border:0;border-radius:6px;padding:7px 10px;cursor:pointer}
.agent-recap{max-width:640px;width:calc(100% - 32px);max-height:85vh;overflow:auto;background:#202723;color:#e9f0e1;border:1px solid #849d6966;border-radius:18px;padding:28px}
.agent-recap::backdrop{background:#0009;backdrop-filter:blur(5px)}
.agent-recap>p{color:#adbba4;font-size:13px;line-height:1.6}
#agent-recap-content{white-space:pre-wrap;line-height:1.6;font-size:14px}

.caption-segment.evidence-highlight{background:#d4e89c26;outline:1px solid #d4e89c66;border-radius:3px}

/* Orb state indicator: slow listening drift, orbiting thought, actual speech energy.
   Long loops indicate ongoing state; state/volume transitions settle in 160ms. */
body.agent-room-preview .agent-tile-orb{display:block;overflow:hidden;isolation:isolate;background:radial-gradient(circle at 32% 22%,#eef7d7,#a2cda9 48%,#365e54);transition:transform 160ms cubic-bezier(.23,1,.32,1);animation:none}
body.agent-room-preview .agent-tile-orb:after{display:none}
.agent-tile-orb>span{position:absolute;pointer-events:none;display:block}
.orb-flow{inset:-28%;border-radius:43%;background:conic-gradient(from 35deg,transparent 0deg,#e6f6bda8 65deg,#89cfc533 145deg,#32594eaa 220deg,#d7edba99 300deg,transparent 360deg);filter:blur(9px);animation:orb-current 12s linear infinite}
.orb-core{inset:12%;border-radius:43% 57% 62% 38%;background:radial-gradient(ellipse at 35% 25%,#f5ffd6bf,transparent 70%);animation:orb-core-drift 6s cubic-bezier(.77,0,.175,1) infinite alternate}
.orb-shine{inset:0;border-radius:50%;background:radial-gradient(ellipse at 33% 19%,#ffffff80,transparent 40%);box-shadow:inset -9px -15px 24px #163a4266,inset 2px 3px 10px #ffffff66}
.orb-ring{inset:9%;border:1px solid #ecffd64d;border-radius:50%;transform:rotate(-28deg) scaleX(.72);opacity:.6}
.agent-tile-halo{transition:transform 160ms cubic-bezier(.23,1,.32,1),opacity 160ms ease;opacity:.5}
body[data-agent-state=listening] .agent-tile-orb{animation:orb-listening 4s cubic-bezier(.77,0,.175,1) infinite}
body[data-agent-state=thinking] .orb-flow{animation-duration:2.4s}
body[data-agent-state=thinking] .orb-ring{animation:orb-thinking 2.4s linear infinite;opacity:.9;border-color:#ecffd68c}
body[data-agent-state=thinking] .orb-core{animation-duration:1.8s}
body[data-agent-state=speaking] .orb-flow{animation-duration:5s}
body[data-agent-state=speaking] .orb-ring{opacity:.35}
body[data-agent-state=error] .agent-tile-orb>span{animation-play-state:paused}
body.orb-motion-paused .agent-tile-orb,body.orb-motion-paused .agent-tile-orb>span{animation-play-state:paused}
@keyframes orb-current{to{transform:rotate(360deg)}}
@keyframes orb-core-drift{from{transform:translate(-6%,7%) rotate(-20deg)}to{transform:translate(8%,-5%) rotate(32deg)}}
@keyframes orb-listening{50%{transform:scale(1.025)}}
@keyframes orb-thinking{from{transform:rotate(-28deg) scaleX(.72)}to{transform:rotate(332deg) scaleX(.72)}}
@media(prefers-reduced-motion:reduce){
 body.agent-room-preview .agent-tile-orb,body.agent-room-preview .agent-tile-orb>span{animation:none!important;transform:none!important;transition:opacity 160ms ease}
 body.agent-room-preview .agent-tile-halo{transform:none!important;transition:opacity 160ms ease}
}

/* A soft atmosphere around a steady core; blur is fixed, only composites move. */
body.agent-room-preview .agent-tile-halo {
  width: clamp(180px, 18vw, 270px);
  background: radial-gradient(ellipse, #c7e9a85c 0%, #8acbbd38 38%, transparent 70%);
  filter: blur(22px);
  transition: transform 220ms ease-out, opacity 220ms ease-out;
}
.orb-aura {
  position: absolute; width: clamp(165px, 16vw, 240px); aspect-ratio: 1;
  border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 30deg, transparent, #d7edb34a, transparent 40%, #77c5b64d, transparent 78%);
  filter: blur(19px); opacity: .65;
  animation: orb-atmosphere 18s linear infinite;
}
body.agent-room-preview .agent-tile-orb {
  transition: transform 220ms ease-out;
  box-shadow: inset -9px -12px 24px #244e4e66, inset 2px 3px 12px #f2ffd650, 0 0 22px #b9dcaa25;
}
body.agent-room-preview .orb-ring { opacity: .18; border-color: #ecffd62e; }
body.agent-room-preview .orb-core { filter: blur(5px); }
body[data-agent-state=listening] .agent-tile-orb { animation: none; }
body[data-agent-state=thinking] .orb-aura { opacity: .85; }
body[data-agent-state=speaking] .orb-aura { opacity: .8; }
body[data-agent-state=error] .orb-aura,
body.orb-motion-paused .orb-aura { animation-play-state: paused; }
.agent-tile-state { min-height: 28px; min-width: 160px; text-align: center; }
@keyframes orb-atmosphere { to { transform: rotate(360deg); } }
@media(max-width:760px) {
  body.agent-room-preview .agent-tile-halo { width: 104px; filter: blur(14px); }
  .orb-aura { width: 92px; filter: blur(12px); }
}
@media(prefers-reduced-motion:reduce) {
  .orb-aura { animation: none !important; }
}

#agent-knowledge { margin: 14px 0; font-size: 13px; color: var(--muted, #a9b5ae); }
#agent-knowledge summary { cursor: pointer; color: #d7e5c6; }
#agent-knowledge button { margin: 5px 4px 5px 0; }
#agent-knowledge-list { max-height: 210px; overflow: auto; }
#agent-knowledge-list label { display: flex; align-items: start; gap: 8px; padding: 8px 0; }
#agent-knowledge-list input { flex: none; margin-top: 3px; }

/* Direct host controls, kept separate from the participant microphone. */
.agent-card-controls { display: flex; justify-content: center; gap: 7px; margin-top: 13px; }
.agent-card-controls[hidden] { display: none !important; }
.agent-card-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 7px 10px; border: 1px solid #91aa8055; border-radius: 10px; background: #242d27; color: #d8e3ce; font: inherit; font-size: 11px; cursor: pointer; }
.agent-card-controls button:hover { background: #35432e; }
.agent-card-controls button:focus-visible { outline: 2px solid #d7eaa2; outline-offset: 3px; }
.agent-card-controls button:disabled { opacity: .55; cursor: wait; }
.agent-card-voice .voice-cross { display: none; }
.agent-card-voice[aria-pressed=true] .voice-cross { display: block; }
.agent-card-voice[aria-pressed=true] .voice-waves { display: none; }
.agent-card-controls .agent-card-disable { background: transparent; color: #c7b5b0; border-color: #ba817548; }
.agent-card-controls .agent-card-disable:hover { background: #583b344d; color: #efc1b6; }
@media(max-width:760px) {
 body.agent-room-preview .agent-tile-bottom { padding-bottom: 0; }
 .agent-card-controls { justify-content: flex-start; gap: 5px; margin-top: 5px; }
 .agent-card-controls button { min-height: 36px; padding: 6px 8px; font-size: 10px; }
}

/* Anaya stays beside transcript, with a fixed label to avoid toolbar shifts. */
.control-bar .agent-preview-toggle:before{display:none}
.agent-toolbar-orb{display:block;flex:none;width:22px;height:22px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#f7ffe7,#b7dba0 48%,#63968d);box-shadow:0 0 8px #b7dba022}
.agent-preview-toggle[aria-pressed=false] .agent-toolbar-orb{filter:saturate(.3);opacity:.65}
@media(max-width:760px){
 body:not(.agent-room-preview) .control-bar{gap:3px;padding:4px}
 body:not(.agent-room-preview) .control-bar .call-button{width:clamp(34px,calc((100vw - 66px)/7),56px);min-width:0}
 body:not(.agent-room-preview) .control-bar #leave-button{margin-left:0}
}

/* Keep the assistant panel focused on the conversation. */
.agent-live-panel{padding:0 16px 18px}
.agent-status{display:flex;align-items:center;gap:10px;min-height:72px;padding:14px 0 16px;border-bottom:1px solid #ffffff16}
.agent-status .agent-live-mini-orb{width:23px;height:23px}
.agent-status-copy{flex:1;min-width:0}
.agent-status-copy strong{display:block;color:#e7eedf;font-size:13px;font-weight:700;line-height:1.4}
.agent-status-copy p{margin:2px 0 0;color:#b6c8ad;font-size:11px;line-height:1.4}
#agent-enable{flex:none;border:0;background:transparent;color:#d4e89c;padding:8px 3px;font:650 11px Manrope,sans-serif;cursor:pointer}
#agent-enable:hover{text-decoration:underline;text-underline-offset:3px}
#agent-enable:focus-visible,.agent-panel-detail summary:focus-visible{outline:2px solid #d4e89c;outline-offset:3px;border-radius:3px}
#agent-enable:disabled{opacity:.55;cursor:wait}
#agent-live-drafts{padding-top:18px}
#agent-live-drafts:empty{display:none}
.agent-empty{padding:39px 8px 42px;text-align:center}
.agent-empty[hidden]{display:none}
.agent-empty strong{display:block;color:#e5ecdd;font-size:14px;font-weight:650}
.agent-empty p{margin:7px auto 0;max-width:24ch;color:#aebdac;font-size:12px;line-height:1.5}
.agent-live-message{gap:10px;margin-bottom:21px}
.agent-live-draft{border:0;padding-top:0}
.agent-live-message+.agent-live-message{border-top:1px solid #ffffff10;padding-top:17px}
.agent-live-avatar{width:25px;height:25px}
.agent-live-message strong{font-size:11px;font-weight:700}
.agent-live-answer{margin-top:7px;padding:11px 12px;border:0;border-radius:9px;background:#29312d;color:#e5ebe0;font-size:12px;line-height:1.55}
.agent-live-message:has(.agent-live-orb-avatar) .agent-live-answer{background:transparent;padding:4px 0 0}
.agent-panel-detail{margin:0;border:0;border-top:1px solid #ffffff16;padding:0;color:#c9d7c2}
.agent-panel-detail[hidden]{display:none}
.agent-panel-detail>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:45px;cursor:pointer;list-style:none;color:#cad9c3;font-size:12px;font-weight:650}
.agent-panel-detail>summary::-webkit-details-marker{display:none}
.agent-panel-detail>summary:after{content:"";flex:none;width:6px;height:6px;border-right:1.5px solid #a8bba3;border-bottom:1.5px solid #a8bba3;transform:rotate(45deg);margin:0 3px 4px 0}
.agent-panel-detail[open]>summary:after{transform:rotate(225deg);margin-top:5px;margin-bottom:0}
.agent-notes{margin:0;padding:0;line-height:1.55}
.agent-notes summary{color:#cad9c3}
#agent-notes-content,#agent-settings>.agent-live-tools,#agent-quick{padding:0 0 14px}
#agent-notes-content>p{margin:0 0 10px;color:#b7c6b2}
#agent-knowledge{margin:0;padding:11px 0 0;border-top:1px solid #ffffff12}
#agent-knowledge summary{font-size:11px}
.agent-privacy-copy{margin:0 0 14px;color:#b6c5b2;font-size:11px;line-height:1.6}
#agent-settings .agent-live-tools{margin:0}
#agent-quick{margin:0;gap:6px}
#agent-quick button,#agent-settings .agent-live-tools button{background:#2a332c;border-color:#70836550;border-radius:7px;font-size:11px;padding:7px 9px}
.agent-live-feedback{margin:10px 0 0;padding:8px 0;border:0;color:#e6c3ad;font-size:11px}
.agent-live-feedback[hidden]{display:none}
#agent-knowledge button{background:#2a332c;color:#e4ecdb;border:1px solid #70836570;border-radius:7px;padding:8px 10px;font:650 11px Manrope,sans-serif;cursor:pointer}
#agent-knowledge button:hover{background:#344238}
#agent-knowledge button:focus-visible{outline:2px solid #d4e89c;outline-offset:2px}
#agent-knowledge button[hidden]{display:none}
.agent-voice-dialog{width:min(430px,calc(100vw - 32px))}
.agent-voice-dialog select{width:100%;padding:12px;border:1px solid #485044;border-radius:10px;background:#171c19;color:#e6eddf;font:inherit;color-scheme:dark}
.agent-voice-dialog label{display:block;margin:18px 0 8px}
.agent-voice-dialog p{font-size:12px;line-height:1.6;color:#a6b09f}
.agent-voice-dialog .primary{width:100%}

.microphone-processing{border:0;border-top:1px solid #485044;padding:16px 0 0;margin:22px 0 0;min-width:0}
.microphone-processing legend{padding:0 8px 0 0;font-size:13px}
.microphone-processing small{display:block;overflow-wrap:anywhere;color:#a6b09f}
.agent-voice-dialog .noise-setting{display:flex;align-items:center;gap:10px}
.agent-voice-dialog .noise-setting input{width:18px;height:18px;accent-color:#d4e89c}
.agent-voice-dialog{max-height:calc(100dvh - 32px);overflow:auto}

#agent-voice-question{display:flex;align-items:center;justify-content:center;gap:6px;width:auto;min-width:40px;padding:0 10px;white-space:nowrap}
.voice-request-label{font-size:11px}
#agent-voice-question.voice-request-active{outline:2px solid #e8f7c6;outline-offset:3px}
@media(max-width:600px){.voice-request-label{display:none}#agent-voice-question{padding:0;width:38px;min-width:38px}}

.saved-records{width:min(780px,calc(100vw - 32px));max-height:85dvh;overflow:auto}.saved-records p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.saved-record-row,.saved-transcript-row{display:block;width:100%;text-align:left;margin:8px 0;padding:14px}.saved-records-content button{padding:10px;margin-right:8px}.preparation-saving{font-size:11px;color:#c7d9a5}
/* Quiet, scannable AI settings within the existing panel. */
#agent-settings>.agent-live-tools{gap:7px;margin:10px 0 14px}#agent-settings>.agent-live-tools:has(>button:not([hidden])){padding-bottom:4px}#agent-settings>.agent-live-tools:not(:has(>button:not([hidden]))){display:none}
.agent-privacy-overview{display:grid;gap:14px;margin:8px 0 16px;padding:15px 12px;background:#ffffff03;border:1px solid #ffffff08;border-radius:12px}.agent-privacy-overview>div{display:flex;align-items:flex-start;gap:11px}.privacy-mark{display:grid;place-items:center;flex:0 0 28px;height:28px;background:#cadba20c;color:#adbe94;border-radius:8px;font-size:17px}.agent-privacy-overview strong{display:block;font-size:12px;font-weight:550;color:#d9e2cf;line-height:1.5}.agent-privacy-overview span:not(.privacy-mark){display:block;font-size:10px;color:#929e88;line-height:1.6;margin-top:2px}
#agent-settings .agent-data-detail,#agent-settings #agent-knowledge,#agent-settings .agent-preparation-detail{margin:0;padding:0;border:0;border-top:1px solid #ffffff0b;border-radius:0;background:transparent}
#agent-settings details>summary{list-style:none;display:flex;align-items:center;gap:8px;padding:14px 0;cursor:pointer;color:#c9d3be;font-size:12px;font-weight:500}#agent-settings details>summary::-webkit-details-marker{display:none}#agent-settings details>summary:after{content:'';display:block;flex:0 0 5px;height:5px;border-right:1.5px solid #91a17e;border-bottom:1.5px solid #91a17e;transform:rotate(45deg);margin-left:5px;margin-right:3px}#agent-settings details[open]>summary:after{transform:rotate(225deg)}#agent-settings .agent-data-detail>summary{color:#9fac93;font-size:11px}#agent-settings .agent-data-detail>summary:after{margin-left:auto}
#agent-settings .agent-setting-badge{margin-left:auto;font-size:10px;font-weight:400;color:#9ead8f;background:#ffffff04;border:1px solid #ffffff08;border-radius:5px;padding:2px 6px;white-space:nowrap}
#agent-settings details>p{font-size:11px;line-height:1.7;color:#9eaa94;margin:0 0 12px}#agent-settings #agent-knowledge>button{padding:9px 11px;border-radius:8px;font-size:11px;margin:0 5px 10px 0}#agent-settings #agent-knowledge-list{font-size:12px}#agent-settings .preparation-saving:empty,#agent-knowledge-feedback:empty{display:none}#agent-settings .preparation-saving{color:#b8c7a0;font-size:10px}

/* Voice energy follows Anaya's received LiveKit audio. Quiet gaps stay still. */
.agent-voice-ring{position:absolute;top:50%;left:50%;translate:-50% -50%;z-index:0;width:clamp(145px,14vw,205px);aspect-ratio:1;border:2px solid transparent;border-radius:48% 52% 56% 44%;pointer-events:none;opacity:0;transition:transform 140ms ease-out,opacity 140ms ease-out}
.agent-voice-ring-outer{border-top-color:#d9f3b9;border-right-color:#9acdc1;box-shadow:0 0 22px #a8d8cf27;transform:rotate(-28deg) scale(.88)}
.agent-voice-ring-inner{width:clamp(126px,12vw,176px);border-bottom-color:#dff3c5;border-left-color:#9acdc1;transform:rotate(38deg) scale(.76)}
body.agent-room-preview .agent-tile-orb{z-index:1}
body[data-agent-state=listening] .orb-flow{animation-duration:26s}
body[data-agent-state=listening] .orb-aura{animation-duration:32s;opacity:.36}
body[data-agent-state=thinking] .orb-flow{animation-duration:3.8s}
body[data-agent-state=thinking] .orb-ring{animation-duration:3.8s}
body[data-agent-state=paused] .agent-tile-orb>span,body[data-agent-state=paused] .orb-aura{animation-play-state:paused}
body[data-agent-state=paused] .orb-aura{opacity:.24}
@media(max-width:760px){.agent-voice-ring{width:74px;border-width:1px}.agent-voice-ring-inner{width:64px}}
@media(prefers-reduced-motion:reduce){.agent-voice-ring{transition:none!important;opacity:0!important;transform:none!important}}
