.recording-review { color: var(--ink, #18212b); margin-bottom: 22px; }
.recording-review-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.recording-review-head h3 { margin: 0 0 8px; font-size: 18px; }
.recording-review-head p, .recording-review-note { color: var(--muted, #596b7c); font-size: 12px; line-height: 1.6; margin: 0 0 12px; }
.recording-overlap-count { white-space: nowrap; color: #82510b; background: #fff4d6; padding: 5px 10px; border-radius: 5px; font-size: 12px; }
.recording-trackboard { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 12px; margin: 12px 0 16px; }
.recording-track-identities { padding-top: 24px; }
.recording-track-identity { display: flex; align-items: center; gap: 9px; height: 44px; }
.recording-track-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; flex: 0 0 28px; }
.recording-track-icon svg { width: 17px; height: 17px; }
.recording-track-identity.user .recording-track-icon { color: #0d7b72; background: #eaf5f2; }
.recording-track-identity.agent .recording-track-icon { color: #255da8; background: #edf3fc; }
.recording-track-name { color: var(--ink, #18212b); font-size: 12px; line-height: 1.4; font-weight: 600; white-space: nowrap; }
.recording-track-scroll { overflow-x: auto; min-width: 0; padding: 0 2px 4px; }
.recording-track-canvas { min-width: 460px; }
.recording-track-axis { position: relative; height: 24px; }
.recording-track-time { position: absolute; top: 0; transform: translateX(-50%); color: var(--muted, #596b7c); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.recording-track-time:first-child { transform: none; }
.recording-track-time:last-child { transform: translateX(-100%); }
.recording-tracks { width: 100%; height: 88px; display: block; overflow: visible; }
.recording-track-baseline { stroke: var(--line, #d8e0e8); stroke-width: 1; vector-effect: non-scaling-stroke; }
.recording-track-guide { stroke: var(--line, #d8e0e8); stroke-width: .7; stroke-opacity: .55; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; pointer-events: none; }
.recording-track-selection { fill: #255da8; fill-opacity: .04; stroke: #255da8; stroke-opacity: .5; stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; pointer-events: none; }
.recording-playhead { stroke: #255da8; stroke-width: 1.5; vector-effect: non-scaling-stroke; pointer-events: none; }
.recording-tracks g[role="button"] { cursor: pointer; }
.recording-tracks g[role="button"]:focus { outline: 2px solid #18212b; }
.recording-tracks g[role="button"]:hover rect { stroke: var(--ink, #18212b); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 1; }
.recording-zoom-label { font-size: 12px; color: #596b7c; margin: 6px 0; }
.recording-overlap-nav { display: flex; flex-wrap: wrap; gap: 6px; max-height: 128px; overflow-y: auto; padding: 4px 0 12px; }
.recording-review button, .recording-overlap-card button { font: inherit; font-size: 12px; border: 1px solid #cbd6e0; border-radius: 5px; background: #fff; color: #255da8; padding: 7px 10px; cursor: pointer; }
.recording-review button:hover, .recording-overlap-card button:hover { background: #f0f5fb; }
.recording-review button:focus-visible, .recording-overlap-card button:focus-visible { outline: 2px solid #255da8; outline-offset: 2px; }
.recording-review button:disabled { opacity: .5; cursor: not-allowed; }
.recording-overlap-nav button { color: #82510b; border-color: #e4cf9a; }
.recording-overlap-nav button span { margin-left: 6px; color: #596b7c; font-variant-numeric: tabular-nums; }
.recording-player-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid #d8e0e8; }
.recording-player-head strong { font-size: 13px; font-variant-numeric: tabular-nums; }
.recording-player-channels { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.recording-player-channels button[aria-pressed="true"] { color: #fff; background: #255da8; border-color: #255da8; }
.recording-review audio { width: 100%; height: 40px; display: block; }
.recording-player-status { font-size: 12px; min-height: 18px; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.recording-review-note { margin: 0; max-width: 85ch; }
.recording-mobile-hint { display: none; }
.recording-overlap-card { border-left: 3px solid #b07817; background: #fff9eb; padding: 12px 14px; margin: 14px 0; color: #18212b; }
.recording-overlap-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.recording-overlap-heading strong { font-size: 12px; font-weight: 600; }
.recording-overlap-heading strong span { font-variant-numeric: tabular-nums; margin-left: 8px; }
.recording-overlap-card small { font-size: 11px; color: #70592c; display: block; line-height: 1.5; margin-top: 8px; }
.recording-overlap-pair { display: grid; grid-template-columns: 1fr 1fr; margin-top: 10px; gap: 12px; }
.recording-overlap-pair > div { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-variant-numeric: tabular-nums; }
.recording-role { font-weight: 600; }
.recording-role.user { color: #0d7b72; }
.recording-role.agent { color: #255da8; }
@media (max-width: 600px) {
  .recording-trackboard { grid-template-columns: 124px minmax(0, 1fr); gap: 6px; }
  .recording-track-identity { gap: 6px; }
  .recording-track-icon { width: 24px; height: 24px; flex-basis: 24px; border-radius: 6px; }
  .recording-track-name { font-size: 11px; }
  .recording-mobile-hint { display: block; font-size: 12px; color: #596b7c; margin: 6px 0; }
  .recording-review-head { gap: 8px; }
  .recording-overlap-heading { align-items: flex-start; }
  .recording-overlap-heading strong span { display: block; margin: 4px 0 0; }
  .recording-overlap-heading button { flex-shrink: 0; }
  .recording-player-head { align-items: flex-start; }
}

/* Three expandable diagnostic layers continue the two physical audio tracks. */
.recording-review .observation-group { width: 100%; padding: 0 5px; border: 0; border-radius: 0; background: transparent; color: var(--ink, #18212b); text-align: left; }
.observation-group small { color: var(--muted, #596b7c); margin-left: auto; }
.observation-child { padding-left: 15px; }
.observation-child .recording-track-name { font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.observation-empty { fill: #687582; font-size: 11px; }
.observation-mark rect { opacity: .68; }
.observation-mark.related rect { opacity: 1; stroke: #18212b; stroke-width: .7; vector-effect: non-scaling-stroke; }
.observation-mark.selected rect { stroke: #18212b; stroke-width: 2; }
.observation-flow { cursor: pointer; opacity: .55; }
.observation-flow.related, .observation-flow:hover, .observation-flow:focus { opacity: 1; }
.observation-flow-line { fill: none; stroke: currentColor; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.observation-flow.selected .observation-flow-line { stroke-width: 2.5; }
.observation-flow-hit { fill: none; stroke: transparent; stroke-width: 10; vector-effect: non-scaling-stroke; }
.observation-flow-label { fill: currentColor; font-size: 10px; paint-order: stroke; stroke: var(--surface, white); stroke-width: 3px; }
.observation-flow-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; margin: 10px 0; }
.recording-review .observation-flow-controls button { font-size: 11px; padding: 4px 7px; }
.observation-flow-controls button[aria-pressed="true"] { background: #edf3fc; border-color: #7891b7; }
.observation-flow-controls .recording-review-note { flex-basis: 100%; margin: 0; }
.observation-boundary { border-left: 3px solid #087e75; padding: 7px 10px; margin-bottom: 12px; background: var(--surface-2, #f5f7f9); }
.observation-log-list button > .observation-flow-caption { grid-column: 1 / -1; white-space: normal; color: #345eaa; }
.observation-sources { display: flex; flex-wrap: wrap; gap: 5px 18px; font-size: 12px; color: var(--muted, #596b7c); margin: 14px 0 10px; }
.observation-clock-summary { font-size: 12px; margin: 10px 0 6px; }
.observation-clocks { margin: 6px 0 14px; font-size: 12px; min-width: 0; }
.observation-clocks summary { cursor: pointer; }
.observation-clock-evidence { border-top: 1px solid var(--line, #d8e0e8); margin-top: 10px; padding-top: 10px; }
.observation-clocks pre { max-height: 240px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; padding: 10px; background: var(--surface-2, #f5f7f9); font: 11px/1.5 ui-monospace, monospace; }
.observation-inspector { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(0, 1.5fr); gap: 16px; border-top: 1px solid var(--line, #d8e0e8); padding-top: 14px; }
.observation-links > strong { font-size: 13px; }
.observation-modes { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; margin: 6px 0; }
.recording-review .observation-modes button { padding: 4px 7px; font-size: 11px; }
.observation-modes button[aria-pressed="true"] { background: #edf3fc; border-color: #7891b7; }
.observation-links input { width: 100%; margin: 9px 0; box-sizing: border-box; font: inherit; font-size: 12px; padding: 7px 8px; }
.observation-log-list { max-height: 320px; overflow: auto; }
.recording-review .observation-log-list button { display: grid; grid-template-columns: 75px minmax(50px, .6fr) minmax(70px, 1fr); gap: 8px; width: 100%; border: 0; border-bottom: 1px solid var(--line, #d8e0e8); border-radius: 0; text-align: left; color: var(--ink, #18212b); padding: 8px 4px; }
.observation-log-list button > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.observation-log-list button > span:first-child { white-space: normal; line-height: 1.5; }
.observation-log-list button[aria-pressed="true"] { background: #edf3fc; }
.observation-record { min-width: 0; font-size: 12px; }
.observation-record-head { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
.observation-record p { margin: 6px 0; color: var(--muted, #596b7c); }
.observation-source { overflow-wrap: anywhere; font-size: 11px; }
.observation-record pre { max-height: 320px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px; background: var(--surface-2, #f5f7f9); border: 1px solid var(--line, #d8e0e8); border-radius: 5px; font: 11px/1.5 ui-monospace, monospace; }
.eval-tts-observation { padding: 8px 0; }
.eval-tts-observation summary { cursor: pointer; }
.eval-tts-observation .hint { margin-top: 8px; }
@media (max-width: 650px) { .observation-inspector { grid-template-columns: 1fr; } .observation-log-list { max-height: 180px; } }
/* Processing details stay readable beside the recording and on narrow screens. */
.process-view-tabs { margin: 16px 0 10px; }
.process-owners { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.process-owners > section { border-top: 3px solid var(--owner-color); background: #f5f7fa; padding: 12px; font-size: 12px; min-width: 0; }
.process-owners p { line-height: 1.6; margin: 8px 0; }
.process-owners small, .process-turn-identity { color: #596b7c; }
.recording-track-identity[data-process-track] .recording-track-name { display: flex; flex-direction: column; white-space: normal; overflow-wrap: anywhere; }
.recording-track-identity[data-process-track] .recording-track-name small { color: #596b7c; font-size: 9px; font-weight: 400; }
.process-engine-modules { margin: 18px 0; }
.process-components { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.process-components > button { display: flex; flex-direction: column; gap: 8px; padding: 12px; text-align: left; white-space: normal; line-height: 1.5; min-width: 0; border-top: 3px solid var(--component-color); background: #f7f9fc; }
.process-components > button:disabled { opacity: 1; color: #65717e; border-color: #d8e0e8; background: #fafbfc; cursor: default; }
.process-components small { color: #596b7c; margin-top: auto; }
.process-components > button:focus-visible { outline: 2px solid #466dab; outline-offset: 2px; }
.process-stage-module { padding-left: 10px; border-left: 2px solid #d8e0e8; margin: 12px 0; }
.process-stage-module h6 { margin: 0 0 8px; font-size: 12px; color: #475e77; }
.process-transfers { padding: 12px 0; border-bottom: 1px solid #d8e0e8; }
.process-transfer-list { max-height: 420px; overflow: auto; }
.process-boundary { margin: 10px 0; padding: 10px; background: #f1f5fc; border-left: 3px solid #7654a6; font-size: 12px; overflow-wrap: anywhere; }
.process-boundary p { margin: 6px 0; }
.process-turns { padding: 16px 0; }
.process-turn-inspector { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(0, 2fr); gap: 18px; align-items: start; }
.process-turn-list { display: grid; gap: 6px; max-height: 540px; overflow: auto; }
.process-turn-list > button { display: grid; gap: 6px; padding: 12px; text-align: left; white-space: normal; min-width: 0; }
.process-turn-list > button[aria-pressed="true"] { background: #edf3ff; border-color: #466dab; }
.process-turn-detail { min-width: 0; border: 1px solid #d8e0e8; border-radius: 8px; padding: 14px; }
.process-turn-detail h4 { margin: 0 0 10px; }
.process-turn-identity { font-size: 11px; overflow-wrap: anywhere; }
.process-turn-stage { border-top: 1px solid #d8e0e8; padding: 10px 0; }
.process-turn-stage h5 { font-size: 13px; margin: 6px 0 10px; }
.process-turn-stage h5 small { color: #596b7c; margin-left: 8px; }
.process-input-sources { font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.process-stage-steps { display: grid; gap: 6px; }
.process-stage-steps > button { display: grid; gap: 5px; width: 100%; text-align: left; white-space: normal; line-height: 1.5; }
.process-step-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.process-stage-steps small { color: #596b7c; overflow-wrap: anywhere; }
.process-excerpt { display: block; font-size: 12px; overflow-wrap: anywhere; }
.recording-track-name { white-space: normal; }
@media (max-width: 750px) {
  .process-owners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-components { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-turn-inspector { grid-template-columns: minmax(0, 1fr); }
  .process-turn-list { max-height: 240px; }
}
.process-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; }
.process-inspector { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(0, 2fr); gap: 18px; }
.process-step-list { max-height: 520px; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.process-step-list > button { display: grid; height: auto; min-height: 82px; flex-shrink: 0; white-space: normal; line-height: 1.35; text-align: left; padding: 10px 12px; border: 1px solid #d8e0eb; border-radius: 6px; background: #f7f9fc; gap: 4px; }
.process-step-list > button[aria-pressed="true"] { border-color: #466dab; background: #edf3ff; }
.process-step-list small { color: #62748b; }
.process-io { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.process-step-detail { min-width: 0; }
.process-step-detail details { padding: 10px 0; }
.process-step-detail details button { display: block; margin: 6px 0; text-align: left; }
.process-step-detail pre, .artifact-json-dialog pre, [data-voice-summary] pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow: auto; padding: 12px; background: #f3f5f8; font-size: 12px; }
.artifact-json-dialog { width: min(1000px, 92vw); max-height: 88vh; border: 1px solid #c9d3e1; border-radius: 10px; padding: 24px; }
.artifact-json-dialog::backdrop { background: #13243c88; }
.artifact-json-dialog pre { max-height: 60vh; }
.eval-transcript-time { font: inherit; border: 0; padding: 0 3px; background: transparent; color: #345eaa; text-decoration: underline; cursor: pointer; }
@media (max-width: 650px) {
  .process-inspector, .process-io { grid-template-columns: minmax(0,1fr); }
  .process-step-list { max-height: 240px; }
}

.process-work-sequence { padding-left: 22px; border-left: 2px solid #d8e0e8; margin: 16px 0 0 10px; }
.process-work-sequence > li { padding: 0 0 16px 8px; }
.process-work-sequence > li > button { display: grid; width: 100%; gap: 6px; text-align: left; white-space: normal; padding: 10px; border: 1px solid #d8e0e8; border-radius: 6px; background: #f7f9fc; line-height: 1.5; }
.process-work-sequence small { color: #596b7c; overflow-wrap: anywhere; }
.process-reference { margin: 12px 0; }
.audio-quality-overview { min-width: 0; }
.audio-quality-overview pre { max-height: 300px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
