:root{font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;color:#18324d;background:#f2f7fd;font-synthesis:none;text-rendering:optimizeLegibility;--blue:#2878c7;--blue-dark:#165da7;--ink:#18324d;--muted:#71869b;--line:#e4edf6;--panel:#fff;--pale:#eaf4ff;--green:#16886b;--amber:#b87a13;--red:#c8535b;--shadow:0 8px 28px rgba(41,87,130,.07)}*{box-sizing:border-box}body{margin:0;min-width:320px}.shell{max-width:1600px;margin:0 auto;padding:0 34px}.topbar{height:78px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dce8f4}.brand{display:flex;gap:12px;align-items:center;color:var(--ink);text-decoration:none}.brand-mark{display:grid;place-items:center;width:40px;height:40px;background:linear-gradient(145deg,#59a8ee,#2778c7);color:white;border-radius:12px;font-size:22px;font-weight:800;box-shadow:0 5px 14px #4d9be544}.brand b{display:block;font-size:18px;letter-spacing:.03em}.brand small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.top-meta{display:flex;gap:16px;align-items:center}.replay-pill,.service-state{font-size:12px;padding:8px 12px;border-radius:999px}.replay-pill{background:#fff3df;color:#966116;border:1px solid #f2dfbd}.replay-pill i{display:inline-block;width:7px;height:7px;background:#d69a32;border-radius:50%;margin-right:7px}.service-state{color:#647c92}.hero{display:flex;justify-content:space-between;align-items:end;padding:34px 0 27px}.eyebrow{display:block;color:#6e9bc7;font-size:10px;letter-spacing:.16em;font-weight:800}.hero h1{font-size:34px;line-height:1.24;letter-spacing:-.04em;margin:10px 0}.hero h1 span{color:var(--blue)}.hero-copy{max-width:650px;color:#657c93;line-height:1.7;font-size:14px;margin:0}.hero-note{display:flex;gap:12px;align-items:center;background:#e8f3ff;padding:14px 18px;border-radius:14px;max-width:330px;color:#4e6e8d}.note-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#fff;color:var(--blue);font-size:21px}.hero-note b{font-size:13px;color:#2e577e}.hero-note p{font-size:11px;line-height:1.55;margin:4px 0 0}.workspace{display:grid;grid-template-columns:240px minmax(450px,1fr) 335px;gap:18px;align-items:start}.panel{background:var(--panel);border:1px solid #e4edf5;border-radius:15px;box-shadow:var(--shadow)}.case-rail{padding:20px 16px;position:sticky;top:16px}.section-title,.panel-head,.case-heading,.assistant-head{display:flex;justify-content:space-between;align-items:center}.section-title h2,.panel-head h2,.case-heading h2{font-size:17px;margin:5px 0 0}.count-badge{background:#edf5fc;color:#5685b1;padding:5px 9px;border-radius:8px;font-size:11px}.case-list{display:grid;gap:9px;margin:20px 0}.case-choice{width:100%;text-align:left;border:1px solid #e7eef5;background:#fff;border-radius:11px;padding:12px;cursor:pointer;color:var(--ink);transition:.15s}.case-choice:hover{border-color:#a8cce9;background:#f8fbff}.case-choice[aria-pressed=true]{border-color:#74afe2;background:#eff7ff;box-shadow:inset 3px 0 #398bd0}.case-choice b{font-size:12px;display:block;margin-bottom:7px}.case-choice small{display:block;font-size:10px;color:var(--muted);line-height:1.6}.case-choice .mini-status{display:inline-block;margin-top:8px;font-size:9px;padding:3px 7px;background:#f3f6f8;border-radius:99px;color:#61788d}.privacy-note{display:flex;gap:10px;background:#f2f8fd;padding:12px;border-radius:10px;color:#668098}.privacy-note>span{font-size:18px;color:#4990cb}.privacy-note p{font-size:10px;line-height:1.65;margin:0}.privacy-note b{font-size:11px;color:#345b7e}.main-column{display:grid;gap:16px;min-width:0}.case-overview{padding:19px 20px}.case-heading{align-items:flex-start}.case-heading h2{font-size:19px}.case-heading .mono{margin:7px 0 0;font-size:10px}.mono{font-family:ui-monospace,Consolas,monospace}.status-badge{font-size:10px;white-space:nowrap;background:#eef3f7;color:#62798f;border-radius:99px;padding:7px 10px}.status-badge[data-status=COMPLETED]{background:#e8f7f1;color:#138067}.status-badge[data-status=FAULT_STOPPED],.status-badge[data-status=ABORTED]{background:#fff1ed;color:#bd6551}.status-badge[data-status=STOPPED]{background:#fff7e6;color:#a6741c}.metric-row{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:19px;padding-top:15px;border-top:1px solid var(--line)}.metric{display:grid;gap:5px}.metric span{font-size:10px;color:var(--muted)}.metric b{font-size:14px;color:#244c70}.chart-panel,.timeline-panel{padding:19px 20px}.signal-picker{display:flex;align-items:center;gap:8px;font-size:10px;color:var(--muted)}select{font:inherit;color:#365b7c;background:#fff;border:1px solid #dce8f2;border-radius:8px;padding:8px 10px}.chart{margin-top:14px;width:100%;height:250px;overflow:hidden;border-radius:10px;background:linear-gradient(180deg,#fbfdff,#f7fbff);border:1px solid #edf3f8}.chart svg{width:100%;height:100%;display:block}.chart-footer{display:flex;justify-content:space-between;color:#8295a8;font-size:10px;margin-top:9px}.timeline{margin:16px 0 2px;padding:0 0 0 11px;list-style:none;display:grid;gap:0;max-height:360px;overflow:auto}.timeline li{position:relative;border-left:1px solid #dce8f2;padding:0 0 16px 19px}.timeline li:last-child{border-left-color:transparent;padding-bottom:0}.timeline li:before{content:"";position:absolute;width:8px;height:8px;left:-5px;top:3px;background:#6aa8db;border:2px solid white;box-shadow:0 0 0 1px #6aa8db;border-radius:50%}.timeline li.is-alarm:before{background:#dc7477;box-shadow:0 0 0 1px #dc7477}.event-top{display:flex;justify-content:space-between;gap:8px}.event-top b{font-size:11px}.event-top time{color:#8295a8;font:10px ui-monospace,Consolas,monospace}.event-detail{font-size:10px;color:#71869b;margin-top:5px;line-height:1.5}.alarm-count{font-size:10px;background:#fff1ef;color:#bd6161;padding:6px 9px;border-radius:8px}.assistant{padding:18px;position:sticky;top:16px}.assistant-head{justify-content:flex-start;gap:10px}.assistant-avatar{display:grid;place-items:center;width:35px;height:35px;border-radius:12px;background:linear-gradient(135deg,#8cc9f0,#4b91cc);color:white;font-weight:800;font-size:12px}.assistant-head h2{font-size:14px;margin:0}.assistant-head p{font-size:10px;color:var(--muted);margin:4px 0 0}.agent-state{margin-left:auto;font-size:9px;color:#8396a8;background:#f1f4f6;border-radius:99px;padding:5px 7px}.agent-state[data-ready=true]{color:#178366;background:#e9f7f1}.analysis-context{display:flex;justify-content:space-between;gap:8px;margin:18px 0;padding:10px 11px;background:#f4f8fc;border-radius:9px;font-size:10px}.analysis-context span{color:#8193a5}.analysis-context b{color:#365c7e;max-width:68%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.assistant>label{display:block;font-size:10px;font-weight:700;margin-bottom:7px;color:#58728b}textarea{resize:vertical;width:100%;border:1px solid #dfe9f2;border-radius:9px;padding:10px;font:11px/1.6 inherit;color:var(--ink);outline:none}textarea:focus,select:focus,button:focus-visible{outline:2px solid #8ac1ea;outline-offset:2px}.turnstile-box{min-height:0;margin:8px 0}.primary-button{width:100%;border:0;border-radius:9px;padding:11px 14px;background:linear-gradient(135deg,#368ed2,#236fb9);color:#fff;font-size:12px;font-weight:700;cursor:pointer;box-shadow:0 5px 12px #2d7eb52b}.primary-button:hover:not(:disabled){background:linear-gradient(135deg,#2d82c6,#1d62a8)}.primary-button:disabled{background:#a8bfce;box-shadow:none;cursor:not-allowed}.primary-button span{margin-right:6px}.diagnosis-status{font-size:10px;line-height:1.55;color:#71869b;min-height:30px;margin:9px 0 3px}.report{border-top:1px solid var(--line);margin-top:12px;padding-top:13px}.report h3{margin:0 0 8px;font-size:12px}.report .report-status{font-size:10px;color:var(--blue);font-weight:700}.report p,.report li{font-size:10px;line-height:1.6;color:#526b83}.report h4{font-size:10px;color:#7690a6;margin:12px 0 4px}.report ul{padding-left:17px;margin:4px 0}.report-json{margin-top:12px;border-top:1px solid var(--line);padding-top:11px}.report-json summary{font-size:10px;color:#58738e;cursor:pointer}.history-actions{display:flex;gap:7px;margin:10px 0}.history-actions button{font-size:9px;color:#4c7092;background:#f2f7fb;border:1px solid #e1eaf2;border-radius:7px;padding:7px;cursor:pointer}.history-list{padding-left:18px;max-height:170px;overflow:auto}.history-list li{font-size:9px;color:#71869b;margin:7px 0}.history-list button{font:inherit;color:#417cae;background:none;border:0;padding:0;text-decoration:underline;cursor:pointer}.muted{color:#8295a8;font-size:11px;line-height:1.6}.hidden{display:none!important}footer{display:flex;justify-content:space-between;padding:21px 2px 28px;color:#8b9daf;font-size:9px}@media(max-width:1190px){.workspace{grid-template-columns:210px minmax(360px,1fr)}.assistant{position:static;grid-column:2}.case-rail{position:static;grid-row:span 2}}@media(max-width:760px){.shell{padding:0 14px}.topbar{height:66px}.top-meta{gap:6px}.service-state{display:none}.hero{display:block;padding:25px 0 18px}.hero h1{font-size:29px}.hero-note{margin-top:18px;max-width:none}.workspace{display:flex;flex-direction:column}.case-rail,.main-column,.assistant{width:100%}.case-list{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}.case-rail{order:0}.main-column{order:1}.assistant{order:2}.metric-row{grid-template-columns:repeat(2,1fr);row-gap:14px}.chart{height:210px}.case-heading h2{font-size:16px}.hero-copy{font-size:12px}footer{flex-direction:column;gap:7px}.panel-head{align-items:flex-start;gap:8px}.signal-picker{font-size:9px;display:grid;gap:3px}select{max-width:145px;padding:7px;font-size:10px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.chart-controls{display:flex;gap:10px;align-items:center}@media(max-width:760px){.chart-controls{gap:6px;align-items:flex-start}}

/* Full, independent diagnosis report */
.report-page{max-width:1320px;margin:0 auto;padding:34px 0 56px}.report-page-header{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:22px}.report-page-header h1{font-size:30px;letter-spacing:-.035em;margin:8px 0}.report-page-header .eyebrow{margin-top:24px}.report-page-header p{margin:0}.report-page-actions{display:flex;gap:9px;flex-wrap:wrap}.text-button,.secondary-button{border:1px solid #dce8f2;background:#fff;color:#416a8d;border-radius:9px;padding:10px 13px;font:600 12px inherit;cursor:pointer}.text-button{display:block;padding:0;border:0;background:transparent;margin:0 0 8px;color:#4d83b2}.secondary-button:hover,.text-button:hover{text-decoration:underline}.print-button{width:auto;box-shadow:none}.report-page-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}.report-card{background:#fff;border:1px solid #e4edf5;border-radius:15px;padding:20px 22px;box-shadow:var(--shadow);min-width:0}.report-card-wide{grid-column:1/-1}.report-card h2{font-size:16px;margin:0 0 15px;color:#264d70}.report-card h3{font-size:13px;margin:18px 0 9px;color:#40698c}.report-card p{font-size:13px;line-height:1.75;color:#4e6880;overflow-wrap:anywhere;margin:8px 0}.report-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.report-kv{min-width:0;padding:12px;border-radius:10px;background:#f5f9fd;border:1px solid #ebf2f8}.report-kv span{display:block;font-size:10px;color:#7d91a4;margin-bottom:7px}.report-kv b{display:block;font-size:13px;line-height:1.5;overflow-wrap:anywhere;color:#2b506f}.report-kv .mono{font-size:11px}.report-state{display:inline-flex;align-items:center;gap:7px;border-radius:99px;padding:6px 10px;background:#eaf4ff;color:#246da9;font-weight:750;font-size:11px}.report-state[data-status=NORMAL]{background:#e8f7f1;color:#138067}.report-state[data-status=SUSPECTED]{background:#fff4e4;color:#9c6816}.report-state[data-status=UNCONFIRMED]{background:#f0f3f6;color:#65798c}.report-source-note{padding:12px 14px;background:#eef7ff;border-left:3px solid #62a5d8;border-radius:8px;color:#416c90!important}.report-cause-list,.report-check-list,.report-safety-list{list-style:none;padding:0;margin:0;display:grid;gap:10px}.report-cause{padding:13px;border:1px solid #e7eef5;border-radius:10px;background:#fbfdff}.report-cause b{display:block;font-size:13px;line-height:1.6;color:#294f70;overflow-wrap:anywhere}.confidence-tag{display:inline-block;margin-top:8px;border-radius:99px;padding:4px 8px;background:#edf5fc;color:#567894;font-size:10px}.report-empty{padding:13px;background:#f6f9fc;border-radius:9px;color:#6a8195!important}.report-evidence-list{display:grid;gap:11px}.report-evidence{border:1px solid #e3edf5;border-left:4px solid #8eaac1;border-radius:10px;padding:13px 15px;background:#fcfdff;min-width:0}.report-evidence[data-kind=alarm]{border-left-color:#d87878}.report-evidence[data-kind=curve]{border-left-color:#4b9bd2}.report-evidence[data-kind=inference]{border-left-color:#b593d1}.evidence-meta{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:7px}.evidence-kind{font-size:10px;font-weight:750;color:#5f7890;background:#f0f5f9;border-radius:99px;padding:4px 8px}.report-evidence[data-kind=alarm] .evidence-kind{background:#fff0ef;color:#ad5555}.report-evidence[data-kind=curve] .evidence-kind{background:#eaf5ff;color:#347eaf}.report-evidence[data-kind=inference] .evidence-kind{background:#f5effa;color:#8060a2}.evidence-meta code{font:10px ui-monospace,Consolas,monospace;color:#71869b;overflow-wrap:anywhere}.report-evidence p{margin:0;white-space:pre-wrap}.report-chip-list{display:flex;gap:8px;flex-wrap:wrap;padding:0;margin:8px 0 0;list-style:none}.report-chip-list li{padding:7px 10px;border-radius:99px;background:#eef5fb;color:#496c8a;font-size:11px}.report-check-list li,.report-safety-list li{padding:12px;border:1px solid #e7eef5;border-radius:9px;color:#4e6880;font-size:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.report-safety-list li{border-color:#f2e5d5;background:#fffcf7}.report-disposition-note{padding:13px 15px;border-radius:9px;background:#f8f9fa;border:1px solid #e8ecef}.report-risk{padding:13px 15px;border-radius:9px;background:#fff8ee;border:1px solid #f2e3c9}.report-uncertainty{padding:13px 15px;border-radius:9px;background:#f5f8fb;border:1px solid #e5edf4}.history-local-note{font-size:10px;line-height:1.6;color:#8193a5;margin:9px 0}.history-filter-label{display:block;font-size:10px;color:#688098;margin:10px 0 5px}.history-case-filter{width:100%;font-size:11px}.history-actions{flex-wrap:wrap}.history-list button{text-align:left;line-height:1.5}.diagnosis-status[data-kind=error]{color:#b64f55;background:#fff4f2;padding:9px;border-radius:8px}.diagnosis-status[data-kind=success]{color:#168067;background:#eff9f4;padding:9px;border-radius:8px}
@media(max-width:980px){.report-page{padding:26px 0 42px}.report-overview{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.report-page{padding:22px 0 38px}.report-page-header{display:block}.report-page-header h1{font-size:24px}.report-page-header .eyebrow{margin-top:20px}.report-page-actions{margin-top:16px}.report-page-content{grid-template-columns:1fr}.report-card-wide{grid-column:auto}.report-card{padding:17px}.report-overview{grid-template-columns:1fr 1fr}.evidence-meta{align-items:flex-start;flex-direction:column;gap:6px}.history-actions{display:grid;grid-template-columns:1fr}.report-page-header .muted{font-size:10px}}
@media(max-width:420px){.report-overview{grid-template-columns:1fr}.report-page-actions>*{flex:1 1 100%}.report-page-header h1{font-size:21px}}
@media print{body{background:#fff;min-width:0}.shell{max-width:none;padding:0 10mm}.topbar,footer,#dashboard-view,.report-page-header .report-page-actions,#report-back{display:none!important}.report-page:not(.hidden){display:block!important;max-width:none;margin:0;padding:0}.report-page-header{display:block;margin:0 0 12mm}.report-page-header .eyebrow{margin-top:0}.report-page-header h1{font-size:20pt}.report-page-content{display:block}.report-card{box-shadow:none;border:1px solid #cfd8e0;border-radius:0;padding:7mm;margin:0 0 6mm;break-inside:avoid}.report-card-wide{grid-column:auto}.report-overview{grid-template-columns:repeat(3,minmax(0,1fr))}.report-kv{background:#fff}.report-evidence,.report-cause,.report-check-list li,.report-safety-list li{break-inside:avoid}.report-source-note,.report-risk,.report-uncertainty,.report-disposition-note{background:#fff!important;color:#222!important}}

/* Isolated report follow-up chat */
.followup-panel{margin-top:18px;padding:22px;background:linear-gradient(145deg,#fff,#f5faff);border-color:#d6e8f7}
.followup-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.followup-heading h2{font-size:20px;margin:7px 0;color:#244f73}.followup-heading p{margin:5px 0}.followup-state{flex:none;border-radius:99px;padding:7px 11px;font-size:11px;color:#607a91;background:#edf3f8}.followup-state[data-state=ready],.followup-state[data-state=complete]{color:#11765f;background:#e8f7f1}.followup-state[data-state=sending],.followup-state[data-state=generating]{color:#236da8;background:#e8f4ff}.followup-state[data-state=failed],.followup-state[data-state=cancelled]{color:#a14c51;background:#fff0ef}
.followup-scope{display:flex;align-items:center;gap:12px;margin:17px 0;padding:11px 13px;border-radius:10px;background:#edf6fd;color:#66819a;font-size:11px}.followup-scope b{color:#345d7e;overflow-wrap:anywhere}.followup-scope button{margin-left:auto;padding:7px 10px;font-size:10px;white-space:nowrap}
.followup-recommendations{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.followup-recommendations button{border:1px solid #cfe3f5;border-radius:99px;background:#fff;color:#3979aa;padding:8px 11px;font:11px inherit;cursor:pointer}.followup-recommendations button:hover:not(:disabled){background:#eaf5ff;border-color:#91c4e9}.followup-recommendations button:disabled{opacity:.5;cursor:not-allowed}
.followup-messages{display:grid;gap:11px;list-style:none;margin:14px 0;padding:14px;min-height:130px;max-height:480px;overflow:auto;border:1px solid #e4eef7;border-radius:12px;background:#f8fbff}.followup-empty{align-self:center;color:#8195a8;text-align:center;font-size:12px;line-height:1.7}.followup-message{max-width:min(88%,900px);padding:12px 14px;border:1px solid #e3edf5;border-radius:12px;background:#fff;box-shadow:0 4px 12px #3b78a00b}.followup-message[data-role=user]{justify-self:end;background:#eaf5ff;border-color:#cce4f7}.followup-message[data-role=assistant]{justify-self:start}.followup-message[data-role=error]{justify-self:start;border-color:#f0d4d3;background:#fff8f7}.followup-message small{display:block;margin-bottom:6px;color:#8295a8;font-size:10px}.followup-message p{margin:0;color:#3e5d78;font-size:12px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}.followup-message[data-role=assistant] p{color:#294d6d}.followup-sources{padding:12px 14px;border:1px solid #e0ebf4;border-radius:10px;background:#fff;color:#456884}.followup-sources summary{cursor:pointer;font-size:11px;font-weight:700}.followup-sources-content{display:grid;gap:8px}.followup-source-item{padding:10px;border-radius:8px;background:#f5f9fd;color:#526e86;font-size:11px;line-height:1.65;overflow-wrap:anywhere}.followup-source-item b{color:#3b6d93}.followup-form{margin-top:14px}.followup-form>label{display:block;margin-bottom:6px;color:#55738e;font-size:11px;font-weight:700}.followup-form textarea{min-height:74px;font-size:12px}.followup-turnstile{min-height:0;margin:8px 0}.followup-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.followup-status{margin:4px 0;color:#74899d;font-size:11px;line-height:1.6}.followup-status[data-kind=error]{color:#a84e54}.followup-actions>div{display:flex;gap:8px}.followup-actions button{width:auto;min-width:104px}
@media(max-width:760px){.followup-panel{padding:16px}.followup-heading{display:block}.followup-heading h2{font-size:18px}.followup-state{display:inline-block;margin-top:7px}.followup-scope{align-items:flex-start;flex-wrap:wrap}.followup-scope span{width:100%}.followup-scope button{margin-left:0}.followup-recommendations{display:grid;grid-template-columns:1fr}.followup-recommendations button{text-align:left;border-radius:9px}.followup-messages{padding:9px;max-height:55vh}.followup-message{max-width:100%;padding:10px}.followup-actions{align-items:stretch;flex-direction:column}.followup-actions>div{display:grid;grid-template-columns:1fr 1fr}.followup-actions button{width:100%;min-width:0}}
@media(prefers-reduced-motion:reduce){.followup-message{scroll-behavior:auto;animation:none!important;transition:none!important}}
@media print{.followup-panel{display:none!important}}
.case-filters{display:grid;grid-template-columns:1fr;gap:8px;margin:12px 0 14px;padding:11px;border:1px solid #e3edf6;border-radius:12px;background:linear-gradient(145deg,#f9fcff,#f1f8ff)}.case-filters label{display:grid;gap:5px;font-size:10px;color:#70869a;font-weight:700}.case-filters select{width:100%;max-width:none;border:1px solid #dce8f2;border-radius:8px;background:#fff;color:#355b7d;padding:8px;font:600 11px inherit}.case-code-summary{color:#3d7099!important;overflow-wrap:anywhere}.case-choice{transition:transform .18s ease,box-shadow .18s ease}.case-choice:hover{transform:translateY(-1px);box-shadow:0 8px 18px #4d89ba18}.twin-case-button{display:grid;gap:4px;text-align:left;max-width:220px}.twin-case-button b{font-size:11px}.twin-case-button small{font-size:9px;color:#7790a5;font-weight:600}@media(max-width:760px){.case-filters{grid-template-columns:1fr 1fr}.case-filters label:last-child{grid-column:1/-1}.case-filters select{font-size:10px;min-width:0}.twin-case-button{max-width:180px}}
.case-choice{display:grid;gap:3px;border-left:3px solid #c9d9e6;padding:10px 11px}

/* Follow-up UI V1.1: the document remains the only vertical scroll surface. */
.followup-messages{display:grid;gap:16px;max-height:none;min-height:0;overflow:visible;padding:4px 2px 8px;border:0;background:transparent;scroll-behavior:auto}
.followup-message{display:block;width:min(100%,1120px);max-width:100%;min-width:0;padding:0;overflow:clip;border-radius:14px;animation:followup-message-in .18s ease-out both}
.followup-message[data-role=assistant]{justify-self:start;border-color:#dce9f4;background:linear-gradient(155deg,#fff 0%,#fcfdff 100%);box-shadow:0 8px 23px rgba(37,90,137,.075)}
.followup-message[data-role=user]{justify-self:end;width:fit-content;max-width:min(82%,900px);padding:12px 15px;border-radius:15px 15px 4px 15px;background:linear-gradient(145deg,#edf7ff,#e4f2ff);border-color:#c9e0f4;box-shadow:0 4px 13px rgba(40,120,199,.08)}
.followup-message[data-role=error]{padding:12px 15px;border-radius:12px}
.followup-message-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 17px;border-bottom:1px solid #edf2f7;background:linear-gradient(90deg,#f1f8ff,#fff)}
.followup-message-author{color:#315e82;font-size:12px;font-weight:750;letter-spacing:.01em}
.followup-message[data-role=user] .followup-message-head{display:none}
.followup-copy{flex:none;width:auto;min-width:0;margin:0;padding:5px 9px;border:1px solid #d6e6f2;border-radius:8px;background:#fff;color:#557a98;font:inherit;font-size:10px;font-weight:600;cursor:pointer}
.followup-copy:hover{border-color:#9dc6e5;background:#f4faff;color:#2e6e9f}
.followup-plain-message{margin:0;color:#355d7c;font-size:12px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}
.followup-message[data-role=user] .followup-plain-message{font-size:12px;color:#285c86}
.followup-markdown{min-width:0;padding:16px 19px 18px;color:#405f79;font-size:13px;line-height:1.85;overflow-wrap:anywhere;word-break:normal}
.followup-markdown>*:first-child{margin-top:0}
.followup-markdown>*:last-child{margin-bottom:0}
.followup-markdown .followup-md-heading{margin:21px 0 9px;color:#244f73;font-weight:760;line-height:1.45;overflow-wrap:anywhere}
.followup-markdown h1.followup-md-heading{font-size:20px;padding-bottom:8px;border-bottom:1px solid #e4edf5}
.followup-markdown h2.followup-md-heading{font-size:17px;padding-left:10px;border-left:3px solid #77b4e2}
.followup-markdown h3.followup-md-heading{font-size:15px;color:#35678e}
.followup-markdown h4.followup-md-heading{font-size:13px;color:#52748f}
.followup-markdown .followup-md-paragraph{margin:10px 0;color:#405f79;line-height:1.9;white-space:normal}
.followup-markdown strong{color:#244f73;font-weight:760}
.followup-markdown em{color:#446c8d}
.followup-markdown .followup-list{margin:8px 0 13px;padding-left:1.55em;display:grid;gap:5px}
.followup-markdown ul.followup-list{list-style:disc}
.followup-markdown ol.followup-list{list-style:decimal}
.followup-markdown .followup-list .followup-list{margin:5px 0 4px;padding-left:1.45em}
.followup-markdown .followup-list li{padding-left:2px;line-height:1.8;overflow-wrap:anywhere}
.followup-markdown .followup-md-quote{margin:12px 0;padding:10px 14px;border-left:3px solid #77b3de;border-radius:0 9px 9px 0;background:#f1f8fe;color:#456987}
.followup-markdown .followup-md-quote .followup-md-paragraph{margin:4px 0}
.followup-markdown .followup-md-rule{height:1px;margin:17px 0;border:0;background:#e4edf5}
.followup-markdown .followup-inline-code,.followup-markdown .followup-code-block code{font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;font-size:.92em}
.followup-markdown .followup-inline-code{padding:2px 5px;border:1px solid #e5edf4;border-radius:5px;background:#f4f7fa;color:#42637e;overflow-wrap:anywhere}
.followup-markdown .followup-code-block{max-width:100%;margin:12px 0;padding:13px 15px;overflow-x:auto;overflow-y:hidden;border:1px solid #e0e9f1;border-radius:10px;background:#f5f8fb;color:#3d5a73;white-space:pre;line-height:1.65;tab-size:2}
.followup-markdown .followup-code-block code{font-size:11px}
.followup-markdown .followup-table-wrap{max-width:100%;margin:12px 0;overflow-x:auto;border:1px solid #e1ebf3;border-radius:9px;background:#fff;overscroll-behavior-x:contain}
.followup-markdown .followup-table{width:100%;min-width:520px;border-collapse:collapse;font-size:11px;line-height:1.65}
.followup-markdown .followup-table th,.followup-markdown .followup-table td{padding:9px 11px;border-bottom:1px solid #eaf0f5;text-align:left;vertical-align:top;overflow-wrap:anywhere}
.followup-markdown .followup-table th{background:#f1f7fc;color:#315e82;font-weight:750}
.followup-markdown .followup-table tr:last-child td{border-bottom:0}
.followup-markdown a{color:#2878b5;text-decoration:underline;text-decoration-color:#a9cce6;text-underline-offset:2px;overflow-wrap:anywhere}
.followup-markdown a:hover{color:#165d98}
.followup-stream-placeholder{margin:0;padding:16px 19px;color:#8296a8;font-size:12px}
.followup-feed-controls{display:flex;justify-content:flex-end;min-height:0;margin:-3px 0 10px}
.followup-latest{width:auto;min-width:0;padding:7px 11px;border:1px solid #bfdaef;border-radius:999px;background:#f4faff;color:#3e78a3;font-size:11px;box-shadow:0 4px 12px #3d83b51a}
.followup-form textarea{width:100%;min-width:0;resize:vertical;border-color:#d7e5f0;border-radius:11px;background:#fff;line-height:1.7;transition:border-color .15s,box-shadow .15s}
.followup-form textarea:focus{border-color:#79b2df;outline:0;box-shadow:0 0 0 3px rgba(94,165,216,.15)}
.followup-actions button{min-height:38px;border-radius:9px}
.followup-actions .primary-button:disabled{opacity:.62;cursor:wait}
.followup-status{min-width:0;overflow-wrap:anywhere}
@keyframes followup-message-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:820px){.followup-panel{min-width:0}.followup-markdown{padding:14px 15px 16px}.followup-message[data-role=user]{max-width:90%}.followup-heading{gap:10px}.followup-scope b{min-width:0}}
@media(max-width:760px){.followup-messages{gap:12px;padding:3px 0 7px}.followup-message[data-role=user]{max-width:92%;padding:10px 12px}.followup-message-head{padding:10px 13px}.followup-markdown{padding:13px;font-size:12px;line-height:1.85}.followup-markdown h1.followup-md-heading{font-size:18px}.followup-markdown h2.followup-md-heading{font-size:16px}.followup-markdown h3.followup-md-heading{font-size:14px}.followup-markdown .followup-table{min-width:480px}.followup-feed-controls{position:sticky;bottom:10px;z-index:2;pointer-events:none}.followup-latest{pointer-events:auto;box-shadow:0 5px 18px rgba(35,90,137,.16)}.followup-actions{gap:8px}.followup-actions>div{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media(max-width:420px){.followup-panel{padding:13px}.followup-message[data-role=user]{max-width:96%}.followup-markdown{padding:12px;font-size:12px}.followup-markdown .followup-code-block{margin:9px -2px;padding:11px;font-size:10px}.followup-markdown .followup-table{min-width:450px}.followup-actions>div{gap:7px}.followup-actions button{font-size:11px;padding:9px 7px}.followup-copy{font-size:9px;padding:5px 7px}}
@media(prefers-reduced-motion:reduce){.followup-message{animation:none!important;transition:none!important}.followup-messages{scroll-behavior:auto}.followup-latest{scroll-behavior:auto}}

/* Follow-up UI V1.2: verified summary and denser technical typography. */
.followup-summary{min-width:0;margin:0 0 20px;padding:17px 19px;border:1px solid #d9e8f4;border-radius:13px;background:linear-gradient(145deg,#f7fbff,#fff);box-shadow:0 5px 16px rgba(40,94,137,.045)}
.followup-summary-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px}.followup-summary-header h3{margin:4px 0 0;color:#2c577a;font-size:15px;line-height:1.4}
.followup-summary-status{flex:none;padding:6px 10px;border:1px solid #dbe6ef;border-radius:999px;background:#f3f7fa;color:#64798b;font-size:10px;font-weight:800;letter-spacing:.04em}
.followup-summary-status[data-status=NORMAL]{border-color:#cde8dd;background:#edf8f3;color:#28745e}
.followup-summary-status[data-status=SUSPECTED]{border-color:#efdfc3;background:#fff7eb;color:#956a25}
.followup-summary-status[data-status=UNCONFIRMED]{border-color:#dce3e9;background:#f3f6f8;color:#677b8d}
.followup-summary-statement{margin:0 0 12px;color:#315d7e;font-size:14px;font-weight:750;line-height:1.55}
.followup-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.followup-summary-cell{display:grid;align-content:start;gap:4px;min-width:0;padding:9px 11px;border:1px solid #e5edf4;border-radius:9px;background:rgba(255,255,255,.9)}
.followup-summary-cell>span{color:#8193a3;font-size:10px;font-weight:700}
.followup-summary-cell>b{color:#3d5f7b;font-size:12px;line-height:1.55;overflow-wrap:anywhere;word-break:break-word}
.followup-summary-root{grid-column:span 2}
.followup-summary-candidates{min-width:0;margin-top:10px;padding:10px 12px;border:1px solid #e4edf5;border-radius:9px;background:#fff}
.followup-summary-candidates-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px;color:#7a8fa2;font-size:10px}
.followup-summary-candidates-head b{color:#52728d;font-size:11px}
.followup-summary-candidates-list{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.followup-summary-candidate{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px;min-width:0;padding:8px 9px;border-radius:7px;background:#f6f9fc}
.followup-summary-cause{min-width:0;color:#355b7b;font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.followup-summary-confidence{color:#71889d;font-size:10px;line-height:1.55;text-align:right;white-space:nowrap}
.followup-summary-note{margin:7px 0 0;color:#8495a4;font-size:10px;line-height:1.6}
.followup-summary-identity{margin:9px 1px 0;color:#91a0ad;font:10px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere}
.followup-markdown{font-size:15px;line-height:1.75}
.followup-markdown .followup-md-heading{margin:20px 0 10px;line-height:1.4}
.followup-markdown h1.followup-md-heading{font-size:21px}
.followup-markdown h2.followup-md-heading{font-size:18px}
.followup-markdown h3.followup-md-heading{font-size:16px}
.followup-markdown h4.followup-md-heading{font-size:14px}
.followup-markdown .followup-md-paragraph{margin:12px 0;line-height:1.78}
.followup-markdown .followup-list{gap:6px;margin:9px 0 14px;padding-left:1.6em}
.followup-markdown .followup-list li{line-height:1.75}
.followup-markdown .followup-table{font-size:14px;line-height:1.6}
.followup-markdown .followup-table th,.followup-markdown .followup-table td{padding:10px 12px;overflow-wrap:anywhere;word-break:break-word}
.followup-markdown .followup-table tbody tr:nth-child(even){background:#f8fbfd}
.followup-markdown .followup-table tbody tr:hover{background:#f0f7fc}
.followup-markdown .followup-code-block code{font-size:12px}
.followup-markdown .followup-inline-code{overflow-wrap:anywhere;word-break:break-word}
@media(max-width:820px){.followup-summary{padding:14px}.followup-summary-grid{grid-template-columns:minmax(0,1fr)}.followup-summary-root{grid-column:auto}.followup-summary-candidate{grid-template-columns:minmax(0,1fr)}.followup-summary-confidence{text-align:left;white-space:normal}.followup-markdown{font-size:13px}.followup-markdown .followup-table{font-size:12px;min-width:500px}.followup-markdown .followup-code-block code{font-size:11px}}
@media(max-width:420px){.followup-summary-header{align-items:flex-start}.followup-summary-header h3{font-size:14px}.followup-summary-status{padding:5px 8px;font-size:9px}.followup-summary-statement{font-size:13px}.followup-summary-grid{gap:6px}.followup-summary-cell{padding:8px 9px}.followup-summary-candidates{padding:9px}.followup-markdown{font-size:12px}.followup-markdown .followup-table{min-width:460px}}
.case-choice--fault{border-left-color:#d76d72}
.case-choice--normal{border-left-color:#37a883}
.case-choice--observation{border-left-color:#5c9dc8}
.case-choice .case-display-name{font-size:12px;line-height:1.35;margin:0}
.case-choice .case-display-summary{color:#3d7099;font-weight:650;line-height:1.45;overflow-wrap:anywhere}
.case-choice .case-display-meta{color:#607e96;font-weight:700}
.case-choice--fault .case-display-meta{color:#ad555c}
.case-choice--normal .case-display-meta{color:#27856b}
.case-choice--observation .case-display-meta{color:#497da0}
.chart{position:relative}
.curve-hover-tooltip{position:absolute;z-index:5;top:8px;max-width:min(260px,calc(100% - 16px));padding:8px 10px;border:1px solid #b9d8ec;border-radius:9px;background:#fffffff2;box-shadow:0 5px 16px #315f7c20;color:#31566f;font:10px/1.55 ui-monospace,Consolas,monospace;white-space:pre-line;pointer-events:none}
.curve-hover-tooltip[hidden]{display:none}
.curve-interpretation{margin-top:10px;padding:11px 13px;border:1px solid #e2edf5;border-radius:10px;background:linear-gradient(145deg,#fbfdff,#f4f9fd)}
.curve-interpretation h3{margin:0 0 5px;color:#416889;font-size:11px}
.curve-interpretation p{margin:0;color:#60798e;font-size:10px;line-height:1.65;white-space:pre-line;overflow-wrap:anywhere}
.curve-interpretation p .interpretation-caution{color:#8b6b42}
.event-raw{margin:7px 0 0;color:#63809a;font-size:9px}
.event-raw summary{cursor:pointer}
.event-raw pre{max-height:220px;overflow:auto;margin:6px 0 0;padding:8px;border-radius:7px;background:#f4f8fb;color:#51697d;font:9px/1.5 ui-monospace,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.timeline li.is-propagation{background:#fff9ef;border-radius:8px;padding-top:6px}
.timeline li.is-wait .event-detail{color:#71869b}
.timeline .event-sequence{color:#7c93a6;font-size:9px}
.event-tone-badge{display:inline-flex;align-items:center;gap:4px;margin:0 8px 6px 19px;padding:3px 7px;border-radius:99px;background:#f0f5f9;color:#60778b;font-size:8px;line-height:1.3;font-weight:700}
.event-tone-badge--alarm{background:#fff0ef;color:#ad5555}
.event-tone-badge--propagation{background:#fff3dd;color:#9d6819}
.event-tone-badge--wait{background:#f0f5f8;color:#637b8f}
.event-tone-badge--neutral{background:#edf5fb;color:#4f7b9e}
.chart-footer{flex-wrap:wrap;align-items:flex-start;gap:6px 12px}
.chart-footer #chart-range,.chart-footer #twin-chart-range{max-width:68%;text-align:right;overflow-wrap:anywhere}
@media(max-width:760px){.chart-footer{justify-content:flex-start}.chart-footer #chart-range,.chart-footer #twin-chart-range{max-width:100%;text-align:left}}
