/* Live participant page. Builds on the tokens and components in style.css. */
[hidden] { display: none !important; }
.live-topbar { align-items: center; }
.live-topbar-actions { display: flex; align-items: flex-end; gap: 12px; margin-left: auto; }
.live-end { height: 36px; white-space: nowrap; padding: 0 12px; border: 1px solid var(--red); border-radius: 8px; background: var(--paper); color: var(--red); font-size: 12px; font-weight: 600; }
.live-shell { max-width: 1320px; margin: 0 auto; padding: 16px 24px 32px; }
.live-columns { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.live-column { display: grid; gap: 12px; min-width: 0; }
.live-card { min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--paper); }
.live-start { max-width: 620px; margin: 48px auto; padding: 24px; }
.live-start h2 { margin: 0 0 8px; font-size: 16px; font-weight: 650; }
.live-start p { margin: 0 0 16px; font-size: 13px; }
.live-start h2.live-subheading { margin-top: 20px; }
.live-consent { max-height: 240px; margin-bottom: 10px; padding: 10px 12px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.live-check { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.live-instructions { margin: 0 0 16px; padding-left: 18px; font-size: 12px; }
.live-instructions li + li { margin-top: 4px; }
.live-start-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.live-secondary { padding: 8px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--paper); color: var(--text); font-size: 12px; font-weight: 600; }
.live-survey-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.live-survey-layout.single { grid-template-columns: minmax(0, 620px); justify-content: center; }
.live-survey { padding: 24px; }
.live-survey-log { display: flex; overflow: hidden; flex-direction: column; position: sticky; top: 12px; height: calc(100vh - 130px); min-height: 420px; }
.live-survey h2 { margin: 0 0 6px; font-size: 16px; font-weight: 650; }
.live-survey-intro { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.live-survey fieldset { margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; }
.live-survey legend { padding: 0 4px; font-size: 12px; font-weight: 600; }
.live-scale { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; }
.live-scale label { display: inline-flex; align-items: center; gap: 5px; }
.live-survey-comment { display: grid; gap: 6px; margin-bottom: 10px; font-size: 12px; font-weight: 600; }
.live-survey-comment textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--paper); color: var(--text); font: inherit; font-weight: 400; resize: vertical; }
.live-primary { padding: 8px 16px; border: 1px solid var(--indigo); border-radius: 8px; background: var(--indigo); color: var(--paper); font-size: 12px; font-weight: 600; }
.live-primary:disabled { opacity: .45; cursor: default; }
.live-banner { margin: 0; }
.live-error { min-height: 0; color: var(--red); font-size: 11px; }
#live-status.ready { background: var(--green); color: var(--paper); font-weight: 600; }
.live-summary { cursor: pointer; font-size: 12px; font-weight: 600; }
.live-brief-section { margin-top: 10px; }
.live-brief-section > strong { font-size: 11px; }
.live-brief-section p { margin: 4px 0 0; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.live-brief-section ul { margin: 4px 0 0; padding-left: 18px; font-size: 12px; }
.live-brief-section li + li { margin-top: 3px; }
.live-brief-section .live-hint { display: block; color: var(--indigo); font-size: 11px; }
.live-brief-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
@media (max-width: 900px) {
  .live-shell { padding: 12px 16px 24px; }
  .live-columns { grid-template-columns: 1fr; }
  .live-survey-layout { grid-template-columns: 1fr; }
  .live-survey-log { position: static; height: auto; }
}
.live-brief-question p {
  font-weight: 600;
}
.live-metric-tag {
  font-weight: 400;
  opacity: 0.7;
}

/* Chat column: a scrolling stream with the input docked below it. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.live-columns { grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); }
.live-chat { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 12px; height: calc(100vh - 110px); min-height: 460px; }
.live-stream-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 6px 8px 2px; scrollbar-gutter: stable; }
.live-stream { display: flex; flex-direction: column; gap: 14px; max-width: 780px; margin: 0 auto; }
.live-survey-log .live-stream { flex: 1; min-height: 0; overflow-y: auto; margin: 0; padding-top: 10px; }
.live-stream-empty { padding: 32px 0; color: var(--muted); text-align: center; font-size: 13px; }
.live-stream-empty:empty { display: none; }

.live-avatar { display: inline-grid; flex: none; place-items: center; position: relative; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 650; }
.live-avatar.tone-0, .live-dot.tone-0 { --tone: #4d73a8; }
.live-avatar.tone-1, .live-dot.tone-1 { --tone: #a8743a; }
.live-avatar.tone-2, .live-dot.tone-2 { --tone: #3f8a72; }
.live-avatar.tone-3, .live-dot.tone-3 { --tone: #8a5a9e; }
.live-avatar.tone-none { --tone: var(--muted); }
.live-avatar, .live-dot { background: var(--tone); }
.live-avatar.working::after { content: ""; position: absolute; inset: -4px; border: 2px solid var(--tone); border-radius: 50%; opacity: 0; animation: live-ring 1.6s ease-out infinite; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; vertical-align: 1px; }
@keyframes live-ring { 0% { transform: scale(.85); opacity: .75; } 100% { transform: scale(1.35); opacity: 0; } }

.live-msg { display: flex; gap: 10px; align-items: flex-start; }
.live-msg.mine { justify-content: flex-end; }
.live-msg-body { display: grid; gap: 4px; min-width: 0; max-width: 85%; }
.live-msg.mine .live-msg-body { justify-items: end; }
.live-msg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 12px; }
.live-role { color: var(--muted); font-size: 11px; }
.live-to { padding: 1px 7px; border-radius: 999px; background: var(--surface-strong); color: var(--muted); font-size: 10.5px; }
.live-bubble { font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.live-msg.mine .live-bubble { padding: 9px 14px; border-radius: 16px 16px 4px 16px; background: var(--indigo-soft); }
.live-msg.theirs .live-bubble { padding: 2px 0; }
.live-event { align-self: center; padding: 3px 10px; border-radius: 999px; background: var(--surface-strong); color: var(--muted); font-size: 11.5px; }
.live-proposal { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--green) 45%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--green) 7%, var(--paper)); }
.live-proposal p { margin: 4px 0 0; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }

.live-activity { margin-left: 38px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.live-activity > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 7px 12px; cursor: pointer; color: var(--muted); font-size: 12px; list-style: none; }
.live-activity > summary::-webkit-details-marker { display: none; }
.live-activity > summary::before { content: "\25B8"; display: inline-block; font-size: 10px; transition: transform 150ms; }
.live-activity[open] > summary::before { transform: rotate(90deg); }
.live-activity-title { color: var(--text); font-weight: 600; }
.live-activity-actor { white-space: nowrap; }
.live-activity ol { display: grid; margin: 0; padding: 2px 12px 8px; list-style: none; }
.live-activity li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.live-activity li .live-avatar { width: 20px; height: 20px; font-size: 10px; }
.live-activity li > div { display: grid; gap: 4px; min-width: 0; font-size: 12.5px; }
.live-activity-line em { font-style: normal; font-weight: 600; }
.live-activity li p { margin: 0; color: var(--muted); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.live-query { justify-self: start; padding: 2px 8px; border-radius: 6px; background: var(--surface-strong); font-family: var(--mono); font-size: 11px; overflow-wrap: anywhere; }

.live-working { display: flex; align-items: center; gap: 10px; max-width: 780px; margin: 14px auto 0; color: var(--muted); font-size: 13px; }
.live-working strong { color: var(--text); }
.live-dots { display: inline-flex; gap: 3px; }
.live-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: live-bounce 1.2s infinite ease-in-out; }
.live-dots i:nth-child(2) { animation-delay: .15s; }
.live-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes live-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-4px); opacity: 1; } }
.live-elapsed { font-size: 11.5px; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .live-avatar.working::after, .live-dots i { animation: none; }
  .live-avatar.working::after { opacity: .5; }
}

.live-dock { display: grid; flex: none; gap: 8px; width: 100%; max-width: 800px; margin: 0 auto; }
.live-composer { display: grid; gap: 6px; padding: 10px 12px 8px; border: 1px solid var(--border); border-radius: 18px; background: var(--paper); box-shadow: 0 1px 3px rgb(0 0 0 / 6%); transition: border-color 150ms, box-shadow 150ms; }
.live-composer:focus-within { border-color: color-mix(in srgb, var(--indigo) 55%, var(--border)); }
.live-composer.your-turn { border-color: var(--indigo); background: color-mix(in srgb, var(--indigo) 5%, var(--paper)); box-shadow: 0 0 0 1px var(--indigo), 0 0 0 5px color-mix(in srgb, var(--indigo) 18%, transparent); }
.live-composer textarea { width: 100%; max-height: 220px; padding: 4px 2px; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 14px; line-height: 1.5; resize: none; }
.live-composer-row { display: flex; align-items: center; gap: 10px; }
.live-recipient { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 10px; border-radius: 999px; background: var(--surface-strong); color: var(--muted); font-size: 11.5px; }
.live-recipient select { padding: 3px 4px; border: 0; background: transparent; color: var(--text); font-size: 12px; font-weight: 600; }
.live-text-button { margin-left: auto; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; }
.live-text-button:hover:not(:disabled) { background: var(--surface-strong); color: var(--text); }
.live-send { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--indigo); color: var(--paper); }
.live-text-button:disabled, .live-send:disabled { opacity: .35; cursor: default; }

.live-approval { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 14px; border: 2px solid var(--green); border-radius: 14px; background: color-mix(in srgb, var(--green) 8%, var(--paper)); }
.live-approval > div { display: grid; flex: 1 1 320px; gap: 4px; min-width: 0; }
.live-approval-title { color: var(--green); font-size: 14px; font-weight: 700; }
.live-approval p { margin: 0; font-size: 12.5px; overflow-wrap: anywhere; }
.live-approval small { color: var(--muted); font-size: 11.5px; }
.live-approval button { flex: none; padding: 9px 16px; border: 0; border-radius: 10px; background: var(--green); color: var(--paper); font-size: 13px; font-weight: 650; }
.live-suggestion { display: grid; gap: 6px; padding: 10px 14px; border: 1px dashed color-mix(in srgb, var(--indigo) 55%, transparent); border-radius: 14px; background: var(--indigo-soft); }
.live-suggestion p { margin: 0; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.live-suggestion small { color: var(--muted); }
.live-suggestion .live-start-actions button { padding: 5px 12px; }

@media (max-width: 900px) {
  .live-columns { grid-template-columns: 1fr; }
  .live-chat { position: static; height: 78vh; min-height: 420px; }
  .live-activity { margin-left: 0; }
  .live-msg-body { max-width: 92%; }
}

/* Side panel: the brief and the shared work, one tab at a time. */
.live-side { position: sticky; top: 12px; }
.live-panel { display: flex; flex-direction: column; height: calc(100vh - 110px); min-height: 460px; padding: 0; overflow: hidden; }
.live-tabs { display: flex; flex: none; gap: 2px; padding: 6px 8px 0; border-bottom: 1px solid var(--border); overflow-x: auto; }
.live-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px 9px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.live-tabs button:hover { color: var(--text); }
.live-tabs button.active { border-bottom-color: var(--indigo); color: var(--text); }
.live-tab-count { min-width: 18px; padding: 0 6px; border-radius: 999px; background: var(--surface-strong); color: var(--muted); font-size: 10.5px; line-height: 17px; text-align: center; }
.live-tab-count:empty { display: none; }
.live-panel-body { flex: 1; min-height: 0; padding: 4px 16px 18px; overflow-y: auto; scrollbar-gutter: stable; }
.live-panel-empty { padding: 28px 4px; color: var(--muted); font-size: 12.5px; text-align: center; }
.live-panel-note { margin: 12px 0 4px; color: var(--muted); font-size: 11.5px; }
.live-panel-heading { margin: 16px 0 6px; font-size: 12px; font-weight: 650; }
.live-muted { color: var(--muted); }

.live-report-question { margin: 14px 0 6px; padding: 10px 12px; border-radius: 10px; background: var(--surface); }
.live-report-question span { color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.live-report-question p { margin: 2px 0 0; font-size: 14px; font-weight: 600; line-height: 1.45; }
.live-report-section { padding: 14px 0 16px; border-bottom: 1px solid var(--border); }
.live-report-section:last-child { border-bottom: 0; }
.live-report-section header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.live-report-section h3 { margin: 0; font-size: 14.5px; font-weight: 650; line-height: 1.35; }
.live-report-section h3 span { color: var(--muted); font-weight: 500; }
.live-owner { flex: none; color: var(--muted); font-size: 11px; white-space: nowrap; }
.live-report-text p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.65; overflow-wrap: anywhere; }
.live-cite { display: inline-grid; place-items: center; min-width: 17px; height: 17px; margin: 0 1px; padding: 0 4px; border: 0; border-radius: 5px; background: var(--indigo-soft); color: var(--indigo); font-size: 10.5px; font-weight: 700; line-height: 1; vertical-align: 2px; }
button.live-cite:hover { background: var(--indigo); color: var(--paper); }
.live-cite.missing { background: var(--amber-soft); color: var(--amber); }
.live-reviews { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.live-review > summary { display: inline-block; padding: 2px 9px; border-radius: 999px; cursor: pointer; font-size: 11px; font-weight: 600; list-style: none; }
.live-review > summary::-webkit-details-marker { display: none; }
.live-review.ok > summary { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.live-review.warn > summary { background: var(--amber-soft); color: var(--amber); }
.live-review[open] { flex-basis: 100%; }
.live-review p { margin: 6px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.live-review-none { color: var(--muted); font-size: 11px; }
.live-cite-list { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.live-cite-list li { display: flex; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 12px; transition: background-color 600ms; }
.live-cite-list li.flash { background: var(--indigo-soft); }
.live-cite-list li > div { display: grid; gap: 2px; min-width: 0; }
.live-cite.static { flex: none; margin-top: 1px; }
.live-cite-title { overflow-wrap: anywhere; }
.live-cite-list summary, .live-sources summary { cursor: pointer; color: var(--muted); font-size: 11px; }
.live-cite-list details p, .live-sources details p { margin: 4px 0 0; color: var(--muted); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }

.live-sources { display: grid; margin: 4px 0 0; padding: 0; list-style: none; }
.live-sources li { display: grid; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.live-sources li:last-child { border-bottom: 0; }
.live-source-title { font-size: 13px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.live-cited { display: inline-flex; align-items: center; gap: 2px; margin-left: 8px; color: var(--indigo); font-size: 10.5px; font-weight: 600; vertical-align: 1px; }
.live-source-meta { color: var(--muted); font-size: 11.5px; }
.live-open { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.live-open li { padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-size: 12.5px; }
.live-open li em { font-style: normal; font-weight: 600; }
.live-open li p { margin: 4px 0 0; color: var(--muted); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
#brief { padding-top: 2px; }

@media (max-width: 900px) {
  .live-side { position: static; }
  .live-panel { height: auto; min-height: 0; max-height: 85vh; }
  .live-tabs { gap: 0; padding: 4px 4px 0; }
  .live-tabs button { gap: 4px; padding: 8px 6px 9px; font-size: 12px; }
}

/* Brief: what the participant acts on stays open; background folds away. */
.live-brief-note { margin: 12px 0 0; }
.live-brief-section { margin-top: 14px; }
.live-brief-section > strong { display: block; font-size: 12px; font-weight: 650; }
.live-brief-approach { padding: 10px 12px; border-left: 3px solid var(--indigo); border-radius: 0 8px 8px 0; background: var(--indigo-soft); }
.live-brief-approach p { font-size: 12.5px; }
.live-hint-muted { display: block; margin-top: 1px; color: var(--muted); font-size: 11px; }
.live-brief-agents { display: grid; gap: 4px; padding: 0; list-style: none; }
.live-brief-agents .live-owner { margin-right: 2px; }

/* Phone navigation between the chat and the panel. */
.live-mobile-nav { display: none; }
.live-nav-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--indigo); }

/* Top bar: slimmer, theme control without its label. */
.live-topbar { padding-top: 10px; padding-bottom: 10px; }
.live-topbar h1 { min-height: 32px; font-size: 16px; }
.live-topbar .select-field .field-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.live-topbar-actions { align-items: center; }
.live-topbar #theme-select { min-width: 0; padding-top: 6px; padding-bottom: 6px; }
.live-end { height: 32px; }

/* Survey: one card per question, answers as a row of choices. */
.live-survey { max-width: 760px; padding: 28px; border-radius: 14px; }
.live-survey h2 { font-size: 18px; }
.live-survey-intro { font-size: 13px; line-height: 1.6; }
.live-survey fieldset { margin: 0 0 12px; padding: 12px 14px 14px; border-radius: 12px; }
.live-survey legend { float: left; width: 100%; margin-bottom: 10px; padding: 0; font-size: 13px; font-weight: 600; line-height: 1.45; }
.live-survey legend + * { clear: both; }
.live-scale { gap: 6px; }
.live-scale label { position: relative; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--paper); cursor: pointer; font-size: 12px; transition: background-color 120ms, border-color 120ms; }
.live-scale label:hover { border-color: color-mix(in srgb, var(--indigo) 50%, var(--border)); }
.live-scale input { position: absolute; opacity: 0; pointer-events: none; }
.live-scale label:has(input:checked) { border-color: var(--indigo); background: var(--indigo); color: var(--paper); }
.live-scale label:has(input:focus-visible) { outline: 2px solid var(--indigo); outline-offset: 2px; }
.live-survey-comment textarea { border-radius: 10px; }
.live-survey-log { border-radius: 14px; }

@media (max-width: 900px) {
  .live-mobile-nav { display: flex; position: sticky; top: 0; z-index: 2; gap: 2px; margin: -4px -16px 0; padding: 6px 12px; overflow-x: auto; border-bottom: 1px solid var(--border); background: var(--background); }
  .live-mobile-nav button { display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
  .live-mobile-nav button.active { background: var(--surface-strong); color: var(--text); }
  .live-columns:not([data-view="chat"]) .live-chat { display: none; }
  .live-columns[data-view="chat"] .live-side { display: none; }
  .live-side .live-tabs { display: none; }
  .live-chat { height: calc(100dvh - 190px); min-height: 380px; }
  .live-panel { max-height: none; }
  .live-survey { padding: 18px; }
}

/* Pilot feedback: the turn is hard to miss, and the shared report has its own tab. */
.live-turn-banner { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 12px; background: var(--indigo); color: var(--paper); font-size: 13px; font-weight: 600; line-height: 1.35; }
.live-turn-banner::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: live-pulse 1.6s ease-in-out infinite; }
@keyframes live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .live-turn-banner::before { animation: none; } }

.live-subtabs { display: flex; position: sticky; top: -4px; z-index: 1; gap: 4px; margin: 0 -16px; padding: 10px 16px 8px; border-bottom: 1px solid var(--border); background: var(--paper); overflow-x: auto; }
.live-subtabs[hidden] { display: none; }
.live-subtabs button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.live-subtabs button:hover { color: var(--text); }
.live-subtabs button.active { border-color: var(--text); background: var(--text); color: var(--paper); }
.live-subtabs button.active .live-tab-count { background: color-mix(in srgb, var(--paper) 22%, transparent); color: var(--paper); }

.live-brief-section h3 { margin: 0 0 4px; font-size: 12px; font-weight: 650; }
.live-brief-section p { margin: 0; font-size: 12.5px; line-height: 1.55; }
.live-brief-list { display: grid; gap: 4px; margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; }
.live-brief-approach { margin-top: 12px; }
.live-cues { display: grid; gap: 8px; margin: 14px 0 12px; padding: 0; list-style: none; counter-reset: cue; }
.live-cues li { position: relative; padding: 10px 12px 10px 36px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); counter-increment: cue; }
.live-cues li::before { content: counter(cue); position: absolute; top: 10px; left: 12px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--surface-strong); color: var(--muted); font-size: 10.5px; font-weight: 700; }
.live-cues p { margin: 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.live-cue-when { display: inline-block; margin-top: 6px; padding: 1px 8px; border-radius: 999px; background: var(--indigo-soft); color: var(--indigo); font-size: 11px; font-weight: 600; }
.live-cue-kind { display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

/* Flexible turns: a message waiting to be delivered. */
.live-msg.queued .live-bubble { opacity: .7; outline: 1px dashed var(--indigo); outline-offset: -1px; }
.live-queued-note { margin-top: 3px; color: var(--muted); font-size: 11px; text-align: right; }
.live-ref { display: inline-block; padding: 0 6px; border-radius: 4px; background: var(--indigo-soft); color: var(--indigo); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.92em; font-weight: 600; white-space: nowrap; }
.live-sub-heading { margin: 8px 0 2px; font-size: 11px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.live-plain { margin: 4px 0 0; font-size: 12.5px; line-height: 1.55; overflow-wrap: anywhere; }
.live-rank { color: var(--indigo); font-weight: 700; }
.live-status { display: inline-block; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--indigo-soft); color: var(--indigo); }
.live-status.status-unreviewed { background: transparent; color: var(--muted); border: 1px solid currentColor; }
.live-criteria { white-space: pre-wrap; font-size: 11.5px; max-height: 260px; overflow: auto; }
.live-task-options { display: grid; gap: 10px; margin-top: 8px; }
.live-task-option { display: grid; gap: 4px; padding: 12px 14px; text-align: left; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: inherit; font: inherit; cursor: pointer; }
.live-task-option:hover:not(:disabled) { border-color: var(--indigo); }
.live-task-option:disabled { opacity: 0.55; cursor: default; }
.live-task-option strong { font-size: 14px; }
.live-task-option span, .live-task-option em { font-size: 12.5px; color: var(--muted); }
