.runtime-card{margin:12px 0;max-width:100%;font-size:16px}.runtime-card h3{font:500 18px/1.4 var(--balu-font-ui,Lexend),sans-serif}.runtime-pre{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}.runtime-demo{display:block;color:var(--balu-primary);font-size:13px;margin:8px 0}.runtime-card small,.runtime-status{font-size:13px;color:var(--balu-muted)}.runtime-card .permission-footer{flex-wrap:wrap;gap:8px}.runtime-card button{min-height:44px}.runtime-sheet{max-height:85dvh;overflow:auto}.runtime-sheet>.secondary{display:block;width:100%;margin:8px 0}.runtime-sources{display:flex;gap:10px;flex-wrap:wrap;font-size:12px;margin:6px 4px 14px}.runtime-sources a{color:var(--balu-primary);max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.runtime-sheet audio{max-width:100%;margin:12px 0}.runtime-sheet #record-status{padding:10px 0;font-size:14px}.runtime-sheet small{display:block;margin-top:10px}.runtime-sheet textarea{width:100%;font:inherit}.runtime-card dl{display:grid;grid-template-columns:65px 1fr;gap:8px}.runtime-card dd{margin:0;overflow-wrap:anywhere}.runtime-status{padding:12px}

.chat-typing-presence{display:flex;align-items:center;gap:7px;margin:8px 5px 16px;padding:0;color:var(--balu-muted);font-size:12px;line-height:1.5;background:none;border:0;box-shadow:none}.chat-typing-dots{display:inline-flex;gap:3px}.chat-typing-dots i{width:4px;height:4px;border-radius:50%;background:currentColor;animation:chat-dot-pulse 1.2s infinite ease-in-out}.chat-typing-dots i:nth-child(2){animation-delay:.16s}.chat-typing-dots i:nth-child(3){animation-delay:.32s}@keyframes chat-dot-pulse{0%,70%,100%{opacity:.35;transform:translateY(0)}35%{opacity:1;transform:translateY(-2px)}}@media(prefers-reduced-motion:reduce){.chat-typing-dots i{animation:none;opacity:.7}}

/* Work stays in the conversation; navigation follows user needs. */
.companion-menu,.work-sections{display:grid;gap:0}.menu-row{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:16px;width:100%;background:transparent;border:0;border-bottom:1px solid var(--balu-border,#deded2);border-radius:0;padding:18px 4px;min-height:64px;color:var(--balu-ink,#293830);font:inherit}.menu-row strong{display:block;font-size:16px}.menu-row small{display:block;font-size:13px;font-weight:400;color:var(--balu-muted);margin-top:5px}.work-progress{display:flex;align-items:center;gap:10px;margin:4px 0 12px;padding:10px 4px;color:var(--balu-muted);font-size:13px}.work-progress strong,.work-progress small{display:block}.work-progress strong{font-weight:500}.work-progress small{margin-top:3px}.work-progress>span{font-size:20px}.saved-output{background:var(--balu-paper,#fffdf7);border:1px solid var(--balu-border,#dcded1);border-radius:20px;padding:16px;width:100%;box-sizing:border-box}.saved-output small{font-size:12px;color:var(--balu-muted)}.saved-output h3{font-size:17px;line-height:1.4;margin:8px 0}.saved-output p{font-size:14px;line-height:1.6;overflow-wrap:anywhere;margin:0 0 12px}.saved-output .primary{min-height:44px;width:auto;padding:10px 20px;font-size:14px}.output-rail{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 0 12px;margin:8px 0;max-width:100%}.output-rail>div{flex:0 0 86%;min-width:0;scroll-snap-align:start}.output-rail .saved-output{height:100%;display:flex;flex-direction:column}.output-rail .primary{margin-top:auto;align-self:flex-start}.work-sections{margin-bottom:20px}

/* One actual playback control; bars express speech, never invented audio timing. */
.voice-bubble{display:flex;align-items:center;gap:12px;padding:8px 0;max-width:100%}
.voice-play{flex:0 0 44px;width:44px;height:44px;border-radius:50%;border:1px solid var(--line,#DADCCE);background:var(--paper,#FAF7EF);color:var(--forest,#304B40);display:grid;place-items:center}
.voice-bubble .wave{overflow:hidden;opacity:.6;flex:1}
.voice-bubble .wave i{animation:none}
.voice-bubble.is-playing .wave i{animation:speech-bars .8s ease-in-out infinite alternate;animation-delay:-.2s}
@keyframes speech-bars{to{transform:scaleY(.45)}}
@media(prefers-reduced-motion:reduce){.voice-bubble.is-playing .wave i{animation:none}}
.choice-output{max-width:100%;min-width:0}.choice-output>p{margin:0 0 10px}.choice-output .output-rail{max-width:100%;width:100%}.choice-output .output-rail>.saved-output{flex:0 0 86%;min-width:0;scroll-snap-align:start}
/* Follow-through uses the same quiet record surfaces and functional controls. */
.followup-heading{display:grid;gap:8px;margin:8px 0 16px}.followup-heading h3{margin:0}.followup-record .permission-body>button{width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere;margin:8px 0}.followup-record details{margin-top:16px}.followup-record summary{min-height:44px;padding:10px 0;color:var(--balu-primary);cursor:pointer}.followup-record .permission-footer{display:grid;grid-template-columns:1fr 1fr}.followup-record .permission-footer button{padding:10px 8px;font-size:14px;white-space:normal}.followup-settings{display:grid;gap:20px}.followup-settings label{display:grid;gap:10px}.quiet-inputs{display:grid;grid-template-columns:1fr 1fr;gap:8px}.followup-settings :is(input,select){width:100%;min-width:0;min-height:44px;padding:10px;font:inherit;font-size:16px;color:var(--balu-ink);background:var(--balu-surface);border:1px solid var(--balu-border);border-radius:12px}.followup-settings p{margin:0}.runtime-card .followup-facts{grid-template-columns:minmax(0,1fr) minmax(0,1.35fr)}.followup-facts dt,.followup-facts dd{overflow-wrap:anywhere}.followup-next{color:var(--balu-primary)}

.followup-record .followup-description{line-height:1.55;overflow-wrap:anywhere}.followup-record .followup-next{font-size:14px;line-height:1.7;overflow-wrap:anywhere}.followup-record .permission-footer button{min-height:48px;margin:0}

/* Paired actions share geometry; fill communicates their different priority. */
.phone :is(.permission-footer,.memory-confirm-actions):has(>button:nth-child(2)):not(:has(>button:nth-child(3))){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:8px}
.phone :is(.permission-footer,.memory-confirm-actions):has(>button:nth-child(2)):not(:has(>button:nth-child(3)))>button{width:100%;min-width:0;min-height:48px;border-radius:999px;margin:0;padding:10px 8px;font-size:14px;white-space:normal}
.followup-agreement .followup-description{line-height:1.55}.followup-agreement :is(.followup-next,.followup-window,.followup-note){font-size:14px;line-height:1.55}.followup-agreement .followup-note{color:var(--balu-muted)}

.phone .followup-agreement .permission-body{padding-bottom:8px}
/* Outputs: glanceable card, readable detail, at most two next steps (secondary left, primary right). */
.saved-output .output-summary,.output-view .output-summary{font-size:14px;line-height:1.5;color:var(--balu-on-sage);margin:0 0 8px;overflow-wrap:anywhere}
.saved-output .output-open{display:inline-flex;align-items:center;margin:0 0 4px;padding:0;min-height:44px;background:none;border:0;color:var(--balu-primary);font-weight:500;cursor:pointer}
.output-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:8px;margin-top:auto;padding-top:8px}
.output-actions button{width:100%;min-width:0;min-height:48px;margin:0;border-radius:999px;padding:10px 8px;font-size:14px;line-height:1.3;white-space:normal}
.saved-output .output-actions .primary{width:100%;padding:10px 8px}
.output-actions .output-saved{display:inline-flex;align-items:center;justify-content:center;gap:6px;opacity:1;cursor:default;background:var(--balu-success-surface);color:var(--balu-success);border:1px solid var(--balu-success-surface)}
.output-actions .output-saved .icon{width:16px;height:16px}
.output-view{display:flex;flex-direction:column;gap:4px}
.output-view .output-tools{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.output-view .output-tools .output-summary{padding-top:12px}
.output-view>.output-actions{position:sticky;bottom:0;background:var(--balu-paper);padding:12px 0 16px;margin-top:16px;box-shadow:0 -12px 16px -12px rgba(41,54,47,.18)}
.output-body h3{font-size:17px;line-height:1.4;margin:22px 0 8px;color:var(--balu-ink)}
.output-body h4{font-size:15px;line-height:1.4;margin:16px 0 6px;color:var(--balu-on-sage)}
.output-body hr,.reply-card hr,.assistant-message hr{border:0;border-top:1px solid var(--balu-border);margin:16px 0}
.output-body blockquote,.assistant-message blockquote{margin:12px 0;padding:10px 14px;border-radius:12px;background:var(--balu-honey);color:var(--balu-on-honey)}
.output-body a,.assistant-message .bubble a,.reply-card a{color:var(--balu-primary);text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
.output-body li,.assistant-message li{margin:4px 0}
.output-body li.sub-item,.assistant-message li.sub-item{margin-left:18px;list-style-type:circle}
.assistant-message .reply-heading{margin:12px 0 4px}
.assistant-message .reply-heading:first-child{margin-top:0}
.assistant-message .output-table-scroll{overflow-x:auto;max-width:100%}
.assistant-message table{border-collapse:collapse;font-size:14px}
.assistant-message :is(th,td){padding:6px 8px;border-bottom:1px solid var(--balu-border);text-align:left;vertical-align:top}
.output-rail .output-actions .primary{margin-top:0;align-self:stretch}
