/* Ratchet, the staff companion (091). A fixed corner that never moves: the dog box is 96 CSS px on desktop and 64 on a
 * phone (the 64x64 art is a whole number of device pixels per art pixel at both), above the phone tab bar and out of the
 * way of the call desk's minimized call pill. Page content gets extra bottom room so nothing sits under the dog.
 * The side panel is non-modal on desktop (420 px); on a phone it is a full sheet that respects safe areas. */
.rc-root { position: fixed; z-index: 50; bottom: 20px; right: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.rc-root[data-dock="left"] { right: auto; left: calc(var(--rc-side, 236px) + 20px); align-items: flex-start; }
body:has(.cd-pill) .rc-root { bottom: 84px; }   /* the call desk's minimized call keeps its corner */
.rc-root > * { pointer-events: auto; }

.rc-root .rc-launcher { position: relative; width: 104px; height: 104px; min-height: 0; padding: 4px; border: 0; border-radius: 26px; background: transparent; box-shadow: none; cursor: pointer; }
.rc-root .rc-launcher:hover { background: transparent; }
.rc-root .rc-launcher:hover .rc-sprite { transform: translateY(-1px); }
.rc-root .rc-launcher:focus-visible { outline: 3px solid var(--accent-soft); box-shadow: 0 0 0 1.5px var(--accent); }
.rc-root .rc-sprite { width: 96px; height: 96px; background-repeat: no-repeat; background-position: 0 0; image-rendering: crisp-edges; image-rendering: pixelated;
  background-image: url("/preview/companion/idle-static.png"); background-size: 100% 100%; transition: transform .15s ease; }

.rc-root .rc-badge { position: absolute; top: 6px; right: 6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: #fff;
  font: 700 13px/22px var(--font); text-align: center; box-shadow: 0 0 0 2px var(--canvas); }
.rc-root .rc-bubble { max-width: 260px; padding: 7px 12px; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-pop);
  font: 500 13px/1.3 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; order: 1; }
.rc-root .rc-launcher { order: 2; }
.rc-root .rc-mini { order: 2; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-pop); font: 600 14px/1 var(--font); cursor: pointer; }
.rc-root .rc-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rc-root .rc-panel { position: fixed; top: 16px; right: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px)); display: flex; flex-direction: column;
  background: var(--surface); color: var(--ink); border-radius: 20px; box-shadow: var(--shadow-pop); overflow: hidden; z-index: 51; }
.rc-root[data-dock="left"] .rc-panel { right: auto; left: calc(var(--rc-side, 236px) + 16px); }
.rc-root.is-open .rc-launcher, .rc-root.is-open .rc-mini { visibility: hidden; }
.rc-root .rc-head { padding: 14px 16px 0; border-bottom: 1px solid var(--hair); background: var(--surface-2); }
.rc-root .rc-head-top { display: flex; align-items: center; gap: 6px; }
.rc-root .rc-title { flex: 1; margin: 0; font: 600 19px/1.2 var(--font-display); }
.rc-root .rc-icon { width: 36px; height: 36px; border: 0; border-radius: 18px; background: transparent; color: var(--ink-2); font: 500 22px/1 var(--font); cursor: pointer; }
.rc-root .rc-icon:hover { background: var(--fill); }
.rc-root .rc-tabs { display: flex; gap: 18px; margin-top: 6px; }
.rc-root .rc-tab { padding: 10px 0 9px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-2); font: 600 15px/1 var(--font); cursor: pointer; }
.rc-root .rc-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.rc-root .rc-tab-n { display: inline-block; margin-left: 6px; min-width: 18px; padding: 1px 6px; border-radius: 9px; background: var(--fill); color: var(--ink-2); font: 600 12px/16px var(--font); text-align: center; }
.rc-root .rc-conn { margin: 0 -16px; padding: 8px 16px; font-size: 13px; background: var(--amber-soft); color: var(--amber); }
.rc-root .rc-body { flex: 1; overflow-y: auto; padding: 14px 16px 18px; -webkit-overflow-scrolling: touch; }
.rc-root .rc-muted { color: var(--ink-2); }

/* Talk */
.rc-root .rc-talk { display: flex; flex-direction: column; padding: 0; }
.rc-root .rc-thread { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.rc-root .rc-msg { max-width: 86%; padding: 9px 13px; border-radius: 16px; font-size: 15px; line-height: 1.4; }
.rc-root .rc-msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rc-root .rc-msg > .rc-src { display: block; }
.rc-root .rc-msg > a.rc-link { display: block; margin-top: 6px; }
.rc-root .rc-msg.from-ratchet { align-self: flex-start; background: var(--fill); border-bottom-left-radius: 6px; }
.rc-root .rc-msg.from-staff { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.rc-root .rc-msg.is-unsent { background: var(--surface); color: var(--ink); border: 1px dashed var(--hair-strong); }
.rc-root .rc-unsent { margin-top: 4px !important; font-size: 13px; color: var(--amber); display: flex; gap: 10px; flex-wrap: wrap; }
.rc-root .rc-link { border: 0; background: none; padding: 0; color: var(--accent); font: 600 13px/1.4 var(--font); cursor: pointer; }
.rc-root .rc-msg.from-staff .rc-link { color: inherit; text-decoration: underline; }
.rc-root .rc-compose { border-top: 1px solid var(--hair); padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface-2); }
.rc-root .rc-about { margin: 0 0 8px; font-size: 13px; color: var(--ink-2); }
.rc-root .rc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.rc-root .rc-chip { min-height: 34px; padding: 0 12px; border-radius: 17px; border: 1px solid var(--hair-strong); background: var(--surface); color: var(--ink); font: 500 14px/1 var(--font); cursor: pointer; }
/* U45-D: a question's offered answer can be a whole sentence ("book … at 10 am, waiting"): it wraps inside the bubble, never clipped */
.rc-root .rc-chip { max-width: 100%; white-space: normal; text-align: left; line-height: 1.3; padding-block: 7px; overflow-wrap: anywhere; }
.rc-root .rc-chip:hover:not(:disabled) { background: var(--fill); }
.rc-root .rc-compose-row { display: flex; gap: 8px; align-items: flex-end; }
.rc-root .rc-input { flex: 1; min-height: 44px; max-height: 120px; resize: none; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--hair-strong); background: var(--surface); color: var(--ink); font: 16px/1.35 var(--font); }
.rc-root .rc-send { min-height: 44px; }

/* Work */
.rc-root .rc-seg { display: inline-flex; padding: 2px; margin-bottom: 12px; border-radius: 9px; background: var(--fill); }
.rc-root .rc-seg button { min-height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--ink); font: 500 13px/1 var(--font); cursor: pointer; }
.rc-root .rc-seg button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.rc-root .rc-group { margin-bottom: 16px; }
.rc-root .rc-group h3 { margin: 0 0 6px; font: 600 13px/1.3 var(--font); color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.rc-root .rc-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rc-root .rc-card { width: 100%; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; white-space: normal; min-height: 0; height: auto; gap: 2px; padding: 10px 12px; border: 1px solid var(--hair); border-radius: 12px; background: var(--surface); color: var(--ink); text-align: left; font: 14px/1.35 var(--font); cursor: pointer; }
.rc-root .rc-card:hover { background: var(--surface-2); border-color: var(--hair-strong); }
.rc-root .rc-card.s-needs_approval, .rc-root .rc-card.s-blocked, .rc-root .rc-card.s-failed { border-left: 3px solid var(--amber); }
.rc-root .rc-card-top { display: flex; align-items: center; gap: 6px; }
.rc-root .rc-card-title { flex: 1; font-weight: 600; text-align: left; }
.rc-root .rc-card-sub, .rc-root .rc-card-line { color: var(--ink-2); font-size: 13px; text-align: left; overflow-wrap: anywhere; }
.rc-root .rc-when { color: var(--ink-3); }
.rc-root .rc-pill { padding: 1px 7px; border-radius: 8px; font: 600 11px/16px var(--font); }
.rc-root .rc-pill.new { background: var(--accent-soft); color: var(--accent); }
.rc-root .rc-pill.issue { background: var(--amber-soft); color: var(--amber); }
.rc-root .rc-pill.you { background: var(--green-soft); color: var(--green); }

/* one item */
.rc-root .rc-back { min-height: 0; border: 0; background: none; padding: 0 0 8px; color: var(--accent); font: 500 15px/1 var(--font); cursor: pointer; }
.rc-root .rc-detail-title { margin: 0 0 4px; font: 600 18px/1.25 var(--font-display); }
.rc-root .rc-state { margin: 0 0 12px; font-weight: 600; }
.rc-root .rc-state.s-needs_approval, .rc-root .rc-state.s-blocked, .rc-root .rc-state.s-failed { color: var(--amber); }
.rc-root .rc-state.s-succeeded { color: var(--green); }
.rc-root .rc-reason { font-weight: 400; color: var(--ink-2); }
.rc-root .rc-result { margin: 0 0 12px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--hair); }
.rc-root .rc-result ul { margin: 6px 0; padding-left: 18px; }
.rc-root .rc-headline { margin: 0 0 4px; font-weight: 600; }
.rc-root .rc-draft { width: 100%; box-sizing: border-box; padding: 10px; border-radius: 10px; border: 1px solid var(--hair-strong); background: var(--surface); color: var(--ink); font: 15px/1.4 var(--font); resize: vertical; }
.rc-root .rc-flags { margin: 8px 0; padding: 8px 10px; border-radius: 8px; background: var(--amber-soft); font-size: 13px; }
.rc-root .rc-ok { margin: 8px 0; font-size: 13px; color: var(--green); }
.rc-root .rc-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.rc-root .rc-fine, .rc-root .rc-src { margin: 6px 0 0; font-size: 12px; color: var(--ink-3); }
.rc-root .rc-sources { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.rc-root .rc-note { margin: 0 0 10px; font-size: 13px; color: var(--ink-2); }
.rc-root .rc-history { margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.rc-root .rc-history ol { margin: 6px 0 0; padding-left: 18px; }
.rc-root .rc-settings fieldset { border: 0; margin: 0 0 14px; padding: 0; }
.rc-root .rc-settings legend { font-weight: 600; margin-bottom: 6px; }
.rc-root .rc-opt { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.rc-root .rc-preview-sprite { width: 128px; height: 128px; margin: 8px 0; background-repeat: no-repeat; background-size: 100% 100%; image-rendering: crisp-edges; image-rendering: pixelated;
  background-image: url("/preview/companion/idle-static.png"); border-radius: 12px; background-color: var(--surface-2); }

@media (max-width: 860px) {
  .rc-root { bottom: calc(72px + env(safe-area-inset-bottom)); right: 10px; }
  .rc-root[data-dock="left"] { left: 10px; }
  body:has(.cd-pill) .rc-root { bottom: calc(132px + env(safe-area-inset-bottom)); }
  .rc-root .rc-launcher { width: 72px; height: 72px; border-radius: 20px; }
  .rc-root .rc-sprite { width: 64px; height: 64px; }
  .rc-root .rc-badge { top: 2px; right: 2px; }
  .rc-root .rc-bubble { max-width: calc(100vw - 110px); font-size: 12px; }
  .rc-root:not(.has-fg) .rc-bubble { display: none; }   /* on a phone only the task you just asked for speaks; counts live on the badge */
  .rc-root .rc-panel, .rc-root[data-dock="left"] .rc-panel { inset: 0; width: auto; border-radius: 0; padding-top: env(safe-area-inset-top); }
}
@media (prefers-reduced-motion: reduce) { .rc-sprite { transition: none; } .rc-launcher:hover .rc-sprite { transform: none; } }

/* 092: AI findings in Needs you (read in place; decided with the same row and commands as Today) and the voice name */
.rc-root .rc-card.s-finding { border-left: 3px solid var(--accent); }
.rc-root .rc-card.s-finding.is-safety { border-left-color: var(--red, var(--amber)); }
.rc-root .rc-aiq { margin: 4px 0 8px; }
.rc-root .rc-aiq .aiq-actions { flex-wrap: wrap; }
.rc-root .rc-voice input { flex: 1; min-width: 0; font: inherit; padding: 6px 8px; border: 1px solid var(--hair); border-radius: 8px; background: var(--bg, #fff); color: inherit; }

/* ===== Batch 31 (Clay through Codex, Oct 23): docked, never over the page =====
   Desktop: a row in the sidebar above Settings (the dog, its count, "N need you"); the panel opens to the right of the
   sidebar. Phone: a slim row above the page content; the panel opens below it. Nothing is fixed over page content. */
.rc-root[data-place] { position: static; inset: auto; flex-direction: row; align-items: center; gap: 8px; pointer-events: auto; z-index: auto; }
.rc-root[data-place] .rc-launcher { order: 0; width: 68px; height: 68px; padding: 2px; border-radius: 10px; flex: none; }
.rc-root[data-place] .rc-sprite { width: 64px; height: 64px; }   /* one art pixel per CSS pixel: crisp */
.rc-root[data-place] .rc-badge { top: -2px; right: -2px; }
.rc-root[data-place] .rc-bubble { order: 1; background: transparent; box-shadow: none; padding: 0; max-width: none; white-space: normal; font: 600 13px/1.25 var(--font); color: var(--ink); min-width: 0; }
.rc-root[data-place] .rc-mini { order: 0; box-shadow: none; border: 1px solid var(--hair-strong); }
.rc-root[data-place="side"] { margin: auto 2px 6px; padding: 8px 6px; border-top: 1px solid var(--hair); }
:root[data-brand-side="dark"] .rc-root[data-place="side"] .rc-bubble { color: var(--side-ink, #f5f5f7); }
:root[data-brand-side="dark"] .rc-root[data-place="side"] { border-top-color: rgba(255, 255, 255, 0.1); }
.rc-root[data-place="side"] .rc-panel, .rc-root[data-place="side"][data-dock="left"] .rc-panel { top: 16px; bottom: 16px; left: calc(var(--rc-side, 236px) + 12px); right: auto; border-radius: 8px; z-index: 55; }
#rc-dock { display: flex; justify-content: flex-end; margin: 0 0 8px; }
#rc-dock .rc-root { flex-direction: row-reverse; }
#rc-dock .rc-launcher { width: 52px; height: 52px; }
#rc-dock .rc-sprite { width: 48px; height: 48px; }
.rc-root[data-place="top"] .rc-panel { inset: var(--rc-top, 0px) 0 0 0; width: auto; border-radius: 8px 8px 0 0; z-index: 55; }
@media (max-width: 860px) {
  .rc-root[data-place] { bottom: auto; right: auto; }
  .rc-root[data-place] .rc-bubble { display: block; }
  .rc-root[data-place]:not(.has-fg) .rc-bubble { display: block; }
}
@media (min-width: 861px) { #rc-dock { display: none; } }
/* batch 31: in the shop's phone row (the store on the left), the dock takes the right end of that row */
.shop-mtop #rc-dock { margin: 0; flex: none; }
.rc-root[data-place].is-open .rc-launcher, .rc-root[data-place].is-open .rc-mini { visibility: visible; }   /* the control that opened it stays in view */
.rc-root[data-place].is-open .rc-launcher { box-shadow: 0 0 0 2px var(--accent); }
/* batch 32 audit (4): in the phone row the badge sat 2px past the companion's edge, into the page's gutter (768-860px,
   seen at 814); it stays inside */
.rc-root[data-place="top"] .rc-badge { top: 0; right: 0; }

/* U33-D: actions on the AI action runtime (what will be recorded, the yes, the saved outcome, undo), the microphone */
.rc-action { border: 1px solid var(--line, #d2d2d7); border-radius: 12px; padding: 10px 12px; background: var(--surface, #fff); }
.rc-action .rc-act-title { font-weight: 600; margin: 0 0 4px; }
.rc-action .rc-act-done { margin: 6px 0 0; color: var(--ok, #1d7a3a); }
.rc-action .rc-act-refused { margin: 6px 0 0; color: var(--bad, #b3261e); }
.rc-action.is-undone .rc-act-done { color: var(--muted, #6e6e73); }
.rc-act-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.rc-act-buttons button { min-height: 44px; }
.rc-mic { min-width: 44px; min-height: 44px; border-radius: 22px; border: 1px solid var(--line, #d2d2d7); background: var(--surface, #fff); font-size: 18px; }
.rc-mic.is-on { background: var(--bad, #b3261e); color: #fff; border-color: transparent; }
.rc-coverage, .rc-speech-off { margin: 6px 0 0; }
/* U34-D: Ratchet on its own (what the AI operator did, told; what it suggests) */
.rc-op { margin: 0 0 16px; }
.rc-op .rc-op-title { font-size: 15px; margin: 0 0 8px; }
.rc-op .rc-action { margin-bottom: 8px; }

/* Clayton: bottom-right launcher, persistent panel beside the desktop workspace. */
.rc-root[data-place="right"] { position: fixed; inset: auto 18px 18px auto; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; margin: 0; padding: 0; border: 0; }
.rc-root[data-place="right"] .rc-panel { inset: 0 0 0 auto; width: 380px; border-radius: 0; border-left: 1px solid var(--hair); box-shadow: -6px 0 20px #0001; }
.rc-root[data-place="right"] .rc-panel[hidden] { display: none; }
.rc-root[data-place="right"] .rc-launcher { width: 68px; height: 68px; }
.rc-root[data-place="right"] .rc-bubble { display: none; }
.rc-root[data-place="right"].is-open .rc-launcher, .rc-root[data-place="right"].is-open .rc-mini { visibility: hidden; }
@media(min-width:1100px) {
  body.shop-on.rc-panel-open .main, body.shop-on.rc-panel-open.focus-app .main { margin-right: 380px; }
  body.shop-on.rc-panel-open #visit-bar, body.shop-on.rc-panel-open #rehearse-banner { margin-right: 380px; }
}
@media(max-width:1099px) {
  .rc-root[data-place="right"] { bottom: calc(82px + env(safe-area-inset-bottom)); }
  .rc-root[data-place="right"] .rc-panel { inset: auto 0 0; width: 100%; height: min(55dvh, 520px); border: 0; border-top: 1px solid var(--hair); }
  body.shop-on.rc-panel-open .main { padding-bottom: calc(55dvh + 100px); }
}

/* Chat home reuses the authenticated companion, including its voice and confirmation flow. */
body.shop-on.rc-home .main,body.shop-on.rc-home.focus-app .main { margin-right:0; padding-top:0; padding-bottom:0; }
body.rc-home .chat-home-host { height:calc(100dvh - 32px); min-height:500px; }
body.rc-home .rc-home-root { position:relative; inset:auto; display:block; height:100%; width:100%; pointer-events:auto; }
body.rc-home .rc-home-root .rc-panel { position:relative; inset:auto; width:100%; height:100%; border:0; box-shadow:none; border-radius:0; }
body.rc-home .rc-launcher,body.rc-home .rc-mini,body.rc-home .rc-bubble { display:none !important; }
body.rc-home .rc-head { background:var(--surface); padding:18px 8px 0; border-bottom:0; }
body.rc-home .rc-head-top { gap:14px; }
body.rc-home .rc-title { font-size:23px; }
body.rc-home .rc-tabs { gap:24px; }
body.rc-home .rc-thread { width:100%; max-width:840px; margin:0 auto; padding:28px 20px; gap:24px; min-height:0; }
body.rc-home .rc-msg { line-height:1.65; padding:14px 18px; max-width:92%; }
body.rc-home .rc-msg.from-ratchet { background:transparent; padding-left:0; }
body.rc-home .rc-msg.from-ratchet.rc-action { padding:14px 16px; }
body.rc-home .rc-msg.from-staff { background:var(--fill); color:var(--ink); }
body.rc-home .rc-compose { width:calc(100% - 32px); max-width:800px; margin:0 auto 20px; padding:16px; border:1px solid var(--hair); border-radius:24px; background:var(--surface); box-shadow:0 5px 22px #00000008; }
body.rc-home .rc-input { border:0; background:transparent; min-height:64px; }
body.rc-home .rc-welcome { margin:auto 0; padding:30px 0 50px; text-align:center; }
body.rc-home .rc-welcome h1 { font:650 clamp(26px,3vw,38px)/1.25 var(--font); text-transform:none; letter-spacing:-.8px; margin:12px 0; }
body.rc-home .rc-welcome h1::after { display:none; }
body.rc-home .rc-welcome p { color:var(--ink-2); }
body.rc-home .rc-eyebrow { font-size:12px; letter-spacing:2px; }
body.rc-home .rc-starts { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin-top:28px; }
@media(max-width:700px){body.shop-on.rc-home .main{padding:0 8px 68px;}body.rc-home .chat-home-host{height:calc(100dvh - 130px);min-height:380px;}body.rc-home .rc-compose{width:100%;margin-bottom:8px;padding:10px;}body.rc-home .rc-thread{padding:16px 8px;}body.rc-home .rc-head{padding-top:8px;}}

body.rc-home .rc-head-top select { min-width:0; max-width:260px; text-overflow:ellipsis; }
@media(max-width:700px){
 body.rc-home .rc-head-top { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:8px; }
 body.rc-home .rc-title { grid-column:1;grid-row:1; }
 body.rc-home .rc-head-top>button.rc-chip { grid-column:2;grid-row:1;white-space:nowrap; }
 body.rc-home .rc-head-top>.rc-icon { grid-column:3;grid-row:1; }
 body.rc-home .rc-head-top>select { grid-column:1/3;grid-row:2;width:100%;max-width:none; }
 body.rc-home .rc-head-top>a { grid-column:3;grid-row:2;font-size:11px;max-width:90px;text-align:center; }
 body.rc-home .rc-welcome { padding:16px 0 20px; }
}

/* One familiar, keyboard-accessible voice control on every staff surface. */
button.asa-voice-button,.focus-app button.asa-voice-button,body.rc-home button.asa-voice-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;margin:0;border:0;border-radius:50%;background:#171b1e;color:#fff;box-shadow:none;cursor:pointer;vertical-align:middle}
button.asa-voice-button:hover{background:#35404a}.asa-voice-button:focus-visible{outline:3px solid #0963df;outline-offset:3px}.asa-voice-button:disabled{opacity:.45;cursor:default}.asa-voice-button.is-active{background:#0963df!important}.asa-voice-wave{display:flex;align-items:center;gap:3px;height:24px}.asa-voice-wave i{display:block;width:3px;height:12px;border-radius:3px;background:currentColor}.asa-voice-wave i:nth-child(2){height:22px}.asa-voice-wave i:nth-child(3){height:16px}

/* Full chat keeps navigation beside the composer, leaving the conversation clear. */
body.rc-home .rc-head-top { display:flex; justify-content:space-between; }
body.rc-home .rc-chat-controls { flex-shrink:0; display:flex; align-items:center; gap:10px; width:calc(100% - 32px); max-width:800px; margin:0 auto 10px; }
body.rc-home .rc-chat-controls .rc-chip { white-space:nowrap; }
body.rc-home .rc-chat-controls select { min-width:0; width:260px; max-width:calc(100% - 100px); text-overflow:ellipsis; border-radius:12px; }
.rc-root button.rc-send { flex:0 0 44px; display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; min-width:44px; min-height:44px; padding:0; border-radius:50%; font-size:28px; line-height:1; }
@media(max-width:700px){body.rc-home .rc-chat-controls { width:100%; gap:8px; margin-bottom:8px; } body.rc-home .rc-compose-row { flex-wrap:wrap; } body.rc-home .rc-input { flex-basis:100%; width:100%; } body.rc-home .rc-send { margin-left:auto; }}

/* SEMA-style tire comparison, shared by saved chat and the live voice transcript. */
.rc-msg.rc-tire-message{max-width:100%;width:100%;box-sizing:border-box}.rc-tire-options{width:100%;margin:18px 0;text-align:left}.rc-tire-options>h3{font-size:18px;margin:0 0 12px}.rc-tire-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,165px),1fr));gap:12px}.rc-tire-card{display:flex;flex-direction:column;gap:6px;padding:16px;border:1px solid #dce3eb;border-radius:14px;background:#fff;color:#18222e;min-width:0}.rc-tire-card .rc-tire-tier{align-self:flex-start;border-radius:5px;padding:4px 8px;background:#eef2f6;font-size:12px;font-weight:700}.rc-tire-tier.is-best{background:#0a63dd;color:#fff}.rc-tire-tier.is-better{background:#e4eeff;color:#064fa8}.rc-tire-tier.is-good{background:#e7f2ec;color:#18673b}.rc-tire-card h3{font-size:17px;line-height:1.3;margin:4px 0 0}.rc-tire-card p{margin:0!important}.rc-tire-card .rc-tire-line{font-size:14px}.rc-tire-size,.rc-tire-fine{font-size:12px;line-height:1.5;color:#5b6877}.rc-tire-options>.rc-tire-fine{margin:12px 0!important}.rc-tire-total{font-size:25px;margin-top:8px;line-height:1.2}.rc-tire-basis{font-size:13px}.rc-tire-card img{width:100%;height:130px;object-fit:contain}.rc-tire-card>button{margin-top:auto;white-space:normal}.rc-tire-breakdown{font-size:12px;margin:8px 0 12px}.rc-tire-breakdown summary{cursor:pointer;color:#075fc9}.rc-tire-breakdown ul{list-style:none;padding:0;margin:8px 0;display:grid;gap:8px}.rc-tire-breakdown li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px}.rc-tire-benefits{font-size:12px;padding-left:18px}.rc-tire-card.is-unavailable{background:#f7f9fb;color:#637084}.rc-tire-card button:disabled{opacity:.55}

.rc-tire-benefit-block{font-size:12px;line-height:1.5;margin:8px 0}.rc-tire-benefit-block .rc-tire-benefits{margin:6px 0 0}.rc-tire-benefits li+li{margin-top:6px}

/* Shared live controls stay beside the composer on desktop and installed PWA. */
.asa-live-controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding-top:12px}
.asa-voice-activity{display:flex;align-items:center;gap:9px;min-height:32px;margin-top:8px;font-size:13px;color:#485669}
.asa-live-controls .asa-voice-activity{margin-top:0}
.asa-mute-controls{display:flex;flex-wrap:wrap;gap:8px}
.asa-mute-controls button{border:1px solid #cbd3df;border-radius:18px;background:#fff;color:#263648;min-height:36px;padding:6px 12px;font-size:13px;cursor:pointer}
.asa-mute-controls button[aria-pressed=true]{background:#e9eff8;border-color:#8095b2}
.asa-mute-controls button:focus-visible{outline:3px solid #0963df;outline-offset:2px}
.asa-mute-controls button:disabled{opacity:.5;cursor:default}
.asa-activity-mark{display:inline-flex;align-items:center;justify-content:center;gap:3px;width:24px;height:24px;color:#0865df;flex-shrink:0}
.asa-activity-mark i{width:4px;height:4px;border-radius:50%;background:currentColor;animation:asa-thinking 1.2s ease-in-out infinite}
.asa-activity-mark i:nth-child(2){animation-delay:.15s}.asa-activity-mark i:nth-child(3){animation-delay:.3s}
.asa-voice-activity.is-listening{color:#176642}.asa-voice-activity.is-listening .asa-activity-mark{color:#15814b}
.asa-voice-activity.is-listening .asa-activity-mark i,.asa-voice-activity.is-responding .asa-activity-mark i{height:13px;border-radius:3px;animation-name:asa-listening}
.asa-voice-activity.is-muted .asa-activity-mark{color:#74808f}.asa-voice-activity.is-muted .asa-activity-mark i{animation:none}
@keyframes asa-thinking{0%,80%,100%{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-4px)}}
@keyframes asa-listening{0%,100%{transform:scaleY(.5);opacity:.6}50%{transform:scaleY(1);opacity:1}}
@media(prefers-reduced-motion:reduce){.asa-activity-mark i{animation:none!important}}

/* Connection updates must not resize the reading viewport. */
.rc-root .rc-head { position:relative; flex-shrink:0; }
.rc-root .rc-conn { position:absolute; top:8px; right:48px; margin:0; max-width:65%; border-radius:6px; pointer-events:none; }
.rc-root .rc-talk { min-height:0; overflow:hidden; }
.rc-root .rc-thread { min-height:0; overscroll-behavior:contain; }
.rc-root .rc-thread > * { flex-shrink:0; }
.rc-root .rc-compose { flex-shrink:0; }

.rc-tire-card img{height:80px}.rc-tire-card{padding:12px;gap:4px}.rc-tire-card .rc-tire-total{font-size:22px}.rc-tire-more>summary{cursor:pointer;margin:12px 0;color:#075fc9}.rc-tire-estimate-form,.rc-tire-saved{padding:18px;border:1px solid #dce3eb;border-radius:14px;margin-top:14px}.rc-tire-estimate-form h3{margin:0 0 8px}.rc-tire-fields{display:grid;grid-template-columns:1fr 1fr 80px;gap:12px;margin:16px 0}.rc-tire-fields label{display:flex;flex-direction:column;gap:6px;font-size:13px}.rc-tire-fields input,.rc-tire-fields select{width:100%;box-sizing:border-box;min-height:40px}.rc-tire-actions{display:flex;gap:10px;margin-top:14px}@media(max-width:600px){.rc-tire-fields{grid-template-columns:1fr}.rc-tire-grid{grid-template-columns:1fr}.rc-tire-card img{height:72px}}

/* Shared compact composer controls on chat, the companion and inspection. */
body button.asa-voice-button,body .rc-root button.asa-voice-button,body .ti-shell button.asa-voice-button,body button.asa-chat-icon,body .rc-root button.asa-chat-icon,body .ti-shell button.asa-chat-icon{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;min-width:36px;min-height:36px;max-width:36px;padding:0;border:0;border-radius:50%;line-height:1;box-shadow:none}
body button.asa-chat-icon{font-size:25px;cursor:pointer}body button.asa-send-button{background:#0963df;color:white}body button.asa-attachment-button{background:#eef1f4;color:#20272e}.asa-chat-icon:focus-visible{outline:2px solid #0963df;outline-offset:3px}.asa-chat-icon:disabled{opacity:.45;cursor:default}
body .asa-voice-wave{height:20px;gap:3px}body .asa-voice-wave i{height:10px;width:3px}body .asa-voice-wave i:nth-child(2){height:18px}body .asa-voice-wave i:nth-child(3){height:14px}
.asa-attachments{position:relative;display:inline-flex;flex:0 0 auto}.asa-attachment-options{position:absolute;bottom:calc(100% + 8px);left:0;z-index:20;min-width:150px;padding:5px;border:1px solid #dce2e8;border-radius:12px;background:white;box-shadow:0 5px 20px #12213b20}.asa-attachment-options[hidden]{display:none!important}body .asa-attachment-options>button{display:block;width:100%;margin:0!important;padding:10px 12px;border:0;border-radius:7px;background:white;color:#20272e;text-align:left;font-size:14px;white-space:nowrap}body .asa-attachment-options>button:hover,body .asa-attachment-options>button:focus-visible{background:#eef3fa}
@media(pointer:coarse){body button.asa-voice-button,body .rc-root button.asa-voice-button,body .ti-shell button.asa-voice-button,body button.asa-chat-icon,body .rc-root button.asa-chat-icon,body .ti-shell button.asa-chat-icon{flex-basis:44px;width:44px;height:44px;min-width:44px;min-height:44px;max-width:44px}}
/* Global primary/mobile button rules must not stretch these circular icons. */
body .asa-voice-button,body .asa-chat-icon{--chat-control-size:36px;width:var(--chat-control-size)!important;height:var(--chat-control-size)!important;min-width:var(--chat-control-size)!important;min-height:var(--chat-control-size)!important;max-width:var(--chat-control-size)!important;max-height:var(--chat-control-size)!important;flex-basis:var(--chat-control-size)!important}
body .rc-root .rc-compose-row .asa-voice-button{margin-left:auto}body .rc-root .rc-compose-row .asa-send-button{margin-left:0}
@media(pointer:coarse){body .asa-voice-button,body .asa-chat-icon{--chat-control-size:44px}}
