/* TALK TO AGENT — compact voice dock inside the employee profile + portrait reactions (no new art).
   Portrait states: listening = breathing cyan ring · thinking = soft shimmer · speaking = glow + lift driven by the
   agent's REAL voice level (--tv) · muted = dimmed ring. Jason uses his existing expression portraits. */
.tk { margin: 10px 0 12px; }
.tk .tk-start { width: 100%; min-height: 38px; font-size: 11px !important; letter-spacing: .32em !important; }
.tk-mic { width: 9px; height: 13px; border: 2px solid currentColor; border-radius: 6px; position: relative; display: inline-block; margin-right: 4px; }
.tk-mic::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 3px; border-bottom: 2px solid currentColor; transform: translateX(-50%); }
.tk-live { padding: 8px 10px; background: linear-gradient(180deg, rgba(3, 14, 22, .92), rgba(2, 8, 14, .95)); border: 1px solid rgba(143, 227, 255, .25);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.tk-live[hidden] { display: none; }
.tk-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tk-state { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; min-width: 0; font: 600 10px "Bahnschrift", "Segoe UI", sans-serif; letter-spacing: .28em; }
.tk-state b { color: var(--a, #8fe9f5); font-weight: 700; } .tk-state em { font-style: normal; color: #bfeaff; }
.tk-state i { width: 8px; height: 8px; border-radius: 50%; background: #3ab8ff; box-shadow: 0 0 10px #3ab8ff; flex: none; animation: tkbreath 1.6s ease-in-out infinite; }
.tk[data-mode="speaking"] .tk-state i { background: var(--a, #8fe9f5); box-shadow: 0 0 12px var(--a, #8fe9f5); }
.tk[data-mode="thinking"] .tk-state i { background: #e9c46a; box-shadow: 0 0 10px #e9c46a; }
.tk[data-mode="muted"] .tk-state i { background: #ff786e; box-shadow: none; animation: none; } .tk[data-mode="muted"] .tk-state em { color: #ffb3ab; }
@keyframes tkbreath { 50% { opacity: .45; transform: scale(.8); } }
.tk-heard, .tk-sub { margin: 8px 0 0; font: 400 13px/1.45 "Bahnschrift", "Segoe UI", sans-serif; }
.tk-heard { color: #e6c27a; font-style: italic; min-height: 0; } .tk-heard:empty { display: none; }
.tk-sub { color: #e4f1fa; } .tk-sub:empty { display: none; }
.tk-sub::before { content: attr(data-who); }
.tk-proposal { margin-top: 8px; padding: 8px 10px; border-top: 1px solid rgba(233, 196, 106, .5); border-bottom: 1px solid rgba(233, 196, 106, .5); background: rgba(20, 16, 4, .6); }
.tk-proposal b { font: 600 9.5px "Bahnschrift", sans-serif; letter-spacing: .32em; color: #e9c46a; } .tk-proposal p { margin: 4px 0 8px; color: #f0e6cc; font-size: 12.5px; }
.tk-proposal div { display: flex; gap: 8px; flex-wrap: wrap; } .tk-proposal small { display: block; margin-top: 6px; color: rgba(220, 210, 180, .7); font-size: 11px; }
.tk-type { display: flex; gap: 6px; margin-top: 8px; } .tk-type[hidden] { display: none; }
.tk-type input { flex: 1; min-width: 0; height: 30px; padding: 0 10px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(143, 227, 255, .3); color: #e8f6ff; font: 13px "Bahnschrift", sans-serif; }

/* portrait reactions (the existing portrait in the profile header) */
.phead img.tk-img { --tv: 0; transition: filter .12s linear, transform .12s linear, box-shadow .3s; transform-origin: 50% 85%; }
.phead img.tk-img[data-tk="listening"] { animation: tklisten 2.2s ease-in-out infinite; }
.phead img.tk-img[data-tk="thinking"] { animation: tkthink 1.4s ease-in-out infinite; }
.phead img.tk-img[data-tk="speaking"] { transform: translateY(calc(var(--tv) * -2px)) scale(calc(1 + var(--tv) * .035)); filter: brightness(calc(1 + var(--tv) * .35)) drop-shadow(0 0 calc(4px + var(--tv) * 16px) var(--a, #8fe9f5)); }
.phead img.tk-img[data-tk="muted"] { filter: saturate(.6) brightness(.85); }
@keyframes tklisten { 0%, 100% { box-shadow: 0 0 0 1px rgba(58, 184, 255, .5), 0 0 6px rgba(58, 184, 255, .3); } 50% { box-shadow: 0 0 0 2px rgba(58, 184, 255, .9), 0 0 18px rgba(58, 184, 255, .55); } }
@keyframes tkthink { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.18) drop-shadow(0 0 8px rgba(233, 196, 106, .55)); } }
@media (prefers-reduced-motion: reduce) { .phead img.tk-img, .tk-state i { animation: none !important; transition: none; } }

/* quick SIGN OUT (top-right, beside fullscreen; only while signed in) */
.hq-signout { pointer-events: auto; position: absolute; top: 12px; right: 50px; display: flex; align-items: center; gap: 6px; padding: 4px 8px; background: none; border: 0; cursor: pointer;
  color: rgba(220, 240, 255, .45); font: 600 9px "Bahnschrift", sans-serif; letter-spacing: .3em; transition: color .2s; }
.hq-signout[hidden] { display: none; }
.hq-signout span { font-size: 13px; letter-spacing: 0; } .hq-signout b { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .3s; font-weight: 600; }
.hq-signout:hover, .hq-signout:focus-visible { color: #ffb3ab; outline: none; } .hq-signout:hover b, .hq-signout:focus-visible b { max-width: 120px; }
.tk-mic { width: auto; height: auto; border: 0; border-radius: 0; font-size: 14px; letter-spacing: 0; margin-right: 2px; } .tk-mic::after { display: none; }
