@font-face{font-family:Plex;src:url('/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2')}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{font-family:Arial,Helvetica,sans-serif;font-size:14px;color:#20221f;background:#f4f5f2;--accent:#c53a25;--line:#c8cbc4;--ink:#20221f;--muted:#686d65}button,input,textarea,select{font:inherit}button,a,input,textarea{touch-action:manipulation}button{cursor:pointer;background:transparent;border:0;color:inherit;padding:9px 12px;font-weight:500}button:hover{background:#e9ece5}button:disabled{opacity:.45;cursor:wait}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button.solid,.solid{background:var(--ink);color:white}button.solid:hover{background:#40473c}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}input,textarea{width:100%;border:1px solid var(--line);border-radius:0;background:#fff;padding:11px;outline:none;color:var(--ink)}input:focus,textarea:focus{border-color:var(--ink)}textarea{resize:vertical;line-height:1.5}label{display:block;margin:15px 0 8px;line-height:1.6}label input,label textarea{margin-top:5px}.topbar{height:70px;display:flex;align-items:center;padding:0 24px;gap:22px;background:#fff;border-bottom:1px solid var(--ink);position:relative;z-index:20}.brand{font-size:24px;font-weight:800;letter-spacing:-1.4px;white-space:nowrap}.brand-mark{color:var(--accent);margin-left:7px}.edition,.eyebrow,.canvas-caption,.statusbar,.node-meta,.popover small,.gesture-hint{font-family:Plex,monospace;font-size:11px;letter-spacing:.045em}.edition{color:var(--muted)}.divider{height:25px;width:1px;background:var(--line)}.workspace-toggle{display:flex;align-items:center;gap:30px;max-width:360px;text-align:left;font-size:18px}.workspace-toggle span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-actions{margin-left:auto;display:flex;gap:18px;align-items:center;font-size:12px}.toolbar{display:flex;align-items:center;gap:5px;height:51px;padding:0 24px;background:#fff;border-bottom:1px solid var(--line);position:relative;z-index:20}.toolbar button{padding:7px 11px;font-size:13px}.toolbar .solid{padding:9px 13px}.toolbar-divider{height:18px;width:1px;background:var(--line);margin:0 9px}.toolbar-right{margin-left:auto;display:flex;gap:22px;align-items:center}.toolbar-right span{font-size:12px;color:var(--muted)}#canvas{position:absolute;inset:121px 0 35px;overflow:hidden;touch-action:none;outline:none;cursor:grab;background-color:#f4f5f2;background-image:radial-gradient(#cdd1c9 .7px,transparent .7px);background-size:20px 20px}#canvas.dragging{cursor:grabbing}#world{position:absolute;transform-origin:0 0;will-change:transform}#edges{position:absolute;width:1px;height:1px;overflow:visible}#nodes{position:absolute;inset:0}#edge-layer path{stroke:#929a8c;stroke-width:1.3;fill:none;vector-effect:non-scaling-stroke}#edge-layer .hit{stroke:transparent;stroke-width:18;cursor:pointer;pointer-events:stroke}#edge-layer .edge-selected path{stroke:var(--accent);stroke-width:2}#edge-layer text{font-size:12px;fill:#646d5d;paint-order:stroke;stroke:#f4f5f2;stroke-width:7px;stroke-linejoin:round;cursor:pointer}#edge-layer .inferred path{stroke-dasharray:5 5}#wire{stroke:var(--accent);stroke-width:2;stroke-dasharray:5 4;fill:none;pointer-events:none}.node{position:absolute;width:204px;min-height:126px;background:#fff;border:1px solid #a6ada0;padding:0;cursor:grab;text-align:left;user-select:none;box-shadow:0 3px 0 #e3e6de;transition:opacity .18s;border-radius:0}.node:hover{border-color:#535d4c;background:#fff}.node.selected{outline:2px solid var(--accent);outline-offset:4px;border-color:var(--ink)}.node-heading{display:flex;align-items:center;gap:11px;padding:14px 14px 8px}.node-symbol{font:22px Georgia,serif;flex:none}.node-title{font-size:17px;font-weight:600;line-height:1.2;overflow-wrap:anywhere}.node-desc{font-size:12px;line-height:1.5;color:#6e7568;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;padding:0 14px;height:36px}.node-meta{display:flex;justify-content:space-between;gap:4px;border-top:1px solid #e5e7e0;padding:8px 12px;margin-top:10px;font-size:10px;text-transform:uppercase}.node-meta span:last-child{white-space:nowrap}.node-state:before{content:'';display:inline-block;width:5px;height:5px;background:#aab0a5;border-radius:50%;margin-right:5px;vertical-align:2px}.node[data-state=open] .node-state:before,.node[data-state=blocked] .node-state:before{background:var(--accent)}.node[data-state=completed] .node-state:before,.node[data-state=confirmed] .node-state:before{background:#3d7351}.node[data-state=hypothetical]{border-style:dashed}.port{position:absolute;padding:0;top:50%;width:12px;height:12px;border:1px solid #7c8675;border-radius:50%;background:#fff;transform:translateY(-50%);cursor:crosshair;z-index:2}.port.out{right:-7px}.port.in{left:-7px}.port:hover{background:var(--accent);border-color:var(--accent)}.canvas-caption{position:absolute;left:28px;top:24px;display:flex;flex-direction:column;gap:9px;color:#646c5e;pointer-events:none}.canvas-caption span:first-child{color:#2d3528}.empty{position:absolute;top:15%;left:9%;max-width:650px;cursor:default}.empty h1{font:normal 64px/1.05 Georgia,serif;letter-spacing:-2px;margin:20px 0}.empty p{font-size:17px;line-height:1.7;color:#61695a}.empty>div{display:flex;gap:12px;margin-top:32px}.empty button{padding:14px 18px;border:1px solid #bfc5b9}.empty small{display:block;font-size:12px;color:var(--muted);margin-top:17px}.gesture-hint{position:absolute;bottom:23px;left:28px;font-size:10px;color:#7b8473;pointer-events:none}.statusbar{position:absolute;bottom:0;left:0;right:0;height:35px;background:#fff;border-top:1px solid var(--ink);display:flex;align-items:center;gap:25px;padding:0 24px;z-index:40;font-size:10px}.statusbar button{margin-left:auto;font:inherit}.statusbar i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#728064;margin-right:7px}.statusbar .error i{background:var(--accent)}.companion{position:absolute;z-index:30;width:350px;max-height:calc(100vh - 185px);bottom:57px;right:26px;background:white;border:1px solid var(--ink);box-shadow:5px 5px 0 #22291d12;overflow:auto;resize:horizontal;min-width:300px;max-width:600px;display:flex;flex-direction:column}.companion-head{display:flex;gap:10px;padding:13px 14px;align-items:center;border-bottom:1px solid var(--line);cursor:move;position:sticky;top:0;background:white;z-index:2}.context-mark{background:var(--ink);color:white;display:grid;place-items:center;width:30px;height:30px;font-size:19px}.companion-head>div{min-width:0;flex:1}.companion-head .eyebrow{display:block;font-size:9px;color:var(--muted);margin-bottom:4px}.companion-head strong{font-size:14px;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.companion-head button{padding:3px 8px;font-size:20px}#context-body{font-size:13px;padding:0 14px}#context-body:empty{padding:0}.context-summary{color:#646e5b;line-height:1.6;margin:12px 0}.context-meta{display:flex;gap:7px;margin:12px 0;color:var(--muted);font-size:11px}.chip{padding:3px 6px;border:1px solid var(--line);font-size:10px}.context-actions{display:flex;flex-wrap:wrap;gap:3px;margin:7px -5px}.context-actions button{font-size:12px;padding:6px 8px;border:1px solid var(--line)}details{margin:12px 0;color:#68715f}summary{cursor:pointer;font-size:12px}details label{font-size:12px}details input,details textarea,details select{padding:6px;font-size:12px}#chat-form{margin-top:auto;padding:11px 12px 9px;border-top:1px solid var(--line)}#message{border:0;background:#f4f5f2;padding:11px;font-size:14px;resize:vertical;min-height:65px}#message:focus{outline:1px solid #a6ada0}.composer-actions{display:flex;align-items:center;gap:8px;margin-top:5px}.composer-actions>span{font-size:10px;color:#7b8176;margin-left:auto}.composer-actions button{font-size:11px;padding:7px}.composer-actions .send{background:var(--accent);color:white;font-size:19px;width:34px;height:30px;line-height:10px}.suggestions{display:flex;flex-direction:column;gap:6px;padding:12px 0}.suggestions button{text-align:left;font-size:12px;color:#637257;border:1px solid #dce1d7}.answer-card{padding:15px 14px;border-top:1px solid var(--line);background:#f6f8f2}.answer-card .eyebrow{font-size:9px;color:#718262}.answer-text{font-size:14px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0}.answer-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.answer-actions button{padding:8px 10px;border:1px solid var(--line);font-size:12px}.answer-actions button.apply{background:var(--accent);border-color:var(--accent);color:white}.change-list{font-size:11px;padding-left:17px;line-height:1.8;color:#4e5a45}.source-links{display:flex;flex-wrap:wrap;gap:4px}.source-links button{font-size:10px;text-decoration:underline;padding:4px}.popover{position:absolute;z-index:60;background:#fff;border:1px solid var(--ink);box-shadow:6px 6px 0 #252c1e12;padding:15px;max-height:70vh;overflow:auto}.popover-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:12px}.popover-heading h2{font:normal 26px Georgia,serif;margin:0}.popover-heading button{padding:4px 7px}.workspace-menu{top:66px;left:300px;width:340px}.workspace-item{display:block;width:100%;text-align:left;padding:12px 5px;border-bottom:1px solid #e1e5dc}.workspace-item strong{display:block;font-size:15px;margin-bottom:5px}.workspace-item small{font-size:10px;color:var(--muted);display:block}.workspace-item.active{color:var(--accent)}.private-note{font-size:12px;color:var(--muted);line-height:1.6;padding-top:16px}.private-note a{display:block;text-decoration:underline}.add-menu{left:24px;top:115px;width:310px}.definition-options{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.definition-options button{border:1px solid var(--line);font-size:11px;padding:9px 2px}.definition-options button span{display:block;font:22px Georgia;margin-bottom:5px}.full{width:100%;padding:12px}.activity{bottom:38px;right:24px;width:420px;max-height:65vh}.event{border-bottom:1px solid var(--line);padding:12px 0}.event strong{display:block;font-size:13px;font-weight:500;margin-bottom:5px}.event small{display:block;font-size:10px;color:var(--muted);line-height:1.8;overflow-wrap:anywhere}dialog{padding:24px;border:1px solid var(--ink);width:min(480px,94vw);max-height:85vh;color:var(--ink)}dialog::backdrop{background:#252c2344}dialog p{font-size:14px;line-height:1.6;color:#60695a}#preview-dialog{width:min(850px,94vw)}#preview-content{overflow:auto;max-height:65vh}#preview-content img{max-width:100%;max-height:60vh}#preview-content pre{white-space:pre-wrap;font-size:13px;line-height:1.6}table{border-collapse:collapse;width:100%;font-size:12px}th,td{padding:10px 12px;text-align:left;border:1px solid #d6dccf;max-width:300px;overflow-wrap:anywhere}th{background:#edf1e6;position:sticky;top:0}#toast{position:absolute;bottom:48px;left:24px;max-width:480px;background:#292f23;color:white;padding:14px 18px;z-index:100;font-size:13px;line-height:1.5}#view-banner{position:absolute;top:20px;left:50%;transform:translateX(-50%);border:1px solid var(--accent);padding:7px 12px;background:#fff;font-size:12px;z-index:5;white-space:nowrap}#view-banner button{padding:3px 8px}.faded{opacity:.14}.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}.muted{color:var(--muted)}[hidden]{display:none!important}.busy #send-btn{opacity:.4;pointer-events:none}.connecting .node{cursor:crosshair}.connecting #connect-btn{background:var(--accent);color:white}.small-world .node-desc{visibility:hidden}.small-world .node-title{font-size:20px}.small-world .node-meta{font-size:12px}#retry-btn{font-size:11px;padding:0 7px;color:var(--accent);text-decoration:underline}@media(max-width:1050px){.edition{display:none}.top-actions button{display:none}.workspace-menu{left:170px}.toolbar-right span{display:none}.companion{width:325px}.empty h1{font-size:52px}.empty{left:5%;max-width:500px}}@media(max-width:700px){.topbar{height:60px;padding:0 14px;gap:10px}.brand{font-size:20px}.divider{display:none}.workspace-toggle{font-size:14px;gap:10px;padding:7px;max-width:210px}.top-actions{display:none}.toolbar{height:52px;padding:0 10px;gap:0;overflow:auto;white-space:nowrap}.toolbar button{padding:8px;font-size:12px}.toolbar-divider{margin:0 4px}.toolbar-right{margin-left:5px}.toolbar-right #fork-btn{font-size:11px}#canvas{top:112px}.statusbar{gap:12px;padding:0 12px}.statusbar #machine-state{display:none}.companion{right:12px;bottom:48px;max-height:45vh;width:calc(100vw - 24px);max-width:calc(100vw - 24px);min-width:0;resize:none}.canvas-caption{left:15px;top:14px}.gesture-hint{display:none}.workspace-menu{top:58px;left:12px;width:calc(100vw - 24px)}.add-menu{left:12px;width:calc(100vw - 24px);top:109px;max-height:70vh}.empty{top:12%;left:22px}.empty h1{font-size:40px}.empty p{font-size:14px}.empty>div{margin-top:18px;flex-direction:column;align-items:flex-start;gap:8px}.empty button{padding:10px}.activity{right:12px;width:calc(100vw - 24px)}#toast{left:12px;right:12px;bottom:45px}.toolbar #zoom-btn{display:none}}

/* QA: keep the composer available while long interpretations scroll independently. */
.companion{overflow:hidden}.companion-head{flex-shrink:0}#context-body{max-height:170px;overflow:auto;flex-shrink:1}#answer{max-height:280px;overflow:auto;flex-shrink:1}#chat-form{flex-shrink:0;background:white}.node{height:146px}.node-heading{height:62px}.node-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.node-meta{margin-top:9px}.node-desc{height:36px}
@media(max-width:700px){#context-body{max-height:85px}#answer{max-height:160px}.companion{max-height:50vh}}

.template-label{display:flex;gap:10px;align-items:center;font-size:13px}.template-label input{width:auto;margin:0}
