.voice-dock { scroll-margin-top: calc(var(--header-h) + 16px); margin-bottom: clamp(22px, 3.2vw, 36px); }
.voice-dock[hidden] { display: none; }
.voice-bar-btn { width: 100%; display: flex; align-items: center; gap: 14px; padding: 9px 12px 9px 9px; border-radius: 16px; text-align: left; color: var(--bs-text-inverse); background: color-mix(in srgb, var(--bs-white) 6%, transparent); box-shadow: inset 0 0 0 1px var(--bs-border-inverse); cursor: pointer; transition: background 0.2s ease, box-shadow 0.2s ease; }
.voice-bar-btn:hover { background: color-mix(in srgb, var(--bs-white) 10%, transparent); box-shadow: inset 0 0 0 1px var(--bs-navy-500); }
.voice-bar-mic { position: relative; display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; color: var(--bs-navy); background: var(--bs-lime); }
.voice-bar-mic .voice-mic { width: 20px; height: 20px; }
.voice-bar-mic::after { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: voice-bar-pulse 2.6s ease-out infinite; }
@keyframes voice-bar-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--bs-lime) 50%, transparent); } 70%, 100% { box-shadow: 0 0 0 11px color-mix(in srgb, var(--bs-lime) 0%, transparent); } }
.voice-bar-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.voice-bar-text b { font: 600 15.5px/1.3 var(--bs-font-heading); color: var(--bs-text-inverse); }
.voice-bar-text small { font-size: 13px; line-height: 1.35; color: var(--bs-text-muted-inverse); }
.voice-bar-go { flex: none; padding: 7px 14px; border-radius: 999px; font: 600 13px/1 var(--bs-font-body); color: var(--bs-navy); background: var(--bs-lime); }
.voice-dock.is-open .voice-bar-go { display: none; }
.voice-bar { display: flex; align-items: center; gap: 10px; }
.voice-bar-btn { flex: 1; min-width: 0; }
.voice-dock.is-open .voice-bar-mic::after { animation: none; }
.voice-expand { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s ease; }
.voice-dock.is-open .voice-expand { grid-template-rows: 1fr; }
.voice-expand-in { min-height: 0; overflow: hidden; padding: 0 2px; }
.voice-dock .voice { margin-top: 12px; }
.voice-close { flex: none; min-height: 44px; padding: 8px 18px; border-radius: 999px; font: 600 14px/1 var(--bs-font-body); color: var(--bs-text-inverse); background: transparent; box-shadow: inset 0 0 0 1px var(--bs-border-inverse); cursor: pointer; }
.voice-close:hover { background: color-mix(in srgb, var(--bs-white) 8%, transparent); }
.voice-close[hidden] { display: none; }
.voice h3:focus { outline: none; }
.voice-jump-wrap { margin-top: clamp(28px, 4vw, 44px); }
.voice-jump-wrap[hidden] { display: none; }
.voice-jump { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.voice {
position: relative;
display: grid;
grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
grid-template-rows: auto 1fr;
grid-template-areas: "copy side" "ask side";
column-gap: clamp(28px, 4vw, 56px);
padding: clamp(24px, 4vw, 44px);
border-radius: 20px;
background: color-mix(in srgb, var(--bs-white) 5%, transparent);
box-shadow: inset 0 0 0 1px var(--bs-border-inverse);
}
.voice h3 { margin-top: 10px; font-family: var(--bs-font-heading); font-stretch: var(--bs-heading-stretch); font-weight: var(--bs-heading-weight); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.15; color: var(--bs-text-inverse); }
.voice-lede { margin-top: 14px; font-size: 1.0625rem; line-height: 1.55; color: var(--bs-text-muted-inverse); }
.voice-try-k { margin-top: 24px; font-family: var(--bs-font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bs-link-inverse); }
.voice-try { list-style: none; display: grid; gap: 8px; margin-top: 10px; }
.voice-try li {
justify-self: start;
padding: 8px 14px;
border-radius: 999px;
background: color-mix(in srgb, var(--bs-white) 7%, transparent);
box-shadow: inset 0 0 0 1px var(--bs-border-inverse);
font-size: 15px;
line-height: 1.35;
color: var(--bs-text-inverse);
}
.voice-copy { grid-area: copy; }
.voice-ask { grid-area: ask; align-self: start; }
.voice-side { grid-area: side; display: grid; align-content: start; gap: 18px; }
.voice-console {
display: grid;
gap: 16px;
padding: clamp(20px, 3vw, 28px);
border-radius: 16px;
background: var(--bs-navy-950);
box-shadow: inset 0 0 0 1px var(--bs-border-inverse), 0 24px 48px -28px color-mix(in srgb, var(--bs-navy-950) 80%, transparent);
}
.voice-console[hidden] { display: none; }
.voice-head { display: flex; align-items: center; gap: 16px; }
.voice-meta { display: grid; gap: 2px; }
.voice-state { font-family: var(--bs-font-heading); font-weight: 600; font-size: 1.125rem; color: var(--bs-text-inverse); }
.voice-timer { font-family: var(--bs-font-mono); font-feature-settings: var(--bs-numeric); font-size: 13px; color: var(--bs-text-muted-inverse); min-height: 1.2em; }
.voice-orb {
position: relative;
display: grid;
place-items: center;
flex: none;
width: 64px;
height: 64px;
border-radius: 50%;
background: var(--bs-surface-inverse);
box-shadow: inset 0 0 0 2px var(--bs-border-inverse);
color: var(--bs-text-inverse);
transition: box-shadow 0.2s ease, background 0.2s ease;
}
.voice-mic { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.voice-bars { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 3px; }
.voice-bars i { width: 4px; height: 10px; border-radius: 2px; background: var(--bs-lime); animation: voice-bar 0.9s ease-in-out infinite; }
.voice-bars i:nth-child(2) { animation-delay: -0.7s; }
.voice-bars i:nth-child(3) { animation-delay: -0.4s; }
.voice-bars i:nth-child(4) { animation-delay: -0.2s; }
.voice-bars i:nth-child(5) { animation-delay: -0.55s; }
@keyframes voice-bar { 0%, 100% { height: 8px; } 50% { height: 26px; } }
@keyframes voice-pulse { 0%, 100% { box-shadow: inset 0 0 0 2px var(--bs-blue-500), 0 0 0 0 color-mix(in srgb, var(--bs-blue-500) 45%, transparent); } 50% { box-shadow: inset 0 0 0 2px var(--bs-blue-500), 0 0 0 10px color-mix(in srgb, var(--bs-blue-500) 0%, transparent); } }
.voice[data-state="connecting"] .voice-orb { animation: voice-pulse 1.4s ease-in-out infinite; }
.voice[data-state="listening"] .voice-orb { box-shadow: inset 0 0 0 2px var(--bs-lime); }
.voice[data-state="speaking"] .voice-orb { background: var(--bs-navy-800); box-shadow: inset 0 0 0 2px var(--bs-lime), 0 0 0 6px color-mix(in srgb, var(--bs-lime) 18%, transparent); }
.voice[data-state="speaking"] .voice-mic { visibility: hidden; }
.voice[data-state="speaking"] .voice-bars { display: flex; }
.voice[data-state="off"] .voice-orb,
.voice[data-state="error"] .voice-orb { color: var(--bs-text-muted-inverse); }
.voice-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.voice-actions [hidden] { display: none; } 
.voice-btn .i { width: 20px; height: 20px; }
.voice-btn[disabled] { cursor: not-allowed; opacity: 0.55; }
.voice-status { min-height: 1.5em; font-size: 15px; line-height: 1.5; color: var(--bs-text-inverse); }
.voice-status:empty { display: none; }
.voice-status:focus { outline: none; }
.voice-turnstile { height: 0; overflow: hidden; }
.voice-turnstile.is-open { height: auto; overflow: visible; }
.voice-transcript { border-top: 1px solid var(--bs-border-inverse); padding-top: 14px; }
.voice-transcript[hidden] { display: none; }
.voice-transcript-k { font-family: var(--bs-font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bs-text-muted-inverse); }
.voice-log { list-style: none; display: grid; gap: 10px; max-height: 240px; margin-top: 10px; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.voice-line { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; font-size: 15px; line-height: 1.5; color: var(--bs-text-inverse); }
.voice-who { font-family: var(--bs-font-mono); font-size: 12px; line-height: 2; letter-spacing: 0.04em; text-transform: uppercase; color: var(--bs-text-muted-inverse); }
.voice-line--agent .voice-who { color: var(--bs-link-inverse); }
.voice-note { font-size: 13.5px; line-height: 1.55; color: var(--bs-text-muted-inverse); }
.voice-nojs { font-size: 15px; color: var(--bs-text-inverse); }
.voice-controls { display: grid; gap: 16px; }
.voice-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: color-mix(in srgb, var(--bs-white) 6%, transparent); box-shadow: inset 0 0 0 1px var(--bs-border-inverse); }
.voice-tabs[hidden] { display: none; }
.voice-tab { position: relative; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 6px 12px; border-radius: 9px; font: 600 14px/1.2 var(--bs-font-body); color: var(--bs-text-muted-inverse); background: transparent; cursor: pointer; }
.voice-tab:hover { color: var(--bs-text-inverse); }
.voice-tab[aria-selected="true"] { color: var(--bs-navy); background: var(--bs-white); }
.voice-tab-new { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font: 700 11.5px/1 var(--bs-font-mono); color: var(--bs-navy); background: var(--bs-lime); }
.voice-tab-new[hidden] { display: none; }
.voice-console.has-tabs .voice-panel { height: 400px; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.voice-console.has-tabs .voice-log { max-height: none; }
.voice-console.has-tabs .voice-transcript { border-top: 0; padding-top: 0; }
.voice-panel[hidden] { display: none; }
.voice-panel--work { position: relative; display: grid; align-content: start; gap: 14px; }
.voice-work-head { position: sticky; top: 0; z-index: 1; padding-bottom: 8px; margin-bottom: -6px; background: var(--bs-navy-950); box-shadow: 0 8px 8px -8px var(--bs-navy-950); }
.voice-demo-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font: 600 11.5px/1.3 var(--bs-font-mono); letter-spacing: 0.02em; color: var(--bs-text-inverse); background: var(--bs-navy-900); box-shadow: inset 0 0 0 1px var(--bs-border-inverse); }
.voice-channels { display: grid; gap: 14px; }
.voice-channels:empty { display: none; }
.voice-in { animation: voice-in 0.35s ease-out both; }
@keyframes voice-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.voice-mail .mail-tag--writing { color: var(--bs-navy-700); background: var(--bs-navy-50); box-shadow: inset 0 0 0 1px var(--bs-navy-100); }
.voice-mail .mail-tag--reply { color: var(--bs-secondary-text); background: var(--bs-secondary-bg); }
.voice-mail.mail--reply .mail-icon { background: var(--bs-status-recent-soft); color: var(--bs-status-recent-ink); box-shadow: none; }
.voice-caret::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -0.15em; background: currentColor; animation: voice-blink 1s steps(1) infinite; }
@keyframes voice-blink { 50% { opacity: 0; } }
.voice-phone { padding: 16px 18px 18px; }
.voice-phone .mail-top { padding-bottom: 12px; }
.voice-thread { list-style: none; display: grid; gap: 8px; margin-top: 14px; }
.voice-bubble { max-width: 82%; padding: 9px 12px; border-radius: 16px; font-size: 13.5px; line-height: 1.45; }
.voice-bubble time { display: block; margin-top: 3px; font: 11px/1.2 var(--bs-font-mono); opacity: 0.75; }
.voice-bubble--out { justify-self: end; border-bottom-right-radius: 5px; color: var(--bs-white); background: var(--bs-blue); }
.voice-bubble--in { justify-self: start; border-bottom-left-radius: 5px; color: var(--bs-text-strong); background: var(--bs-surface-sunken); }
.voice-bubble--typing { display: flex; gap: 4px; padding: 12px 14px; }
.voice-bubble--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--bs-text-muted); animation: voice-dot 1.2s ease-in-out infinite; }
.voice-bubble--typing i:nth-child(2) { animation-delay: 0.15s; }
.voice-bubble--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes voice-dot { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-3px); opacity: 1; } }
.voice-activity .mcard-head { padding: 11px 14px; }
.voice-activity-list { list-style: none; display: grid; padding: 4px 0; }
.voice-activity-list:empty::before { content: "Nothing yet."; display: block; padding: 8px 14px; color: var(--bs-text-muted); }
.voice-activity-list li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 7px 14px; font-size: 13px; line-height: 1.45; color: var(--bs-text); }
.voice-activity-list li + li { border-top: 1px solid var(--mk-line); }
.voice-activity-list time { font: 12px/1.6 var(--bs-font-mono); font-feature-settings: var(--bs-numeric); color: var(--bs-text-muted); }
.voice-activity-list li.voice-new { animation: voice-new 2.4s ease-out; }
@keyframes voice-new { from { background: var(--bs-status-recent-soft); } to { background: transparent; } }
@media (max-width: 1000px) {
.voice { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "copy" "side" "ask"; }
.voice-side { margin-top: 24px; }
.voice-ask .voice-try-k { margin-top: 28px; }
.voice-console.has-tabs .voice-panel { height: 380px; }
.voice-tab { font-size: 13.5px; padding: 6px 8px; }
}
@media (max-width: 560px) {
.voice { padding: 20px 16px; border-radius: 16px; }
.voice-actions .btn { width: 100%; }
}
@media (max-width: 560px) {
.voice-bar { gap: 8px; }
.voice-bar-btn { gap: 12px; }
.voice-bar-text b { font-size: 14.5px; }
.voice-bar-go { display: none; } 
.voice-close { padding: 8px 14px; }
.voice-tab { font-size: 13px; padding: 6px; gap: 6px; }
.voice-console.has-tabs .voice-panel { height: 360px; }
}
@media (prefers-reduced-motion: reduce) {
.voice-expand, .voice-bar-btn { transition: none; }
.voice-bar-mic::after { animation: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--bs-lime) 35%, transparent); }
.voice-in, .voice-activity-list li.voice-new { animation: none; }
.voice-caret::after, .voice-bubble--typing i { animation: none; }
.voice[data-state="connecting"] .voice-orb { animation: none; box-shadow: inset 0 0 0 2px var(--bs-blue-500); }
.voice-bars i { animation: none; height: 16px; }
}
