/* Wizard UX core: inline action cards in chat (wizard-ux issue 1463, core/action-cards.js): an app's proposed action on
 * an opaque card in the reply. Shared by every shell; on for everyone (switch wizard/action-cards removed). */
html:root .msg.a .ch-act { max-width: 520px; margin: 10px 0 4px; padding: 12px; border: 1px solid var(--wz-border); border-radius: var(--wz-radius, 12px); display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(var(--wz-surface), var(--wz-surface)), var(--wz-panel, var(--wz-base, var(--bg))); color: var(--wz-text); }
html:root .msg.a .ch-act .ch-act-h { display: flex; align-items: center; gap: 6px; }
html:root .msg.a .ch-act .ch-act-app { font-size: .8rem; color: var(--wz-text-muted); }
html:root .msg.a .ch-act .ch-act-t { font-size: 1rem; line-height: 1.3; }
html:root .msg.a .ch-act p { margin: 0; }
html:root .msg.a .ch-act .ch-act-b, html:root .msg.a .ch-act .ch-act-note { color: var(--wz-text-muted); white-space: pre-wrap; overflow-wrap: anywhere; }
html:root .msg.a .ch-act .ch-act-f { display: flex; flex-direction: column; gap: 6px; }
html:root .msg.a .ch-act .ch-act-fr { display: flex; flex-direction: column; gap: 2px; }
html:root .msg.a .ch-act .ch-act-fr > span { font-size: .75rem; color: var(--wz-text-muted); }
html:root .msg.a .ch-act .ch-act-fr > p { white-space: pre-wrap; overflow-wrap: anywhere; }
html:root .msg.a .ch-act .ch-act-fr textarea, html:root .msg.a .ch-act .ch-act-fr input { width: 100%; min-width: 0; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--wz-border); border-radius: 10px; background: var(--wz-surface-raised, var(--wz-surface)); color: var(--wz-text); font: inherit; resize: vertical; }
html:root .msg.a .ch-act .ch-act-st { font-weight: 600; }
html:root .msg.a .ch-act .ch-act-st.ok { color: var(--wz-success, var(--green)); }
html:root .msg.a .ch-act .ch-act-st.no, html:root .msg.a .ch-act .ch-act-err { color: var(--wz-text-muted); }
html:root .msg.a .ch-act .ch-act-btns { display: flex; flex-wrap: wrap; gap: 8px; }
html:root .msg.a .ch-act .ch-act-btn { min-height: 40px; padding: 8px 14px; border: 1px solid var(--wz-border); border-radius: 12px; background: var(--wz-surface-raised, var(--wz-surface)); color: var(--wz-text); font: inherit; cursor: pointer; }
html:root .msg.a .ch-act .ch-act-btn.pri { background: var(--wz-accent); border-color: var(--wz-accent); color: var(--wz-on-accent, var(--wz-text)); font-weight: 600; }
html:root .msg.a .ch-act .ch-act-btn.no { margin-left: auto; border-color: transparent; background: transparent; color: var(--wz-text-muted); }
html:root .msg.a .ch-act .ch-act-btn:disabled { opacity: .6; cursor: default; }
html:root .msg.a .ch-act .ch-act-btn:focus-visible { outline: 2px solid var(--wz-accent); outline-offset: 2px; }
/* Tap-to-pick replies (WIZARD_CHOICES_V1, wizard-agent-service issue 650; on for everyone, switch wizard/first-chat-goals
 * removed): the reply buttons under the newest answer (core/chats-attach.js turnHtml). */
html:root .msg.a .ch-choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 2px; }
html:root .msg.a .ch-choices button { min-height: 44px; padding: 10px 14px; border: 1px solid var(--wz-accent); border-radius: 22px; background: var(--wz-surface-raised, var(--wz-surface)); color: var(--wz-text); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
html:root .msg.a .ch-choices button:disabled { opacity: .6; cursor: default; }
html:root .msg.a .ch-choices button:focus-visible { outline: 2px solid var(--wz-accent); outline-offset: 2px; }
/* Tap to answer in replies (WIZARD_BUTTONS_V1, wizard-ux issue 1889; on for everyone, switch wizard/reply-buttons removed):
 * plain buttons inside the reply's text, no card. Picked = accent, the group's others dimmed; the owner's taps are one
 * quiet machine line each (core/action-cards.js reply buttons). */
html:root .msg.a .ch-rb { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 10px; }
/* Each row names the ask it answers (issue 1963): a caption line above its buttons, kept when picked or locked. */
html:root .msg.a .ch-rb .ch-rb-ask { flex: 0 0 100%; margin: 0 0 -2px; font-size: .82em; font-weight: 600; line-height: 1.3; color: var(--wz-text-muted, var(--ink-3)); overflow-wrap: anywhere; }
html:root .msg.a .ch-rb .ch-rb-btn { min-height: 40px; max-width: 100%; padding: 8px 14px; border: 1px solid var(--wz-border); border-radius: 12px;
  background: linear-gradient(var(--wz-surface-raised, var(--wz-surface)), var(--wz-surface-raised, var(--wz-surface))), var(--wz-panel, var(--wz-base, var(--bg)));
  color: var(--wz-text); font: inherit; line-height: 1.25; text-align: center; overflow-wrap: anywhere; cursor: pointer; transition: opacity 120ms var(--ease, ease), transform 80ms var(--ease, ease); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
html:root .msg.a .ch-rb .ch-rb-btn.on { background: var(--wz-accent); border-color: var(--wz-accent); color: var(--wz-on-accent, var(--wz-text)); font-weight: 600; }
html:root .msg.a .ch-rb .ch-rb-btn.dim { opacity: .5; }
html:root .msg.a .ch-rb .ch-rb-btn:disabled { cursor: default; }
/* Issue 2149: a tap on its way stays busy until the outbox has it (the press itself: issue 2150 rule below). */
html:root .msg.a .ch-rb .ch-rb-btn[aria-busy="true"] { cursor: progress; animation: ch-rb-busy 900ms ease-in-out infinite alternate; }
@keyframes ch-rb-busy { from { opacity: 1; } to { opacity: .72; } }
@media (prefers-reduced-motion: reduce) { html:root .msg.a .ch-rb .ch-rb-btn { transition: none; } html:root .msg.a .ch-rb .ch-rb-btn[aria-busy="true"] { animation: none; opacity: .8; } }
html:root .msg.a .ch-rb .ch-rb-btn:focus-visible { outline: 2px solid var(--wz-accent); outline-offset: 2px; }
html:root .ch-taps { display: flex; flex-direction: column; align-items: center; gap: 4px; }
html:root .ch-taps .ch-rb-at { padding: 0; border: 0; font-weight: 500; color: var(--wz-text-muted, var(--ink-3)); }
html:root .msg.u.ch-taps-pending { align-self: center; display: flex; flex-direction: column; align-items: center; background: none; }
/* Pressed on the press itself (wizard-ux issue 2150): every button here sends to the agent. */
html:root .msg.a :is(.ch-act .ch-act-btn, .ch-choices button, .ch-rb .ch-rb-btn):not(:disabled):active { transform: scale(.96); border-color: var(--wz-accent); }
