/* PDF A/B/C arrangement: history / conversation / persistent profile and KG.
   Stages and playback must never alter these column positions. */
.tour-on .tour-target{outline:3px solid #e0a234!important;outline-offset:4px;box-shadow:0 0 0 7px #e0a2341c!important;transition:none!important}
.tour-on .tour-target.tour-press{outline-color:#b97600!important;box-shadow:0 0 0 7px #e0a23445!important;filter:brightness(.92)}
.tour-on:has(dialog[open])::after{content:'';position:fixed;inset:135px 0 0;background:#13233b55;backdrop-filter:blur(2px);z-index:50}
.tour-on dialog[open]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;z-index:60}
#researchApp{overflow-x:auto}
.app-layout,.app-layout.context-closed{grid-template-columns:minmax(480px,1fr) 322px;min-width:802px;max-width:1760px;height:calc(100dvh - 64px)}
.app-layout.history-open,.app-layout.history-open.context-closed{grid-template-columns:206px minmax(480px,1fr) 322px;min-width:1008px}
.app-layout .context,.app-layout.history-open .context,.app-layout.context-closed .context,.app-layout.context-mobile .context{display:block;position:static;inset:auto;width:auto;min-width:0;box-shadow:none;z-index:auto;border-left:1px solid var(--line);padding:21px;background:#f8fafd;overflow:auto}
.context .graph-section{display:block}.context .graph{height:180px}.context .section{padding:16px 0}.context .section:first-child{padding-top:0}
.history-rail,.history-rail nav,.history-rail nav button{min-width:0;max-width:100%}.history-open .history-rail{display:flex;position:static;inset:auto;width:auto;z-index:auto;box-shadow:none;overflow-x:hidden}
.main-top{padding:13px 24px 10px;border-bottom:1px solid var(--line)}.layout-label{font-size:.7rem;color:var(--muted)}.journey[hidden]{display:none!important}
.conversation{padding:24px 28px}.intent{padding:10px 24px}.intent .query-original{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.intent[hidden]{display:none}
#composer{padding:12px 24px 14px;order:initial}.welcome{padding:15px 0 10px}.welcome h1{font-size:1.75rem}.welcome>p{font-size:.87rem}
.resume-card{border:1px solid var(--line);background:var(--soft);border-radius:12px;padding:17px;margin:22px 0}.resume-card small{font-size:.7rem;color:var(--blue)}.resume-card h2{font-size:1rem;margin:5px 0}.resume-card p{font-size:.77rem;color:var(--muted);margin:5px 0 12px}
.home-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:22px 0 12px}.home-section-title h2{font-size:.93rem;margin:0}.home-section-title>span{font-size:.65rem;color:var(--muted)}
.welcome-examples{grid-template-columns:1fr;margin:12px 0 18px;gap:9px}.welcome-examples button{padding:12px 15px}.welcome-examples strong{font-size:.83rem;font-weight:600}.welcome-examples p{font-size:.72rem;color:var(--muted);margin:5px 0 0}.welcome-examples small span{float:right}.topic-entry>span{font-size:.73rem;color:var(--muted)}
.cards{grid-template-columns:1fr}.cards.two{grid-template-columns:repeat(2,minmax(0,1fr))}.choice{display:flex;padding:14px;gap:10px}.choice-title{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.choice-title small{font-size:.65rem;color:var(--muted);white-space:nowrap}.cards.two .choice-title{display:block}.cards.two .choice-title small{display:block;margin-top:3px}.choice-preview{font-size:.73rem;color:#677b8b;border-top:1px solid var(--line);padding-top:8px;margin-top:9px;line-height:1.7}.choice-preview>span{font-size:.66rem;color:var(--muted);margin-right:5px}
.technical-details{border:1px solid var(--line);padding:11px 13px;border-radius:9px;margin:14px 0;color:var(--muted);font-size:.77rem}.technical-details summary{cursor:pointer}.subheading{font-size:.9rem;margin:20px 0 10px}.compact-result strong{font-size:.84rem;font-weight:600}.compact-result p{font-size:.74rem;color:var(--muted);line-height:1.7}.facet-purpose{font-size:.72rem;color:var(--muted)}
.result-description{font-size:.82rem;color:#64768a;line-height:1.8}.result-reason{font-size:.74rem;color:var(--teal);line-height:1.7;margin:9px 0}.result-reason span{font-size:.65rem;margin-right:6px}.fixture-label{font-size:.65rem;margin-left:7px;padding:2px 5px;background:#f1f4f8;border-radius:4px}.session-summary{padding:19px 21px;background:var(--mint);color:#376e60;border-radius:12px;line-height:1.9;font-size:.9rem}.session-summary>p+p{font-size:.76rem;margin-top:13px}.session-summary .tags{margin-top:12px}
.tour-on .app-layout{height:calc(100dvh - 135px)}.topbar{height:64px}.tour-bar{height:71px;min-height:71px;flex-wrap:nowrap}.tour-actions{flex-shrink:0}.countdown{top:135px}
@media(max-width:1008px){.app-layout,.app-layout.history-open{margin:0}.main-top{padding:12px 20px}.conversation{padding:22px}.intent{padding:9px 20px}#composer{padding:12px 20px}.layout-label{display:none}.tour-bar{min-width:802px;padding:9px 18px}.tour-bar>div:first-child{flex-basis:auto}.countdown{top:135px}.topbar{min-width:390px}}
.abstract-section{margin:14px 0}.abstract-section h4{margin:0 0 5px;font-size:.8rem;color:var(--ink)}.abstract-section p{margin:0;line-height:1.9}.fixture-notice{font-size:.72rem;line-height:1.7;color:#8a6c39;border-bottom:1px solid var(--line);padding-bottom:10px}
/* Semantic graph states only; retain the PDF's fixed A/B/C layout. */
.kg-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.context .kg-status{font-size:.8rem;color:#a43a50;white-space:nowrap}.context .graph{height:auto;aspect-ratio:280/250;margin:10px 0 12px;overflow:visible}
.graph .kg-node text{font-size:12px;fill:#405773}.graph .kg-caption{paint-order:stroke;stroke:#f8fafd;stroke-width:5px;stroke-linejoin:round}.graph .kg-shape{fill:#dfe8f7;stroke:#7793bc;stroke-width:1.5}.graph .kg-node:focus{outline:none}.graph .kg-node:focus .kg-shape,.graph .kg-node:hover .kg-shape{stroke-width:3}
.graph .query .kg-shape{fill:#233e64;stroke:#233e64}.graph .document .kg-shape{fill:#e4f3f4;stroke:#008493}.graph .matched .kg-shape{fill:#b33853;stroke:#b33853}.graph .kg-node .kg-glyph{fill:white;font-weight:600}.graph .kg-document-icon{stroke:#008493;stroke-width:1.5;fill:none;stroke-linecap:round}.graph .matched .kg-document-icon{stroke:white}.graph .kg-empty{font-size:12px}
.graph .kg-new-ring{fill:none;stroke:#b33853;stroke-width:1.4;stroke-dasharray:3 3}.graph .draft .kg-shape{stroke:#b47b0c;stroke-dasharray:2 2}
.graph .kg-edge{stroke:#c2d0e1;stroke-linecap:round}.graph .kg-edge.match{stroke:#c98a99}.graph .kg-edge.view{stroke:#008493}.graph .kg-edge.save{stroke:#b47b0c}.graph .kg-edge.strengthened{stroke:#854caa}.graph .kg-edge.reformulate{stroke:#008493;stroke-dasharray:3 3}
.kg-legend{display:grid;gap:5px;font-size:.8rem;color:#62758a;margin:12px 0}.kg-legend span{display:flex;align-items:center;gap:6px}.kg-legend i{display:inline-block;width:8px;height:8px;border-radius:50%}.kg-legend .matched{background:#b33853}.kg-legend .added{border:1px dashed #b33853}.kg-legend .strong{height:3px;width:12px;background:#854caa;border-radius:0}
.kg-detail{font-size:.8rem;overflow-wrap:anywhere}.kg-detail summary{cursor:pointer;color:#536b86}.kg-detail summary>span{float:right;font-size:.8rem;color:#7a879b}.kg-detail ul{padding-left:15px}.kg-detail li{margin:6px 0}.context .kg-detail p{font-size:.8rem}.context .profile-person{margin-bottom:12px}.context .profile-person+.tags{margin-bottom:8px}
.welcome-examples button{border-style:dashed}
.followup-feedback{font-size:.87rem;color:var(--teal);margin:0 0 16px}.profile-match-detail{font-size:.8rem;margin:10px 0}.profile-match-detail summary{cursor:pointer;color:#536b86}.context .profile-match-detail p{font-size:.8rem}.profile-match-detail p+p{border-top:1px solid var(--line);padding-top:8px}
