/* ── Custom voices ────────────────────────────────────────────────────────────
 * Knowledge's page shape (.agents-page / .agents-heading, the inset grouped
 * list and the state pill from numbers.css, the Studio's cards and fields from
 * agent-workspace.css, the drop zone from knowledge.css). Only layout and the
 * few marks this page owns (the minutes meter, the upload bar, the checklist,
 * the progress track) live here; every colour is an app.css token. */
[data-custom-voices-nav][hidden] { display: none !important; }
.cv-page [hidden] { display: none !important; }
/* the quiet way in from a voice list (Text to Speech): a line, not a card */
.cv-entry { margin: 10px 0 0; }
/* A `ghost` so the model pages' filled-button rule passes it by (models.css),
 * then drawn as the console's text link. */
.cv-entry button.ghost.linkbtn, .model-view #content .cv-entry button.ghost.linkbtn {
  display: inline; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none;
  color: var(--c-ink-2); font: inherit; font-weight: 500; vertical-align: baseline;
  text-decoration: underline dotted; text-underline-offset: 3px; }
.cv-entry button.ghost.linkbtn:hover, .model-view #content .cv-entry button.ghost.linkbtn:hover { color: var(--c-ink); background: none; }
.cv-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
                    clip-path: inset(50%); white-space: nowrap; border: 0; }

.cv-actions { display: flex; gap: 8px; flex-shrink: 0; margin: 0 0 4px; }
.cv-actions button { display: inline-flex; align-items: center; gap: 6px; margin: 0; min-height: 34px;
                     padding: 8px 14px 8px 11px; font-size: 13px; font-weight: 600; border-radius: var(--ui-r-control); }
.cv-actions svg { width: 15px; height: 15px; }

#cv-status { margin: 0 0 16px; font-size: 13px; color: var(--c-ink-3); }
#cv-status:empty { display: none; }
#cv-status.numbers-error { color: var(--c-alarm-ink); }
.cv-retry { display: none; margin: -4px 0 20px; min-height: 32px; font-size: 12.5px; }
.cv-page[data-state="error"][data-mode="list"] .cv-retry { display: inline-flex; }
.cv-page[data-mode="list"]:is([data-state="loading"], [data-state="error"]) #cv-list-view { display: none; }
/* With nothing yet the empty state's button is the way in; Docs keeps the corner. */
.cv-page[data-empty="true"] #cv-new { display: none; }

/* the list */
.cv-row .cv-row-note { display: block; }
.cv-row[data-status="needs_changes"] .cv-row-note { color: var(--c-open-ink); }
.cv-row[data-status="rejected"] .cv-row-note { color: var(--c-alarm-ink); }

/* the empty state: one headline, one line, one button */
.cv-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 28px 30px; }
.cv-empty-mark { width: 44px; height: 44px; border-radius: 12px; margin: 0 0 14px; }
.cv-empty-mark svg { width: 21px; height: 21px; }
.cv-empty h3 { font-size: 19px; letter-spacing: -0.02em; }
.cv-empty > p { max-width: 52ch; margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--c-ink-2); }
.cv-empty > p.cv-price { margin: 10px 0 20px; font-size: 12.5px; color: var(--c-ink-3); }
#cv-empty-new { margin: 0; min-height: 38px; padding: 10px 18px; font-size: 13.5px; font-weight: 600; border-radius: var(--ui-r-control); }
.cv-docs { width: min(100%, 360px); margin-top: 22px; text-align: left; grid-template-columns: 1fr; }

/* the editor and one request: a reading column under the page title */
.cv-editor, .cv-detail { max-width: 780px; }
.cv-back { margin: 0 0 10px; }
.cv-head { margin: 0 0 18px; }
.cv-head h2 { margin: 0 0 6px; font: 700 24px/1.2 var(--sans); letter-spacing: -0.02em; color: var(--c-ink); overflow-wrap: anywhere; }
.cv-head .number-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }

.cv-card-title { display: flex; align-items: flex-start; gap: 12px; }
.cv-num { display: grid; place-items: center; flex: none; width: 24px; height: 24px; margin-top: -1px; border-radius: 999px;
          font: 600 12px/1 var(--sans); color: var(--c-ink); background: var(--c-surface); box-shadow: inset 0 0 0 1.5px var(--c-ink-3); }
.cv-card .workspace-field { gap: 6px; }
.cv-label { color: var(--c-ink-2); }
.cv-label small, .cv-help { font-weight: 400; color: var(--c-ink-3); }
.cv-help { display: block; font-size: 12px; line-height: 1.45; }
.cv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.cv-langs { margin: 2px 0 16px; }
.cv-notes { margin-bottom: 0; }
.cv-card [aria-invalid="true"]:is(input, select, textarea) { border-color: var(--c-alarm-line); box-shadow: 0 0 0 3px var(--c-alarm-bg); }
.cv-langs:has([aria-invalid="true"]) .language-chip { border-color: var(--c-alarm-line); }

/* consent: the statement is a box you tick, the whole box the target */
.cv-attest, .cv-drop { text-transform: none; letter-spacing: 0; }
.cv-attest { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; margin: 2px 0 0;
             padding: 12px 14px; border-radius: var(--ui-r-control); background: var(--c-paper); cursor: pointer;
             box-shadow: inset 0 0 0 1px var(--ui-edge); font: 400 13px/1.55 var(--sans); color: var(--c-ink);
             transition: box-shadow 140ms ease; }
.cv-attest input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--c-ink); }
.cv-attest:has(:checked) { box-shadow: inset 0 0 0 1.5px var(--c-ink); }
.cv-attest:has([aria-invalid="true"]) { background: var(--c-alarm-bg); box-shadow: inset 0 0 0 1px var(--c-alarm-line); }
.cv-save { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 16px 0 0; }
.cv-save button, .cv-send button { margin: 0; min-height: 36px; padding: 9px 16px; font-size: 13px; font-weight: 600;
                                   border-radius: var(--ui-r-control); }
/* Nothing to save reads as a state, not as a broken button. */
#cv-save:disabled { opacity: 1; color: var(--c-ink-3); background: var(--ui-fill-2); border-color: transparent; }
#cv-save:disabled::before { content: "✓ "; }
.cv-say { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--c-ink-3); }
.cv-say:empty { display: none; }
.cv-say.numbers-error { color: var(--c-alarm-ink); }

/* the consent clip */
.cv-clip { margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--ui-sep); }
.cv-clip h4 { margin: 0 0 2px; font: 600 13.5px/1.35 var(--sans); color: var(--c-ink); }
.cv-sentence { margin: 10px 0 14px; padding: 12px 16px 14px; border-radius: var(--ui-r-control); background: var(--c-paper);
               box-shadow: inset 0 0 0 1px var(--ui-sep); font: 400 15.5px/1.55 var(--sans); letter-spacing: -0.005em;
               color: var(--c-ink); overflow-wrap: anywhere; }
.cv-sentence::before { content: "Read aloud"; display: block; margin: 0 0 4px; font: 600 10.5px/1.4 var(--sans);
                       letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-ink-3); }
.cv-clip-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.cv-clip-row button { margin: 0; min-height: 34px; padding: 8px 14px; font-size: 13px; border-radius: var(--ui-r-control); }
.cv-clip-row button.ghost { color: var(--c-ink); border-color: var(--ui-edge); }
.cv-rec-go { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
/* the one red thing a recorder has: the dot that says the microphone is on */
.cv-rec-go::before, .cv-rec-dot { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c-alarm-on-dark); }
.cv-rec-dot { background: var(--c-alarm); }
.cv-rec-stop { font-weight: 600; }
.cv-rec-time { font-size: 13px; color: var(--c-ink); min-width: 78px; }
.cv-rec-meter { position: relative; width: 120px; height: 6px; border-radius: 999px; background: var(--ui-fill); overflow: hidden; }
.cv-rec-meter i { position: absolute; inset: 0; background: var(--c-ink-2); transform: scaleX(0); transform-origin: left;
                  transition: transform 80ms linear; }
.cv-clip-body audio { display: block; width: 100%; max-width: 440px; height: 36px; margin: 0 0 10px; }
.cv-clip-len { font-size: 12.5px; color: var(--c-ink-3); }
.cv-clip-body .cv-say { margin-top: 10px; }
.cv-clip-file { margin: 0 0 10px; }
.cv-locked-note { display: none; margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--c-ink-3); }

/* locked until the request exists: seen, so the whole journey is visible, but quiet */
.cv-card > :not(header), .cv-clip > * { transition: opacity 200ms var(--ease-out); }
.cv-card[data-locked="true"] > :not(header):not(.cv-locked-note),
.cv-clip[data-locked="true"] > :not(h4):not(.cv-locked-note) { opacity: 0.4; pointer-events: none; }
.cv-card[data-locked="true"] > .cv-locked-note, .cv-clip[data-locked="true"] > .cv-locked-note { display: block; }

/* the minutes meter: complete recordings in ink, uploads on their way in grey,
 * a notch at the 30-minute minimum, and the 2-hour maximum is the end */
.cv-meter { margin: 0 0 16px; }
.cv-meter-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.cv-meter-head strong { font: 650 20px/1.2 var(--sans); letter-spacing: -0.02em; color: var(--c-ink); }
.cv-meter-head span { font-size: 12px; color: var(--c-ink-3); }
.cv-meter-track { position: relative; height: 8px; margin: 10px 0 4px; border-radius: 999px; background: var(--ui-fill); overflow: hidden; }
.cv-meter-done, .cv-meter-pending { position: absolute; inset: 0; transform: scaleX(0); transform-origin: left;
                                    transition: transform 250ms var(--ease-out); }
.cv-meter-done { background: var(--c-ink-2); }
.cv-meter-pending { background: var(--c-line-strong); }
.cv-meter[data-state="ok"] .cv-meter-done { background: var(--c-ink); }
.cv-meter[data-state="over"] .cv-meter-done { background: var(--c-alarm); }
.cv-meter-min { position: absolute; top: 0; bottom: 0; left: 25%; width: 2px; margin-left: -1px; background: var(--c-surface); }
.cv-meter-scale { position: relative; height: 16px; font: 500 11px/16px var(--sans); color: var(--c-ink-3);
                  font-variant-numeric: tabular-nums; }
.cv-meter-scale span { position: absolute; top: 0; }
.cv-meter-scale span:first-child { left: 0; }
.cv-meter-scale .cv-meter-min-label { left: 25%; transform: translateX(-50%); }
.cv-meter-scale span:last-child { right: 0; }
.cv-meter-say { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--c-ink-2); }
.cv-meter[data-state="over"] .cv-meter-say { color: var(--c-alarm-ink); }
.cv-drop { margin: 0; }
.cv-drop span { font-weight: 400; }
#cv-files-status { margin: 8px 0 0; }

/* one file: name and facts, what is happening, its bar, its two verbs */
.cv-files { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.cv-file { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px;
           padding: 10px 12px; border-radius: var(--ui-r-control); background: var(--c-sunk); }
.cv-file-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; min-width: 0; }
.cv-file-name { font: 500 13px/1.4 var(--sans); color: var(--c-ink); overflow-wrap: anywhere; }
.cv-file-meta { font-size: 12px; color: var(--c-ink-3); white-space: nowrap; }
.cv-file-state { grid-column: 1; margin: 0; font-size: 12px; line-height: 1.45; color: var(--c-ink-3); font-variant-numeric: tabular-nums; }
.cv-file-state.numbers-error { color: var(--c-alarm-ink); }
.cv-file[data-state="done"] .cv-file-state { color: var(--c-ink-2); }
.cv-file[data-state="done"] .cv-file-state::before { content: "✓ "; }
.cv-file-acts { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 4px; }
.cv-file-acts button { margin: 0; }
.cv-bar { grid-column: 1 / -1; display: block; height: 3px; margin: 8px 0 0; border-radius: 999px; background: var(--ui-fill); overflow: hidden; }
.cv-bar i { display: block; height: 100%; background: var(--c-ink-2); transform: scaleX(0); transform-origin: left;
            transition: transform 200ms linear; }
.cv-file[data-state="paused"] .cv-bar i, .cv-file[data-state="stale"] .cv-bar i, .cv-file[data-state="failed"] .cv-bar i { background: var(--c-ink-4); }

/* review: what is done, what is left, and the one button */
.cv-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.cv-check { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.4; color: var(--c-ink); }
.cv-check-mark { position: relative; flex: none; width: 18px; height: 18px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--c-ink-4);
                 transition: background-color 160ms ease, box-shadow 160ms ease; }
.cv-check[data-ok="true"] { color: var(--c-ink-2); }
.cv-check[data-ok="true"] .cv-check-mark { background: var(--c-ink-2); box-shadow: none; }
.cv-check[data-ok="true"] .cv-check-mark::after { content: ""; position: absolute; left: 6px; top: 3.5px; width: 4px; height: 8px;
  border: solid var(--c-surface); border-width: 0 1.75px 1.75px 0; transform: rotate(45deg); }
.cv-send { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 18px 0 0; }
.cv-send button.big { min-height: 40px; padding: 10px 20px; font-size: 14px; }
.cv-danger-row { margin: 4px 0 28px; }
.cv-danger-row button { margin: 0; min-height: 32px; font-size: 12.5px; border-radius: var(--ui-r-control); }

/* a note from our team */
.cv-notice { margin: 0 0 18px; padding: 12px 14px; border-radius: var(--ui-r-card); background: var(--c-surface);
             box-shadow: var(--ui-card); }
.cv-notice strong { display: block; font: 600 13.5px/1.4 var(--sans); color: var(--c-ink); }
.cv-notice p { margin: 4px 0 0; font-size: 13px; line-height: 1.55; color: var(--c-ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.cv-notice p:empty { display: none; }
.cv-notice .cv-notice-next { color: var(--c-ink-3); }
.cv-notice[data-tone="open"] { background: var(--c-open-bg); box-shadow: inset 0 0 0 1px var(--c-open-line); }
.cv-notice[data-tone="open"] strong { color: var(--c-open-ink); }
.cv-notice[data-tone="bad"] { background: var(--c-alarm-bg); box-shadow: inset 0 0 0 1px var(--c-alarm-line); }
.cv-notice[data-tone="bad"] strong { color: var(--c-alarm-ink); }

/* where a sent request is: four steps on one line */
.cv-track { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 20px; padding: 0; }
.cv-track-step { position: relative; padding: 20px 8px 0 0; }
/* the line from each mark to the next one */
.cv-track-step:not(:last-child)::after { content: ""; position: absolute; top: 6px; left: 20px; right: 6px; height: 2px;
  border-radius: 1px; background: var(--c-line); }
.cv-track-step[data-done="true"]:not(:last-child)::after { background: var(--c-ink-3); }
.cv-track-mark { position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 999px; background: var(--c-surface);
                 box-shadow: inset 0 0 0 1.5px var(--c-ink-4); }
.cv-track-step[data-done="true"] .cv-track-mark { background: var(--c-ink-2); box-shadow: none; }
.cv-track-step[data-now="true"]:not([data-done="true"]) .cv-track-mark { box-shadow: inset 0 0 0 4px var(--c-ink); }
.cv-track-label { font-size: 12.5px; color: var(--c-ink-3); }
.cv-track-step[data-now="true"] .cv-track-label { font-weight: 600; color: var(--c-ink); }
.cv-track-step[data-done="true"] .cv-track-label { color: var(--c-ink-2); }

.cv-facts { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.cv-facts dt { font-size: 12.5px; color: var(--c-ink-3); }
.cv-facts dd { margin: 0; font-size: 13px; line-height: 1.5; color: var(--c-ink); overflow-wrap: anywhere; white-space: pre-line; }
.cv-detail .cv-file-acts { display: none; }
.cv-withdraw > header { align-items: center; margin: 0; }
.cv-withdraw > header > button { flex: none; margin: 0; min-height: 32px; }

/* ── instant voices ──────────────────────────────────────────────────────────
 * Motion here keeps tts.css's rules: named properties only, transform and
 * opacity, --ease-out for arrivals and presses, nothing over 250 ms except
 * the one loop that says "still working", and none of it under reduced
 * motion. Buttons already press to 0.97 (app.css). */
.cv-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 14px; margin: 0 0 12px; }
.cv-section-head h2 { margin: 0; font: 650 17px/1.3 var(--sans); letter-spacing: -0.015em; color: var(--c-ink); }
.cv-section-head p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: var(--c-ink-3); }
.cv-section-head button { flex: none; margin: 0; min-height: 34px; padding: 8px 14px; font-size: 13px; font-weight: 600;
                          border-radius: var(--ui-r-control); }
.cv-instant { margin: 0 0 34px; }
/* Requests are off on this Conductor: the page is the instant voices alone. */
.cv-page[data-clones="off"] :is(#cv-list-view, #cv-new, .cv-retry) { display: none !important; }
#cv-iv-status { margin: -4px 0 12px; }

/* one card per voice: who it is, then its three verbs */
.cv-voices { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 0 0 14px; }
.cv-voices:empty { display: none; }
.cv-voice { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 14px 16px; border-radius: var(--ui-r-card);
            background: var(--c-surface); box-shadow: var(--ui-card); animation: cv-in 200ms var(--ease-out) both; }
.cv-voice-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cv-voice-mark { flex: none; }
.cv-voice-words { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.cv-voice-name { font: 600 14px/1.35 var(--sans); letter-spacing: -0.006em; color: var(--c-ink); overflow-wrap: anywhere; }
.cv-voice-rename { width: 100%; padding: 6px 9px; border: 1px solid var(--ui-edge); border-radius: var(--ui-r-control);
                   background: var(--c-surface); font: 600 14px/1.35 var(--sans); color: var(--c-ink); }
.cv-voice-rename:focus { outline: none; border-color: var(--c-ink-3); box-shadow: var(--ui-ring); }
.cv-voice-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cv-voice-acts button { display: inline-flex; align-items: center; gap: 6px; margin: 0; min-height: 30px;
                        border-radius: var(--ui-r-control); }
.cv-voice-say { margin: -4px 0 0; }
/* Play and Stop share one place; the mark that is not in use fades out of it. */
.cv-play-mark { display: inline-grid; width: 12px; height: 12px; }
.cv-play-mark svg { grid-area: 1 / 1; width: 12px; height: 12px;
                    transition: opacity 150ms ease, transform 150ms var(--ease-out); }
.cv-play-mark svg:last-child { opacity: 0; transform: scale(0.6); }
[data-state="playing"] > .cv-play-mark svg:first-child { opacity: 0; transform: scale(0.6); }
[data-state="playing"] > .cv-play-mark svg:last-child { opacity: 1; transform: none; }
[data-state="loading"] > .cv-play-mark { animation: cv-wait 700ms ease-in-out infinite alternate; }
@keyframes cv-wait { to { opacity: 0.35; } }

/* the form */
.cv-iv-form { max-width: 780px; margin-top: 2px; }
.cv-iv-form h4 { margin: 0 0 6px; font: 600 13.5px/1.35 var(--sans); color: var(--c-ink); }
.cv-iv-clip { margin: 0 0 18px; padding: 0 0 18px; border-bottom: 1px solid var(--ui-sep); }
.cv-iv-tips { margin: 0 0 12px; padding: 0 0 0 18px; font-size: 12.5px; line-height: 1.6; color: var(--c-ink-2); }
.cv-iv-clip .cv-clip-row .cv-help { font-size: 12px; }
.cv-iv-clip[aria-invalid="true"] .cv-clip-row button:first-child { box-shadow: 0 0 0 3px var(--c-alarm-bg); }
.cv-iv-clip > .cv-say { margin-top: 10px; }
.cv-iv-rec-hint { margin: 8px 0 0; }
.cv-iv-accent :is(select, input)[hidden] { display: none; }
/* a <label> of its own (the field holds two controls), read like the others */
.cv-iv-accent > label.cv-label { display: block; margin: 0; font: 500 12px/1.4 var(--sans); letter-spacing: 0;
                                 text-transform: none; color: var(--c-ink-2); }
.cv-iv-consent { margin: 6px 0 0; padding: 16px 0 0; border-top: 1px solid var(--ui-sep); }
.cv-iv-consent h4 { margin-bottom: 10px; }
.cv-iv-send { margin-top: 16px; }
/* "still making it": a short bar crossing a track, the one looping thing here */
.cv-iv-busy { position: relative; flex: none; width: 72px; height: 3px; border-radius: 999px; background: var(--ui-fill); overflow: hidden; }
.cv-iv-busy[hidden] { display: none; }
.cv-iv-busy i { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; border-radius: inherit; background: var(--c-ink-2);
                animation: cv-busy 1100ms var(--ease-in-out) infinite; }
@keyframes cv-busy { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* The Test panel's sample button, beside the voice picker while one of Your
 * voices is chosen (agent.js · paintVoicePlay). The page's own colours. */
.rail-field .voice-play { flex: none; display: grid; place-items: center; width: 30px; height: 30px; min-height: 0; margin: 0; padding: 0;
                          border: 1px solid var(--c-line-strong); border-radius: 999px; background: var(--c-surface);
                          color: var(--c-ink-2); transition: transform 120ms var(--ease-out), color 150ms ease; }
.rail-field .voice-play[hidden] { display: none; }
.rail-field .voice-play .cv-play-mark { width: 11px; height: 11px; }
.rail-field .voice-play .cv-play-mark svg { width: 11px; height: 11px; }
@media (hover: hover) and (pointer: fine) { .rail-field .voice-play:hover { color: var(--c-ink); } }
/* a finger's target where the console's touch rules make every button 44 px */
@media (max-width: 760px) { .rail-field .voice-play { width: 44px; height: 44px; } }

/* arriving: a view swaps in with a short rise; nothing waits on it */
@keyframes cv-in { from { opacity: 0; transform: translateY(4px); } }
.cv-page:not([data-state="loading"]) :is(#cv-list-view, #cv-editor, #cv-detail):not([hidden]) { animation: cv-in 200ms var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) {
  @keyframes cv-in-still { from { opacity: 0; } }
  .cv-page:not([data-state="loading"]) :is(#cv-list-view, #cv-editor, #cv-detail):not([hidden]) { animation: cv-in-still 160ms ease both; }
  .cv-meter-done, .cv-meter-pending, .cv-bar i, .cv-rec-meter i { transition: none; }
  .cv-voice { animation: cv-in-still 160ms ease both; }
  .cv-play-mark svg { transition: opacity 150ms ease; transform: none !important; }
  .cv-iv-busy i { left: 30%; animation: cv-wait 700ms ease-in-out infinite alternate; }
}

@media (max-width: 760px) {
  .cv-heading { flex-wrap: wrap; }
  .cv-heading > div:first-child { flex: 1 1 100%; }
}
@container (max-width: 640px) {
  /* numbers.css stacks a row's actions under it; this row's only action is
   * the chevron, which stays on the right. */
  .cv-row { grid-template-columns: 36px minmax(0, 1fr) auto; }
}
@media (max-width: 640px) {
  .cv-section-head { flex-direction: column; align-items: flex-start; }
  .cv-voices { grid-template-columns: minmax(0, 1fr); }
  .cv-grid { grid-template-columns: minmax(0, 1fr); }
  .cv-card .workspace-field :is(input, select, textarea) { font-size: 16px; }
  .cv-empty { padding: 28px 18px 22px; }
  .cv-file { grid-template-columns: minmax(0, 1fr); }
  .cv-file-acts { grid-column: 1; grid-row: auto; margin-top: 6px; }
  .cv-facts { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .cv-facts dd { margin-bottom: 8px; }
  .cv-withdraw > header { flex-direction: column; align-items: flex-start; }
  .cv-track-label { font-size: 11.5px; }
  .cv-send button.big, .cv-save button { flex: 1 1 100%; }
}
