/* revcat-agent-advocate */

:root {
    --text: #222;
    --text-muted: #555;
    --border: #ddd;
    --link: #F2545B;
    --link-hover: #d93a42;
    --green: #116611;
    --red: #991111;
    --code-bg: #f6f6f6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.7;
    font-size: 15px;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border);
    max-width: 960px;
    margin: 0 auto;
    font-size: 0.9rem;
}

.nav-brand { font-weight: 700; }
.nav-brand a { color: var(--text); text-decoration: none; }

.nav-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.nav-links a { color: var(--link); text-decoration: none; font-weight: 900; }
.nav-links a:hover { color: var(--link-hover); text-decoration: underline; }

/* Main content */
main {
    max-width: 720px;
    margin: 2rem auto;
    padding: 0 1.25rem;
}

/* Typography */
h1 { font-size: 1.5rem; margin-bottom: 1rem; font-weight: 700; }
h2 { font-size: 1.2rem; margin: 1.75rem 0 0.6rem; font-weight: 600; border-bottom: 1px solid var(--border); padding-bottom: 0.25rem; }
h3 { font-size: 1rem; margin: 1.25rem 0 0.5rem; font-weight: 600; }
h4 { font-size: 0.9rem; margin: 0.75rem 0 0.3rem; color: var(--text-muted); }

p { margin-bottom: 0.75rem; }
hr { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* Links — subtle, not blue */
a { color: var(--link); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 2px; font-weight: 900; }
a:hover { color: var(--link-hover); text-decoration-color: var(--text); }

/* Lists — global, not scoped */
ul, ol { margin: 0.5rem 0 0.75rem 1.5rem; }
li { margin-bottom: 0.35rem; }
li p { margin-bottom: 0.25rem; }

/* Badges */
.badge {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.badge-verified { color: var(--green); }
.badge-broken { color: var(--red); }
.badge-running { color: #886600; }
.badge-draft { color: var(--text-muted); }
.badge-area { color: var(--text-muted); }
.badge-critical { color: var(--red); }
.badge-major { color: #886600; }
.badge-minor { color: var(--text-muted); }
.badge-suggestion { color: var(--green); }

/* Code */
code {
    font-family: "SF Mono", "Fira Code", Consolas, monospace;
    font-size: 0.85em;
    background: var(--code-bg);
    padding: 0.15em 0.3em;
    border-radius: 3px;
}

pre {
    background: var(--code-bg);
    padding: 0.85rem 1rem;
    overflow-x: auto;
    margin: 0.75rem 0;
    border: 1px solid var(--border);
    border-radius: 3px;
}

pre code { background: none; padding: 0; font-size: 0.85rem; border-radius: 0; }

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75rem 0;
    font-size: 0.9rem;
}

th, td {
    padding: 0.45rem 0.65rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th { font-weight: 600; }

/* Content grid */
.content-grid, .experiment-grid, .feedback-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0.75rem 0;
}

.content-card, .experiment-card, .feedback-card, .qa-memo {
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    text-decoration: none;
    color: var(--text);
}
.content-card h3 a, .experiment-card h3 a, .feedback-card h3 a { color: var(--link); }
.content-card h3 a:hover, .experiment-card h3 a:hover { color: var(--link-hover); }

.content-card:hover, .experiment-card:hover {
    background: #fafafa;
}

.evidence-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.evidence-card {
    text-decoration: none;
    color: var(--text);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}
.evidence-card a { color: var(--link); }

.content-type {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    font-weight: 600;
}

.content-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

time { font-size: 0.8rem; color: var(--text-muted); }

/* Experiment / feedback cards */
.experiment-header, .feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.experiment-body, .feedback-body { margin: 0.5rem 0; }
.exp-meta-row {
    display: flex;
    gap: 1.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0.25rem 0;
}
.exp-tactic, .exp-findings {
    margin: 0.5rem 0;
    font-size: 0.88rem;
}
.exp-tactic summary, .exp-findings summary {
    cursor: pointer;
    font-size: 0.88rem;
}
.exp-tactic p, .findings-content {
    margin: 0.4rem 0;
    padding-left: 0.5rem;
    border-left: 2px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}
.exp-result-block {
    margin: 0.5rem 0;
    font-size: 0.88rem;
}
.exp-result-block ul {
    margin: 0.25rem 0 0 1rem;
    font-size: 0.85rem;
}
.exp-results-table {
    margin-top: 0.25rem;
    font-size: 0.85rem;
}
.exp-results-table td {
    padding: 0.25rem 0.75rem 0.25rem 0;
    vertical-align: top;
}
.exp-results-table td:first-child {
    font-weight: 600;
    white-space: nowrap;
    color: var(--text-muted);
}
.experiment-footer, .feedback-footer {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.feedback-badges { display: flex; gap: 0.25rem; flex-wrap: wrap; }

/* Apply page */
.apply-hero { margin-bottom: 1.75rem; }
.apply-hero .thesis {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.proof-links {
    margin: 1.25rem 0;
}

.proof-card {
    display: block;
    text-decoration: none;
    color: var(--link);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}
.proof-card:hover { background: #fafafa; color: var(--link-hover); }
.proof-card strong { margin-right: 0.5rem; color: var(--link); font-weight: 900; font-size: 1.1rem; }
.proof-card span { font-size: 0.85rem; color: var(--text-muted); }

.quickstart { margin: 1.75rem 0; }
.quickstart-tier {
    margin: 1.25rem 0;
}
.quickstart-tier h3 { margin-top: 0; }
.quickstart-tier ol { margin: 0.5rem 0 0 1.5rem; }
.quickstart-tier li { margin-bottom: 0.3rem; }

.safety-model { margin: 1.75rem 0; }
.application-letter {
    margin-top: 2rem;
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
}

/* Agent's Mind — decision grid */
.agent-mind {
    margin: 2.5rem 0 2rem;
    padding: 1.5rem 0;
    border-top: 2px solid var(--link);
}
.agent-mind h2 {
    border-bottom: none;
    color: var(--link);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}
.agent-mind-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.mind-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
@media (max-width: 600px) {
    .mind-grid { grid-template-columns: 1fr; }
}

.mind-node {
    padding: 0.9rem 1rem;
    background: #fafafa;
    border-left: 3px solid var(--link);
    transition: background 0.15s;
}
.mind-node:hover {
    background: #f5f0f0;
}
.mind-node-fail {
    border-left-color: var(--red);
}

.mind-node-label {
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--link);
    margin-bottom: 0.35rem;
}
.mind-node-fail .mind-node-label { color: var(--red); }

.mind-node-reasoning {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text);
}

.mind-node-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.4rem;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.mind-node-status {
    color: var(--green);
    font-weight: 700;
}
.mind-node-fail .mind-node-status { color: var(--red); }

.thought-cta {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Ledger reasoning rows */
.ledger-reasoning-row td {
    padding-top: 0 !important;
    padding-bottom: 0.5rem !important;
}
.ledger-thought {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 0.4rem 0.6rem;
    border-left: 3px solid var(--link);
    margin: 0.2rem 0;
    line-height: 1.5;
}
.ledger-thought ol {
    margin: 0.3rem 0 0.2rem 1.2rem;
    padding: 0;
}
.ledger-thought li {
    margin-bottom: 0.2rem;
}
.ledger-thought strong {
    color: var(--text);
}

/* Ledger */
.chain-verification-hero {
    margin: 1rem 0 1.75rem;
}
.verification-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.verification-icon {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}
.verification-result.verified .verification-icon { color: var(--green); }
.verification-result.broken .verification-icon { color: var(--red); }
.verification-result strong { font-size: 1rem; }
.verification-result p { margin: 0.15rem 0 0; font-size: 0.85rem; color: var(--text-muted); }

.chain-badge { margin: 0.75rem 0; }
.ledger-explainer { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.9rem; }

.ledger-table { font-size: 0.85rem; }
.ledger-detail td { padding: 0; }
.ledger-detail details { padding: 0.4rem 0.6rem; }
.ledger-detail summary { cursor: pointer; color: var(--text-muted); font-size: 0.8rem; }
.ledger-detail summary:hover { color: var(--text); }

/* Article body */
.article-body { margin: 1.25rem 0; }
.article-body h2 { border-bottom: 1px solid var(--border); padding-bottom: 0.25rem; }
.article-body blockquote {
    border-left: 2px solid var(--border);
    padding: 0.5rem 0.85rem;
    margin: 0.6rem 0;
    color: var(--text-muted);
}

.sources-section, .verification-section {
    border-top: 1px solid var(--border);
    margin-top: 1.75rem;
    padding-top: 0.85rem;
}

/* Verification bar — inline badges on content detail */
.verification-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0 1rem;
}
.vb-item {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    background: #f0faf0;
    color: var(--green);
}
.vb-fail {
    background: #faf0f0;
    color: var(--red);
}

.cite-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 0.4rem;
}

/* Documentation evidence — collapsible snippets */
.doc-evidence-section {
    border-top: 1px solid var(--border);
    margin-top: 1.75rem;
    padding-top: 0.85rem;
}
.evidence-intro {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.doc-evidence {
    border: 1px solid var(--border);
    margin-bottom: 0.5rem;
    border-radius: 4px;
}
.doc-evidence summary {
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    background: #fafafa;
}
.doc-evidence summary:hover { background: #f5f5f5; }
.doc-evidence summary a {
    color: var(--link);
    text-decoration: none;
    pointer-events: none;
}
.doc-evidence[open] summary a {
    pointer-events: auto;
}
.doc-snippet-content {
    padding: 0.6rem 0.75rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55;
    border-top: 1px solid var(--border);
}

/* Tweet critic verdict */
.critic-verdict {
    font-size: 0.78rem;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    margin-top: 0.4rem;
    line-height: 1.4;
}
.critic-approved {
    background: #f0faf0;
    color: var(--green);
}
.critic-rejected {
    background: #faf0f0;
    color: var(--red);
}
.critic-neutral {
    background: #f5f5f5;
    color: var(--text-muted);
}

/* Runbook */
.runbook section { margin-bottom: 1.75rem; }

/* Output dashboard */
.output-dashboard h1, .output-dashboard h2 { margin-top: 1.5rem; }

/* Placeholder */
.placeholder {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

/* Footer */
footer {
    max-width: 720px;
    margin: 2.5rem auto 1.5rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}
footer p { margin-bottom: 0.2rem; }
.build-date { font-size: 0.7rem; }

/* Monitored channels list */
.monitored-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    list-style: none;
    margin: 0.5rem 0 1rem 0;
    padding: 0;
    font-size: 0.85rem;
}
.monitored-list li { margin: 0; }
.monitored-list a { color: var(--link); }

/* Twitter Bot Page — Architecture Steps */
.bot-architecture {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 1.25rem 0;
    align-items: stretch;
}

.arch-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.arch-row-right {
    justify-content: flex-end;
}

.arch-down-arrow {
    display: flex;
    justify-content: flex-end;
    padding-right: 60px;
    font-size: 1.3rem;
    color: var(--text-muted);
    margin: 0.3rem 0;
}

.arch-arrow-left {
    transform: scaleX(-1);
}

.arch-step {
    flex: 1 1 120px;
    min-width: 110px;
    padding: 0.9rem 0.8rem 0.8rem;
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: box-shadow 0.2s ease;
    position: relative;
}

.arch-step:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.step-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--text-muted);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.4rem;
}

.arch-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    flex-shrink: 0;
    margin: 0 -0.2rem;
}

.arch-step strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.arch-step span {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Tweet grid */
.tweet-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tweet-card {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fafafa;
}

.tweet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.tweet-header strong { color: var(--link); }

.tweet-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
}

.tweet-meta {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    align-items: center;
}

.badge-sent { color: var(--green); border-color: var(--green); }
.badge-queued { color: #886600; border-color: #886600; }

/* Try It Box */
.try-it-box {
    border: 2px solid #e0ddf5;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    background: linear-gradient(180deg, #faf9ff 0%, #fff 100%);
}

.api-key-section {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.api-key-section label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.api-key-section select,
.api-key-section input {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 0.85rem;
    font-family: inherit;
}

.api-key-section input { flex: 1; min-width: 200px; }

.api-key-section button,
.chat-section button {
    padding: 0.45rem 1rem;
    background: var(--link);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.api-key-section button:hover,
.chat-section button:hover { background: var(--link-hover); }

.chat-section button:disabled {
    background: var(--border);
    cursor: not-allowed;
}

.show-more-btn {
    padding: 0.5rem 1.5rem;
    background: var(--link);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.show-more-btn:hover { background: var(--link-hover); }

.tweet-embed-item { margin-bottom: 0.5rem; }

.key-status {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.key-notice {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0.25rem 0 1rem;
    padding: 0.4rem 0.6rem;
    background: #fffbe6;
    border: 1px solid #eee0a0;
    border-radius: 4px;
}

.chat-section {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.chat-section label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.chat-section input[type="text"] {
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 0.9rem;
    font-family: inherit;
}

.tweet-output {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    background: #fff;
    margin-top: 0.5rem;
}

.tweet-output-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.tweet-result {
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0.75rem;
    background: #f8f8f8;
    border-radius: 5px;
    white-space: pre-wrap;
    font-family: inherit;
}

.tweet-output-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0.5rem 0 0;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
    0% { content: ''; }
    33% { content: '.'; }
    66% { content: '..'; }
    100% { content: '...'; }
}

/* Page intro */
.page-intro {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Feedback summary bar */
.feedback-summary {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* API validation collapsible */
.api-validation-section {
    margin-top: 2rem;
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
}
.api-validation-section summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.api-validation-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.5rem 0;
}

/* Skills grid */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.6rem;
    margin: 1rem 0;
}
.skill-card {
    padding: 0.7rem 0.9rem;
    background: #fafafa;
    border-left: 3px solid var(--link);
}
.skill-name {
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}
.skill-name code {
    color: var(--link);
    background: none;
    padding: 0;
    font-size: 0.85rem;
}
.skill-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 640px) {
    nav { flex-direction: column; gap: 0.5rem; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
    main { padding: 0 1rem; }
    .experiment-header, .feedback-header { flex-direction: column; }
    .skills-grid { grid-template-columns: 1fr; }
    .scorecard-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Scorecard ---- */
.scorecard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}
.score-card {
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
}
.score-card.score-hero {
    border-color: var(--link);
    border-width: 2px;
}
.score-value {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text);
}
.score-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.25rem;
}
.score-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}
.score-green { color: var(--green); }
.score-amber { color: #b45309; }
.score-red { color: var(--red); }

.scorecard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin-top: 0.75rem;
}
.scorecard-table th {
    text-align: left;
    border-bottom: 2px solid var(--border);
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
}
.scorecard-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #eee;
}

.safety-gates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 0.75rem 0 1rem;
}
.safety-gate-card {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.gate-status {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    width: fit-content;
}
.gate-on { background: #dcfce7; color: #166534; }
.gate-off { background: #fef2f2; color: #991b1b; }
.safety-gate-card span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.timeline-bar {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 1rem 0;
    padding: 1rem;
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: 6px;
}
.timeline-point {
    text-align: center;
    flex-shrink: 0;
}
.timeline-point strong {
    display: block;
    font-size: 0.9rem;
}
.timeline-point span {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.timeline-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 1rem;
}

/* ---- QA Memo (Feedback) ---- */
.qa-memo { border-left: 3px solid var(--border); padding-left: 1rem; }
.qa-memo-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.25rem; }
.qa-memo-ref { display: flex; align-items: center; gap: 0.75rem; }
.memo-number { font-family: monospace; font-weight: 700; font-size: 0.85rem; color: var(--link); }
.qa-memo-title { font-size: 1.05rem; margin: 0.25rem 0 0.5rem; }
.impact-bar { padding: 0.35rem 0.75rem; border-radius: 4px; font-size: 0.82rem; margin-bottom: 0.75rem; }
.impact-critical { background: #fde8e8; border-left: 3px solid #991111; color: #991111; }
.impact-major { background: #fff3e0; border-left: 3px solid #e65100; color: #bf360c; }
.impact-minor { background: #fff9c4; border-left: 3px solid #f9a825; color: #795548; }
.impact-suggestion { background: #e3f2fd; border-left: 3px solid #1976d2; color: #0d47a1; }
.verification-status { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: var(--text-muted); padding-top: 0.5rem; border-top: 1px solid var(--border); margin-top: 0.75rem; }
.vs-checked::before { content: "✓ "; color: var(--green); }
.vs-none { color: var(--text-muted); opacity: 0.6; }

/* ---- Experiment Verdict ---- */
.verdict-block { padding: 0.75rem; border-radius: 6px; margin: 0.75rem 0; }
.verdict-scale { background: #e8f5e9; border: 1px solid #4caf50; }
.verdict-kill { background: #ffebee; border: 1px solid #ef5350; }
.verdict-iterate { background: #fff8e1; border: 1px solid #ffc107; }
.verdict-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.verdict-label { font-weight: 600; font-size: 0.85rem; }
.verdict-badge { font-weight: 700; font-size: 0.8rem; padding: 0.15rem 0.5rem; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.05em; }
.verdict-badge-scale { background: #4caf50; color: #fff; }
.verdict-badge-kill { background: #ef5350; color: #fff; }
.verdict-badge-iterate { background: #ffc107; color: #333; }
.verdict-confidence { font-size: 0.78rem; color: var(--text-muted); }
.confidence-bar { height: 6px; background: #eee; border-radius: 3px; overflow: hidden; margin-bottom: 0.5rem; }
.confidence-fill { height: 100%; border-radius: 3px; }
.confidence-fill-scale { background: #4caf50; }
.confidence-fill-kill { background: #ef5350; }
.confidence-fill-iterate { background: #ffc107; }
.verdict-reasoning { font-size: 0.85rem; color: var(--text); margin-bottom: 0.35rem; }
.verdict-next { font-size: 0.82rem; color: var(--text-muted); }
