:root{
  --bg:#f5f8fb;
  --paper:#ffffff;
  --paper-soft:#f7fafe;
  --ink:#152033;
  --muted:#68798d;
  --faint:#94a2b2;
  --line:rgba(8,26,58,.12);
  --line-strong:rgba(8,26,58,.21);
  --accent:#102b55;
  --accent-dark:#081a3a;
  --accent-soft:#eaf0f6;
  --accent-pale:#f3f7fb;
  --danger:#9e4a43;
  --danger-soft:#fff3f1;
  --shadow:0 22px 64px rgba(8,26,58,.065);
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  color:var(--ink);
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  background:
    radial-gradient(circle at 8% -8%,rgba(16,43,85,.15),transparent 36rem),
    radial-gradient(circle at 96% 10%,rgba(237,227,175,.09),transparent 32rem),
    var(--bg);
  -webkit-font-smoothing:antialiased;
}
button,textarea{font:inherit;color:inherit}
button{cursor:pointer}
a{color:inherit}
.hidden{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.app-shell{width:min(1480px,calc(100% - 44px));margin:0 auto}
.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(8,26,58,.09)}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.brand>span:last-child{display:grid;gap:2px}
.brand strong{font-size:16px;font-weight:730;letter-spacing:-.025em}
.brand small{font-size:9px;letter-spacing:.11em;color:var(--muted)}
.brand-mark{position:relative;width:36px;height:36px;display:inline-block;transform:scale(.96)}
.brand-mark i{position:absolute;width:9px;height:9px;border-radius:50%;background:var(--accent)}
.brand-mark i:nth-child(1){left:3px;top:4px}.brand-mark i:nth-child(2){right:3px;top:13px}.brand-mark i:nth-child(3){left:6px;bottom:2px}
.brand-mark:before,.brand-mark:after{content:"";position:absolute;width:20px;height:1.5px;background:var(--accent);transform-origin:left center}
.brand-mark:before{left:9px;top:10px;transform:rotate(24deg)}.brand-mark:after{left:11px;top:24px;transform:rotate(-27deg)}
.status-pill{display:inline-flex;align-items:center;gap:8px;padding:8px 11px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.72);font-size:10.5px;color:var(--muted);backdrop-filter:blur(10px)}
.status-pill i{width:8px;height:8px;border-radius:50%;background:#9ca9a5;box-shadow:0 0 0 4px rgba(120,140,133,.1)}
.status-pill.ready i{background:#36a078;box-shadow:0 0 0 4px rgba(54,160,120,.12)}

.workspace{--rail-width:380px;--rail-gap:22px;display:grid;grid-template-columns:minmax(0,1fr) var(--rail-width);gap:var(--rail-gap);align-items:start;padding:20px 0 16px;position:relative}
.workspace.rail-collapsed{grid-template-columns:minmax(0,1fr)}
.workspace.rail-collapsed .run-rail{display:none}
.conversation-shell{min-width:0;border:1px solid var(--line);border-radius:26px;background:rgba(255,255,255,.9);box-shadow:var(--shadow);backdrop-filter:blur(18px);overflow:hidden}
.conversation-head{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:26px 34px 22px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(249,252,250,.9))}
.conversation-head>div{max-width:790px}
.conversation-head h1{margin:0;font-size:clamp(30px,2.7vw,36px);line-height:1.09;letter-spacing:-.04em;font-weight:700}
.ghost-button{flex:0 0 auto;border:1px solid var(--line);border-radius:10px;background:#fff;padding:8px 11px;color:var(--muted);font-size:10.5px}
.ghost-button:hover{border-color:var(--line-strong);color:var(--ink)}
.rail-edge-toggle{position:absolute;z-index:18;top:30px;right:calc(var(--rail-width) + 6px);display:flex;width:32px;height:40px;align-items:center;justify-content:center;border:1px solid var(--line-strong);border-radius:11px;background:rgba(255,255,255,.96);color:#70827b;box-shadow:0 8px 22px rgba(8,26,58,.10);cursor:pointer;transition:right .22s ease,transform .16s ease,background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease;backdrop-filter:blur(12px)}
.rail-edge-toggle:hover,.rail-edge-toggle:focus-visible{border-color:rgba(16,43,85,.38);background:#fff;color:var(--accent-dark);box-shadow:0 10px 28px rgba(8,26,58,.15);transform:translateX(-1px);outline:none}
.rail-edge-toggle:focus-visible{box-shadow:0 0 0 3px rgba(16,43,85,.12),0 10px 28px rgba(8,26,58,.15)}
.rail-toggle-icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.rail-toggle-divider{opacity:.62}.rail-toggle-chevron{stroke-width:1.8;transition:transform .22s ease;transform-origin:12px 12px}
.rail-edge-toggle:after{content:attr(data-tooltip);position:absolute;right:calc(100% + 9px);top:50%;transform:translateY(-50%) translateX(4px);padding:6px 8px;border-radius:7px;background:#20332d;color:#fff;font-size:9px;font-weight:650;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .14s ease,transform .14s ease;box-shadow:0 8px 20px rgba(14,32,26,.16)}
.rail-edge-toggle:hover:after,.rail-edge-toggle:focus-visible:after{opacity:1;transform:translateY(-50%) translateX(0)}
.workspace.rail-collapsed .rail-edge-toggle{right:8px;color:var(--accent-dark)}
.workspace.rail-collapsed .rail-toggle-chevron{transform:rotate(180deg)}
.workspace.rail-collapsed .rail-edge-toggle:after{right:calc(100% + 9px)}

.messages{padding:28px 34px 18px;overflow-anchor:none}
.message{display:grid;gap:13px;margin:0 0 26px}
.assistant-message{grid-template-columns:38px minmax(0,1fr);gap:12px}
.user-message{grid-template-columns:minmax(0,1fr);justify-items:end}
.assistant-avatar{display:flex;width:38px;height:38px;align-items:center;justify-content:center;border-radius:12px;background:var(--accent);color:#fff;font-size:10px;font-weight:800;letter-spacing:.04em;box-shadow:0 8px 18px rgba(16,43,85,.14)}
.message-content{min-width:0;width:100%}
.user-message .message-content{width:min(760px,86%);display:flex;flex-direction:column;align-items:flex-end;justify-self:end}
.message-meta{display:flex;align-items:center;gap:8px;margin:0 0 7px}
.user-message .message-meta{align-self:stretch;justify-content:flex-end}
.message-meta strong{font-size:12px}.message-meta span{font-size:10px;color:var(--faint)}
.assistant-copy{max-width:820px}.assistant-copy p{margin:0 0 7px;font-size:15px;line-height:1.72}.assistant-copy .subtle,.subtle{font-size:12.5px;line-height:1.62;color:var(--muted)}
.markdown-body>:first-child{margin-top:0}.markdown-body>:last-child{margin-bottom:0}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{margin:16px 0 7px;line-height:1.35;color:var(--text);font-weight:720}.markdown-body h1{font-size:20px}.markdown-body h2{font-size:18px}.markdown-body h3{font-size:16px}.markdown-body h4,.markdown-body h5,.markdown-body h6{font-size:15px}.markdown-body ul,.markdown-body ol{margin:7px 0 10px;padding-left:24px}.markdown-body li{margin:3px 0;line-height:1.65}.markdown-body li::marker{color:var(--muted)}.markdown-body strong{font-weight:720;color:var(--text)}.markdown-body em{font-style:italic}.markdown-body del{color:var(--muted)}.markdown-body code{padding:1px 5px;border:1px solid var(--line);border-radius:5px;background:rgba(8,26,58,.05);font:12.5px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow-wrap:anywhere}.markdown-body pre{margin:10px 0;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#f4f7f5;overflow:auto}.markdown-body pre code{padding:0;border:0;background:transparent;white-space:pre;overflow-wrap:normal}.markdown-body blockquote{margin:9px 0;padding:4px 0 4px 12px;border-left:3px solid var(--accent);color:var(--muted)}.markdown-body blockquote p{margin:0}.markdown-body a{color:var(--accent-strong);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}.markdown-body hr{height:1px;border:0;background:var(--line);margin:14px 0}.markdown-table-wrap{margin:10px 0;overflow:auto;border:1px solid var(--line);border-radius:10px}.markdown-body table{width:100%;border-collapse:collapse;font-size:13px}.markdown-body th,.markdown-body td{padding:8px 10px;border-bottom:1px solid var(--line);vertical-align:top}.markdown-body th{background:rgba(8,26,58,.045);font-weight:700}.markdown-body tbody tr:last-child td{border-bottom:0}
.user-bubble{display:inline-block;max-width:100%;padding:13px 17px;border-radius:18px 18px 6px 18px;background:var(--accent);color:#fff;box-shadow:0 8px 20px rgba(16,43,85,.12)}
.user-bubble p{margin:0;font-size:14px;line-height:1.62;white-space:pre-wrap}.context-tag{display:inline-flex;margin-top:7px;padding:4px 7px;border-radius:999px;background:rgba(255,255,255,.14);font-size:9.5px;color:rgba(255,255,255,.82)}


.activity-card{display:grid;grid-template-columns:10px minmax(0,1fr);gap:10px;align-items:start;max-width:840px;padding:13px 15px;border:1px solid var(--line);border-radius:15px;background:var(--paper-soft)}
.agent-trace-list{display:grid;border-top:1px solid var(--line);padding:5px 14px 9px}.agent-trace-step{display:grid;grid-template-columns:25px minmax(0,1fr) auto;gap:9px;align-items:center;padding:7px 0}.agent-trace-step+.agent-trace-step{border-top:1px solid rgba(8,26,58,.055)}.agent-trace-index{font-family:var(--mono);font-size:7.5px;color:var(--faint)}.agent-trace-step-label{font-size:10px;font-weight:650;line-height:1.35}.agent-trace-status{font-size:7.8px;color:var(--accent-dark)}.agent-trace-step.status-error .agent-trace-status,.agent-trace-step.status-rejected .agent-trace-status{color:#8b6a2e}
.activity-copy{display:grid;gap:3px}.activity-copy strong{font-size:12px}.activity-copy small{font-size:10px;color:var(--muted)}
.pulse-dot{width:8px;height:8px;margin-top:4px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 0 rgba(16,43,85,.3);animation:pulse 1.4s infinite}
.pulse-dot.done{animation:none;background:#6f9186}.pulse-dot.failed{animation:none;background:var(--danger)}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(16,43,85,.24)}70%{box-shadow:0 0 0 7px rgba(16,43,85,0)}100%{box-shadow:0 0 0 0 rgba(16,43,85,0)}}

.verification-card,.result-card{max-width:880px;margin-top:14px;border:1px solid var(--line);border-radius:19px;background:#fff;overflow:hidden;box-shadow:0 13px 36px rgba(8,26,58,.05)}
.structured-card-fold{max-width:880px;margin-top:12px;border:1px solid var(--line);border-radius:15px;background:#fbfdfc;overflow:hidden}.structured-card-fold>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;cursor:pointer;list-style:none;color:var(--accent-dark)}.structured-card-fold>summary::-webkit-details-marker{display:none}.structured-card-fold>summary strong{font-size:11px}.structured-card-fold>summary span{font-size:9.5px;color:var(--muted)}.structured-card-fold>.result-card,.structured-card-fold>.verification-card{margin-top:0;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none;max-width:none}
.agent-evidence-artifact-list{display:grid;border-top:1px solid var(--line)}.agent-evidence-artifact{margin:0;background:#fff;border:0}.agent-evidence-artifact+.agent-evidence-artifact{border-top:1px solid var(--line)}.agent-evidence-artifact>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px var(--ui-pad-x);cursor:pointer;list-style:none}.agent-evidence-artifact>summary::-webkit-details-marker{display:none}.agent-evidence-artifact>summary strong{font-size:10.5px}.agent-evidence-artifact>summary small{font-size:8.8px;color:var(--muted);text-align:right}.agent-evidence-artifact-body{display:grid;gap:6px;padding:0 var(--ui-pad-x) 12px}.agent-evidence-artifact-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:baseline;padding:6px 0}.agent-evidence-artifact-row+.agent-evidence-artifact-row{border-top:1px solid rgba(8,26,58,.055)}.agent-evidence-artifact-row strong{font-size:9.8px;font-weight:680;line-height:1.35}.agent-evidence-artifact-row small{font-size:8.3px;color:var(--muted);text-align:right}
.tool-card-head{display:grid;grid-template-columns:32px 1fr;gap:11px;align-items:center;padding:15px 18px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fbfdfc,#f7faf8)}
.tool-icon{display:flex;width:32px;height:32px;align-items:center;justify-content:center;border-radius:10px;background:var(--accent-soft);color:var(--accent-dark);font-size:12px;font-weight:800}
.tool-card-head>div{display:grid;gap:2px}.tool-card-head strong{font-size:13px}.tool-card-head small{font-size:10px;color:var(--muted)}
.verification-section{padding:15px 18px;border-bottom:1px solid var(--line)}
.verification-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px}.verification-section-head>div{display:grid;gap:3px;min-width:0}.verification-section-head strong{font-size:12px}.verification-section-head small{font-size:9.5px;color:var(--muted);line-height:1.5}
.entity-list{display:grid;gap:8px}.entity-list.selection-collapsed{gap:0}.entity-list.selection-collapsed .entity-option:not(.selected){display:none}
.entity-option{position:relative;display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:11px;align-items:center;padding:11px 12px;border:1px solid var(--line);border-radius:13px;background:var(--paper-soft);transition:border-color .14s ease,background .14s ease}
.entity-option:hover{border-color:rgba(16,43,85,.28);background:#fff}.entity-option.selected{border-color:rgba(16,43,85,.4);background:var(--accent-pale);box-shadow:0 0 0 2px rgba(16,43,85,.04)}
.compound-option{grid-template-columns:22px minmax(0,1fr) 48px auto}
.compound-structure-thumb{width:46px;height:38px;object-fit:contain;border:1px solid var(--line);border-radius:7px;background:#fff;justify-self:end}
.entity-option:focus-visible{outline:2px solid rgba(16,43,85,.34);outline-offset:2px}
.entity-option input[type="radio"]{position:absolute;left:12px;top:50%;width:1px;height:1px;margin:0;padding:0;opacity:0;pointer-events:none;transform:translateY(-50%);clip-path:inset(50%)}
.option-radio{display:flex;width:18px;height:18px;align-items:center;justify-content:center;border:1.5px solid #9eb0aa;border-radius:50%}.entity-option.selected .option-radio{border-color:var(--accent)}.entity-option.selected .option-radio:after{content:"";width:8px;height:8px;border-radius:50%;background:var(--accent)}
.entity-main{display:grid;gap:3px;min-width:0}.entity-top{display:flex;align-items:center;gap:7px;min-width:0}.entity-top strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.entity-top em{flex:0 0 auto;padding:3px 6px;border-radius:999px;background:var(--accent-soft);color:var(--accent-dark);font-size:8.5px;font-style:normal}.entity-idline{font-family:var(--mono);font-size:10px;color:#5d776f}.entity-main small{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reaction-equation{font-size:11.5px;line-height:1.55;overflow-wrap:anywhere}
.external-link{font-size:10px;color:var(--accent);text-decoration:none;white-space:nowrap}.external-link:hover{text-decoration:underline}
.selection-change{flex:0 0 auto;border:1px solid var(--line);border-radius:999px;background:var(--paper);color:var(--accent-dark);padding:5px 9px;font-size:10px;font-weight:650;line-height:1}.selection-change:hover{border-color:rgba(16,43,85,.32);background:var(--accent-pale)}
.verification-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 18px;background:#fafcfb}.verification-actions p{margin:0;max-width:560px;font-size:10px;line-height:1.55;color:var(--muted)}
.primary-button{border:0;border-radius:11px;background:var(--accent);color:#fff;padding:10px 14px;font-size:11.5px;font-weight:740;box-shadow:0 7px 17px rgba(16,43,85,.13)}.primary-button:hover:not(:disabled){background:var(--accent-dark)}.primary-button:disabled{opacity:.5;cursor:not-allowed}
.empty-inline{margin:0;padding:10px 12px;border-radius:11px;background:#fbf6ea;color:#896b3d;font-size:10px;line-height:1.5}
.inline-error{display:grid;grid-template-columns:30px 1fr;gap:11px;align-items:start;max-width:840px;padding:14px 15px;border:1px solid rgba(158,74,67,.2);border-radius:15px;background:var(--danger-soft)}.error-mark{display:flex;width:28px;height:28px;align-items:center;justify-content:center;border-radius:50%;background:#f3d9d6;color:var(--danger);font-size:12px;font-weight:800}.inline-error strong{font-size:12px}.inline-error p{margin:4px 0 0;color:#805f5b;font-size:10.5px;line-height:1.55}

.result-intro{margin-bottom:10px}.result-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:15px 18px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fbfdfc,#f8fbf9)}.result-head>div{display:grid;gap:3px}.result-head strong{font-size:14px}.result-head small{font-size:10px;color:var(--muted)}
.result-chips{display:flex;flex-wrap:wrap;gap:6px;padding:11px 18px;border-bottom:1px solid var(--line)}.result-chips span{padding:4px 7px;border:1px solid var(--line);border-radius:999px;background:var(--paper-soft);font-size:9.5px;color:var(--muted)}
.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;min-width:680px}th,td{padding:12px 16px;text-align:left;border-bottom:1px solid var(--line)}th{background:#fbfcfb;color:var(--faint);font-size:8.5px;font-weight:800;letter-spacing:.06em}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:rgba(244,249,246,.72)}.rank-cell{width:60px;color:var(--faint);font-size:11px;font-variant-numeric:tabular-nums}.result-entity{min-width:310px}.result-entity-primary{display:flex;align-items:center;gap:7px;min-width:0}.entity-primary-link,.entity-primary-text{font-size:12px;font-weight:740;color:var(--accent-dark);text-decoration:none}.entity-primary-link:hover{text-decoration:underline}.result-entity small{display:block;margin-top:4px;max-width:430px;font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.priority-badge{flex:0 0 auto;padding:3px 6px;border-radius:999px;background:var(--accent-soft);color:var(--accent-dark);font-size:8px;font-weight:700}.score-cell{width:190px}.score-number{display:block;font-family:var(--mono);font-size:10px}.score-track{display:block;height:5px;margin-top:6px;border-radius:99px;background:rgba(16,43,85,.09);overflow:hidden}.score-track i{display:block;height:100%;border-radius:inherit;background:var(--accent)}.score-note{margin:0;padding:10px 16px;border-top:1px solid var(--line);background:#fbfcfb;color:var(--muted);font-size:9.5px;line-height:1.5}
.result-route-details{border-top:1px solid var(--line);background:#fbfcfb}.result-route-details>summary{padding:11px 15px;font-size:10px;font-weight:700;color:var(--muted);cursor:pointer}.result-technical{border-top:1px solid var(--line)}.result-route-code{display:block;margin:10px 14px 4px;padding:8px 9px;border-radius:8px;background:#f4f7f5;color:#6f837c;font-family:var(--mono);font-size:8.5px;overflow-wrap:anywhere}.inline-route{display:flex;align-items:stretch;gap:6px;padding:8px 14px 14px;overflow-x:auto}.inline-route-node{flex:0 0 135px;display:grid;gap:3px;padding:9px;border:1px solid var(--line);border-radius:10px;background:#fff}.inline-route-node>span{font-size:8px;color:var(--faint)}.inline-route-node strong{font-size:10.5px;line-height:1.35}.inline-route-node small{font-size:8.5px;color:var(--muted);line-height:1.4}.inline-route-node.kind-model,.inline-route-node.kind-seed,.inline-route-node.kind-fusion{border-color:rgba(16,43,85,.26);background:var(--accent-pale)}.route-arrow{align-self:center;color:#9eada8;font-size:12px;font-style:normal}

.composer-context{display:flex;align-items:center;justify-content:space-between;margin:0 34px -1px;padding:7px 11px;border:1px solid var(--line);border-bottom:0;border-radius:10px 10px 0 0;background:var(--accent-pale);color:var(--muted);font-size:10px}.composer-context span{display:flex;align-items:center;gap:6px}.composer-context i{width:7px;height:7px;border-radius:50%;background:var(--accent)}.composer-context button{border:0;background:transparent;color:var(--faint);font-size:17px;line-height:1}
.composer{position:sticky;bottom:0;padding:10px 34px 20px;background:linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,.94) 22%,#fff 55%);z-index:5}
.composer-input-wrap{display:grid;grid-template-columns:minmax(0,1fr) 46px;gap:9px;align-items:end;padding:8px 8px 8px 16px;border:1px solid rgba(16,43,85,.2);border-radius:17px;background:#fff;box-shadow:0 12px 34px rgba(8,26,58,.085)}
textarea{width:100%;min-height:48px;max-height:170px;resize:none;border:0;outline:0;background:transparent;padding:6px 0;color:var(--ink);font-size:14px;line-height:1.6}textarea::placeholder{color:#91a19b;font-size:13.5px}
.send-button{display:flex;width:44px;height:44px;align-items:center;justify-content:center;border:0;border-radius:12px;background:var(--accent);color:#fff}.send-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.send-button:disabled{opacity:.46;cursor:not-allowed}.send-button.busy svg{animation:sendPulse 1s infinite alternate}@keyframes sendPulse{to{transform:translateX(2px);opacity:.55}}
.composer-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:8px;color:var(--faint);font-size:9.5px}.composer-agent-note{color:var(--muted);font-weight:620;text-align:right}
.ai-plan-note{margin-left:auto;color:var(--muted);font-size:9.5px;font-weight:500}

.run-rail{display:grid;gap:13px}.rail-card{border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.84);box-shadow:0 12px 34px rgba(8,26,58,.04);backdrop-filter:blur(16px);overflow:hidden}.context-card{padding:17px}.rail-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.rail-heading strong{font-size:12px}.context-card h2{margin:9px 0 0;font-size:19px;line-height:1.25;letter-spacing:-.025em}.context-card>p{margin:7px 0 0;color:var(--muted);font-size:10.5px;line-height:1.58}.context-facts{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;margin-top:13px}.context-facts span{display:grid;gap:3px;padding:8px;border-radius:10px;background:var(--paper-soft);border:1px solid var(--line);min-width:0}.context-facts small{font-size:7.5px;color:var(--faint)}.context-facts strong{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.technical-card>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 17px;list-style:none;cursor:pointer}.technical-card>summary::-webkit-details-marker{display:none}.technical-card>summary span{font-size:11.5px;font-weight:730}.technical-card>summary small{font-size:9px;color:var(--muted)}.technical-body{border-top:1px solid var(--line);padding:14px 16px 16px}.technical-facts{display:grid;gap:7px}.technical-facts span{display:grid;gap:2px;padding:8px 9px;border:1px solid var(--line);border-radius:9px;background:var(--paper-soft)}.technical-facts small{font-size:7.5px;color:var(--faint)}.technical-facts strong{font-size:9.5px;line-height:1.4;overflow-wrap:anywhere}.route-empty{padding:17px 8px 5px;text-align:center}.route-empty p{margin:0;color:var(--faint);font-size:9.5px;line-height:1.55}.route-timeline{display:grid;gap:0;margin-top:13px}.route-step{position:relative;display:grid;grid-template-columns:25px 1fr;gap:9px;padding:0 0 12px}.route-step:not(:last-child):before{content:"";position:absolute;left:12px;top:21px;bottom:0;width:1px;background:var(--line-strong)}.route-marker{z-index:1;display:flex;width:25px;height:25px;align-items:center;justify-content:center;border:1px solid var(--line-strong);border-radius:8px;background:#fff;color:var(--muted);font-size:8.5px;font-weight:720}.route-step.kind-model .route-marker,.route-step.kind-seed .route-marker,.route-step.kind-fusion .route-marker{background:var(--accent-soft);border-color:rgba(16,43,85,.25);color:var(--accent-dark)}.route-step>div{display:grid;gap:2px;min-width:0}.route-step strong{font-size:10.5px}.route-step small{font-size:8.5px;color:var(--accent-dark)}.route-step p{margin:2px 0 0;color:var(--faint);font-size:8.5px;line-height:1.45}.route-id{display:block;margin-top:4px;padding:7px 8px;border-radius:8px;background:var(--paper-soft);color:#718880;font-family:var(--mono);font-size:8px;line-height:1.45;overflow-wrap:anywhere}
.route-space{margin-top:12px;border-top:1px solid var(--line)}.route-space>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 2px 4px;list-style:none;cursor:pointer}.route-space>summary::-webkit-details-marker{display:none}.route-space>summary span{font-size:9.5px;font-weight:700}.route-space>summary small{font-size:8px;color:var(--muted)}.route-catalog{display:grid;gap:10px;padding-top:8px}.catalog-group{display:grid;gap:5px}.catalog-group>strong{font-size:9px}.catalog-item{display:grid;gap:2px;padding:7px 8px;border:1px solid var(--line);border-radius:8px;background:var(--paper-soft)}.catalog-item span{font-size:8.5px;font-weight:650}.catalog-item small{font-size:7.5px;line-height:1.45;color:var(--faint);overflow-wrap:anywhere}
footer{display:flex;justify-content:space-between;gap:20px;padding:9px 3px 12px;border-top:1px solid var(--line);color:var(--faint);font-size:9.5px}

@media(min-width:981px){
  html,body{height:100%;overflow:hidden}
  .app-shell{height:100dvh;display:grid;grid-template-rows:76px minmax(0,1fr) auto}
  .workspace{min-height:0;height:100%;overflow:hidden}
  .conversation-shell{min-height:0;height:100%;display:flex;flex-direction:column;overflow:hidden}
  .conversation-head{flex:0 0 auto}
  .messages{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-behavior:smooth}
  .composer-context{flex:0 0 auto}.composer{position:relative;bottom:auto;flex:0 0 auto}
  .run-rail{min-height:0;height:100%;overflow-y:auto;overscroll-behavior:contain;padding-right:3px;align-content:start}
  .messages::-webkit-scrollbar,.run-rail::-webkit-scrollbar{width:10px}.messages::-webkit-scrollbar-track,.run-rail::-webkit-scrollbar-track{background:transparent}.messages::-webkit-scrollbar-thumb,.run-rail::-webkit-scrollbar-thumb{background:rgba(64,98,87,.18);border:3px solid transparent;border-radius:999px;background-clip:padding-box}
}
@media(min-width:981px) and (max-height:820px){
  .app-shell{grid-template-rows:68px minmax(0,1fr) auto}.topbar{height:68px}.workspace{padding:14px 0 11px}
  .conversation-head{padding:19px 30px 16px}.conversation-head h1{font-size:29px}
  .messages{padding:22px 30px 14px}
  .composer{padding:8px 30px 14px}.composer-context{margin-left:30px;margin-right:30px}.composer-foot{margin-top:6px}
  .run-rail{gap:10px}.context-card{padding:14px}.context-card h2{font-size:17px}
  footer{padding:6px 3px 8px}
}
@media(max-width:1180px){.workspace{--rail-width:340px}.app-shell{width:min(100% - 30px,1480px)}.conversation-head,.messages,.composer{padding-left:26px;padding-right:26px}.composer-context{margin-left:26px;margin-right:26px}}
@media(max-width:980px){
  .app-shell{width:min(100% - 22px,1480px)}.topbar{height:70px}.workspace{grid-template-columns:1fr;padding:18px 0}.run-rail{grid-template-columns:1fr 1fr}.technical-card{grid-column:1/-1}.conversation-head{padding-top:22px}.conversation-head h1{font-size:30px}
  .rail-edge-toggle{position:relative;top:auto;right:auto;justify-self:end;grid-row:2;width:auto;height:34px;margin-top:-4px;padding:0 10px;gap:6px;border-radius:9px}.rail-edge-toggle:after{content:attr(data-mobile-label);position:static;transform:none;padding:0;background:transparent;color:currentColor;font-size:9.5px;box-shadow:none;opacity:1}.rail-edge-toggle:hover:after,.rail-edge-toggle:focus-visible:after{transform:none}.workspace.rail-collapsed .rail-edge-toggle{right:auto}.workspace.rail-collapsed .run-rail{display:none}
}
@media(max-width:700px){
  .app-shell{width:min(100% - 14px,1480px)}.topbar{height:66px}.brand strong{font-size:15px}.brand small{font-size:8px}.status-pill{font-size:9.5px;padding:7px 9px}
  .workspace{gap:12px}.conversation-shell{border-radius:20px}.conversation-head{padding:20px 16px 17px}.conversation-head h1{font-size:27px}.ghost-button{font-size:10px;padding:7px 9px}
  .messages{padding:19px 15px 10px}.assistant-message{grid-template-columns:32px minmax(0,1fr);gap:8px}.assistant-avatar{width:32px;height:32px;border-radius:10px}.assistant-copy p{font-size:14px}.user-message .message-content{width:96%}.user-bubble p{font-size:13.5px}
  .verification-actions{align-items:stretch;flex-direction:column}.primary-button{width:100%}.entity-option{grid-template-columns:20px minmax(0,1fr)}.compound-option{grid-template-columns:20px minmax(0,1fr) 42px}.compound-structure-thumb{width:40px;height:34px}.entity-option>.external-link{grid-column:2;justify-self:start}.entity-top{align-items:flex-start;flex-direction:column;gap:3px}.entity-main small{white-space:normal}.selection-change{font-size:9.5px}
  .composer-context{margin-left:15px;margin-right:15px}.composer{padding:10px 15px 14px}.composer-foot{align-items:flex-start;flex-direction:column;gap:4px}.composer-agent-note{text-align:left}
  .run-rail{grid-template-columns:1fr}.technical-card{grid-column:auto}.context-facts{grid-template-columns:1fr 1fr 1fr}.score-cell{width:150px}footer{align-items:flex-start;flex-direction:column;gap:5px;padding-bottom:20px}
}

/* Technical showcase: keep the user-facing task flow simple while making the
   real model path legible and visibly auditable. Each dense technical panel
   owns its own scrollbar so it never stretches the whole workspace. */
.model-flow-card,.route-space-card{padding:0;overflow:hidden;position:relative}
.model-flow-card:before,.route-space-card:before{content:"";position:absolute;inset:0 0 auto 0;height:72px;pointer-events:none;background:linear-gradient(180deg,rgba(16,43,85,.045),transparent)}
.showcase-heading{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 17px 8px}
.showcase-heading>div{display:grid;gap:3px;min-width:0}.showcase-heading strong{font-size:12.5px;letter-spacing:-.01em}.showcase-heading small{font-size:8.8px;color:var(--muted);line-height:1.45}
.trace-status,.route-count{flex:0 0 auto;display:inline-flex;align-items:center;min-height:24px;padding:5px 8px;border:1px solid rgba(16,43,85,.16);border-radius:999px;background:rgba(242,248,245,.92);color:var(--accent-dark);font-size:8.5px;font-weight:720;white-space:nowrap}
.showcase-intro{position:relative;margin:0;padding:0 17px 12px;color:var(--muted);font-size:9.7px;line-height:1.55}
.route-overview{display:grid;gap:5px;margin:0 16px 12px;padding:10px 11px;border:1px solid var(--line);border-radius:11px;background:linear-gradient(145deg,#fbfdfc,#f4f8f6)}
.route-overview span{display:grid;gap:2px}.route-overview small{font-size:7.3px;color:var(--faint);letter-spacing:.05em}.route-overview strong{font-size:10.7px;line-height:1.45}.route-id-inline{display:block;color:#678078;font-family:var(--mono);font-size:7.9px;line-height:1.45;overflow-wrap:anywhere}
.route-empty{padding:8px 16px 16px;text-align:left}.route-empty p{margin:9px 2px 0;color:var(--faint);font-size:9.2px;line-height:1.52}
.route-placeholder-line{display:grid;grid-template-columns:23px minmax(0,1fr) 54px;gap:8px;align-items:center;padding:5px 0}.route-placeholder-line i{width:22px;height:22px;border:1px solid var(--line);border-radius:7px;background:#fff}.route-placeholder-line span,.route-placeholder-line em{display:block;height:6px;border-radius:999px;background:rgba(31,78,64,.075)}.route-placeholder-line em{height:5px}
.route-scroll,.route-catalog-scroll{scrollbar-width:thin;scrollbar-color:rgba(48,92,78,.34) rgba(26,64,53,.045)}
.route-scroll::-webkit-scrollbar,.route-catalog-scroll::-webkit-scrollbar{width:8px}.route-scroll::-webkit-scrollbar-track,.route-catalog-scroll::-webkit-scrollbar-track{background:rgba(26,64,53,.045);border-radius:999px}.route-scroll::-webkit-scrollbar-thumb,.route-catalog-scroll::-webkit-scrollbar-thumb{background:rgba(48,92,78,.30);border:2px solid transparent;border-radius:999px;background-clip:padding-box}.route-scroll::-webkit-scrollbar-thumb:hover,.route-catalog-scroll::-webkit-scrollbar-thumb:hover{background:rgba(16,43,85,.46);border:2px solid transparent;background-clip:padding-box}
.route-scroll{max-height:292px;overflow-y:scroll;overscroll-behavior:contain;margin:0 8px 12px 14px;padding:2px 8px 2px 2px;border-top:1px solid rgba(8,26,58,.07)}
.route-timeline{display:grid;gap:0;margin:0;padding-top:10px}
.route-step{position:relative;display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;padding:0 0 13px}
.route-step:not(:last-child):before{content:"";position:absolute;left:14px;top:27px;bottom:0;width:1px;background:linear-gradient(180deg,rgba(16,43,85,.28),rgba(16,43,85,.08))}
.route-marker{z-index:1;display:flex;width:29px;height:29px;align-items:center;justify-content:center;border:1px solid var(--line-strong);border-radius:9px;background:#fff;color:#6b8078;font-family:var(--mono);font-size:7.7px;font-weight:760;box-shadow:0 3px 10px rgba(8,26,58,.035)}
.route-step-copy{display:grid;gap:3px;min-width:0;padding-top:1px}.route-step-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.route-step-top strong{min-width:0;font-size:10.7px;line-height:1.35}.route-kind{flex:0 0 auto;padding:2px 5px;border-radius:5px;background:#f0f5f2;color:#6b8179;font-family:var(--mono);font-size:6.8px;font-style:normal;letter-spacing:.04em}
.route-metric{font-size:8.5px;color:var(--accent-dark);line-height:1.4}.route-module-id{font-family:var(--mono);font-size:7.5px;color:#899b95;overflow-wrap:anywhere}.route-step p{margin:1px 0 0;color:var(--faint);font-size:8.2px;line-height:1.43}
.route-step.kind-model .route-marker,.route-step.kind-seed .route-marker,.route-step.kind-fusion .route-marker{border-color:rgba(16,43,85,.28);background:var(--accent-soft);color:var(--accent-dark)}.route-step.kind-model .route-kind,.route-step.kind-seed .route-kind,.route-step.kind-fusion .route-kind{background:var(--accent-soft);color:var(--accent-dark)}
.route-step.kind-router .route-marker,.route-step.kind-decision .route-marker{background:#f7faf8}.route-step.kind-output .route-marker{border-color:rgba(16,43,85,.34);background:var(--accent);color:#fff}.route-step.kind-novelty .route-marker,.route-step.kind-filter .route-marker{background:#fbf6ea;border-color:rgba(145,108,54,.2);color:#876632}.route-step.kind-novelty .route-kind,.route-step.kind-filter .route-kind{background:#fbf1dc;color:#876632}
.route-space-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:0 16px 12px}.route-space-stats span{display:grid;gap:2px;padding:8px 7px;border:1px solid var(--line);border-radius:9px;background:var(--paper-soft);text-align:center}.route-space-stats strong{font-size:14px;line-height:1;color:var(--ink)}.route-space-stats small{font-size:7.2px;color:var(--faint)}
.route-catalog-scroll{max-height:270px;overflow-y:scroll;overscroll-behavior:contain;margin:0 8px 12px 14px;padding:2px 8px 2px 2px;border-top:1px solid rgba(8,26,58,.07)}
.route-catalog{display:grid;gap:13px;padding:10px 0 2px}.catalog-group{display:grid;gap:6px}.catalog-group-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.catalog-group-head strong{font-size:9.5px}.catalog-group-head span{font-family:var(--mono);font-size:6.9px;color:var(--faint);letter-spacing:.04em}.catalog-item{display:grid;gap:4px;padding:8px 9px;border:1px solid var(--line);border-radius:9px;background:linear-gradient(145deg,#fbfdfc,#f7faf8);transition:border-color .14s ease,background .14s ease,box-shadow .14s ease}.catalog-item-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.catalog-item-head span{font-size:9px;font-weight:680;line-height:1.35}.catalog-item-head em{flex:0 0 auto;color:#7f938c;font-family:var(--mono);font-size:6.6px;font-style:normal;white-space:nowrap}.catalog-route-key{font-family:var(--mono);font-size:7px;color:#668078;overflow-wrap:anywhere}.catalog-module-path{font-family:var(--mono);font-size:6.8px;line-height:1.5;color:#91a19b;overflow-wrap:anywhere}.catalog-item.active-route{border-color:rgba(16,43,85,.42);background:var(--accent-pale);box-shadow:0 0 0 2px rgba(16,43,85,.05)}.catalog-item.active-route:before{content:"本次使用";justify-self:start;padding:2px 5px;border-radius:5px;background:var(--accent);color:#fff;font-size:6.6px;font-weight:720;letter-spacing:.04em}
.technical-card{overflow:hidden}.technical-card>summary{padding:13px 17px}.technical-card>summary span{font-size:10.5px}.technical-card>summary small{font-size:8.3px}.technical-body{padding:12px 15px 14px}.technical-facts{gap:6px}.technical-facts span{padding:7px 8px}.technical-facts small{font-size:7.2px}.technical-facts strong{font-size:8.8px}

@media(min-width:981px) and (max-height:860px){
  .route-scroll{max-height:220px}.route-catalog-scroll{max-height:210px}
  .showcase-intro{display:none}.route-overview{margin-top:0}.route-space-stats{margin-top:2px}
}
@media(max-width:980px){
  .model-flow-card,.route-space-card{min-height:0}.route-scroll{max-height:300px}.route-catalog-scroll{max-height:300px}
}

/* Discovery-first product message */
.route-title-button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;margin:0;padding:0;border:0;background:transparent;text-align:left}.route-title-button strong{font-size:10.7px;line-height:1.4;color:var(--ink)}.route-title-button em{flex:0 0 auto;color:var(--accent);font-size:7.8px;font-style:normal;font-weight:700;white-space:nowrap}.route-title-button:not(:disabled):hover strong{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}.route-title-button:disabled{cursor:default}.route-title-button:disabled em{display:none}

/* Route catalog items are buttons: route names are the entry point to the full flow diagram. */
.catalog-item{padding:0;overflow:hidden}.catalog-route-button{display:grid;gap:4px;width:100%;padding:8px 9px;border:0;background:transparent;text-align:left}.catalog-route-button:hover{background:rgba(242,248,245,.76)}.catalog-route-button:focus-visible{outline:2px solid rgba(16,43,85,.34);outline-offset:-2px}.catalog-item-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.catalog-item-head strong{font-size:9px;font-weight:690;line-height:1.35}.catalog-item-head em{flex:0 0 auto;color:#7f938c;font-family:var(--mono);font-size:6.6px;font-style:normal;white-space:nowrap}.catalog-open-hint{justify-self:start;margin-top:1px;color:var(--accent);font-size:7.4px;font-weight:700}.catalog-item.active-route .catalog-route-button{background:rgba(231,242,237,.56)}
.result-route-open{display:flex;align-items:center;justify-content:space-between;gap:10px;width:calc(100% - 28px);margin:10px 14px 0;padding:9px 10px;border:1px solid rgba(16,43,85,.16);border-radius:9px;background:var(--accent-pale);text-align:left}.result-route-open strong{font-size:10px;line-height:1.35}.result-route-open span{color:var(--accent);font-size:8.5px;font-weight:700;white-space:nowrap}.result-route-open:hover{border-color:rgba(16,43,85,.34);background:#edf7f2}

/* Accessible native dialog for full route diagrams. */
.route-dialog{width:min(980px,calc(100vw - 48px));max-width:none;max-height:min(86vh,900px);padding:0;border:0;border-radius:22px;background:transparent;color:var(--ink);box-shadow:0 34px 110px rgba(20,54,43,.25);overflow:hidden}.route-dialog::backdrop{background:rgba(12,28,23,.42);backdrop-filter:blur(5px)}.route-dialog[open]{animation:routeDialogIn .16s ease-out}@keyframes routeDialogIn{from{opacity:0;transform:translateY(8px) scale(.988)}to{opacity:1;transform:none}}
.route-dialog-shell{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;max-height:min(86vh,900px);background:#fbfdfc;border:1px solid rgba(8,26,58,.13);border-radius:22px;overflow:hidden}
.route-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px 17px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fff,#f8fbf9)}.route-dialog-head>div{display:grid;gap:4px;min-width:0}.route-dialog-kicker{color:var(--accent);font-family:var(--mono);font-size:8px;font-weight:780;letter-spacing:.13em}.route-dialog-head h2{margin:0;font-size:23px;line-height:1.2;letter-spacing:-.025em}.route-dialog-head code{color:#71867f;font-family:var(--mono);font-size:8.5px;overflow-wrap:anywhere}.route-dialog-close{display:flex;flex:0 0 auto;width:34px;height:34px;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:10px;background:#fff;color:#758780;font-size:20px;line-height:1}.route-dialog-close:hover{border-color:var(--line-strong);color:var(--ink)}
.route-dialog-copy{display:grid;gap:10px;padding:14px 24px 13px;border-bottom:1px solid rgba(8,26,58,.08);background:#fff}.route-dialog-copy>p{margin:0;max-width:860px;color:#566e65;font-size:11.5px;line-height:1.65}.route-dialog-meta{display:flex;flex-wrap:wrap;gap:6px}.route-dialog-meta span{padding:4px 7px;border:1px solid var(--line);border-radius:999px;background:var(--paper-soft);color:#60766e;font-size:8px}
.route-diagram-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px 24px 24px;scrollbar-width:thin;scrollbar-color:rgba(48,92,78,.34) transparent}.route-diagram-scroll::-webkit-scrollbar{width:9px}.route-diagram-scroll::-webkit-scrollbar-track{background:transparent}.route-diagram-scroll::-webkit-scrollbar-thumb{background:rgba(48,92,78,.25);border:2px solid transparent;border-radius:999px;background-clip:padding-box}
.route-diagram{display:grid;max-width:850px;margin:0 auto}.route-diagram-step{display:grid;grid-template-columns:52px minmax(0,1fr);gap:13px;min-width:0}.route-diagram-rail{position:relative;display:flex;justify-content:center}.route-diagram-number{z-index:1;display:flex;width:36px;height:36px;align-items:center;justify-content:center;border:1px solid rgba(8,26,58,.18);border-radius:11px;background:#fff;color:#617a71;font-family:var(--mono);font-size:9px;font-weight:760;box-shadow:0 5px 14px rgba(8,26,58,.05)}.route-diagram-connector{position:absolute;top:36px;bottom:0;width:1px;background:linear-gradient(180deg,rgba(16,43,85,.32),rgba(16,43,85,.08))}.route-diagram-step:not(:last-child) .route-diagram-card{margin-bottom:13px}
.route-diagram-card{display:grid;gap:10px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(8,26,58,.035)}.route-diagram-step-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.route-diagram-step-head>div{display:grid;gap:3px;min-width:0}.route-diagram-step-head strong{font-size:13px;line-height:1.35}.route-diagram-step-head small{font-size:9px;color:var(--muted);line-height:1.45}.route-diagram-step-head>em{flex:0 0 auto;padding:4px 6px;border-radius:6px;background:#f0f5f2;color:#617970;font-family:var(--mono);font-size:7px;font-style:normal;font-weight:760;letter-spacing:.04em}.route-diagram-card>p{margin:0;color:#536c63;font-size:10.5px;line-height:1.62}.route-diagram-metric{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:center;padding:8px 9px;border-radius:9px;background:var(--paper-soft)}.route-diagram-metric small{font-size:7.5px;color:var(--faint)}.route-diagram-metric strong{font-family:var(--mono);font-size:9.5px;color:var(--accent-dark);overflow-wrap:anywhere}.route-diagram-step-foot{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-top:8px;border-top:1px dashed rgba(8,26,58,.12)}.route-diagram-step-foot code{color:#6d837b;font-family:var(--mono);font-size:8px;overflow-wrap:anywhere}.route-diagram-step-foot span{max-width:60%;color:#8a9a95;font-size:8px;line-height:1.45;text-align:right}
.route-diagram-step.kind-model .route-diagram-number,.route-diagram-step.kind-seed .route-diagram-number,.route-diagram-step.kind-fusion .route-diagram-number{border-color:rgba(16,43,85,.3);background:var(--accent-soft);color:var(--accent-dark)}.route-diagram-step.kind-model .route-diagram-card,.route-diagram-step.kind-seed .route-diagram-card,.route-diagram-step.kind-fusion .route-diagram-card{border-color:rgba(16,43,85,.19)}.route-diagram-step.kind-model .route-diagram-step-head>em,.route-diagram-step.kind-seed .route-diagram-step-head>em,.route-diagram-step.kind-fusion .route-diagram-step-head>em{background:var(--accent-soft);color:var(--accent-dark)}.route-diagram-step.kind-novelty .route-diagram-number,.route-diagram-step.kind-filter .route-diagram-number{border-color:rgba(151,111,51,.24);background:#fbf4e6;color:#856536}.route-diagram-step.kind-novelty .route-diagram-step-head>em,.route-diagram-step.kind-filter .route-diagram-step-head>em{background:#fbf1dc;color:#866633}.route-diagram-step.kind-output .route-diagram-number{border-color:var(--accent);background:var(--accent);color:#fff}
.route-dialog-foot{padding:11px 24px 13px;border-top:1px solid var(--line);background:#f7faf8;color:#7d9089;font-size:8.5px;line-height:1.45}

@media(max-width:700px){.route-dialog{width:calc(100vw - 18px);max-height:92vh;border-radius:18px}.route-dialog-shell{max-height:92vh;border-radius:18px}.route-dialog-head{padding:18px 17px 14px}.route-dialog-head h2{font-size:19px}.route-dialog-copy{padding:12px 17px}.route-diagram-scroll{padding:16px 14px 18px}.route-diagram-step{grid-template-columns:42px minmax(0,1fr);gap:8px}.route-diagram-number{width:32px;height:32px;border-radius:10px}.route-diagram-connector{top:32px}.route-diagram-card{padding:12px}.route-diagram-step-head{gap:8px}.route-diagram-step-head strong{font-size:12px}.route-diagram-step-foot{flex-direction:column;gap:5px}.route-diagram-step-foot span{max-width:100%;text-align:left}.route-dialog-foot{padding:10px 17px}.result-route-open{align-items:flex-start;flex-direction:column;gap:4px}}

/* Ranking mode guidance: the product defaults to a complete ranking and only
   removes recorded associations when the user explicitly asks for discovery. */
.topbar-actions{display:flex;align-items:center;gap:9px}.feedback-entry{border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.76);padding:8px 12px;color:var(--muted);font-size:10.5px;font-weight:680;backdrop-filter:blur(10px)}.feedback-entry:hover{border-color:rgba(16,43,85,.3);background:#fff;color:var(--accent-dark)}

/* Feedback dialog */
.feedback-dialog{width:min(620px,calc(100vw - 40px));max-width:none;padding:0;border:0;border-radius:20px;background:transparent;color:var(--ink);box-shadow:0 30px 100px rgba(20,54,43,.24);overflow:hidden}.feedback-dialog::backdrop{background:rgba(12,28,23,.38);backdrop-filter:blur(4px)}.feedback-dialog[open]{animation:routeDialogIn .16s ease-out}.feedback-shell{display:grid;background:#fff;border:1px solid rgba(8,26,58,.13);border-radius:20px;overflow:hidden}.feedback-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:21px 22px 17px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fff,#f8fbf9)}.feedback-head>div{display:grid;gap:4px}.feedback-head>div>span{color:var(--accent);font-family:var(--mono);font-size:8px;font-weight:780;letter-spacing:.12em}.feedback-head h2{margin:0;font-size:21px;line-height:1.22;letter-spacing:-.025em}.feedback-head p{margin:2px 0 0;color:var(--muted);font-size:10.5px;line-height:1.55}.feedback-close{display:flex;flex:0 0 auto;width:34px;height:34px;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:10px;background:#fff;color:#758780;font-size:20px}.feedback-close:hover{border-color:var(--line-strong);color:var(--ink)}
.feedback-body{display:grid;gap:15px;padding:18px 22px}.feedback-rating{display:flex;flex-wrap:wrap;gap:7px;margin:0;padding:0;border:0}.feedback-rating legend{width:100%;margin-bottom:2px;font-size:10.5px;font-weight:720}.feedback-rating label{position:relative}.feedback-rating input{position:absolute;opacity:0;pointer-events:none}.feedback-rating span{display:inline-flex;align-items:center;min-height:34px;padding:7px 11px;border:1px solid var(--line);border-radius:999px;background:var(--paper-soft);color:var(--muted);font-size:10px;font-weight:650;cursor:pointer}.feedback-rating input:checked+span{border-color:rgba(16,43,85,.38);background:var(--accent-soft);color:var(--accent-dark);box-shadow:0 0 0 2px rgba(16,43,85,.04)}.feedback-field{display:grid;gap:6px}.feedback-field>span{font-size:10.5px;font-weight:700}.feedback-field>span small{margin-left:5px;color:var(--faint);font-size:8.5px;font-weight:500}.feedback-field select,.feedback-field input,.feedback-field textarea{width:100%;border:1px solid var(--line);border-radius:11px;background:#fbfdfc;outline:0;padding:10px 11px;color:var(--ink);font-size:11px;line-height:1.5}.feedback-field textarea{min-height:108px;max-height:220px;resize:vertical}.feedback-field select:focus,.feedback-field input:focus,.feedback-field textarea:focus{border-color:rgba(16,43,85,.42);box-shadow:0 0 0 3px rgba(16,43,85,.06);background:#fff}.feedback-field input::placeholder,.feedback-field textarea::placeholder{color:#9aa8a3;font-size:10.5px}.feedback-status{padding:9px 10px;border-radius:9px;font-size:10px;line-height:1.5}.feedback-status.success{background:var(--accent-pale);color:var(--accent-dark)}.feedback-status.error{background:var(--danger-soft);color:var(--danger)}.feedback-actions{display:flex;justify-content:flex-end;gap:8px;padding:13px 22px 16px;border-top:1px solid var(--line);background:#fafcfb}.feedback-cancel,.feedback-submit{border-radius:10px;padding:9px 13px;font-size:10.5px;font-weight:700}.feedback-cancel{border:1px solid var(--line);background:#fff;color:var(--muted)}.feedback-submit{border:0;background:var(--accent);color:#fff;box-shadow:0 6px 14px rgba(16,43,85,.12)}.feedback-submit:hover:not(:disabled){background:var(--accent-dark)}.feedback-submit:disabled{opacity:.55;cursor:not-allowed}

@media(max-width:700px){.topbar-actions{gap:6px}.feedback-entry{padding:7px 9px;font-size:9.5px}.feedback-dialog{width:calc(100vw - 18px);border-radius:17px}.feedback-shell{border-radius:17px}.feedback-head{padding:18px 16px 14px}.feedback-head h2{font-size:18px}.feedback-body{padding:15px 16px}.feedback-actions{padding:12px 16px 14px}.feedback-rating span{padding:7px 9px}}
.settings-note{margin:10px 2px 0;padding-top:10px;border-top:1px solid var(--line);color:var(--faint);font-size:8.6px;line-height:1.5}

/* Result scope stays natural-language-first. These are prompt-template hints, not state controls. */


/* Multi-step pathway analysis stays conversation-first: no pathway settings panel. */
.pathway-step-section{position:relative}.pathway-step-section+.pathway-step-section{border-top:4px solid var(--paper-soft)}
.pathway-enzyme-label{display:flex;align-items:baseline;gap:8px;margin:12px 0 7px;padding-top:10px;border-top:1px dashed var(--line)}.pathway-enzyme-label strong{font-size:10px}.pathway-enzyme-label small{font-size:9px;color:var(--muted)}
.pathway-auto-enzyme{margin:10px 0 0;padding:9px 11px;border-radius:10px;background:var(--accent-pale);color:#5c736a;font-size:10px;line-height:1.55}
.pathway-result-card{max-width:900px}.pathway-result-steps{display:grid}.pathway-result-step{display:grid;grid-template-columns:32px minmax(0,1fr);gap:11px;padding:14px 18px;border-bottom:1px solid var(--line)}.pathway-step-marker{display:flex;width:28px;height:28px;align-items:center;justify-content:center;border-radius:9px;background:var(--accent-soft);color:var(--accent-dark);font-family:var(--mono);font-size:9px;font-weight:780}.pathway-step-body{display:grid;gap:6px;min-width:0}.pathway-step-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.pathway-step-top>div:first-child{display:grid;gap:2px;min-width:0}.pathway-step-top small{font-family:var(--mono);font-size:8px;color:var(--faint)}.pathway-enzyme-link{font-size:12px;font-weight:760;color:var(--accent-dark);text-decoration:none}.pathway-enzyme-link:hover{text-decoration:underline}.pathway-step-badges{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}.pathway-step-badges span{padding:3px 6px;border-radius:999px;background:var(--paper-soft);color:var(--muted);font-size:8px}.pathway-step-badges span.changed{background:#fbf1dc;color:#80602f}.pathway-step-meta{margin:0;color:var(--muted);font-size:9.5px;line-height:1.5}.pathway-condition-chips{display:flex;flex-wrap:wrap;gap:5px}.pathway-condition-chips span{padding:4px 6px;border:1px solid var(--line);border-radius:7px;background:#fbfdfc;color:#61766e;font-size:8.5px}.pathway-condition-chips span.unknown{border-style:dashed;color:var(--faint);background:#fafbfa}
.pathway-conflict-box,.pathway-recommendations{display:grid;gap:8px;padding:13px 18px;border-top:1px solid var(--line)}.pathway-conflict-box>strong,.pathway-recommendations>strong{font-size:10.5px}.pathway-conflict-box>p{margin:0;color:var(--muted);font-size:9.5px;line-height:1.55}.pathway-conflict-list{display:grid;gap:6px}.pathway-conflict-item{display:grid;grid-template-columns:74px minmax(0,1fr);gap:8px;padding:8px 9px;border-radius:9px;background:var(--paper-soft)}.pathway-conflict-item>span{font-size:8px;font-weight:730;color:#866633}.pathway-conflict-item>p{margin:0;font-size:9.3px;line-height:1.5;color:#6d6251}.pathway-conflict-item.severity-high{background:#fbefed}.pathway-conflict-item.severity-high>span{color:var(--danger)}.pathway-conflict-item.severity-info{background:#f5f8f6}.pathway-conflict-item.severity-info>span{color:#60776f}.pathway-conflict-item.severity-info>p{color:var(--muted)}.pathway-recommendations ul{display:grid;gap:5px;margin:0;padding-left:18px}.pathway-recommendations li{font-size:9.5px;line-height:1.55;color:var(--muted)}
@media(max-width:700px){.pathway-result-step{padding:12px 13px}.pathway-step-top{flex-direction:column;gap:5px}.pathway-step-badges{justify-content:flex-start}.pathway-conflict-item{grid-template-columns:1fr;gap:4px}}

/* Route design: intentionally compact; all ranking preferences stay in natural language. */
.route-design-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.route-design-item {
  border: 1px solid var(--line, #dfe5e8);
  border-radius: 12px;
  padding: 12px 13px;
  background: rgba(255,255,255,.62);
}

.route-design-item-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.route-design-rank {
  min-width: 30px;
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  color: var(--muted, #64717a);
}

.route-design-summary {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.route-design-summary strong {
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.route-design-summary small,
.route-design-score small,
.route-design-step-copy small {
  color: var(--muted, #6d7880);
}

.route-design-score {
  text-align: right;
  display: grid;
}

.route-design-score strong {
  font-size: 17px;
  line-height: 1.1;
}

.route-design-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 9px 0;
}

.route-design-metrics span {
  font-size: 10px;
  line-height: 1.35;
  padding: 3px 6px;
  border-radius: 999px;
  border: 1px solid var(--line, #dde4e7);
  color: var(--muted, #5f6b73);
}

.route-design-steps {
  display: grid;
  gap: 5px;
}

.route-design-step {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  padding-top: 5px;
  border-top: 1px solid rgba(120,130,136,.12);
}

.route-design-step-index {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9px;
  background: rgba(100,115,122,.09);
}

.route-design-step-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.route-design-step-copy strong {
  font-size: 11px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.route-design-template-action {
  margin-top: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 10.5px;
  color: var(--accent, #315f65);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(49,95,101,.25);
  text-underline-offset: 3px;
}

.route-design-template-action:hover {
  text-decoration-color: currentColor;
}

.route-design-exploration-note {
  margin: 10px 0 0;
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--muted, #66737a);
}

@media (max-width: 680px) {
  .route-design-item-head { grid-template-columns: auto minmax(0, 1fr); }
  .route-design-score { grid-column: 2; justify-self: start; text-align: left; }
  .route-design-step { grid-template-columns: 20px minmax(0, 1fr); }
  .route-design-step > a { grid-column: 2; justify-self: start; }
}

.route-exploration-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line, #dfe5e8);
}

.route-exploration-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.route-exploration-head > div {
  display: grid;
  gap: 2px;
}

.route-exploration-head small,
.route-exploration-count {
  color: var(--muted, #66737a);
  font-size: 10px;
}

.predicted-route {
  border-style: dashed;
}

.route-design-step.predicted {
  background: rgba(140,105,45,.035);
}

.prediction-badge {
  font-size: 9px;
  padding: 2px 5px;
  border: 1px solid rgba(140,105,45,.28);
  border-radius: 999px;
  color: #765c2c;
}

.predicted-route-warning {
  margin: 8px 0 0;
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted, #68747b);
}


/* Desktop readability pass: keep dense scientific metadata legible during long sessions. */
@media (min-width: 701px) {
  .status-pill, .ghost-button, .feedback-entry { font-size: 12px; }
  .message-meta strong { font-size: 13.5px; }
  .message-meta span, .activity-copy small, .tool-card-head small { font-size: 11.5px; }
  .verification-section-head small, .verification-actions p { font-size: 12px; }
  .entity-top strong, .tool-card-head strong, .activity-copy strong { font-size: 13.5px; }
  .entity-idline, .entity-main small, .external-link, .selection-change { font-size: 11.5px; }
  .reaction-equation { font-size: 13px; }
  .result-head small { font-size: 12px; }
  .result-chips span { font-size: 11px; }
  th { font-size: 10px; }
  .rank-cell, .score-number { font-size: 12px; }
  .entity-primary-link, .entity-primary-text { font-size: 13.5px; }
  .result-entity small { font-size: 12px; }
  .priority-badge { font-size: 9.5px; }
  .score-note, .result-route-details > summary { font-size: 11px; }
  .context-card > p { font-size: 12px; }
  .context-facts small, .technical-facts small { font-size: 9px; }
  .context-facts strong, .technical-facts strong { font-size: 11px; }
  .technical-card > summary span { font-size: 12px; }
  .technical-card > summary small { font-size: 10px; }
  .route-step strong { font-size: 12px; }
  .route-step small, .route-step p { font-size: 10px; }
  .route-id, .route-module-id { font-size: 9px; }
  .catalog-group-head strong { font-size: 11px; }
  .catalog-item-head strong { font-size: 10.5px; }
  .catalog-route-key, .catalog-module-path, .catalog-open-hint { font-size: 8.5px; }
}


/* Evidence-first product hierarchy. */
.language-toggle{
  border:1px solid var(--line-strong,#cfd9d7); background:#fff; color:var(--accent-dark,#244e53);
  border-radius:999px; padding:7px 10px; font:inherit; font-size:11.5px; font-weight:720; cursor:pointer;
}
.language-toggle:hover{border-color:var(--accent,#315f65);background:var(--accent-pale,#eef5f3)}
.evidence-discovery-card{overflow:hidden}
.evidence-discovery-head{border-bottom:1px solid var(--line,#dde4e2)}
.evidence-first-intro p:first-child{font-weight:560}
.evidence-discovery-chips .evidence-chip{background:#eef5f1;color:#315f53;border-color:#cfdfd8}
.evidence-discovery-chips .discovery-chip{background:#f4f2fb;color:#5a4d7b;border-color:#ddd7ef}
.evidence-section{border-top:1px solid var(--line,#dde4e2);border-bottom:1px solid var(--line,#dde4e2);background:#fbfdfc}
.evidence-section>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;cursor:pointer}
.evidence-section>summary::-webkit-details-marker{display:none}
.evidence-summary-copy{display:grid;gap:2px}
.evidence-summary-copy strong{font-size:13px;font-weight:760;color:var(--ink,#263135)}
.evidence-summary-copy small{font-size:10.5px;color:var(--muted,#68767a);line-height:1.45}
.evidence-reference-badge{font-size:9.5px;padding:3px 7px;border-radius:999px;border:1px solid var(--line-strong,#cbd6d4);color:var(--muted,#68767a);background:#fff}
.evidence-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:9px;padding:0 18px 16px}
.evidence-card{display:grid;gap:7px;padding:12px;border:1px solid #d7e2de;border-radius:12px;background:#fff;box-shadow:0 1px 0 rgba(30,60,55,.025)}
.evidence-card-top{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.evidence-primary-link{font-size:13px;font-weight:780;color:var(--accent-dark,#244e53);text-decoration:none}
.evidence-primary-link:hover{text-decoration:underline}
.evidence-source{font-size:9px;font-weight:720;padding:3px 6px;border-radius:999px;border:1px solid var(--line,#dde4e2);color:var(--muted,#667479);background:#f8faf9}
.evidence-source.official{background:#edf5f1;color:#315f53;border-color:#cfe1d8}
.evidence-meta{margin:0;font-size:11px;line-height:1.45;color:var(--muted,#667479)}
.evidence-coverage{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.model-aux-score{font-size:9.5px;line-height:1.2;padding:4px 7px;border-radius:999px;background:#fafafa;color:#737d81;border:1px solid #e3e7e7}
.evidence-more{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:0 18px 14px;font-size:10px;color:var(--muted,#667479)}.evidence-more-link{flex:0 0 auto;font-weight:700;color:var(--accent-dark,#244e53);text-decoration:none}.evidence-more-link:hover{text-decoration:underline}
.evidence-empty{display:grid;gap:4px;padding:14px 18px;background:#fbfdfc;border-top:1px solid var(--line,#dde4e2);border-bottom:1px solid var(--line,#dde4e2)}
.evidence-empty strong{font-size:13px}.evidence-empty p{margin:0;font-size:11px;color:var(--muted,#667479)}
.discovery-section{display:grid;gap:0;background:#fff}
.discovery-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:15px 18px 11px}
.discovery-head>div{display:grid;gap:2px}
.discovery-head strong{font-size:13px;font-weight:760}
.discovery-head small{font-size:11px;color:var(--muted,#667479);line-height:1.45}
.discovery-status{flex:0 0 auto;font-size:9px;font-weight:700;padding:4px 7px;border-radius:999px;background:#f7f3fb;color:#69577f;border:1px solid #e5dded}
.discovery-evidence-overview{display:grid;gap:7px;margin:0 18px 12px;padding:10px 11px;border:1px solid rgba(16,43,85,.14);border-radius:11px;background:linear-gradient(180deg,#f7fbf9,#fbfdfc)}
.discovery-evidence-overview>strong{font-size:10px;font-weight:760;color:var(--accent-dark,#244e53)}
.discovery-evidence-facts,.candidate-evidence-facts{display:flex;flex-wrap:wrap;gap:6px}
.candidate-evidence-fact{display:inline-flex;align-items:center;min-height:24px;padding:4px 7px;border:1px solid #dfe7e3;border-radius:999px;background:#fff;color:#52615d;font-size:9px;line-height:1.25}
.candidate-evidence-fact.positive{background:#f4f9f6;border-color:#d6e6de;color:#376256}
.candidate-evidence-fact.strong{background:#eaf5ef;border-color:#c8e0d4;color:#285c4c;font-weight:720}
.candidate-evidence-fact.secondary{background:#fafbfb;color:#74807c}
.candidate-evidence-fact.caution{background:#fff8ec;border-color:#eeddbb;color:#80602f}
.discovery-table-wrap{border-top:1px solid var(--line,#dde4e2)}
.discovery-empty{margin:0;padding:14px 18px;border-top:1px solid var(--line,#dde4e2);font-size:11px;color:var(--muted,#667479)}
.candidate-evidence-details{margin-top:8px;padding-top:6px;border-top:1px dashed var(--line,#dde4e2)}
.candidate-evidence-details>summary{list-style:none;display:inline-flex;align-items:center;gap:6px;cursor:pointer;color:var(--accent-dark,#244e53);font-size:10.5px;font-weight:740;padding:4px 0;min-height:28px}
.candidate-row-with-evidence{cursor:pointer}
.candidate-row-with-evidence:focus-within,.candidate-row-with-evidence:has(.candidate-evidence-details[open]){background:var(--paper-soft,#f7faf8)}
.candidate-evidence-details>summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:3px}
.candidate-evidence-details>summary::-webkit-details-marker{display:none}
.candidate-evidence-details>summary:after{content:"+";font-size:11px;color:var(--muted,#667479)}
.candidate-evidence-details[open]>summary:after{content:"−"}
.candidate-evidence-body{display:grid;gap:9px;margin-top:7px;padding:10px;border:1px solid var(--line,#dde4e2);border-radius:10px;background:#fbfdfc}
.candidate-evidence-group{display:grid;gap:6px}
.candidate-evidence-group+.candidate-evidence-group{padding-top:8px;border-top:1px solid #e8eeeb}
.candidate-evidence-group-title{font-size:9px;font-weight:760;letter-spacing:.02em;color:#53645f}
.candidate-evidence-group.geometry .candidate-evidence-group-title{color:#6c7472}
.candidate-evidence-metrics{display:grid;gap:6px}
.candidate-evidence-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 9px;margin:0;align-items:baseline}
.candidate-evidence-line>strong{font-size:9.5px;font-weight:720;color:var(--ink,#263135)}
.candidate-evidence-line>small{grid-column:1/-1;margin:0!important;font-size:8.8px!important;line-height:1.45;color:var(--muted,#667479);white-space:normal}
.edge-molecular-context{overflow:hidden}
.edge-molecular-context-body{display:grid;gap:6px;min-width:0}
.edge-molecule-flow{display:flex;align-items:center;gap:8px;min-width:0;overflow-x:auto;padding:1px 0 2px;scrollbar-width:thin}
.edge-molecule-side{display:flex;align-items:flex-start;gap:6px;min-width:0}
.edge-molecule-card{display:grid;grid-template-rows:62px auto;gap:4px;flex:0 0 88px;width:88px;margin:0}
.edge-molecule-card img{width:88px;height:62px;object-fit:contain;border:1px solid #e2e8e5;border-radius:7px;background:#fff}
.edge-molecule-card figcaption{font-size:7.8px;line-height:1.28;color:var(--muted,#667479);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.edge-molecule-arrow{flex:0 0 auto;align-self:center;color:var(--faint,#87918e);font-size:13px}
.edge-molecule-equation{margin:0;font-size:8.4px;line-height:1.4;color:var(--muted,#667479)}
.score-delta{display:block;margin-top:4px!important;font-size:8.5px!important;color:var(--muted,#667479)!important;white-space:normal!important}
@media(max-width:700px){
  .evidence-grid{grid-template-columns:1fr;padding-left:14px;padding-right:14px}
  .evidence-section>summary,.discovery-head{padding-left:14px;padding-right:14px}
  .discovery-evidence-overview{margin-left:14px;margin-right:14px}
  .discovery-head{display:grid}.discovery-status{justify-self:start}
}

@media(max-width:700px){.evidence-more{align-items:flex-start;flex-direction:column;padding-left:14px;padding-right:14px}}


/* Progressive capability guide: four primary tasks stay simple; detailed scientific scenarios are opt-in. */
.capability-guide{max-width:900px;margin-top:12px;border:1px solid var(--line);border-radius:15px;background:#fbfdfc;overflow:hidden}
.capability-guide>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;list-style:none;cursor:pointer;background:linear-gradient(145deg,#fbfdfc,#f6faf8)}
.capability-guide>summary::-webkit-details-marker{display:none}.capability-guide>summary:after{content:"+";display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:23px;height:23px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--accent-dark);font-size:14px;font-weight:600}
.capability-guide[open]>summary:after{content:"−"}.capability-guide-copy{display:grid;gap:2px;min-width:0}.capability-guide-copy strong{font-size:12px}.capability-guide-copy small{font-size:10px;color:var(--muted);line-height:1.45}
.capability-guide-count{flex:0 0 auto;margin-left:auto;padding:4px 7px;border:1px solid rgba(16,43,85,.15);border-radius:999px;background:var(--accent-pale);color:var(--accent-dark);font-size:8.5px;font-weight:720;white-space:nowrap}
.capability-guide-body{display:grid;gap:0;border-top:1px solid var(--line);background:#fff}
.capability-group{display:grid;gap:9px;padding:14px}.capability-group+.capability-group{border-top:1px solid var(--line)}
.capability-group>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.capability-group>header>div{display:grid;gap:2px}.capability-group>header strong{font-size:12px}.capability-group>header small{font-size:9.5px;color:var(--muted);line-height:1.45}.capability-group>header>span{flex:0 0 auto;display:flex;align-items:center;justify-content:center;min-width:22px;height:22px;border-radius:7px;background:var(--paper-soft);color:var(--faint);font-family:var(--mono);font-size:8.5px;font-weight:720}
.capability-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.capability-action{display:grid;gap:3px;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:#fbfcfb;text-align:left;transition:border-color .14s ease,background .14s ease,transform .14s ease}.capability-action:hover{transform:translateY(-1px);border-color:rgba(16,43,85,.28);background:#fff}.capability-action span{font-size:11px;font-weight:700;line-height:1.35;color:var(--ink)}.capability-action small{font-size:9.2px;line-height:1.45;color:var(--muted)}
@media(min-width:701px){.capability-guide-copy strong{font-size:13px}.capability-guide-copy small{font-size:11px}.capability-action span{font-size:11.7px}.capability-action small{font-size:9.9px}}
@media(max-width:700px){.capability-guide>summary{align-items:flex-start;padding:11px 12px}.capability-guide-count{display:none}.capability-actions{grid-template-columns:1fr}.capability-group{padding:12px}.capability-group>header small{font-size:9.2px}}

.capability-loading{margin:0;padding:14px;color:var(--muted);font-size:10px}

.entity-comparison-card{overflow:hidden}.entity-comparison-scroll{overflow-x:auto;padding:2px 0 4px}.entity-comparison-table{width:100%;min-width:620px;border-collapse:collapse;font-size:13px}.entity-comparison-table th,.entity-comparison-table td{padding:11px 13px;border-bottom:1px solid var(--line);vertical-align:top;text-align:left}.entity-comparison-table thead th{background:rgba(242,246,244,.78);font-weight:700}.entity-comparison-table thead th:first-child{width:145px}.entity-comparison-table th small{display:block;margin-top:4px;color:var(--muted);font-weight:500;line-height:1.4}.entity-comparison-table tbody th{color:var(--muted);font-size:12px;letter-spacing:.02em}.entity-comparison-table td{line-height:1.55;overflow-wrap:anywhere}


/* Conversation-first cleanup and paged result rendering. */
.conversation-head{padding-bottom:12px}.conversation-head h1{font-size:24px}
.welcome-message{margin-bottom:18px}.welcome-message .assistant-copy p{font-size:14.5px}
.capability-guide{margin-top:10px}.capability-guide-copy small{max-width:650px}.capability-group{padding:15px 16px}.capability-group>header small{font-size:10.5px;line-height:1.5}.capability-actions{gap:8px}.capability-action{padding:10px 11px}.capability-action span{font-size:12px}.capability-action small{font-size:10.2px;line-height:1.5}
.composer-foot{justify-content:flex-start}.composer-agent-note{display:none}

.markdown-body{font-size:15px;line-height:1.72;color:var(--text)}
.markdown-body p,.markdown-body li{font-size:inherit;line-height:inherit}
.markdown-body p{margin:0 0 8px}.markdown-body ul,.markdown-body ol{margin:8px 0 10px;padding-left:26px}
.markdown-body li{margin:2px 0}.markdown-body li::marker{font-size:.92em;font-variant-numeric:tabular-nums;color:#667b74}
.markdown-body h1{font-size:19px}.markdown-body h2{font-size:17px}.markdown-body h3{font-size:15.5px}.markdown-body h4,.markdown-body h5,.markdown-body h6{font-size:15px}
.markdown-body table{font-size:13.5px}

.result-pagination{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:10px 18px 14px;border-top:1px solid rgba(8,26,58,.06)}
.pagination-button{min-width:62px;padding:6px 9px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--accent-dark);font-size:10.5px;font-weight:650}
.pagination-button:hover:not(:disabled){border-color:rgba(16,43,85,.32);background:var(--accent-pale)}.pagination-button:disabled{opacity:.38;cursor:default}
.pagination-label{min-width:72px;text-align:center;color:var(--muted);font-size:10.5px;font-variant-numeric:tabular-nums}
.discovery-table-wrap>.result-pagination{border-top:0}.route-design-list+.result-pagination,.route-exploration-section>.result-pagination{padding-left:16px;padding-right:16px}

.technical-agent-trace{margin-bottom:10px}.technical-tool-trace{border:1px solid var(--line);border-radius:10px;background:var(--paper-soft);overflow:hidden}
.technical-tool-trace>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;cursor:pointer;list-style:none}.technical-tool-trace>summary::-webkit-details-marker{display:none}.technical-tool-trace>summary span{font-size:10px;font-weight:700}.technical-tool-trace>summary small{font-size:8.5px;color:var(--muted)}
.technical-tool-trace .agent-trace-list{background:#fff}

@media(max-width:700px){.result-pagination{justify-content:center;padding-left:14px;padding-right:14px}.conversation-head h1{font-size:21px}.capability-group{padding:13px}.capability-action small{font-size:10px}}

/* Integrated scientific research workspace: live evidence and model reasoning share
   one visual hierarchy instead of appearing as separate known/potential modes. */
.research-workspace-intro{max-width:940px}.research-workspace-card{display:grid;gap:0;overflow:hidden;border-color:rgba(16,43,85,.18);background:linear-gradient(180deg,#fff,#fbfdfc 34%,#fff)}
.research-workspace-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 21px 17px;border-bottom:1px solid var(--line);background:linear-gradient(145deg,rgba(242,248,245,.88),rgba(255,255,255,.92))}.research-identity{display:grid;gap:4px;min-width:0}.research-kicker{font-size:8px;font-weight:800;letter-spacing:.12em;color:var(--accent-dark)}.research-identity>a,.research-identity>strong:not(.research-entity-name){width:max-content;max-width:100%;font-family:var(--mono);font-size:12px;font-weight:760}.research-entity-name{font-size:17px;line-height:1.3;letter-spacing:-.015em}.research-identity small{font-size:10px;color:var(--muted)}.research-head-stats{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.research-stat{display:inline-flex;align-items:center;min-height:27px;padding:6px 9px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);font-size:9px;font-weight:720;white-space:nowrap}.research-stat.model{border-color:rgba(16,43,85,.2);background:var(--accent-soft);color:var(--accent-dark)}.research-stat.muted{opacity:.62}
.research-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:13px 20px 2px}.research-overview-tile{display:grid;align-content:start;gap:4px;min-height:105px;padding:13px 14px;border:1px solid var(--line);border-radius:13px;background:#fff}.research-overview-tile small{font-size:7.5px;font-weight:800;letter-spacing:.08em;color:var(--faint)}.research-overview-tile strong{font-size:24px;line-height:1;color:var(--ink)}.research-overview-tile p{margin:3px 0 0;color:var(--muted);font-size:9.5px;line-height:1.5}.research-overview-tile.model{border-color:rgba(16,43,85,.2);background:linear-gradient(145deg,#f5faf7,#fff)}.research-overview-tile.model strong{color:var(--accent-dark)}.research-overview-tile.frontier{background:linear-gradient(145deg,#fffaf1,#fff)}
.research-section{display:grid;gap:11px;padding:18px 20px;border-top:1px solid var(--line)}.research-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.research-section-head>div{display:grid;gap:2px}.research-section-head strong{font-size:13px}.research-section-head small{font-size:8.8px;color:var(--muted);line-height:1.4}.research-section-count,.model-lens-badge{display:inline-flex;align-items:center;min-height:24px;padding:5px 8px;border:1px solid var(--line);border-radius:999px;background:var(--paper-soft);color:var(--muted);font-size:8px;font-weight:750;white-space:nowrap}.research-section-head.model .model-lens-badge{border-color:rgba(16,43,85,.2);background:var(--accent-soft);color:var(--accent-dark)}
.research-source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.research-source-card{display:grid;align-content:start;gap:10px;min-width:0;padding:13px;border:1px solid var(--line);border-radius:13px;background:#fff}.research-source-card.unavailable{background:var(--paper-soft);opacity:.72}.research-source-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.research-source-head>a,.research-source-head>strong{font-size:11px;font-weight:760}.source-live-state{font-size:7.5px;font-weight:760;color:var(--accent-dark)}.research-source-card.unavailable .source-live-state{color:var(--faint)}.research-fact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.research-fact{display:grid;gap:2px;min-width:0;padding:7px 8px;border-radius:8px;background:var(--paper-soft)}.research-fact small{font-size:7.2px;color:var(--faint)}.research-fact strong{font-size:9px;line-height:1.4;overflow-wrap:anywhere}.research-source-group{display:grid;gap:4px;padding-top:7px;border-top:1px solid var(--line)}.research-source-group>strong{font-size:8.5px;color:var(--muted)}.research-source-group p{margin:0;font-size:9px;line-height:1.45}.research-source-group.compact p{color:var(--muted)}.research-xrefs{display:flex;gap:4px;flex-wrap:wrap}.research-xrefs span{padding:4px 6px;border-radius:999px;background:var(--paper-soft);font-size:7.5px;color:var(--muted);overflow-wrap:anywhere}.research-source-items{display:grid;gap:5px}.research-source-item{display:grid;gap:2px;padding:7px 0;border-top:1px solid var(--line)}.research-source-item:first-child{border-top:0}.research-source-item>a,.research-source-item>strong{font-size:9.5px;font-weight:690;line-height:1.38}.research-source-item small{font-size:7.8px;color:var(--muted);line-height:1.4}.research-source-items.literature .research-source-item>a{font-size:10px}.research-source-empty{margin:0;color:var(--muted);font-size:9px;line-height:1.5}
.research-known-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.research-known-item{display:grid;gap:3px;padding:10px 11px;border:1px solid var(--line);border-radius:10px;background:#fff}.research-known-item>a,.research-known-item>strong{font-family:var(--mono);font-size:9px;font-weight:760}.research-known-item small{font-size:8.5px;color:var(--muted);line-height:1.4}.research-provenance{font-size:7.2px;color:var(--faint);overflow-wrap:anywhere}.research-more-note,.research-empty{margin:0;color:var(--muted);font-size:9px;line-height:1.52}
.research-model-section{background:linear-gradient(145deg,rgba(242,248,245,.84),rgba(255,255,255,.98));border-top-color:rgba(16,43,85,.18)}.research-model-copy{margin:0;padding:10px 11px;border:1px solid rgba(16,43,85,.13);border-radius:10px;background:rgba(255,255,255,.75);font-size:9.5px;line-height:1.6;color:var(--muted)}.model-recovery-list{display:flex;gap:5px;flex-wrap:wrap}.model-recovery-list span{padding:5px 7px;border:1px solid rgba(16,43,85,.15);border-radius:999px;background:#fff;color:var(--accent-dark);font-family:var(--mono);font-size:7.6px}.research-frontier-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding-top:4px}.research-frontier-head strong{font-size:11px}.research-frontier-head small{font-size:8px;color:var(--muted)}.research-frontier-grid{display:grid;gap:6px}.research-frontier-item{display:grid;grid-template-columns:27px minmax(0,1fr) auto;gap:9px;align-items:center;padding:9px 10px;border:1px solid rgba(16,43,85,.14);border-radius:10px;background:#fff}.frontier-rank{display:flex;width:27px;height:27px;align-items:center;justify-content:center;border-radius:8px;background:var(--accent-soft);color:var(--accent-dark);font-size:8px;font-weight:800}.research-frontier-item>div{display:grid;gap:2px;min-width:0}.research-frontier-item a,.research-frontier-item strong{font-family:var(--mono);font-size:9px;font-weight:760}.research-frontier-item small{font-size:8px;color:var(--muted)}.frontier-score{font-family:var(--mono);font-size:9px;font-weight:760;color:var(--accent-dark)}
.research-next-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.research-next-item{display:grid;gap:4px;padding:11px;border:1px solid var(--line);border-radius:11px;background:#fff}.research-next-item.priority-high{border-color:rgba(16,43,85,.2)}.research-next-item strong{font-size:9.8px}.research-next-item p{margin:0;color:var(--muted);font-size:8.7px;line-height:1.5}.research-route-details{margin:0 20px 18px}.research-route-mini{display:grid;gap:5px;padding:10px}.research-route-mini-step{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:7px;align-items:center}.research-route-mini-step>span{display:flex;width:22px;height:22px;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:7px;font-size:7px}.research-route-mini-step.kind-model>span{background:var(--accent-soft);color:var(--accent-dark)}.research-route-mini-step strong{font-size:8.5px}.research-route-mini-step small{font-size:7.3px;color:var(--muted);text-align:right}
@media(max-width:760px){.research-workspace-head{flex-direction:column}.research-head-stats{justify-content:flex-start}.research-overview-grid{grid-template-columns:1fr}.research-overview-tile{min-height:0}.research-source-grid,.research-known-grid,.research-next-grid{grid-template-columns:1fr}.research-fact-grid{grid-template-columns:1fr}.research-frontier-item{grid-template-columns:27px minmax(0,1fr)}.frontier-score{grid-column:2}.research-route-mini-step{grid-template-columns:22px minmax(0,1fr)}.research-route-mini-step small{grid-column:2;text-align:left}}

.model-lens-badge.domain-expanded_universe_exploratory,.model-lens-badge.domain-open_world_exploratory{border-color:rgba(170,118,32,.2);background:#fff8ea;color:#8a631d}.model-domain-note{margin:0;padding:8px 10px;border-radius:9px;background:rgba(16,43,85,.055);color:var(--muted);font-size:8.8px;line-height:1.55}.model-domain-note.domain-expanded_universe_exploratory,.model-domain-note.domain-open_world_exploratory{background:#fff8ea;color:#785b28}

.research-participant-tags{display:flex;flex-wrap:wrap;gap:4px}.research-participant-tags a,.research-participant-tags span{padding:4px 6px;border:1px solid var(--line);border-radius:999px;background:var(--paper-soft);font-size:7.6px;line-height:1.3}.research-reaction-smiles{display:block;max-height:72px;overflow:auto;padding:7px 8px;border-radius:8px;background:var(--paper-soft);font-size:7.4px;line-height:1.45;overflow-wrap:anywhere;white-space:normal}

.literature-abstract{margin:7px 0 0;color:var(--muted);font-size:9.4px;line-height:1.6;white-space:normal}

.research-source-curation{margin:0;padding:6px 8px;border-radius:8px;background:rgba(16,43,85,.055);color:var(--accent-dark);font-size:8px;line-height:1.4}.research-literature-context{color:var(--accent-dark)!important}
.research-annotations{gap:7px}.research-annotation-item{display:grid;gap:2px;padding:6px 0;border-top:1px solid var(--line)}.research-annotation-item:first-of-type{border-top:0}.research-annotation-item small{font-size:7.3px;font-weight:760;color:var(--accent-dark);letter-spacing:.03em}.research-annotation-item p{margin:0;color:var(--muted);font-size:8.8px;line-height:1.52}.research-xrefs a{display:inline-flex;align-items:center;padding:4px 6px;border:1px solid rgba(16,43,85,.13);border-radius:999px;background:#fff;color:var(--accent-dark);font-size:7.5px;text-decoration:none}.research-xrefs a:hover{text-decoration:underline}
.model-domain-note{margin:0;padding:8px 10px;border-radius:9px;background:rgba(255,255,255,.72);color:var(--muted);font-size:8.8px;line-height:1.52}.model-domain-note.domain-project_aligned{display:none}.model-lens-badge.domain-expanded_universe_exploratory,.model-lens-badge.domain-open_world_exploratory{border-color:rgba(170,116,24,.2);background:#fff9ee;color:#8a5e13}
.research-model-domain-line{display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap}.model-domain-chip{display:inline-flex;align-items:center;min-height:20px;padding:4px 6px;border-radius:999px;border:1px solid rgba(16,43,85,.15);background:#fff;color:var(--accent-dark);font-size:7px;font-weight:760;line-height:1.15}.model-domain-chip.status-expanded_universe_exploratory,.model-domain-chip.status-open_world_exploratory{border-color:rgba(170,118,22,.18);background:#fffaf1;color:#8a641d}.research-model-domain-copy{margin-top:auto!important;padding-top:4px;border-top:1px solid rgba(16,43,85,.09);font-size:8.3px!important;line-height:1.45!important}.research-model-head-badges{display:flex;gap:5px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.model-retrospective-audit{display:grid;gap:3px;padding:8px 10px;border:1px solid rgba(16,43,85,.14);border-radius:10px;background:linear-gradient(135deg,rgba(16,43,85,.06),rgba(255,255,255,.9))}.model-retrospective-audit strong{font-size:8.8px}.model-retrospective-audit p{margin:0;color:var(--ink);font-size:9.2px;font-weight:700;line-height:1.4}.model-retrospective-audit small{color:var(--muted);font-size:7.8px;line-height:1.45}

/* Composable research workspace: only executed modules are rendered. */
.research-workspace-composable{gap:0;background:#fff;border-color:rgba(16,43,85,.16)}
.research-workspace-head.compact{padding:17px 19px;background:linear-gradient(145deg,rgba(245,250,247,.94),#fff);border-bottom:1px solid var(--line)}
.research-workspace-head.compact .research-entity-name{font-size:16px}
.research-module{margin:0;border:0;border-top:1px solid var(--line);background:#fff}
.research-module>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:52px;padding:13px 19px;cursor:pointer;list-style:none;user-select:none}
.research-module>summary::-webkit-details-marker{display:none}
.research-module>summary::before{content:"";width:7px;height:7px;flex:0 0 auto;border-right:1.5px solid var(--faint);border-bottom:1.5px solid var(--faint);transform:rotate(-45deg);transition:transform .16s ease}
.research-module[open]>summary::before{transform:rotate(45deg)}
.research-module-title{margin-right:auto;font-size:12px;font-weight:760;color:var(--ink);letter-spacing:-.005em}
.research-module-metric{display:inline-flex;align-items:center;min-height:24px;padding:4px 8px;border-radius:999px;background:var(--paper-soft);color:var(--muted);font-size:8px;font-weight:760;white-space:nowrap}
.research-module.model>summary{background:linear-gradient(90deg,rgba(242,248,245,.8),rgba(255,255,255,.96))}
.research-module.model .research-module-title,.research-module.model .research-module-metric{color:var(--accent-dark)}
.research-module.model .research-module-metric{background:var(--accent-soft)}
.research-module-body{display:grid;gap:11px;padding:0 19px 17px}
.research-module-inline-note{font-size:8px;color:var(--muted)}
.research-source-grid.single{grid-template-columns:minmax(0,1fr)}
.research-module .research-source-card{border-radius:11px}
.research-module .research-known-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.research-module .research-next-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.research-route-details{margin:0;border-top:1px solid var(--line);border-radius:0;background:var(--paper-soft)}
.research-route-details>summary{padding:10px 19px;color:var(--faint);font-size:8px}
@media(max-width:760px){.research-workspace-head.compact{gap:10px}.research-module>summary{padding:12px 15px}.research-module-body{padding:0 15px 15px}.research-module .research-known-grid,.research-module .research-next-grid{grid-template-columns:1fr}}
.capability-use-note{margin:0;padding:11px 15px;border-bottom:1px solid var(--line);background:rgba(16,43,85,.035);color:var(--muted);font-size:9.6px;line-height:1.5}
.capability-group{display:block;padding:0}.capability-group+.capability-group{border-top:1px solid var(--line)}
.capability-group>summary{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:13px 15px;list-style:none;cursor:pointer}.capability-group>summary::-webkit-details-marker{display:none}.capability-group>summary>div{display:grid;gap:2px}.capability-group>summary strong{font-size:12px}.capability-group>summary small{font-size:10px;color:var(--muted);line-height:1.48}.capability-group-count{flex:0 0 auto;display:flex;min-width:24px;height:22px;align-items:center;justify-content:center;border-radius:7px;background:var(--paper-soft);color:var(--faint);font-family:var(--mono);font-size:8.5px;font-weight:720}.capability-group>summary:after{content:"+";margin-top:1px;color:var(--faint);font-size:12px}.capability-group[open]>summary:after{content:"−"}.capability-group>.capability-actions{padding:0 15px 15px}.capability-group[open]>summary{background:rgba(16,43,85,.025)}
.result-follow-ups{display:grid;gap:6px;padding:11px 0 1px;border-top:1px solid var(--line);margin-top:11px}.result-follow-up-label{color:var(--faint);font-size:8px;font-weight:720}.result-follow-up-actions{display:flex;gap:6px;flex-wrap:wrap}.result-follow-up{max-width:100%;padding:6px 9px;border:1px solid rgba(16,43,85,.16);border-radius:999px;background:#fff;color:var(--accent-dark);font:inherit;font-size:9px;line-height:1.35;text-align:left;cursor:pointer}.result-follow-up:hover{border-color:rgba(16,43,85,.34);background:var(--accent-pale)}
@media(max-width:700px){.capability-use-note{padding:10px 12px;font-size:9.3px}.capability-group>summary{padding:12px}.capability-group>.capability-actions{padding:0 12px 12px}.result-follow-up-actions{display:grid}.result-follow-up{width:100%;border-radius:9px}}

/* Unified visual system v1: shared card hierarchy and responsive composition. */
:root{
  --ui-card-radius:16px;
  --ui-inner-radius:11px;
  --ui-control-radius:10px;
  --ui-card-border:rgba(25,70,56,.13);
  --ui-card-border-hover:rgba(16,43,85,.28);
  --ui-card-shadow:0 10px 30px rgba(8,26,58,.055),0 1px 2px rgba(8,26,58,.025);
  --ui-card-shadow-hover:0 13px 34px rgba(8,26,58,.075),0 1px 2px rgba(8,26,58,.03);
  --ui-surface:#fff;
  --ui-surface-soft:#f7faf8;
  --ui-surface-accent:#f1f7f4;
  --ui-pad-x:18px;
  --ui-pad-y:15px;
}

/* One visual language for all first-level cards. */
.verification-card,
.result-card,
.capability-guide,
.rail-card{
  border:1px solid var(--ui-card-border);
  border-radius:var(--ui-card-radius);
  background:var(--ui-surface);
  box-shadow:var(--ui-card-shadow);
}
.verification-card,.result-card,.capability-guide{
  width:min(940px,100%);
  max-width:940px;
}
.verification-card,.result-card{margin-top:13px;overflow:hidden}
.activity-card,.inline-error{
  width:min(940px,100%);
  max-width:940px;
  border-radius:14px;
  border-color:var(--ui-card-border);
  background:var(--ui-surface-soft);
}

/* Shared first-level card headers. */
.result-head,
.tool-card-head,
.research-workspace-head.compact{
  min-height:60px;
  padding:15px var(--ui-pad-x);
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,#fff 0%,#f8fbf9 100%);
}
.result-head strong,.tool-card-head strong{font-size:13.5px;line-height:1.35;letter-spacing:-.006em}
.result-head small,.tool-card-head small{font-size:10.5px;line-height:1.45;color:var(--muted)}
.tool-icon{width:34px;height:34px;border-radius:10px;background:var(--accent-soft);font-size:12px}

/* Shared pills: keep status, evidence and metadata visually related. */
.result-chips{gap:6px;padding:10px var(--ui-pad-x);background:#fff}
.result-chips span,
.research-stat,
.research-module-metric,
.evidence-source,
.model-aux-score,
.discovery-status,
.trace-status,.route-count,
.route-design-metrics span,
.pathway-step-badges span,
.model-domain-chip,
.model-recovery-list span{
  min-height:24px;
  display:inline-flex;
  align-items:center;
  padding:4px 8px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--ui-surface-soft);
  color:var(--muted);
  font-size:9.5px;
  font-weight:680;
  line-height:1.2;
}
.research-stat.model,.research-module.model .research-module-metric,.evidence-source.official,
.model-domain-chip.status-project_aligned{
  border-color:rgba(16,43,85,.17);
  background:var(--accent-soft);
  color:var(--accent-dark);
}

/* Shared second-level cards. */
.entity-option,
.evidence-card,
.route-design-item,
.research-source-card,
.research-known-item,
.research-frontier-item,
.research-next-item,
.research-fact,
.route-overview,
.technical-facts span,
.catalog-item,
.inline-route-node,
.route-diagram-card,
.pathway-conflict-item,
.technical-tool-trace{
  border:1px solid var(--ui-card-border);
  border-radius:var(--ui-inner-radius);
  background:var(--ui-surface-soft);
  box-shadow:none;
}
.entity-option,.capability-action,.catalog-item,.route-design-template-action,.result-follow-up{
  transition:border-color .15s ease,background .15s ease,box-shadow .15s ease,transform .15s ease;
}
.entity-option:hover,.capability-action:hover,.catalog-item:hover{
  border-color:var(--ui-card-border-hover);
  background:#fff;
  box-shadow:0 5px 16px rgba(8,26,58,.045);
}
.entity-option.selected{background:var(--accent-pale);border-color:rgba(16,43,85,.34);box-shadow:0 0 0 2px rgba(16,43,85,.035)}

/* Verification card uses the same section rhythm as result cards. */
.verification-section{padding:14px var(--ui-pad-x)}
.verification-section-head{margin-bottom:10px}
.verification-section-head strong{font-size:12.5px}
.verification-section-head small,.verification-actions p{font-size:10.5px;line-height:1.55}
.entity-option{padding:11px 12px}
.entity-top strong{font-size:12px}.entity-main small,.entity-idline,.external-link{font-size:10px}
.verification-actions{padding:13px var(--ui-pad-x);background:var(--ui-surface-soft)}
.primary-button,.ghost-button,.selection-change,.pagination-button,.feedback-cancel,.feedback-submit{
  border-radius:var(--ui-control-radius);
}

/* Capability guide: details groups are nested sections, not competing cards. */
.capability-guide{margin-top:11px;background:#fff}
.capability-guide>summary{min-height:62px;padding:13px var(--ui-pad-x);background:linear-gradient(180deg,#fff,#f8fbf9)}
.capability-guide-copy strong{font-size:13px}.capability-guide-copy small{font-size:10.5px;line-height:1.52}
.capability-guide>summary:after{width:26px;height:26px;border-radius:8px;background:#fff}
.capability-use-note{padding:11px var(--ui-pad-x);font-size:10px;background:var(--ui-surface-soft)}
.capability-group{display:block;padding:0;background:#fff}
.capability-group>summary{min-height:58px;padding:13px var(--ui-pad-x);align-items:center}
.capability-group>summary>div{gap:3px}
.capability-group>summary strong{font-size:12.5px}.capability-group>summary small{font-size:10px;line-height:1.5}
.capability-group-count{min-width:28px;height:24px;border-radius:8px;background:var(--ui-surface-soft);font-size:9px}
.capability-group>.capability-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 var(--ui-pad-x) 15px}
.capability-action{padding:10px 11px;border:1px solid var(--ui-card-border);border-radius:var(--ui-inner-radius);background:var(--ui-surface-soft)}
.capability-action span{font-size:11.5px}.capability-action small{font-size:9.8px;line-height:1.48}

/* Ranking / evidence cards. */
.evidence-section,.discovery-section{background:#fff}
.evidence-section>summary,.discovery-head{padding:14px var(--ui-pad-x)}
.evidence-summary-copy strong,.discovery-head strong{font-size:12.5px}
.evidence-summary-copy small,.discovery-head small{font-size:10.5px;line-height:1.5}
.evidence-grid{grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:9px;padding:0 var(--ui-pad-x) 16px}
.evidence-card{gap:7px;padding:12px;background:#fff}
.evidence-primary-link{font-size:12.5px}.evidence-meta{font-size:10.5px;line-height:1.5}
.evidence-more,.discovery-empty{font-size:10px}
.table-wrap,.entity-comparison-scroll{scrollbar-width:thin;scrollbar-color:rgba(48,92,78,.24) transparent}
.table-wrap::-webkit-scrollbar,.entity-comparison-scroll::-webkit-scrollbar{height:8px}
.table-wrap::-webkit-scrollbar-thumb,.entity-comparison-scroll::-webkit-scrollbar-thumb{background:rgba(48,92,78,.22);border:2px solid transparent;border-radius:999px;background-clip:padding-box}
th{background:#fafcfb}.score-note{padding:10px var(--ui-pad-x);background:var(--ui-surface-soft);font-size:10px}
.result-route-details{background:var(--ui-surface-soft)}
.result-route-details>summary{padding:11px var(--ui-pad-x);font-size:10.5px}

/* Route design becomes a consistent list of nested cards. */
.route-design-list{gap:9px;margin:0;padding:14px var(--ui-pad-x) 4px}
.route-design-item{padding:13px 14px;background:#fff}
.route-design-rank{min-width:30px;color:var(--accent-dark);font-family:var(--mono);font-size:10.5px}
.route-design-summary strong{font-size:12.5px}.route-design-summary small{font-size:9.5px;line-height:1.45}
.route-design-score strong{font-size:16px}.route-design-score small{font-size:9px}
.route-design-metrics{margin:9px 0 10px}.route-design-metrics span{font-size:9.5px;background:var(--ui-surface-soft)}
.route-design-step{padding:7px 0 0;border-top:1px solid rgba(25,70,56,.085)}
.route-design-step-index{border-radius:7px;background:var(--accent-soft);color:var(--accent-dark);font-family:var(--mono)}
.route-design-step-copy strong{font-size:10.5px;line-height:1.42}.route-design-step-copy small{font-size:9px;line-height:1.45}
.route-design-template-action{margin-top:10px;padding:7px 9px;border:1px solid rgba(16,43,85,.14);background:var(--accent-pale);text-decoration:none;font-size:9.5px;font-weight:680}
.route-design-template-action:hover{border-color:rgba(16,43,85,.3);background:#edf7f2}
.route-design-exploration-note{margin:10px var(--ui-pad-x);font-size:9.5px}
.route-exploration-section{margin-top:12px;padding:13px 0 3px;border-top:1px solid var(--line)}
.route-exploration-head{padding:0 var(--ui-pad-x)}
.route-exploration-section>.route-design-exploration-note{margin-left:var(--ui-pad-x);margin-right:var(--ui-pad-x)}
.route-design-list.exploratory{padding-top:10px}

/* Pathway card follows the same hierarchy and density. */
.pathway-result-card{max-width:940px}
.pathway-result-step{grid-template-columns:34px minmax(0,1fr);gap:11px;padding:13px var(--ui-pad-x)}
.pathway-step-marker{width:30px;height:30px;border-radius:9px}
.pathway-enzyme-link{font-size:12px}.pathway-step-meta{font-size:9.5px}
.pathway-condition-chips span{min-height:23px;padding:4px 7px;border-radius:999px;font-size:9px;background:var(--ui-surface-soft)}
.pathway-conflict-box,.pathway-recommendations{padding:13px var(--ui-pad-x)}
.pathway-conflict-box>strong,.pathway-recommendations>strong{font-size:11px}
.pathway-conflict-item{padding:9px 10px;background:var(--ui-surface-soft)}
.pathway-conflict-item>span{font-size:8.5px}.pathway-conflict-item>p{font-size:9.5px}

/* Research workspace: normalize previously tiny nested typography. */
.research-workspace-card{max-width:940px;border-color:var(--ui-card-border);background:#fff}
.research-workspace-head.compact{gap:16px}
.research-workspace-head.compact .research-entity-name{font-size:16px;line-height:1.32}
.research-identity>a,.research-identity>strong:not(.research-entity-name){font-size:11px}
.research-identity small{font-size:9.5px}
.research-head-stats{gap:6px}.research-stat{font-size:9px;background:#fff}
.research-module{border-top:1px solid var(--line);background:#fff}
.research-module>summary{min-height:54px;padding:13px var(--ui-pad-x);gap:12px}
.research-module-title{font-size:12.5px}.research-module-metric{font-size:9px}
.research-module-body{gap:10px;padding:0 var(--ui-pad-x) 16px}
.research-module-inline-note{font-size:9px}
.research-source-grid{gap:8px}
.research-source-card{gap:9px;padding:12px;background:#fff}
.research-source-head>a,.research-source-head>strong{font-size:11.5px}.source-live-state{font-size:8.5px}
.research-fact{padding:8px 9px;background:var(--ui-surface-soft)}
.research-fact small{font-size:8px}.research-fact strong{font-size:10px;line-height:1.42}
.research-source-group{gap:5px;padding-top:8px}.research-source-group>strong{font-size:9px}.research-source-group p{font-size:9.8px;line-height:1.5}
.research-source-item{gap:3px;padding:8px 0}.research-source-item>a,.research-source-item>strong,.research-source-items.literature .research-source-item>a{font-size:10.5px;line-height:1.42}
.research-source-item small{font-size:9px;line-height:1.45}.research-source-empty,.research-empty{font-size:9.8px;line-height:1.52}
.research-known-grid{gap:7px}.research-known-item{padding:10px 11px;background:#fff}.research-known-item>a,.research-known-item>strong{font-size:9.8px}.research-known-item small{font-size:9px}.research-provenance{font-size:8px}
.research-frontier-grid{gap:6px}.research-frontier-item{grid-template-columns:30px minmax(0,1fr) auto;gap:9px;padding:9px 10px;background:#fff}.frontier-rank{width:30px;height:30px;border-radius:9px;font-size:8.5px}.research-frontier-item a,.research-frontier-item strong{font-size:9.8px}.research-frontier-item small{font-size:8.8px}.frontier-score{font-size:9.5px}
.research-next-item{padding:11px;background:#fff}.research-next-item strong{font-size:10.5px}.research-next-item p{font-size:9.5px;line-height:1.52}
.research-participant-tags a,.research-participant-tags span,.research-xrefs a{font-size:8.5px;padding:4px 7px}
.research-reaction-smiles{font-size:8.5px;line-height:1.5}.literature-abstract{font-size:9.8px;line-height:1.58}
.research-source-curation{font-size:9px}.research-annotation-item small{font-size:8.3px}.research-annotation-item p{font-size:9.6px}
.model-domain-note{font-size:9.5px;line-height:1.52}.model-retrospective-audit{padding:9px 10px}.model-retrospective-audit strong{font-size:9.5px}.model-retrospective-audit p{font-size:10px}.model-retrospective-audit small{font-size:8.5px}
.research-route-details{margin:0;border-top:1px solid var(--line);border-radius:0}.research-route-details>summary{padding:10px var(--ui-pad-x);font-size:9.5px}
.research-route-mini{padding:10px var(--ui-pad-x)}.research-route-mini-step strong{font-size:9.5px}.research-route-mini-step small{font-size:8.5px}

/* Contextual follow-ups are part of the result card, with the same inset. */
.result-follow-ups{margin:0 var(--ui-pad-x);padding:11px 0 13px}.result-follow-up-label{font-size:9px}
.result-follow-up{min-height:30px;padding:6px 10px;border-color:var(--ui-card-border);background:var(--ui-surface-soft);font-size:9.5px}
.result-follow-up:hover{border-color:var(--ui-card-border-hover);background:#fff}

/* Right rail cards follow the same surface hierarchy at a denser scale. */
.run-rail{gap:11px}
.rail-card{background:rgba(255,255,255,.94)}
.context-card{padding:16px}.context-card h2{font-size:18px}.context-card>p{font-size:10.5px}
.context-facts span,.route-space-stats span{border-radius:9px;background:var(--ui-surface-soft)}
.showcase-heading{padding:15px 16px 8px}.showcase-heading strong{font-size:12px}.showcase-heading small{font-size:8.8px}
.showcase-intro{padding:0 16px 11px}.route-overview{margin:0 15px 11px;padding:10px 11px}
.route-scroll,.route-catalog-scroll{margin-left:13px;margin-bottom:11px}
.technical-card>summary{padding:13px 16px}

/* Main shell polish. */
.conversation-shell{border-radius:22px;box-shadow:0 18px 52px rgba(8,26,58,.06);background:rgba(255,255,255,.94)}
.conversation-head{padding-left:30px;padding-right:30px}
.messages{padding-left:30px;padding-right:30px}
.composer{padding-left:30px;padding-right:30px}
.composer-input-wrap{border-radius:15px;box-shadow:0 9px 28px rgba(8,26,58,.075)}
.user-bubble{border-radius:16px 16px 6px 16px}

/* Tablet: preserve card proportions while making the rail a secondary section. */
@media(max-width:980px){
  :root{--ui-pad-x:17px}
  .conversation-shell{border-radius:20px}
  .conversation-head,.messages,.composer{padding-left:22px;padding-right:22px}
  .capability-guide,.verification-card,.result-card{width:100%;max-width:none}
  .run-rail{gap:10px}
}

/* Mobile composition is genuinely rearranged rather than desktop UI scaled down. */
@media(max-width:700px){
  :root{--ui-card-radius:14px;--ui-inner-radius:10px;--ui-pad-x:13px;--ui-pad-y:12px}
  .app-shell{width:calc(100% - 12px)}
  .topbar{height:62px}
  .brand{gap:8px}.brand-mark{width:32px;height:32px;transform:scale(.88)}
  .brand strong{font-size:14px}.brand small{font-size:7.5px}
  .topbar-actions{gap:5px}
  .language-toggle,.feedback-entry{min-height:32px;padding:6px 8px;font-size:9.5px}
  .status-pill{min-height:32px;padding:6px 8px;gap:6px;font-size:9px}
  .status-pill i{width:7px;height:7px}
  .workspace{padding-top:12px;gap:9px}
  .conversation-shell{border-radius:17px}
  .conversation-head{min-height:54px;padding:16px 13px 11px;gap:12px}
  .conversation-head h1{font-size:20px}.ghost-button{padding:7px 9px;font-size:9.5px}
  .messages{padding:16px 12px 8px}.message{margin-bottom:20px}
  .assistant-message{grid-template-columns:30px minmax(0,1fr);gap:8px}.assistant-avatar{width:30px;height:30px;border-radius:9px;font-size:8.5px}
  .message-meta{margin-bottom:6px}.message-meta strong{font-size:11.5px}.message-meta span{font-size:9px}
  .assistant-copy p,.welcome-message .assistant-copy p{font-size:13.5px;line-height:1.65}
  .user-message .message-content{width:98%}.user-bubble{padding:11px 13px;border-radius:14px 14px 5px 14px}.user-bubble p{font-size:13px}
  .capability-guide{margin-top:9px}
  .capability-guide>summary{min-height:60px;padding:11px 12px;gap:10px}.capability-guide-copy strong{font-size:12px}.capability-guide-copy small{font-size:9.5px;line-height:1.48}
  .capability-use-note{padding:10px 12px;font-size:9.5px}
  .capability-group>summary{min-height:54px;padding:11px 12px}.capability-group>summary strong{font-size:11.5px}.capability-group>summary small{font-size:9.5px}
  .capability-group>.capability-actions{grid-template-columns:1fr;padding:0 12px 12px}.capability-action{padding:10px}.capability-action span{font-size:11px}.capability-action small{font-size:9.5px}
  .result-head,.tool-card-head,.research-workspace-head.compact{min-height:54px;padding:12px var(--ui-pad-x)}
  .result-head{align-items:flex-start}.result-head strong,.tool-card-head strong{font-size:12.5px}.result-head small,.tool-card-head small{font-size:9.5px}
  .result-chips{padding:9px var(--ui-pad-x);gap:5px}.result-chips span,.research-stat,.research-module-metric,.evidence-source,.model-aux-score,.discovery-status,.route-design-metrics span,.pathway-step-badges span{min-height:22px;padding:3px 7px;font-size:8.7px}
  .verification-section{padding:12px var(--ui-pad-x)}.verification-actions{padding:12px var(--ui-pad-x)}
  .entity-option{grid-template-columns:20px minmax(0,1fr);gap:9px;padding:10px}.entity-top strong{font-size:11.5px}.entity-main small,.entity-idline,.external-link{font-size:9.5px}
  .evidence-section>summary,.discovery-head{padding:12px var(--ui-pad-x)}.evidence-grid{grid-template-columns:1fr;padding:0 var(--ui-pad-x) 13px}.evidence-card{padding:11px}.evidence-primary-link{font-size:11.5px}.evidence-meta{font-size:9.5px}
  .table-wrap{margin:0}.table-wrap table{min-width:620px}.entity-comparison-table{min-width:580px}
  th,td{padding:10px 12px}.score-cell{width:145px}.result-entity{min-width:260px}
  .route-design-list{padding:11px var(--ui-pad-x) 3px}.route-design-item{padding:11px}.route-design-item-head{grid-template-columns:auto minmax(0,1fr);gap:8px}.route-design-score{grid-column:2;justify-self:start;text-align:left;display:flex;align-items:baseline;gap:6px}.route-design-score strong{font-size:14px}.route-design-summary strong{font-size:11.5px}.route-design-summary small{font-size:9px}.route-design-metrics span{font-size:8.7px}.route-design-step{grid-template-columns:20px minmax(0,1fr);gap:7px}.route-design-step-copy strong{font-size:10px}.route-design-step-copy small{font-size:8.7px}.route-design-step>a,.route-design-step>.prediction-badge{grid-column:2;justify-self:start}.route-design-template-action{width:100%;text-align:center}
  .route-exploration-head{padding:0 var(--ui-pad-x);display:grid;gap:5px}.route-exploration-count{justify-self:start}
  .pathway-result-step{grid-template-columns:30px minmax(0,1fr);padding:11px var(--ui-pad-x);gap:9px}.pathway-step-marker{width:27px;height:27px}.pathway-step-top{flex-direction:column;gap:5px}.pathway-step-badges{justify-content:flex-start}.pathway-conflict-item{grid-template-columns:1fr;gap:4px}
  .research-workspace-head.compact{flex-direction:column;gap:9px}.research-head-stats{justify-content:flex-start}.research-workspace-head.compact .research-entity-name{font-size:14px}
  .research-module>summary{min-height:50px;padding:11px var(--ui-pad-x)}.research-module-title{font-size:11.5px}.research-module-body{padding:0 var(--ui-pad-x) 13px}
  .research-source-grid,.research-known-grid,.research-next-grid,.research-module .research-known-grid,.research-module .research-next-grid{grid-template-columns:1fr}.research-fact-grid{grid-template-columns:1fr}
  .research-source-card{padding:11px}.research-source-head>a,.research-source-head>strong{font-size:11px}.research-source-group p,.research-source-item>a,.research-source-item>strong,.research-source-items.literature .research-source-item>a{font-size:9.8px}
  .research-frontier-item{grid-template-columns:28px minmax(0,1fr);padding:9px}.frontier-rank{width:28px;height:28px}.frontier-score{grid-column:2}.research-route-mini-step{grid-template-columns:22px minmax(0,1fr)}.research-route-mini-step small{grid-column:2;text-align:left}
  .result-follow-ups{margin:0 var(--ui-pad-x);padding-bottom:11px}.result-follow-up-actions{display:grid}.result-follow-up{width:100%;border-radius:9px;font-size:9.5px}
  .composer{padding:8px 12px 12px}.composer-input-wrap{grid-template-columns:minmax(0,1fr) 42px;padding:7px 7px 7px 13px;border-radius:14px}.send-button{width:40px;height:40px;border-radius:10px}textarea{min-height:44px;font-size:13px}textarea::placeholder{font-size:12.5px}.composer-foot{font-size:8.5px;margin-top:6px}
  .rail-edge-toggle{height:32px;margin-top:0;padding:0 9px;font-size:9px}.run-rail{grid-template-columns:1fr}.context-facts{grid-template-columns:repeat(3,minmax(0,1fr))}.context-card{padding:13px}.context-card h2{font-size:16px}.context-card>p{font-size:9.5px}
}

/* Extra-narrow phones: free the top bar from text competition. */
@media(max-width:520px){
  .assistant-message{grid-template-columns:minmax(0,1fr);gap:0}
  .assistant-avatar{display:none}
  .message-content{min-width:0}
  .discovery-table-wrap{overflow:visible;border-top:0;padding:0 var(--ui-pad-x) 13px}
  .discovery-table-wrap table{display:block;width:100%;min-width:0}
  .discovery-table-wrap thead{display:none}
  .discovery-table-wrap tbody{display:grid;gap:8px;width:100%}
  .discovery-table-wrap tbody tr{display:grid;grid-template-columns:34px minmax(0,1fr);gap:4px 9px;padding:10px 11px;border:1px solid var(--ui-card-border);border-radius:var(--ui-inner-radius);background:#fff}
  .discovery-table-wrap tbody tr:hover{background:#fff}
  .discovery-table-wrap tbody td{display:block;padding:0;border:0}
  .discovery-table-wrap .rank-cell{grid-row:1/3;width:34px;min-height:34px;display:flex;align-items:center;justify-content:center;border-radius:9px;background:var(--accent-soft);color:var(--accent-dark);font-family:var(--mono);font-size:9px;font-weight:760}
  .discovery-table-wrap .result-entity{grid-column:2;min-width:0}
  .discovery-table-wrap .result-entity-primary{align-items:flex-start;flex-wrap:wrap}
  .discovery-table-wrap .result-entity small{max-width:none;margin-top:3px;white-space:normal;font-size:9.5px;line-height:1.42}
  .discovery-table-wrap .entity-primary-link,.discovery-table-wrap .entity-primary-text{font-size:11.5px}
  .discovery-table-wrap .score-cell{grid-column:2;width:auto;display:grid;grid-template-columns:auto minmax(70px,1fr);gap:8px;align-items:center;margin-top:3px}
  .discovery-table-wrap .score-number{font-size:9.5px}
  .discovery-table-wrap .score-track{margin:0;height:5px}
}

@media(max-width:430px){
  .brand small{display:none}.brand{gap:7px}.brand strong{font-size:13.5px}
  .topbar-actions{margin-left:auto}.status-pill{width:32px;height:32px;padding:0;justify-content:center}.status-pill span{display:none}.status-pill i{margin:0}
  .language-toggle,.feedback-entry{padding-left:7px;padding-right:7px}
}

@media(max-width:370px){
  .app-shell{width:calc(100% - 10px)}
  .brand-mark{width:29px;height:29px;transform:scale(.82)}.brand strong{font-size:13px}
  .topbar-actions{gap:4px}.language-toggle,.feedback-entry{font-size:9px;padding:5px 6px}
  .conversation-head h1{font-size:19px}.ghost-button{font-size:9px;padding:6px 8px}
  .messages{padding-left:10px;padding-right:10px}.assistant-message{grid-template-columns:minmax(0,1fr);gap:0}
  .context-facts{grid-template-columns:1fr 1fr}.context-facts span:last-child{grid-column:1/-1}
}

/* Unbreakable-content guard: scientific identifiers, URLs, DOI strings and
   chemical/sequence tokens must never dictate card width. Natural-language text
   still wraps normally; machine-like strings may break at any character when needed. */
.message-content,
.verification-card,.result-card,.research-workspace-card,.research-module,
.research-module-body,.research-source-grid,.research-source-card,.research-source-head,
.research-source-group,.research-source-items,.research-source-item,.research-known-item,
.research-frontier-item,.evidence-card,.entity-option,.entity-main,.entity-top,
.pathway-step-body,.route-design-item,.route-design-summary,.route-design-step-copy,
.inline-route-node,.route-diagram-card,.technical-facts span{
  min-width:0;
}

.external-link,
.markdown-body a,
.research-identity>a,
.research-source-head>a,
.research-source-item>a,
.research-known-item>a,
.research-frontier-item a,
.evidence-primary-link,.entity-primary-link,.pathway-enzyme-link,
.research-source-item>strong,.research-known-item>strong,.research-frontier-item strong,
.research-source-item small,.research-known-item small,.research-frontier-item small,
.research-source-group p,.research-annotation-item p,.research-annotation-item small,
.literature-abstract,.evidence-meta,.pathway-step-meta,.route-design-summary strong,
.route-design-summary small,.route-design-step-copy strong,.route-design-step-copy small{
  max-width:100%;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.external-link{min-width:0}
.research-source-head>a,.research-source-head>strong{min-width:0}
.research-source-head .source-live-state{flex:0 0 auto}
.research-xrefs>* , .research-participant-tags>*{max-width:100%;overflow-wrap:anywhere;word-break:break-word}

/* Tokens with no semantic whitespace need a stronger emergency break rule. */
.research-reaction-smiles,
.entity-idline,.result-route-code,.route-id,.route-id-inline,.catalog-route-key,
.catalog-module-path,.research-provenance,.route-module-id,.route-dialog-head code,
.route-diagram-step-foot code,.technical-facts strong,
.machine-string{
  max-width:100%;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-all;
}

.user-bubble p,.assistant-copy,.markdown-body,.inline-error p{
  min-width:0;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.recorded-ranking-badge{flex:0 0 auto;padding:3px 6px;border-radius:999px;border:1px solid var(--line-strong);background:#fff;color:var(--accent-dark);font-size:8px;font-weight:760}
.result-score-technical{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));padding:8px 14px 4px}
.raw-score-list{display:grid;gap:3px;margin:4px 14px 8px;padding:9px;border:1px solid var(--line);border-radius:9px;background:var(--paper-soft)}
.raw-score-list>small{font-size:8px;color:var(--faint)}
.raw-score-line{font-family:var(--mono);font-size:8.5px;color:#6f837c;overflow-wrap:anywhere;word-break:break-all}
@media(max-width:520px){.recorded-ranking-badge{font-size:8.5px}.result-score-technical{grid-template-columns:1fr;padding-left:var(--ui-pad-x);padding-right:var(--ui-pad-x)}.raw-score-list{margin-left:var(--ui-pad-x);margin-right:var(--ui-pad-x)}}

.score-formula{display:grid;gap:4px;margin:4px 14px 8px;padding:8px 9px;border:1px solid var(--line);border-radius:9px;background:var(--paper-soft)}
.score-formula>small{font-size:8px;color:var(--faint)}
.score-formula>code{font-family:var(--mono);font-size:8.5px;color:#6f837c;overflow-wrap:anywhere;word-break:break-word}
@media(max-width:520px){.score-formula{margin-left:var(--ui-pad-x);margin-right:var(--ui-pad-x)}}


.observation-plan{border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fbfdfc,#fff)}
.observation-plan>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 18px;cursor:pointer;list-style:none}
.observation-plan>summary::-webkit-details-marker{display:none}.observation-plan-summary{display:grid;gap:2px}.observation-plan-summary strong{font-size:10.5px}.observation-plan-summary small{font-size:8.3px;color:var(--muted)}
.observation-plan-count{flex:0 0 auto;padding:4px 7px;border:1px solid var(--line);border-radius:999px;background:var(--paper-soft);color:var(--muted);font-size:8px;font-weight:700}
.observation-plan-body{display:grid;gap:9px;padding:0 18px 13px}.observation-plan-group{display:grid;gap:5px}.observation-plan-group>strong{font-size:8.5px;color:var(--muted)}
.observation-plan-chips{display:flex;flex-wrap:wrap;gap:5px}.observation-plan-chips span{padding:4px 7px;border:1px solid rgba(16,43,85,.14);border-radius:999px;background:var(--accent-pale);color:var(--accent-dark);font-size:8px}.observation-plan-chips span.evidence-only{border-style:dashed;background:#fffaf1;color:#80602f}
.observation-plan-policy{margin:1px 0 0;padding-top:8px;border-top:1px dashed var(--line);color:var(--faint);font-size:8.3px;line-height:1.5}
@media(max-width:700px){.observation-plan>summary{align-items:flex-start;padding:10px 13px}.observation-plan-body{padding:0 13px 12px}}
.observation-plan-coverage-note{display:block;color:var(--muted);font-size:8.3px;line-height:1.45}

/* Atlas suite skin: visual unification only. Keep the existing COMPASS layout
   coordinate system intact; only the navigation chrome and semantic colors are
   shared with Atlas EDGE. */
.topbar{
  position:relative;
  z-index:20;
  isolation:isolate;
  height:58px;
  border-bottom:0;
  color:#f8fbff;
}
.topbar::before{
  content:"";
  position:absolute;
  z-index:-1;
  top:0;
  bottom:0;
  left:50%;
  width:100vw;
  transform:translateX(-50%);
  background:linear-gradient(135deg,rgba(8,26,58,.99),rgba(16,43,85,.97));
  box-shadow:0 10px 26px rgba(8,26,58,.22);
}
.atlas-brand-zone{display:flex;align-items:center;gap:9px;min-width:0}
.brand{display:flex;align-items:center;gap:10px;min-width:0;color:#fff}
.atlas-logo{display:flex;width:30px;height:30px;flex:0 0 30px;align-items:center;justify-content:center;border:1px solid rgba(237,227,175,.48);border-radius:8px;background:rgba(237,227,175,.10)}
.atlas-logo img{display:block;width:100%;height:100%;padding:3px;object-fit:contain}
.atlas-brand-copy{display:grid;gap:2px;min-width:0}
.brand .atlas-brand-copy strong{color:#fff;font-size:15px;font-weight:800;line-height:1;letter-spacing:-.01em}
.brand .atlas-brand-copy small{max-width:455px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:rgba(248,251,255,.67);font-size:6.7px;font-weight:600;line-height:1.15;letter-spacing:.025em}
.brand .atlas-brand-copy small b{color:#ede3af;font-weight:900}
.atlas-suite-link{display:inline-flex;align-items:center;gap:3px;flex:0 0 auto;min-height:25px;padding:0 8px;border:1px solid rgba(237,227,175,.30);border-radius:999px;color:rgba(248,251,255,.76);font-size:8px;font-weight:760;letter-spacing:.045em;text-decoration:none}
.atlas-suite-link:hover,.atlas-suite-link:focus-visible{border-color:rgba(237,227,175,.72);color:#ede3af;outline:none}
.topbar-actions{gap:7px}
.topbar .language-toggle,.topbar .feedback-entry,.topbar .status-pill{border-color:rgba(237,227,175,.24);background:rgba(255,255,255,.08);color:rgba(248,251,255,.84);backdrop-filter:blur(10px)}
.topbar .language-toggle:hover,.topbar .feedback-entry:hover{border-color:rgba(237,227,175,.62);background:rgba(255,255,255,.14);color:#fff}
.topbar .status-pill.ready i{background:#6fbf99;box-shadow:0 0 0 4px rgba(111,191,153,.12)}

/* Neutralize the few high-visibility green shadows left by the old theme
   without touching spacing, sizing, positioning or component structure. */
.conversation-shell{box-shadow:0 18px 52px rgba(8,26,58,.06)}
.composer-input-wrap{border-color:rgba(16,43,85,.20);box-shadow:0 9px 28px rgba(8,26,58,.075)}
.user-bubble{box-shadow:0 8px 20px rgba(8,26,58,.12)}
.assistant-avatar{box-shadow:0 8px 18px rgba(8,26,58,.14)}
.rail-card{box-shadow:0 12px 34px rgba(8,26,58,.04)}
.rail-edge-toggle{box-shadow:0 8px 22px rgba(8,26,58,.10)}

@media(min-width:981px){
  .app-shell{grid-template-rows:58px minmax(0,1fr) auto}
}
@media(max-width:980px){
  .topbar{height:58px}
  .brand .atlas-brand-copy small{max-width:40vw;font-size:6.2px;letter-spacing:0}
  .atlas-brand-zone{gap:6px}
  .atlas-suite-link{padding-inline:6px;font-size:7px}
}
@media(max-width:700px){
  .topbar{height:58px}
  .atlas-logo{width:27px;height:27px;flex-basis:27px}
  .brand{gap:6px}
  .brand .atlas-brand-copy strong{font-size:13px}
  .brand .atlas-brand-copy small{display:block;max-width:31vw;font-size:5.7px;letter-spacing:0}
  .topbar-actions{gap:4px}
  .topbar .language-toggle,.topbar .feedback-entry{min-height:30px;padding:5px 7px;font-size:8.5px}
  .topbar .status-pill{width:30px;height:30px;min-height:30px;padding:0;justify-content:center}
  .topbar .status-pill span{display:none}
  .atlas-suite-link{min-height:23px;padding-inline:5px;font-size:6.6px}
}
@media(max-width:430px){
  .brand .atlas-brand-copy small{display:none}
}

/* Optional candidate entry stays visually isolated and closed by default. */
.external-candidate-section{padding:10px var(--ui-pad-x,16px);border-top:1px solid var(--line);background:var(--paper-soft)}
.external-candidate-section>summary{cursor:pointer;color:var(--accent-dark);font-size:11px;font-weight:700;line-height:1.45;list-style-position:inside}
.external-candidate-section[open]>summary{margin-bottom:8px}
.external-candidate-section .verification-note{margin:0 0 8px;color:var(--muted);font-size:10px;line-height:1.55}
.external-candidate-input{display:block;width:100%;max-width:100%;min-height:86px;resize:vertical;padding:10px 12px;border:1px solid var(--line-strong);border-radius:9px;background:var(--paper);color:var(--ink);font:11px/1.6 var(--mono);overflow:auto}
.external-candidate-input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* The conversational reply is always a normal assistant message; only the data card folds. */

/* A single conversation turn can contain several independent scientific outputs. */
.structured-composite-fold{background:#fff}
.structured-composite-fold>.structured-result-stack{border-top:1px solid var(--line)}
.structured-result-panel{min-width:0;background:#fff}
.structured-result-panel+.structured-result-panel{border-top:1px solid var(--line-strong)}
.structured-result-panel-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:12px var(--ui-pad-x,16px) 9px;background:var(--paper-soft)}
.structured-result-panel-heading strong{font-size:11px;color:var(--accent-dark);font-weight:740}
.structured-result-panel-heading span{font-size:10px;color:var(--muted);overflow-wrap:anywhere;text-align:right}
.structured-result-panel>.result-card{width:100%;max-width:none;margin:0;border:0;border-radius:0;box-shadow:none}
.structured-result-panel>.evidence-first-intro{display:none}
.structured-result-panel .result-head{border-radius:0}
.structured-result-panel .discovery-head{display:none}
.structured-result-panel.secondary-evidence-panel .result-head{display:none}
.conversational-copy{max-width:790px;padding:2px 0}
.conversational-copy p{font-size:14px;line-height:1.66;margin:0 0 9px}
.conversational-copy.markdown-body h1,.conversational-copy.markdown-body h2,.conversational-copy.markdown-body h3{font-size:15px;margin:11px 0 5px}
@media(max-width:520px){.structured-result-panel-heading{padding:11px 13px}.structured-result-panel-heading strong{font-size:11px}.conversational-copy p{font-size:14px;line-height:1.62}.structured-result-panel .discovery-table-wrap .rank-cell{grid-row:1;align-self:start;width:29px;min-height:29px}}

.result-context-details{border-top:1px solid var(--line);background:var(--paper-soft)}
.result-context-details>summary{padding:11px var(--ui-pad-x);cursor:pointer;color:var(--accent-dark);font-size:10.5px;font-weight:720}
.result-context-details>.result-intro{margin:0;padding:3px var(--ui-pad-x) 8px}
.result-context-details>.result-chips{border:0;padding:4px var(--ui-pad-x) 12px}
.candidate-active-experts{display:flex;flex-wrap:wrap;gap:6px}
.candidate-active-expert{display:inline-flex;align-items:baseline;gap:5px;padding:5px 7px;border:1px solid var(--line-strong);border-radius:7px;background:#fff;font-size:10px;color:var(--ink)}
.candidate-active-expert strong{font-weight:720}.candidate-active-expert small{font-family:var(--mono);color:var(--accent-dark);font-size:9px}
.discovery-table-wrap .score-number{font-size:12px;font-weight:760;color:var(--accent-dark);font-variant-numeric:tabular-nums}
.discovery-table-wrap .score-track{height:6px}
@media(max-width:520px){.discovery-table-wrap .score-number{font-size:11px}.result-context-details>summary{padding:10px 13px}.candidate-evidence-details>summary{min-height:36px;font-size:11px}}
