/* Labs C: ollama-live (ol-), decide (dc-), council (cc-). Design tokens from styles.css only.
   The council code panel is a terminal and mirrors the fixed .agent-log palette in styles.css. */

/* ---------- ollama-live ---------- */
.ol-mode { margin-bottom: 12px; }
.ol-endpoint { flex: 1 1 220px; font-family: var(--mono); font-size: .88rem !important; }
.ol-status { font-size: .9rem; font-weight: 600; min-height: 1.4em; margin: 4px 0; }
.ol-status.ok { color: var(--good); }
.ol-status.warn { color: var(--warn); }
.ol-status.bad { color: var(--bad); }
.ol-help { margin: 10px 0; padding: 14px 16px; border-radius: 6px; background: var(--warn-soft); border-left: 3px solid var(--warn); font-size: .9rem; }
.ol-help h4 { margin: 0 0 8px; font-size: .98rem; }
.ol-help h4 small { font-weight: 500; color: var(--muted); }
.ol-help ol { margin: 0 0 6px; padding-left: 1.2em; }
.ol-help pre { margin: 6px 0 10px; font-size: .78rem; white-space: pre-wrap; word-break: break-all; }
.ol-os p { margin: 6px 0 2px; }
.ol-demo-banner { margin: 6px 0 12px; padding: 8px 12px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); font-size: .86rem; font-weight: 600; border: 1px dashed var(--accent); }
.ol-chat { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 10px; max-height: 360px; overflow-y: auto; }
.ol-chat:empty { display: none; }
.ol-msg { padding: 9px 12px; border-radius: 6px; font-size: .92rem; line-height: 1.5; max-width: 92%; border: 1px solid var(--line); }
.ol-msg .who { display: block; font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
.ol-msg .txt { white-space: pre-wrap; word-break: break-word; }
.ol-msg.user { align-self: flex-end; background: var(--accent-soft); border-color: transparent; }
.ol-msg.assistant { align-self: flex-start; background: var(--surface); }
.ol-msg.err { border-color: var(--bad); background: var(--bad-soft); }
.ol-msg .txt.streaming::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 2px; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(2) infinite; }
.ol-input textarea { min-height: 60px; }
.ol-pull { margin-top: 14px; }
.ol-pull pre { font-size: .8rem; }

/* ---------- decide ---------- */
.dc-results { margin-top: 6px; }
.dc-results .score-bars { grid-template-columns: minmax(96px, max-content) 1fr 28px; }
.dc-results .score-bars > span:nth-child(3n+1) { font-weight: 600; }
.dc-results .rec-card p { margin: 0 0 .5em; font-size: .93rem; }
.dc-results .rec-card ul { margin: 0 0 .8em; font-size: .92rem; }
.dc-caveats { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.dc-caveats p { font-size: .86rem !important; color: var(--ink-2); padding-left: 10px; border-left: 2px solid var(--warn); }

/* ---------- council ---------- */
.cc-author { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .86rem; }
.cc-tag { font: 600 .68rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.cc-self { color: var(--muted); }
.cc-code { background: #141619; border-radius: 6px; padding: 8px 0; overflow-x: auto; }
.cc-line { display: grid; grid-template-columns: 34px max-content auto; align-items: center; gap: 10px; width: 100%; min-width: max-content; text-align: left; background: none; border: 0; border-left: 3px solid transparent; padding: 2px 12px 2px 6px; cursor: pointer; color: #d4d7dc; }
.cc-line:hover { background: rgba(255, 255, 255, .05); }
.cc-line .ln { color: #8b939c; font-family: var(--mono); font-size: .74rem; text-align: right; }
.cc-line code { background: none; border: 0; padding: 0; color: inherit; font-size: .78rem; white-space: pre; }
.cc-line .marks { font: 600 .68rem var(--font); color: #141619; }
.cc-line .marks:not(:empty) { background: #f28b82; padding: 1px 7px; border-radius: 3px; }
.cc-line.guess { background: rgba(230, 180, 80, .14); border-left-color: #e6b450; }
.cc-line.found { background: rgba(242, 139, 130, .16); border-left-color: #f28b82; }
.cc-line:focus-visible { outline-offset: -2px; }
.cc-revs { margin: 14px 0 6px; }
.cc-log { min-height: 0; max-height: 300px; margin: 10px 0 0; }
.cc-findings { margin: 12px 0 0; padding-left: 1.3em; font-size: .9rem; }
.cc-findings li { margin-bottom: 10px; }
.cc-findings .note { margin-top: 4px; }
.cc-who { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 3px; }
.cc-you { color: var(--good); font-weight: 600; }

@media (max-width: 520px) { .ol-msg { max-width: 100%; } .cc-revs .chip { font-size: .8rem; } }
