.stage-body { min-width:0;line-height:1.85;overflow-wrap:anywhere; }
.stage-body h3 { margin:32px 0 16px;line-height:1.55; }
.matrix-scroll { overflow-x:auto;margin:20px 0;max-width:100%; }
.matrix-scroll table { width:100%;min-width:740px;border-collapse:collapse;table-layout:fixed; }
.matrix-scroll th,.matrix-scroll td { border:1px solid var(--line,#d4d8d1);padding:14px;text-align:left;vertical-align:top;overflow-wrap:anywhere; }
.matrix-scroll th { background:var(--panel-2,#f2f4f0);font-weight:600; }
.matrix-scroll .number-cell { width:90px; }
/* Keep every cell, but let phones read each record from top to bottom. */
@media screen and (max-width:760px){
 .cognition-page .matrix-scroll { overflow:visible;border:0;border-radius:0; }
 .cognition-page .matrix-scroll table { display:block;min-width:0;width:100%;table-layout:auto; }
 .cognition-page .matrix-scroll thead { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap; }
 .cognition-page .matrix-scroll tbody { display:block;width:100%; }
 .cognition-page .matrix-scroll tbody tr { display:block;margin:0 0 14px;border:1px solid #cbd3c5;border-radius:10px;background:#fafbf7;overflow:hidden; }
 .cognition-page .matrix-scroll tbody td { display:block;width:auto;min-width:0;border:0;border-top:1px solid #e1e5dc;padding:12px 14px;white-space:normal;overflow-wrap:anywhere; }
 .cognition-page .matrix-scroll tbody td:first-child { border-top:0;background:#edf1e7; }
 .cognition-page .matrix-scroll tbody td::before { content:attr(data-label);display:block;margin:0 0 5px;color:#5d6b55;font-size:12px;font-weight:600;line-height:1.5; }
 .cognition-page .matrix-scroll .cell-content { min-width:0;font-size:14px;line-height:1.85;overflow-wrap:anywhere; }
 .cognition-page .matrix-scroll .number-cell { width:auto;display:flex;align-items:center;gap:8px; }
 .cognition-page .matrix-scroll .number-cell::before { margin:0; }
}
.action-id { display:inline-block;border:1px solid #c2cabe;background:#edf1e8;color:#34483c;padding:3px 7px;border-radius:5px;font:600 12px/1.5 ui-monospace,monospace;white-space:nowrap; }
.stage-body .insight-callout,
.stage-body .insight-heading + h3,
.report-fragment:has(> .stage-body > .insight-heading:only-child) + .report-fragment > .stage-body > :is(h3,p):only-child { margin:24px 0;padding:24px;border:1px solid #8c9b88;border-left:4px solid #536b55;border-radius:10px;background:linear-gradient(115deg,#f2f5ed,#fafbf7);color:#253b2c;font-size:1.08em;line-height:1.95;box-shadow:0 5px 20px #22331f08; }
.cognition-page .stage-body .insight-callout,
.cognition-page .stage-body .insight-heading + h3,
.cognition-page .report-fragment:has(> .stage-body > .insight-heading:only-child) + .report-fragment > .stage-body > :is(h3,p):only-child { background:linear-gradient(135deg,#dfe8d7,#f5f7f1);border-color:#93a18c;border-left-color:#52634b; }
.cognition-page .stage-body .insight-callout,
.cognition-page .stage-body .insight-callout *,
.cognition-page .stage-body .insight-heading,
.cognition-page .stage-body .insight-heading *,
.cognition-page .stage-body .insight-heading + h3,
.cognition-page .stage-body .insight-heading + h3 *,
.cognition-page .report-fragment:has(> .stage-body > .insight-heading:only-child) + .report-fragment > .stage-body > :is(h3,p):only-child,
.cognition-page .report-fragment:has(> .stage-body > .insight-heading:only-child) + .report-fragment > .stage-body > :is(h3,p):only-child * { font-family:"Microsoft YaHei","微软雅黑","PingFang SC",sans-serif;font-weight:700; }
.insight-heading { color:#344d39; }.insight-matrix,.plans-matrix { border:1px solid #9daa94;border-radius:8px; }.insight-matrix th,.plans-matrix th { background:#eaf0e4; }
.concept-network { margin:26px 0;border:1px solid #c8d1c6;border-radius:12px;background:#f4f6f0;overflow:hidden;color:#263d2c; }
.concept-toolbar { display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px;flex-wrap:wrap; }
.concept-toolbar strong { font-size:18px; }.concept-toolbar small { display:block;margin-top:4px;color:#637160; }
.concept-toolbar button,.concept-chips button { cursor:pointer;border:1px solid #becbb9;background:#fcfdf9;color:#344a39;padding:8px 10px;border-radius:6px;font:inherit;font-size:12px; }
.concept-toolbar button+button { margin-left:6px; }.concept-legend { display:flex;flex-wrap:wrap;gap:16px;padding:0 18px 14px;font-size:12px; }
.concept-toolbar>div:last-child { display:flex;gap:6px;flex-wrap:wrap; }.concept-toolbar button+button { margin-left:0; }
.concept-zoom-level { display:inline-flex;align-items:center;justify-content:center;min-width:48px;font-size:12px;font-variant-numeric:tabular-nums;color:#637160; }
@media(max-width:520px){.concept-toolbar>div:last-child{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}.concept-zoom-level{grid-column:1/-1;justify-content:flex-start}.concept-toolbar button{touch-action:manipulation;font-size:13px}}
.concept-legend span::before { content:'';display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;background:#a6772f; }.concept-legend [data-group="1"]::before { background:#4e6f9a; }.concept-legend [data-group="2"]::before { background:#3f8060; }
.concept-canvas-scroll { overflow:auto;max-width:100%;border-block:1px solid #d2dbce; }.concept-canvas-scroll canvas { display:block;width:100%;touch-action:none; }
.concept-detail { padding:14px 18px;margin:0!important;font-size:13px;line-height:1.9; }
.concept-directory { padding:0 18px 12px;font-size:13px; }.concept-directory summary { cursor:pointer;display:list-item;min-height:34px;padding:8px;border-radius:9px;background:#f0f4ed;font-weight:700; }.concept-directory summary::marker { color:#355942;font-size:16px; }.concept-directory summary strong { float:right;margin-top:-2px;padding:4px 9px;border:1px solid #a8b8a5;border-radius:999px;background:#fff;color:#355942;font-size:12px;white-space:nowrap; }.concept-directory .directory-close { display:none; }.concept-directory[open] .directory-open { display:none; }.concept-directory[open] .directory-close { display:inline-block; }.concept-chips { display:flex;gap:7px;flex-wrap:wrap;margin:14px 0; }
.concept-network figcaption { padding:12px 18px;background:#ebf0e5;font-size:12px;color:#64715e; }
.concept-network.is-expanded { position:fixed;z-index:1000;inset:20px;margin:0;overflow:auto;box-shadow:0 0 0 100vmax #20281dd9; }
.cognition-intro { max-width:none;display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:42px;align-items:center; }
.title-stage-overview { display:grid;grid-template-columns:1fr 1fr;gap:8px; }
.title-stage-overview a { display:grid;grid-template-columns:24px 1fr;gap:3px 8px;text-decoration:none;color:var(--muted);padding:12px 10px;border:1px solid var(--line);border-radius:7px;background:var(--panel-2);font-size:12px; }
.title-stage-overview span { grid-row:span 2;font-family:Georgia,serif;font-size:22px;color:#8a9485; }.title-stage-overview strong { font-size:12px;font-weight:600; }.title-stage-overview small { font-size:10px; }.title-stage-overview a[data-state=running] { border-color:#6c815f;background:#edf3e5;color:#32492c; }.title-stage-overview a[data-state=completed] span { color:#3b633e; }
.history-heading { display:flex;justify-content:space-between;align-items:center;gap:8px;margin:12px 0; }.history-heading h2 { font-size:17px;font-weight:500;margin:0; }.history-heading .tool-button { font-size:12px;padding:7px 9px; }
.question-history { max-height:240px;overflow-y:auto;overscroll-behavior:contain;display:grid;gap:7px; }.history-entry { cursor:pointer;width:100%;text-align:left;border:1px solid var(--line);border-radius:6px;padding:12px;background:var(--panel);color:var(--ink); }.history-entry:hover { border-color:#899582; }.history-entry[aria-current=true] { border-color:#6e8064;background:#eef2e8;box-shadow:inset 3px 0 #6e8064; }.history-entry strong { display:block;font-weight:500;font-size:13px;line-height:1.6;margin:5px 0;overflow-wrap:anywhere; }.history-entry time { font-size:10px;color:var(--muted); }.history-meta { display:flex;justify-content:space-between;font:10px/1.5 ui-monospace,monospace;color:var(--muted); }.history-meta [data-state=running],.history-meta [data-state=queued] { color:#426635; }.history-empty,.history-note { font-size:12px;color:var(--muted);line-height:1.7; }.history-note { margin:10px 0 23px;padding-bottom:18px;border-bottom:1px solid var(--line); }.history-more { background:none;border:0;color:var(--muted);padding:10px 0;text-decoration:underline;cursor:pointer; }
.question-live { display:flex;align-items:center;gap:10px;padding:14px;margin-top:12px;border:1px solid #899b7e;background:#eef3e7;border-radius:8px;color:#3a5332; }.question-live strong { display:block;font-size:12px;font-weight:600; }.question-live time { display:block;font:12px/1.8 ui-monospace,monospace;margin-top:3px; }.question-live[data-terminal=true] .activity-mark { animation:none;border:0;background:#718469;width:7px;height:7px; }
.analysis-progress-overview { border:1px solid #aab4a3;border-radius:12px;padding:18px 20px 0;margin:22px 0;background:linear-gradient(135deg,#f2f5ed,#fcfcfa);box-shadow:0 7px 20px #39412e0b;top:10px; }
.progress-card-heading { display:flex;justify-content:space-between;gap:12px;align-items:center;padding-bottom:12px;border-bottom:1px solid #d3dbcb;font-size:14px; }.progress-card-heading strong { font-weight:600; }.progress-card-heading span { font-size:11px;color:#65705c; }
.analysis-progress-overview .stage-navigation { padding:15px 0;margin:0;gap:10px; }.analysis-progress-overview .stage-link { padding:11px 8px;border:1px solid #d7ddcf;border-radius:7px;background:#ffffff99; }.analysis-progress-overview .stage-link[data-state=running] { border-color:#789164;background:#e6eedc;box-shadow:inset 0 3px #789164; }.analysis-progress-overview .stage-link[data-state=completed] { background:#edf2e7;border-color:#c0cfb4; }.analysis-progress-overview .stage-link strong { font-size:13px; }.analysis-progress-overview .stage-link small { font-size:11px;line-height:1.65; }
.analysis-progress-overview .live-status { margin:0 -20px;padding:15px 20px;border-top:1px solid #d3dbcb;border-radius:0 0 12px 12px;background:#e9efdf;gap:10px;font-size:13px; }.analysis-progress-overview #elapsed-time { color:#354b2e;font:600 13px/1.7 ui-monospace,monospace; }.live-status[data-terminal=false] .activity-mark { width:19px;height:19px;border-width:2px;border-top-color:#4a6936; }.live-status[data-terminal=true] { background:#f2f4ed; }
[hidden] { display:none!important; }
@media(max-width:520px){.concept-toolbar button,.concept-chips button,.dialogue-heading #new-question{min-height:44px;min-width:44px}.cognition-page textarea{font-size:16px}.concept-legend{gap:12px}.question-history{overscroll-behavior:auto}}
.cognition-page .analysis-workspace { padding:0; }
.analysis-sticky-header { position:sticky;top:24px;z-index:4;background:var(--panel);border-top:3px solid var(--ink);border-radius:7px 7px 0 0;margin-top:-3px;padding:20px 24px 14px;box-shadow:0 9px 12px -12px #35422c; }
.analysis-sticky-header .analysis-progress-overview { position:static;margin:16px 0 0; }
.analysis-sticky-header::before { content:'';position:absolute;left:-1px;right:-1px;bottom:100%;height:27px;background:var(--bg);pointer-events:none; }
.analysis-sticky-header .analysis-heading h2 { max-height:5em;overflow:auto; }
#stage-results { padding:0 24px 24px; }
.cognition-page .output-workspace .stage-section { scroll-margin-top:calc(var(--analysis-header-height,390px) + 42px); }
@media(min-width:521px) and (max-width:1000px){.analysis-sticky-header{padding:16px 14px 12px}#stage-results{padding:0 14px 18px}}
@media(max-width:520px){.analysis-sticky-header{position:static;padding:18px}.analysis-sticky-header::before{display:none}.cognition-page .output-workspace .stage-section{scroll-margin-top:24px}#stage-results{padding:0 18px 18px}}
@media print{.analysis-sticky-header{position:static;border:0;box-shadow:none;padding:0}#stage-results{padding:0}}
.dialogue-heading { display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:20px; }.dialogue-heading .eyebrow { margin:0; }.dialogue-heading .tool-button { font-size:11px;white-space:nowrap;padding:5px 6px; }.history-section { margin-top:24px;padding-top:10px;border-top:1px solid var(--line); }.history-section .history-note { border:0;margin:8px 0 12px;padding:0; }
.history-heading h2 { font-size:15px;white-space:nowrap; }.history-heading .tool-button { font-size:11px;padding:5px 6px;white-space:nowrap; }.history-heading { gap:4px; }
@media(max-width:1000px){.cognition-intro{grid-template-columns:minmax(0,1fr) 180px;gap:20px}.title-stage-overview{grid-template-columns:1fr}.title-stage-overview a{padding:8px}.title-stage-overview small{display:none}.title-stage-overview span{grid-row:auto;font-size:18px}.analysis-progress-overview{padding:14px 12px 0}.analysis-progress-overview .live-status{margin:0 -12px;padding:12px}.analysis-progress-overview .stage-navigation{grid-template-columns:1fr 1fr}.analysis-progress-overview .stage-link{padding:8px 6px}.output-workspace .stage-section{scroll-margin-top:300px}}
@media(max-width:640px){.cognition-intro{grid-template-columns:minmax(0,1fr) 130px;gap:16px}.title-stage-overview a{grid-template-columns:20px 1fr;gap:4px}.title-stage-overview strong{font-size:11px}.analysis-progress-overview #elapsed-time{margin-left:29px}.analysis-progress-overview .live-status{flex-wrap:wrap}.concept-network.is-expanded{inset:8px}}
@media(max-width:520px){.cognition-intro{display:block}.title-stage-overview{grid-template-columns:1fr 1fr;margin-top:20px}.title-stage-overview small{display:block;grid-column:2}.stage-body .insight-callout{padding:18px}.concept-toolbar{padding:14px}.question-history{max-height:180px}}
@media print{.analysis-progress-overview,.concept-toolbar button{display:none}.concept-canvas-scroll{overflow:visible}.concept-canvas-scroll canvas{min-width:0;width:100%}.insight-callout{break-inside:avoid}.concept-network.is-expanded{position:static;box-shadow:none}}
