:root {
  color-scheme: dark;
  --bg: #090b0d;
  --surface: #101418;
  --line: #242b31;
  --ink: #f2f5f3;
  --muted: #8e9a9f;
  --accent: #7ce6c1;
  --accent-deep: #1d9f7b;
  --progress-purple: #a855f7;
  --subtle-purple-line: color-mix(in srgb, var(--progress-purple) 35%, transparent);
  --user-bubble: #3e6cba;
  --danger: #ff7f76;
  --font: "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% 22%, rgba(62, 137, 114, .09), transparent 31rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.shell {
  width: min(100%, 46rem);
  min-height: 100dvh;
  margin: auto;
  padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem max(1.25rem, env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  align-content: start;
  gap: 1.25rem;
}

.topbar { display: flex; align-items: center; justify-content: space-between; }
.eyebrow, .state-kicker {
  margin: 0 0 .25rem;
  color: var(--progress-purple);
  font-size: .69rem;
  font-weight: 750;
  letter-spacing: .19em;
}
.topbar h1 { margin: 0; color: var(--progress-purple); font-size: .95rem; font-weight: 750; letter-spacing: .19em; }
.topbar-actions { display: flex; align-items: center; gap: .75rem; }
.notifications-button {
  width: 2.35rem; height: 2.35rem; border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--text); cursor: pointer;
}
.notifications-button[aria-pressed="true"] { border-color: var(--accent); box-shadow: none; }
.notifications-button:disabled { opacity: .55; cursor: wait; }

.dialog-bar { height: 44px; display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: .4rem; }
.dialog-bar button { min-width: 0; border: 1px solid var(--subtle-purple-line); border-radius: .75rem; color: var(--ink); background: var(--surface); cursor: pointer; }
#dialog-selector { padding: 0 .8rem; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
#dialog-manager-button { font-weight: 800; letter-spacing: .08em; }
.dialog-bar button:focus-visible, #dialog-manager button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dialog-bar button:disabled { opacity: .55; cursor: wait; }

.conversation {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; min-height: 25rem; height: max-content;
}
.conversation:not([data-collapsed="true"]) { box-sizing: border-box; padding-top: 3rem; }
.voice-panel-toggle {
  position: absolute; top: 0; right: 0; z-index: 2;
  width: 2.75rem; height: 2.75rem; display: flex; align-items: center; justify-content: center;
  padding: 0; border: 0; border-radius: 50%;
  color: color-mix(in srgb, var(--muted) 68%, transparent); background: transparent; cursor: pointer;
}
.voice-panel-toggle span { display: flex; }
.voice-panel-toggle svg { width: .9rem; height: .9rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .16s ease; }
.voice-panel-toggle:hover { color: var(--ink); outline: none; }
.voice-panel-toggle:focus-visible { color: var(--ink); outline: 1px solid var(--muted); outline-offset: 1px; }
.conversation[data-collapsed="true"] {
  display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: center;
  gap: .25rem; min-height: 3.25rem; height: max-content; padding-block: .25rem;
}
.conversation[data-collapsed="true"] .voice-controls { display: contents; }
.conversation[data-collapsed="true"] .voice-mode { order: 2; padding: 0; }
.conversation[data-collapsed="true"] .voice-reply-mode { order: 3; }
.conversation[data-collapsed="true"] .orb {
  order: 1; width: 2.75rem; height: 2.75rem; aspect-ratio: 1; flex: 0 0 2.75rem; margin: 0;
}
.conversation[data-collapsed="true"] .voice-stop { order: 4; width: 2.75rem; min-width: 2.75rem; height: 2.75rem; min-height: 2.75rem; flex: 0 0 2.75rem; padding: 0; overflow: hidden; color: transparent; font-size: 0; }
.conversation[data-collapsed="true"] .voice-stop::before { content: "■"; color: var(--muted); font-size: .78rem; }
.conversation[data-collapsed="true"] .voice-panel-toggle { position: static; order: 5; flex: 0 0 2.75rem; }
.conversation[data-collapsed="true"] .voice-panel-toggle svg { transform: rotate(180deg); }
/* Voice collapse must not hide whole-turn progress. Keep its own row while
   leaving all existing compact voice controls available. */
.conversation[data-collapsed="true"] .live-transcript { display: none; }
.conversation[data-collapsed="true"]:has(.state-kicker:not([hidden])) { flex-wrap: wrap; }
.conversation[data-collapsed="true"] .state-kicker:not([hidden]) { display: block; order: -1; flex: 0 0 calc(100% - 3rem); margin: 0; overflow-wrap: anywhere; }
.conversation[data-collapsed="true"] .task-progress-robot:not([hidden]) { order: -2; flex: 0 0 2rem; }
.conversation[data-collapsed="true"] .orb-core { inset: 8%; box-shadow: none; animation: none; }
.conversation[data-collapsed="true"] .orb-ring { display: none; }
.orb {
  position: relative; width: clamp(10.5rem, 43vw, 15rem); aspect-ratio: 1;
  border: 0; border-radius: 50%; margin: 0 auto .8rem; margin-inline: auto; cursor: pointer;
  background: transparent; isolation: isolate;
}
body[data-voice-mode="push-to-talk"] .orb { touch-action: none; user-select: none; -webkit-user-select: none; }
body[data-voice-mode="push-to-talk"][data-ptt-pressed="true"] .orb-core {
  animation: listen .42s ease-in-out infinite alternate;
  filter: brightness(1.2);
}
.orb-core, .orb-ring { position: absolute; inset: 0; border-radius: 50%; }
.orb-core {
  inset: 18%;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--progress-purple) 72%, transparent);
  background: #10251f;
  box-shadow: 0 0 3rem color-mix(in srgb, var(--progress-purple) 34%, transparent), inset 0 0 2rem rgba(255,255,255,.18);
  animation: breathe 4.8s ease-in-out infinite;
}
.orb-avatar { width: 100%; height: 100%; display: block; object-fit: cover; user-select: none; pointer-events: none; }
.orb-core::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at 32% 24%, rgba(255,255,255,.17), transparent 31%), linear-gradient(145deg, transparent 50%, rgba(32,218,167,.14));
  box-shadow: inset 0 0 1.6rem rgba(5,16,14,.42);
}
.orb-ring { border: 1px solid color-mix(in srgb, var(--progress-purple) 36%, transparent); transform: scale(.78); opacity: 0; }
.ring-one { animation: ripple 3.8s ease-out infinite; }
.ring-two { animation: ripple 3.8s 1.9s ease-out infinite; }
body[data-voice="listening"] .orb-core { animation: listen 1.1s ease-in-out infinite alternate; }
body[data-voice="speaking"] .orb-core { animation: speak .58s ease-in-out infinite alternate; }
body[data-voice="thinking"] .orb-core { animation: rotate 2.4s linear infinite; }
body[data-voice="listening"] .orb-ring, body[data-voice="speaking"] .orb-ring { opacity: 1; }
.voice-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem; margin-bottom: .55rem; }
.voice-mode { display: flex; margin: 0; padding: .14rem; border: 1px solid var(--subtle-purple-line); border-radius: .7rem; background: var(--surface); }
.voice-mode label { position: relative; min-height: 2.75rem; min-width: 2.75rem; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.voice-mode input { position: absolute; opacity: 0; pointer-events: none; }
.voice-mode span { display: flex; width: 2.35rem; min-height: 2.35rem; padding: .4rem; align-items: center; justify-content: center; border-radius: .52rem; color: var(--muted); line-height: 1; }
.voice-mode-icon svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.voice-mode label::after { content: attr(data-tooltip); position: absolute; left: 50%; bottom: calc(100% + .42rem); z-index: 6; translate: -50% .2rem; padding: .32rem .45rem; border: 1px solid var(--subtle-purple-line); border-radius: .45rem; color: var(--ink); background: #0d1114; box-shadow: 0 .35rem 1rem rgba(0,0,0,.35); font-size: .67rem; font-weight: 650; line-height: 1.2; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s ease, translate .12s ease; }
.voice-mode label:hover::after, .voice-mode label:focus-within::after { opacity: 1; translate: -50% 0; }
.voice-mode input:checked + span { color: #07110e; background: var(--accent); }
.voice-mode input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.voice-reply-mode { min-width: 2.75rem; min-height: 2.75rem; display: flex; align-items: center; justify-content: center; padding: .4rem; border: 1px solid var(--subtle-purple-line); border-radius: .7rem; color: var(--muted); background: var(--surface); cursor: pointer; }
.voice-reply-mode span { display: flex; align-items: center; justify-content: center; }
.voice-reply-mode svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.voice-reply-mode[aria-pressed="true"] { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.voice-reply-mode:hover { color: var(--ink); border-color: var(--subtle-purple-line); }
.voice-reply-mode:focus-visible { color: var(--ink); border-color: var(--subtle-purple-line); outline: 2px solid var(--ink); outline-offset: 2px; }
.voice-reply-mode[aria-pressed="true"]:hover, .voice-reply-mode[aria-pressed="true"]:focus-visible { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); outline-color: var(--accent); }
.voice-stop { min-height: 2.75rem; padding: .5rem .75rem; border: 1px solid var(--subtle-purple-line); border-radius: .75rem; color: var(--muted); background: transparent; font-size: .72rem; cursor: pointer; }
.voice-stop:hover, .voice-stop:focus-visible { color: var(--ink); border-color: rgba(124,230,193,.55); }
.conversation h2 { margin: .2rem 0 .45rem; max-width: 28rem; font-size: clamp(1.45rem, 5vw, 2rem); letter-spacing: -.035em; text-wrap: balance; }
.hint { margin: 0; color: var(--muted); font-size: .92rem; }
.live-transcript { min-height: 1.5rem; margin: 1.25rem 0 0; color: #cbd4d1; font-size: .95rem; font-style: italic; }
.live-transcript:empty { min-height: 0; margin-top: 0; }

.transcript-history { padding-top: 0; }
/* Exact-command consent: actions stay before an optional bounded JSON view. */
.onec-approval { min-width: 0; max-width: 100%; margin-top: .75rem; padding: .75rem; border: 1px solid var(--subtle-purple-line); border-radius: .85rem; background: var(--surface); overflow-wrap: anywhere; }
.onec-approval p { margin: 0 0 .65rem; font-size: .85rem; line-height: 1.4; }
.onec-approval-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.onec-approval-actions button { flex: 1 0 auto; min-height: 44px; max-width: 100%; padding: .5rem .7rem; border: 1px solid var(--subtle-purple-line); border-radius: .65rem; color: var(--ink); background: var(--bg); cursor: pointer; }
.onec-approval-actions button:first-child { color: #07110e; background: var(--accent); }
.onec-approval summary { min-height: 44px; padding-block: .75rem; cursor: pointer; font-size: .85rem; }
.onec-approval pre { max-width: 100%; max-height: min(12rem, 30dvh); margin: 0; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .75rem; }
.onec-approval button:focus-visible, .onec-approval summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.history-divider { width: 100%; height: 1px; border-radius: 999px; background: var(--progress-purple); opacity: .35; box-shadow: none; }
.history-older { min-height: 44px; margin-top: .65rem; padding: .5rem .8rem; border: 1px solid var(--subtle-purple-line); border-radius: .75rem; background: transparent; color: var(--muted); cursor: pointer; }
.history-older:hover:not(:disabled) { color: var(--ink); border-color: var(--accent); }
#transcript-list { display: grid; gap: .65rem; max-height: 24rem; margin: .75rem 0 0; padding: 0; overflow-y: auto; list-style: none; }
.transcript-entry { display: flex; align-items: center; gap: .45rem; width: 94%; }
.transcript-message { display: grid; grid-template-columns: minmax(0, auto) auto; align-items: end; gap: .45rem; width: fit-content; max-width: 88%; margin: 0; padding: .68rem .82rem; border-radius: .9rem; font-size: .84rem; line-height: 1.45; }
.transcript-message-text { min-width: 0; white-space: pre-wrap; overflow-wrap: break-word; }
.transcript-attachments { display: grid; grid-column: 1 / -1; gap: .42rem; min-width: 0; max-width: 100%; }
.transcript-attachment { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); align-items: center; gap: .62rem; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; padding: .46rem .58rem; border-radius: .72rem; background: rgba(255,255,255,.12); }
.transcript-attachment-icon { position: relative; width: 1.72rem; height: 2rem; justify-self: center; border: 2px solid currentColor; border-radius: .25rem; opacity: .95; }
.transcript-attachment-icon::after { content: ""; position: absolute; top: -.13rem; right: -.13rem; width: .55rem; height: .55rem; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; border-radius: 0 .2rem 0 .12rem; background: var(--user-bubble); }
.transcript-attachment-details { display: grid; min-width: 0; line-height: 1.2; }
.transcript-attachment-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.transcript-attachment-state { margin-top: .2rem; color: rgba(255,255,255,.78); font-size: .68rem; }
.transcript-time { grid-column: 2; justify-self: end; align-self: end; color: rgba(255,255,255,.92); font-size: .62rem; line-height: 1; white-space: nowrap; }
.transcript-user { justify-self: end; flex-direction: row-reverse; }
.transcript-user .transcript-message { max-width: calc(100% - 4.35rem); background: var(--user-bubble); color: #fff; border-bottom-right-radius: .25rem; }
.transcript-status { display: flex; align-items: center; justify-content: flex-end; gap: .25rem; flex: 0 0 4.35rem; width: 4.35rem; }
.transcript-assistant { justify-self: start; }
.transcript-assistant .transcript-message { background: var(--surface); border: 1px solid var(--subtle-purple-line); border-bottom-left-radius: .25rem; }
.transcript-assistant .transcript-time { color: var(--muted); }
.history-progress { width: .62rem; height: .62rem; flex: 0 0 auto; border-radius: 50%; background: var(--progress-purple); box-shadow: 0 0 .8rem rgba(168,85,247,.72); animation: history-progress-pulse 1.05s ease-in-out infinite alternate; }
.history-stop { min-height: 2.75rem; padding: .4rem .55rem; border: 0; color: var(--muted); background: transparent; font-size: .72rem; cursor: pointer; }
.history-stop:hover, .history-stop:focus-visible { color: var(--ink); outline: 1px solid var(--progress-purple); border-radius: .55rem; }

.section-heading { display: flex; align-items: center; justify-content: space-between; }
.section-heading h2 { margin: 0; font-size: .86rem; letter-spacing: .02em; }
.section-heading span { color: var(--muted); font-size: .8rem; }
.empty { margin: .25rem 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }

.composer {
  position: sticky; bottom: 0; z-index: 4;
  display: grid; gap: .45rem; min-width: 0;
  padding: .3rem 0 env(safe-area-inset-bottom);
  background: linear-gradient(180deg, transparent, var(--bg) .45rem);
}
.composer-row { display: grid; grid-template-columns: 3rem minmax(0, 1fr) 3rem; align-items: end; gap: .55rem; }
.composer-row > textarea, #login-username, #login-password {
  min-height: 3rem; border: 1px solid var(--subtle-purple-line); border-radius: 1rem; padding: 0 1rem;
  color: var(--ink); background: #0d1114; outline: none;
}
.composer-row > textarea { height: auto; padding-block: .72rem; line-height: 1.4; resize: none; overflow-y: hidden; }
.composer-row > textarea:focus, #login-username:focus, #login-password:focus { border-color: rgba(124,230,193,.65); box-shadow: 0 0 0 3px rgba(124,230,193,.08); }
.composer-row > button {
  border: 0; border-radius: 1rem; min-height: 3rem; color: #fff; background: var(--progress-purple);
  font-size: 1.35rem; font-weight: 800; cursor: pointer;
}
.composer-row > button:disabled { cursor: wait; opacity: .55; }
.composer-row .attach-button { color: var(--progress-purple); background: var(--bg); border: 1px solid var(--subtle-purple-line); font-size: 1.15rem; }
.composer-row .send-button { color: #fff; background: var(--user-bubble); }
.attachment-list { display: flex; gap: .45rem; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.attachment-list:empty { display: none; }
.attachment-chip { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .45rem; min-width: min(15rem, 78vw); max-width: 20rem; padding: .5rem .55rem .5rem .7rem; border: 1px solid var(--subtle-purple-line); border-radius: .75rem; background: var(--surface); }
.attachment-label { min-width: 0; }
.attachment-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: .78rem; font-weight: 650; }
.attachment-size { display: block; margin-top: .12rem; color: var(--muted); font-size: .68rem; }
.attachment-remove { width: 2.25rem; min-height: 2.25rem; border: 0; border-radius: .65rem; color: var(--muted); background: transparent; font-size: 1.05rem; cursor: pointer; }
.attachment-remove:hover, .attachment-remove:focus-visible { color: var(--danger); background: rgba(255,127,118,.08); }
.attachment-error { min-height: 0; margin: 0; color: var(--danger); font-size: .72rem; }
.attachment-error:empty { display: none; }

html[data-keyboard-open="true"] body { min-height: var(--visual-viewport-height, 100dvh); }
html[data-keyboard-open="true"] .shell {
  min-height: var(--visual-viewport-height, 100dvh);
  height: var(--visual-viewport-height, 100dvh);
  grid-template-rows: auto auto auto auto auto;
  overflow-y: auto;
  scroll-padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
}
html[data-keyboard-open="true"] .conversation { min-height: 25rem; }

dialog { width: min(calc(100% - 2rem), 27rem); border: 1px solid var(--subtle-purple-line); border-radius: 1.15rem; padding: 0; color: var(--ink); background: #101418; }
dialog::backdrop { background: rgba(3,5,6,.84); backdrop-filter: blur(6px); }
#auth-form { display: grid; gap: .85rem; padding: 1.4rem; }
#auth-form h2, #auth-form p { margin: 0; }
#auth-form > p:not(.eyebrow):not(.auth-error) { color: var(--muted); line-height: 1.5; font-size: .9rem; }
#auth-form label { font-size: .8rem; font-weight: 650; }
.remember-session { display: grid; grid-template-columns: auto 1fr; gap: .65rem; align-items: start; padding: .8rem; border: 1px solid var(--subtle-purple-line); border-radius: .8rem; color: var(--muted); line-height: 1.35; }
.remember-session input { margin-top: .15rem; accent-color: var(--accent); }
.remember-session strong { color: var(--ink); }
#auth-form button { min-height: 3rem; border: 0; border-radius: .85rem; background: var(--accent); color: #07110e; font-weight: 750; }
#auth-form button:disabled { cursor: wait; opacity: .62; }
#dialog-manager-form { display: grid; gap: 1rem; padding: 1.1rem; }
#dialog-manager-form header { display: flex; align-items: center; justify-content: space-between; }
#dialog-manager-form h2 { margin: 0; font-size: 1.1rem; }
#dialog-manager-form header button { width: 2.75rem; min-height: 2.75rem; border: 0; color: var(--muted); background: transparent; font-size: 1.35rem; }
#dialog-options { display: grid; gap: .4rem; max-height: 45dvh; overflow-y: auto; }
.dialog-option { min-height: 2.75rem; padding: .55rem .7rem; border: 1px solid var(--subtle-purple-line); border-radius: .7rem; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.dialog-option[aria-current="true"] { border-color: var(--accent); background: rgba(124,230,193,.08); }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.dialog-actions button { min-height: 2.75rem; border: 1px solid var(--subtle-purple-line); border-radius: .7rem; color: var(--ink); background: var(--surface); cursor: pointer; }
.dialog-actions .danger { color: var(--danger); }
.auth-error { min-height: 1rem; color: var(--danger); font-size: .78rem; }
.auth-error[data-kind="status"] { color: var(--muted); }

@keyframes breathe { 50% { transform: scale(1.055); filter: brightness(1.08); } }
@keyframes listen { to { transform: scale(1.1); filter: brightness(1.2); } }
@keyframes speak { to { transform: scale(1.14) skewX(1.5deg); filter: brightness(1.26); } }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes ripple { 0% { transform: scale(.55); opacity: 0; } 20% { opacity: .6; } 100% { transform: scale(1.15); opacity: 0; } }
@keyframes history-progress-pulse { to { opacity: .42; transform: scale(.78); box-shadow: 0 0 .28rem rgba(168,85,247,.45); } }

@media (max-width: 759px) {
  .shell {
    padding-left: max(.5rem, env(safe-area-inset-left));
    padding-right: max(.5rem, env(safe-area-inset-right));
  }
  html:not([data-keyboard-open="true"]) .shell { grid-template-rows: auto auto auto minmax(min-content, 1fr) auto; }
  /* Let the scrollport fill the elastic history row, not stop at 24rem. */
  html:not([data-keyboard-open="true"]) .transcript-history { display: flex; flex-direction: column; }
  html:not([data-keyboard-open="true"]) #transcript-list {
    flex: 1 1 0; height: 0; min-height: 3rem; max-height: none; align-content: start;
  }
  .composer-row { grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem; gap: .35rem; }
  .conversation, html[data-keyboard-open="true"] .conversation { min-height: 19rem; }
}
@media (min-width: 760px) {
  .shell { grid-template-rows: auto auto minmax(24rem, 1fr) auto auto; }
  .composer { position: static; }
}
html[data-keyboard-open="true"] .conversation[data-collapsed="true"] { min-height: 3.25rem; }
@media (max-width: 759px) {
  .conversation[data-collapsed="true"], html[data-keyboard-open="true"] .conversation[data-collapsed="true"] { min-height: 3.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* Local panel-only thinking animation: no native polling or input interception. */
.task-progress-robot { display: inline-flex; gap: .3rem; align-items: center; font-size: 1.6rem; pointer-events: none; animation: athena-task-think 1.3s ease-in-out infinite; }
.task-progress-robot[hidden], .state-kicker[hidden] { display: none !important; }
.task-progress-robot i { font-style: normal; animation: athena-task-dots .9s alternate infinite; }
@keyframes athena-task-think { 50% { transform: translateY(-3px) rotate(-5deg); } }
@keyframes athena-task-dots { to { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .task-progress-robot, .task-progress-robot i { animation: none; } }
