/* ai-calls scenes: styles for js/scenes/ai-calls.js only, every class prefixed ac-. */

/* Chip row shared by usage, assistant and the teleprompter mode switch */
.ac-tabs { display: flex; gap: 6px; }
.ac-tabs button { position: relative; display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 13px; white-space: nowrap;
  font: 600 11px/1 -apple-system, system-ui; color: var(--notch-text-2); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.06);
  transition: background var(--m-base), color var(--m-base), transform var(--m-fast) var(--ease-quint); }
.ac-tabs button::after { content: ""; position: absolute; inset: -6px -2px; }
.ac-tabs button:hover { color: var(--notch-text); }
.ac-tabs button[aria-pressed="true"] { background: rgba(255,255,255,.16); color: var(--notch-text); }
.ac-tabs button.press { transform: scale(.94); }
.ac-tabs button:focus-visible { outline: 2px solid var(--notch-blue); outline-offset: 2px; }

/* Composer: assistant and agent reply */
.ac-comp { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 5px 0 14px; font-size: 13px; }
.ac-in { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-comp .ac-in { flex: 0 1 auto; }
.ac-comp .caret { flex: none; height: 15px; }
.ac-comp .ac-send { margin-left: auto; width: 30px; padding: 0; }
.ac-comp .ac-send .ic { font-size: 15px; }
.ac-in:empty::before { content: attr(data-ph); color: var(--notch-text-2); }
.ac-in:empty ~ .caret { display: none; }
.ac-me { align-self: flex-end; max-width: 80%; padding: 7px 12px; border-radius: 14px 14px 4px 14px; background: rgba(10,132,255,.78); font-size: 13px; line-height: 1.3; }
.ac-pop { animation: ac-pop 360ms var(--ease-expo) both; }
@keyframes ac-pop { from { opacity: 0; transform: translateY(6px) scale(.97); } }
[hidden].ac-me, .ac-bot[hidden] { display: none; }

/* AI usage and quotas */
.ac-u { display: flex; flex-direction: column; gap: 16px; }
.ac-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ac-stats > div { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.ac-big { font-size: 26px; font-weight: 600; line-height: 1; letter-spacing: -.01em; }
.ac-lim { display: grid; grid-template-columns: 44px 1fr 74px; align-items: center; gap: 10px; }
.ac-lim .t2:last-child { text-align: right; }
.ac-foot { display: block; margin-top: auto; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Answer agents from the notch */
.ac-r { display: flex; flex-direction: column; }
.ac-th { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.ac-card { padding: 12px 14px; }
.ac-q { margin: 0 0 12px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.ac-res { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--notch-text-2); }
.ac-cap { align-self: flex-end; font-size: 11px; }

/* Assistant */
.ac-a { display: flex; flex-direction: column; }
.ac-chat { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.ac-bot { display: flex; gap: 8px; align-items: flex-start; animation: ac-pop 360ms var(--ease-expo) both; }
.ac-av { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 7px; background: rgba(255,255,255,.1); }
.ac-av .ic { font-size: 13px; }
.ac-bot p { font-size: 13px; line-height: 1.4; min-height: 36px; }
.ac-note { position: absolute; left: 0; right: 0; bottom: 48px; font-size: 11px; }

/* Web Suggestions: own results first, completions fade in under them */
.ac-w { top: 40px; bottom: 10px; }
.ac-bar { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px; font-size: 14px; }
.ac-bar .ic { font-size: 15px; color: var(--notch-text-2); }
.ac-bar .ac-in { flex: 0 1 auto; }
.ac-bar .caret { height: 16px; }
.ac-gl { margin: 10px 0 4px 4px; font: 600 11px/1 -apple-system, system-ui; color: var(--notch-text-2); }
.ac-ls { display: grid; gap: 2px; }
.ac-ls li, .ac-ls button { display: flex; align-items: center; gap: 10px; width: 100%; height: 26px; padding: 0 10px; border-radius: 8px; font-size: 13px; color: var(--notch-text); text-align: left; }
.ac-ls .ic { font-size: 14px; color: var(--notch-text-2); flex: none; }
.ac-ls span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-ls small { font: 600 11px/1 -apple-system, system-ui; color: var(--notch-text-2); }
.ac-ls button { position: relative; transition: background var(--m-base); }
.ac-ls button::after { content: ""; position: absolute; inset: -1px 0; }
.ac-ls button:hover { background: rgba(255,255,255,.07); }
.ac-ls button[aria-selected="true"] { background: var(--notch-blue); }
.ac-ls button[aria-selected="true"] .ic, .ac-ls button[aria-selected="true"] small { color: #fff; }
.ac-ls button:focus-visible { outline: 2px solid var(--notch-blue); outline-offset: 1px; }
.ac-w .ac-loc, .ac-w .ac-g1, .ac-w .ac-g2, .ac-w .ac-web li { opacity: 0; translate: 0 4px; transition: opacity 240ms var(--ease-out), translate 240ms var(--ease-out); }
.ac-w.l .ac-loc, .ac-w.l .ac-g1, .ac-w.w .ac-g2, .ac-w.w .ac-web li { opacity: 1; translate: 0 0; }
.ac-w .ac-web li { transition-delay: calc(var(--i, 0) * 70ms); }

/* Transcribe */
.ac-t { display: flex; flex-direction: column; gap: 10px; }
.ac-fi { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: rgba(255,255,255,.1); }
.ac-fi .ic { font-size: 17px; }
.ac-t .row > .spin { margin-left: auto; margin-right: 6px; }
.ac-wv { position: relative; display: flex; align-items: center; justify-content: space-between; height: 36px; padding: 0 4px; }
.ac-wv b { width: 3px; border-radius: 2px; background: rgba(255,255,255,.3); flex: none; }
.ac-ph { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 6px; border-right: 2px solid var(--notch-blue); background: rgba(10,132,255,.2);
  transition: width 2700ms linear; }
.ac-tl { display: grid; gap: 2px; }
.ac-tl li { display: flex; gap: 12px; align-items: center; height: 28px; padding: 0 10px; border-radius: 8px; font-size: 13px; background: rgba(255,255,255,.05);
  opacity: 0; translate: 0 4px; transition: opacity 280ms var(--ease-out), translate 280ms var(--ease-out); }
.ac-tl li.on { opacity: 1; translate: 0 0; }
.ac-tl time { flex: none; width: 34px; font-size: 12px; color: var(--notch-blue); }
.ac-tl span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Camera preview: a mirror floating on the desktop */
.ac-mir { position: absolute; width: 240px; height: 150px; overflow: hidden; border-radius: 16px; cursor: grab; touch-action: none;
  background: radial-gradient(90% 80% at 30% 20%, #3b4a6b, #161a28 70%); border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.6); animation: ac-in 520ms var(--ease-expo) both; }
.ac-mir.lift { cursor: grabbing; scale: 1.03; }
.ac-mir:focus-visible { outline: 2px solid var(--notch-blue); outline-offset: 2px; }
.ac-hd { position: absolute; left: 50%; top: 34px; width: 52px; height: 52px; margin-left: -26px; border-radius: 50%;
  background: linear-gradient(180deg, #f0c9a8, #d9a67f); animation: ac-sway 3s var(--ease-inout) infinite alternate; }
.ac-sh { position: absolute; left: 50%; top: 96px; width: 130px; height: 90px; margin-left: -65px; border-radius: 65px 65px 0 0; background: linear-gradient(180deg, #4f6bd8, #2c3b86); }
.ac-live { position: absolute; left: 10px; top: 10px; display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  font: 600 11px/1 -apple-system, system-ui; color: #fff; background: rgba(0,0,0,.5); }
@keyframes ac-in { from { opacity: 0; scale: .9; filter: blur(6px); } }
@keyframes ac-sway { from { translate: -4px 0; } to { translate: 4px 1px; } }

/* Teleprompter */
.ac-pm { justify-content: space-between; margin-bottom: 8px; }
.ac-stt { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ac-tp { height: 102px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.ac-tpi { transition: translate 400ms var(--ease-out); }
.ac-tpi p { height: 34px; font-size: 20px; line-height: 34px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-tpi span { color: rgba(255,255,255,.34); transition: color 160ms var(--ease-out); }
.ac-tpi span.said, .ac-p.flat .ac-tpi span { color: var(--notch-text); }

@media (prefers-reduced-motion: reduce) {
  .ac-pop, .ac-bot, .ac-mir, .ac-hd { animation: none; }
  .ac-tabs button, .ac-ls button, .ac-ph, .ac-tpi, .ac-tpi span { transition: none; }
  .ac-w .ac-loc, .ac-w .ac-g1, .ac-w .ac-g2, .ac-w .ac-web li, .ac-tl li { transition: none; }
}
