:root {
  --green: #0e6b52;
  --green-ink: #0b5643;
  --green-soft: #d9efe6;
  --ink: #1d2125;
  --muted: #5f676e;
  --line: #e3e6e8;
  --line-strong: #d3d7da;
  --rail: #f7f8f8;
  --hover: #eceeef;
  --bubble: #f1f3f3;
  --mark: #fbefc6;
  --danger: #a3321f;
  --font: "Instrument Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.app { display: flex; flex-wrap: wrap; min-height: 100vh; }

/* Rail */
.rail { flex: 0 0 264px; background: var(--rail); border-right: 1px solid #eceeef; display: flex; flex-direction: column; padding: 14px 12px; }
.rail-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
.rail-toggle { display: none; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; font-size: 14px; }
.rail-body { display: flex; flex-direction: column; flex: 1; gap: 2px; }
.rail-btn { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; font-weight: 500; text-align: left; }
.rail-btn:hover { background: var(--hover); }
.rail-label { margin: 18px 10px 6px; font-size: 13px; color: var(--muted); }
.rail-empty { margin: 0 10px; font-size: 13px; color: var(--muted); }
.history { display: flex; flex-direction: column; gap: 2px; }
.thread { text-align: left; min-height: 38px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread:hover { background: var(--hover); }
.thread[aria-current="true"] { background: #e9ecec; }
.account { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-weight: 600; font-size: 13px; flex-shrink: 0; }
.account-text { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); line-height: 1.3; }
.account-text strong { color: var(--ink); font-weight: 500; font-size: 14px; }

/* Stage */
.stage { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; min-height: 56px; }
.scope select { appearance: none; border: 0; border-radius: 10px; padding: 8px 32px 8px 12px; font-size: 16px; font-weight: 600; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%231d2125' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center; cursor: pointer; }
.scope select:hover { background-color: var(--hover); }
.sample-flag { font-size: 13px; color: #6b5418; background: #fbf3dc; border-radius: 999px; padding: 3px 10px; }

.workspace { flex: 1; display: flex; flex-wrap: wrap; align-items: stretch; }
.column { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; }
.scroll { flex: 1; padding: 16px 32px 8px; }
.scroll > * { max-width: 760px; margin-left: auto; margin-right: auto; }

/* Empty */
.empty { padding: 72px 0 24px; text-align: center; }
.empty h1 { font-size: 28px; font-weight: 600; letter-spacing: -.01em; margin: 16px 0 8px; }
.empty p { margin: 0 auto; color: var(--muted); max-width: 52ch; }
.suggest { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.suggestion { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 22px; background: #fff; font-size: 14px; }
.suggestion:hover { background: var(--rail); }

/* Conversation */
.conversation { display: flex; flex-direction: column; gap: 28px; padding-bottom: 12px; }
.turn { display: flex; flex-direction: column; gap: 22px; }
.q { align-self: flex-end; max-width: 75%; margin: 0; background: var(--bubble); border-radius: 20px; padding: 10px 18px; font-size: 16px; font-weight: 400; }
.reply { display: flex; gap: 16px; }
.reply > svg { flex-shrink: 0; }
.reply-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.answer { margin: 0; font-size: 16px; line-height: 1.75; }
.cite { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin: 0 1px; vertical-align: 1px; border: 0; border-radius: 10px; background: #e8ecec; color: #3d454c; font: 600 12px/1 var(--font); }
.cite:hover, .cite[aria-pressed="true"] { background: var(--green); color: #fff; }
.meta { margin: 0; font-size: 13px; color: var(--muted); }
.thinking { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.bar { height: 12px; border-radius: 6px; background: linear-gradient(90deg, #eef0f1 0%, #f7f8f8 50%, #eef0f1 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.bar:nth-child(2) { width: 86%; } .bar:nth-child(3) { width: 58%; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .bar { animation: none; } }
.notfound { margin: 0; font-size: 16px; line-height: 1.7; }
.notfound + .meta { margin-top: -8px; }

.sources { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.src-card { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; }
.src-card:hover { background: var(--rail); }
.src-card[aria-current="true"] { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.src-top { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.src-num { width: 18px; height: 18px; border-radius: 9px; background: var(--green-soft); color: var(--green); font-weight: 600; font-size: 11px; display: grid; place-items: center; }
.src-title { font-weight: 600; font-size: 14px; }
.src-ex { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.icon-act { width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); display: grid; place-items: center; }
.icon-act:hover { background: var(--hover); color: var(--ink); }
.study-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 18px; background: #fff; font-size: 14px; font-weight: 500; }
.study-btn:hover { border-color: var(--green); color: var(--green-ink); }
.study-btn[disabled] { opacity: .6; cursor: default; }

/* Study */
.study { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 18px; background: #fcfdfc; }
.study h3 { margin: 0; font-size: 18px; font-weight: 600; }
.study h4 { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--green-ink); }
.study p, .study li { font-size: 15px; line-height: 1.7; }
.study p { margin: 0; }
.study ul, .study ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.verse { padding: 10px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.verse + .verse { margin-top: 8px; }
.verse strong { display: block; font-size: 13px; color: var(--green-ink); margin-bottom: 2px; }
.quote { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--rail); font-size: 15px; }
.quote + .quote { margin-top: 8px; }
.quote span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; background: #fbf3dc; color: #6b5418; font-size: 12px; font-weight: 500; vertical-align: 2px; }

/* Composer */
.composer-wrap { padding: 8px 32px 16px; }
.composer, .composer-note { max-width: 760px; margin-left: auto; margin-right: auto; }
.composer { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 10px 10px 10px 18px; border: 1px solid #dfe2e4; border-radius: 22px; background: #fff; box-shadow: 0 4px 16px rgba(29,33,37,.06); }
.composer:focus-within { border-color: #b9c1c6; }
.composer textarea { flex: 1; min-width: 0; resize: none; border: 0; outline: none; background: transparent; padding: 8px 0; line-height: 1.5; max-height: 160px; font-size: 16px; }
.send { width: 38px; height: 38px; border: 0; border-radius: 19px; background: var(--green); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.send:hover { background: var(--green-ink); }
.send[disabled] { background: #9fc4b6; cursor: default; }
.composer-note { margin-top: 8px; font-size: 12px; color: var(--muted); text-align: center; display: flex; gap: 8px; justify-content: center; }
.error { color: var(--danger); font-weight: 500; }
.error:empty { display: none; }

/* Source pane */
.pane { display: none; flex: 0 1 420px; min-width: 0; flex-direction: column; gap: 16px; padding: 20px 24px; border-left: 1px solid var(--line); background: #fff; }
.app.has-source .pane { display: flex; }
.pane-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pane-kind { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.pane h2 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.3; }
.pane-file { margin: 4px 0 0; font-size: 12px; color: var(--muted); word-break: break-word; }
.icon-btn { width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; display: grid; place-items: center; color: var(--muted); flex-shrink: 0; }
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.player { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--rail); }
.play { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--green); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.track { position: relative; flex: 1; height: 4px; background: #dde1e3; border-radius: 2px; }
.fill { height: 100%; width: 0; background: var(--green); border-radius: 2px; }
.mark { position: absolute; top: -4px; width: 2px; height: 12px; background: #8a6d1d; }
.time { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.pane-note { margin: 0; font-size: 13px; color: var(--muted); }
.src-body { font-size: 15px; line-height: 1.75; }
.src-body p { margin: 0 0 12px; } .src-body p:last-child { margin: 0; }
.src-body .dim { color: #8a9197; }
.src-body mark { background: var(--mark); color: inherit; padding: 2px 3px; border-radius: 4px; }

/* Narrow screens */
@media (max-width: 760px) {
  .rail { flex: 1 1 100%; padding: 10px 12px; border-right: 0; border-bottom: 1px solid #eceeef; }
  .rail-top { padding: 0; }
  .rail-toggle { display: inline-block; }
  .rail-body { display: none; padding-top: 10px; }
  .rail.open .rail-body { display: flex; }
  .topbar { padding: 8px 12px; }
  .scroll { padding: 8px 16px; }
  .composer-wrap { padding: 8px 12px 14px; }
  .empty { padding-top: 32px; }
  .empty h1 { font-size: 24px; }
  .reply { gap: 10px; }
  .q { max-width: 90%; }
  .pane { flex: 1 1 100%; border-left: 0; border-top: 1px solid var(--line); padding: 16px; }
  .app.has-source .column { display: none; }
}

/* Agent activity and motion */
.avatar-logo { flex-shrink: 0; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; }
.avatar-logo.busy svg { animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.88); opacity: .7; } }
.steps { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.step { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); animation: fade-up .3s ease-out both; }
.step.todo { opacity: .45; }
.step.active { color: var(--ink); }
.step.done { color: var(--muted); }
.step-dot { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; border: 1.5px solid var(--line-strong); }
.step.done .step-dot { border-color: var(--green); background: var(--green); color: #fff; }
.step.done .step-dot svg { width: 12px; height: 12px; }
.step.active .step-dot { border-color: var(--green); border-top-color: transparent; animation: spin .8s linear infinite; }
.step.active { background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 40%, #9aa2a8 50%, var(--ink) 60%, var(--ink) 100%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: fade-up .3s ease-out both, shine 2.2s linear infinite; }
.step.active .step-dot { -webkit-text-fill-color: initial; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shine { from { background-position: 100% 0; } to { background-position: -200% 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.step.todo { animation: none; }
.reveal { animation: fade-in .45s ease-out both; }
@keyframes fade-in { from { opacity: 0; filter: blur(2px); } to { opacity: 1; filter: none; } }
.appear { animation: fade-up .35s ease-out both; }
.q { animation: fade-up .25s ease-out both; }
.app.has-source .pane { animation: slide-in .25s ease-out both; }
@keyframes slide-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.icon-act.ok { color: var(--green); }
.src-card, .study-btn, .suggestion, .thread, .rail-btn, .icon-act, .cite, .send { transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s; }
.send:active, .study-btn:active, .src-card:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) {
  .avatar-logo.busy svg, .step, .step.active, .step.active .step-dot, .reveal, .appear, .q, .app.has-source .pane { animation: none; }
  .step.active { -webkit-text-fill-color: var(--ink); background: none; }
}
.composer-wrap { position: sticky; bottom: 0; background: linear-gradient(to top, #fff 75%, rgba(255,255,255,0)); }

/* Mode switch and export */
.composer-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.modes { display: flex; flex-wrap: wrap; gap: 4px; margin-left: -8px; }
.mode { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid transparent; border-radius: 16px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.mode:hover { background: #f1f3f4; color: var(--ink); }
.mode[aria-checked="true"] { background: var(--green-soft); color: var(--green); border-color: #bfe0d2; }
.mode:focus-visible, .ghost-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.ghost-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid #dfe2e4; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.ghost-btn:hover:not([disabled]) { background: #f4f6f6; }
.ghost-btn[disabled] { color: #a9b0b5; cursor: default; }
.mode-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--green); background: var(--green-soft); border-radius: 999px; padding: 2px 9px; margin-bottom: 8px; }
.quotes { display: flex; flex-direction: column; gap: 10px; }
.quote-item { display: block; width: 100%; text-align: left; border: 1px solid #e6e9eb; border-left: 3px solid var(--green); border-radius: 10px; background: #fff; padding: 12px 14px; font: inherit; color: var(--ink); cursor: pointer; line-height: 1.55; }
.quote-item:hover { background: #f8faf9; }
.quote-item .q-src { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
@media (max-width: 640px) { .mode span.lbl-long { display: none; } .sample-flag { display: none; } }

/* Voice (CHG-020): mic button, consent and the orb. */
.mic { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line, #dfe3e1); background: transparent; color: inherit; display: inline-grid; place-items: center; cursor: pointer; margin-left: auto; margin-right: 6px; }
.mic:hover { background: #eef4f1; }
.voice[hidden] { display: none; }
.voice { position: fixed; inset: 0; background: rgba(20, 28, 25, .38); display: grid; place-items: center; z-index: 50; padding: 16px; }
.voice-card { background: #fff; color: #1d2421; border-radius: 18px; max-width: 420px; width: 100%; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.18); text-align: center; }
.voice-card h2 { margin: 0 0 8px; font-size: 20px; }
.voice-card p { color: #4a524e; line-height: 1.5; }
.voice-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.primary-btn { background: #0e6b52; color: #fff; border: 0; border-radius: 999px; padding: 9px 16px; font: inherit; cursor: pointer; }
.voice-status { font-weight: 600; margin: 14px 0 4px; }
.voice-heard { min-height: 1.5em; font-style: italic; }
.orb { position: relative; width: 132px; height: 132px; margin: 8px auto 0; }
.orb span { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #7fd1b4, #0e6b52 62%, #08402f); opacity: .9; }
.orb span:nth-child(2) { inset: -10px; opacity: .25; }
.orb span:nth-child(3) { inset: -22px; opacity: .12; }
.orb[data-state="listening"] span { animation: orb-listen 1.4s ease-in-out infinite; }
.orb[data-state="listening"] span:nth-child(2) { animation-delay: .2s; }
.orb[data-state="listening"] span:nth-child(3) { animation-delay: .4s; }
.orb[data-state="thinking"] span:first-child { animation: orb-think 1.2s linear infinite; background: conic-gradient(#0e6b52, #7fd1b4, #0e6b52); }
.orb[data-state="speaking"] span { animation: orb-speak .5s ease-in-out infinite alternate; }
@keyframes orb-listen { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes orb-think { to { transform: rotate(360deg); } }
@keyframes orb-speak { from { transform: scale(.96); } to { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .orb span { animation: none !important; } }

.quote { margin: 10px 0 0; padding: 6px 12px; border-left: 3px solid var(--accent, #1f6f5c); color: inherit; font-style: italic; }

.doc-frame { width: 100%; height: 70vh; border: 1px solid var(--line, #e5e5e5); border-radius: 10px; margin-bottom: 12px; background: #fff; }

.avatar-logo svg { filter: drop-shadow(0 2px 6px rgba(14,107,82,.35)); }
.avatar-logo.busy svg { animation: orb-pulse 1.4s ease-in-out infinite; }
@keyframes orb-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }

.voice-time { text-align: center; color: #6b7280; font-size: 13px; margin: 2px 0 6px; }
.icon-btn.round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #d8dde3; background: #fff; display: grid; place-items: center; }
#voice-mute[aria-pressed="true"] { background: #fde8e4; color: #b42318; }
.end-btn { background: #c2410c; color: #fff; border: 0; border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 600; cursor: pointer; }
.orb[data-state="speaking"] span { animation: orb-listen .9s ease-in-out infinite; }
.orb[data-state="thinking"] span { animation: orb-listen 2.2s ease-in-out infinite; opacity: .7; }

.talk-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: #0b2a22; color: #fff; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; box-shadow: 0 0 0 4px rgba(31,138,104,.15); }
.talk-btn:hover { background: #0e6b52; }
.talk-btn svg { animation: talk-wave 1.6s ease-in-out infinite; }
@keyframes talk-wave { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(.75); } }
@media (prefers-reduced-motion: reduce) { .talk-btn svg { animation: none; } }
.brand svg { filter: drop-shadow(0 2px 6px rgba(14,107,82,.35)); }
.orb-icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); }

.hero-orb { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; box-shadow: 0 0 0 10px rgba(31,138,104,.10), 0 0 0 22px rgba(31,138,104,.05), 0 12px 30px rgba(8,64,47,.35); animation: hero-breathe 3.2s ease-in-out infinite; }
.hero-orb:hover { transform: scale(1.04); }
@keyframes hero-breathe { 0%,100% { box-shadow: 0 0 0 10px rgba(31,138,104,.10), 0 0 0 22px rgba(31,138,104,.05), 0 12px 30px rgba(8,64,47,.35); } 50% { box-shadow: 0 0 0 14px rgba(31,138,104,.14), 0 0 0 30px rgba(31,138,104,.06), 0 12px 30px rgba(8,64,47,.35); } }
@media (prefers-reduced-motion: reduce) { .hero-orb { animation: none; } }

.call-bar { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line, #e3e8e6); border-radius: 16px; padding: 8px 10px; margin-bottom: 8px; background: var(--rail, #f6f8f7); }
.call-bar[hidden] { display: none; }
.call-text { flex: 1; min-width: 0; }
.call-status { margin: 0; font-weight: 600; font-size: 14px; }
.call-cap { margin: 0; font-size: 13px; color: #5d6b66; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-time { font-variant-numeric: tabular-nums; font-size: 13px; color: #5d6b66; }
.orb-mini { border-radius: 50%; display: grid; place-items: center; }
.orb-mini[data-state="listening"] { animation: mini-pulse 1.3s ease-in-out infinite; }
.orb-mini[data-state="speaking"] { animation: mini-pulse .6s ease-in-out infinite; }
.orb-mini[data-state="thinking"] svg { animation: orb-think 2.4s linear infinite; }
@keyframes mini-pulse { 0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(52,185,142,.35); } 50% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(52,185,142,0); } }
@media (prefers-reduced-motion: reduce) { .orb-mini, .orb-mini svg { animation: none !important; } }
.call-bar { max-width: 760px; margin-left: auto; margin-right: auto; }
.talk-btn[hidden] { display: none; }
/* Talk button in the Lumen palette with a live waveform (SoundCloud-like bars). */
.talk-btn { background: #e3f2ec; color: #0e6b52; box-shadow: none; border: 1px solid #c9e6da; }
.talk-btn:hover { background: #d3ece2; }
.wave { display: inline-flex; align-items: center; gap: 2px; height: 18px; }
.wave i { display: block; width: 2.5px; height: calc(var(--h) * 1%); border-radius: 2px; background: currentColor; animation: wave-bar 1.1s ease-in-out infinite; animation-delay: var(--d); }
@keyframes wave-bar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.45); } }
@media (prefers-reduced-motion: reduce) { .wave i { animation: none; } }
/* Simple flat logo everywhere: a green circle with the open book, no gradient, shine or shadow. */
.avatar-logo svg, .brand svg { filter: none; }
.hero-orb { box-shadow: 0 0 0 8px var(--green-soft); animation: none; }
.hero-orb:hover { transform: none; box-shadow: 0 0 0 8px #c9e6da; }
.orb-mini[data-state="thinking"] svg { animation: orb-fade 1.2s ease-in-out infinite; }
@keyframes orb-fade { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
/* Talk sits next to Send, on the right of the composer. */
.send-group { display: flex; align-items: center; gap: 8px; }
