/* Progressive disclosure skin; Expert mode uses the original editor and document. */
.gb-documentbar{display:flex;align-items:center;gap:16px;padding:12px 18px;min-height:72px;flex:none;background:#fff;border-bottom:1px solid #dce5ef;color:#172b45;font:14px system-ui}.gb-documentbar>strong{font-size:19px}.gb-document-title{flex:1;min-width:120px}.gb-document-title #title{display:block;width:100%;border:0;background:transparent;color:#172b45;font:600 15px system-ui}.gb-document-title #saveState{font-size:11px;color:#63778b}.gb-document-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.gb-documentbar button,.gb-documentbar a{padding:9px 12px;border:1px solid #cad8e7;border-radius:7px;min-height:40px;background:#fff;color:#174576;text-decoration:none;font:600 12px system-ui;cursor:pointer}.gb-documentbar #save{background:#0876db;color:#fff;border-color:#0876db}.gb-documentbar .gb-text-button{border:0;font-size:11px}.app>.topbar{display:none!important}.gb-mobile-tabs{display:none}.gb-boundary{flex:none;background:#f7fafc;color:#65788b;border-top:1px solid #d9e4ee;padding:7px 16px;font:11px system-ui}.gb-left,.gb-right,.gb-canvas-tools{display:none}
.gb-guided{color:#1d334a;background:#f6f9fc}.gb-guided .app{background:#f6f9fc;min-height:680px!important}.gb-guided .body{padding:0!important;gap:0!important;grid-template-columns:260px minmax(280px,1fr) 320px!important;min-height:0;flex:1}.gb-guided .sidebar{background:#fff!important;border:0!important;border-radius:0!important;min-width:0;overflow:auto!important;color:#1c334d;box-shadow:none!important}.gb-guided .sidebar.left{border-right:1px solid #dbe5ef!important}.gb-guided .sidebar.right{border-left:1px solid #dbe5ef!important}.gb-guided .sidebar.left>:not(.gb-left),.gb-guided .sidebar.right>:not(.gb-right){display:none!important}.gb-guided .gb-left,.gb-guided .gb-right{display:block;padding:20px 16px;font:13px/1.5 system-ui}.gb-left h2,.gb-right h2{font-size:18px;font-weight:650;margin:0 0 12px;color:#1a334f}.gb-muted{font:11px/1.6 system-ui;color:#708297;margin:8px 0 14px}.gb-kicker{font:600 10px system-ui;letter-spacing:.12em;color:#758aa1}.gb-step{display:flex;width:100%;align-items:center;gap:12px;text-align:left;background:#fff;color:#223c57;border:1px solid transparent;border-radius:9px;padding:12px 10px;margin:8px 0;min-height:68px}.gb-step.gb-current{background:#eaf4ff;border-color:#bfdbf6}.gb-step .gb-number{display:grid;place-items:center;flex:none;width:27px;height:27px;border-radius:50%;background:#e8eff6;color:#50708e;font-size:12px}.gb-current .gb-number{background:#0876db;color:#fff}.gb-step strong,.gb-step small{display:block}.gb-step strong{font-size:12px}.gb-step small{font-size:10px;line-height:1.5;color:#73869a;margin-top:4px;overflow-wrap:anywhere}.gb-left>details{margin-top:25px}.gb-left>button{display:block;margin-top:14px}.gb-guided input,.gb-guided textarea,.gb-guided select,.gb-dialog input,.gb-dialog textarea,.gb-dialog select{background:#fff;color:#1e334b;border:1px solid #bfcfdf;border-radius:6px;padding:10px;font:13px/1.5 system-ui;max-width:100%;width:100%;box-sizing:border-box}.gb-field{display:block;color:#3a526c;font:500 11px/1.5 system-ui;margin:16px 0}.gb-field input,.gb-field textarea,.gb-field select{display:block;margin-top:6px}.gb-right input[type=search]{margin:3px 0 12px}.gb-suggestion{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #e7edf3}.gb-suggestion>div{flex:1;min-width:0}.gb-suggestion strong,.gb-suggestion small{display:block}.gb-suggestion strong{font-size:12px;color:#233c57;overflow-wrap:anywhere}.gb-suggestion small{font-size:10px;color:#7b8da1;margin-top:5px}.gb-suggestion button{width:32px;height:32px;border:1px solid #bfd8ef;background:#f5faff;color:#0876db;border-radius:6px;flex:none;font-size:19px}.gb-guided details{color:#294662;font-size:12px;border:0}.gb-guided summary{cursor:pointer;padding:10px 0;font-weight:600}.gb-details,.gb-checks{margin-top:22px;border-top:1px solid #dce6ef!important;padding-top:8px}.gb-check{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #e1e9f0;font:12px/1.6 system-ui;color:#405873}.gb-check>span{flex:1}.gb-primary{background:#0876db!important;color:#fff!important;border:1px solid #0876db!important;border-radius:6px;padding:10px 13px;font:600 12px system-ui}.gb-text-button{background:transparent!important;border:0!important;color:#0876db!important;font:500 11px system-ui;padding:7px 0;cursor:pointer}.gb-step-actions{display:flex;justify-content:space-between;gap:12px;margin-top:20px}.gb-step-actions button,.gb-custom button{min-height:38px;padding:8px 10px;border-radius:6px;border:1px solid #bfd0e2;background:#f5f9fd;color:#2b4b6e;font:12px system-ui}.gb-custom input{margin-bottom:8px}.gb-guided .center{background:#fbfdff!important;border:0;border-radius:0;min-width:0;overflow:hidden}.gb-guided .dots{opacity:.2}.gb-guided .workspace-commandbar,.gb-guided .mobile-canvas-nav,.gb-guided .mobile-tool-sheet,.gb-guided .canvashead,.gb-guided .lab-controls,.gb-guided .ide-menubar,.gb-guided .actionbar,.gb-guided #pathView,.gb-guided #wizardPanel{display:none!important}.gb-guided .gb-canvas-tools{display:flex;position:absolute;z-index:60;top:8px;left:12px;right:12px;gap:7px;align-items:center;padding:8px;background:#fff;border:1px solid #dce6ee;border-radius:8px}.gb-canvas-tools button{font:12px system-ui;color:#315275;border:1px solid #cfddea;background:#fff;min-height:36px;border-radius:6px;padding:7px 12px}.gb-mode{margin-left:auto;color:#0876db;background:#eaf4ff;padding:7px 10px;border-radius:6px;font-size:11px}.gb-guided .empty{color:#223d5c}.gb-guided .empty h1{font:600 28px/1.2 system-ui!important;color:#1e3958}.gb-guided .empty p,.gb-guided .empty small{color:#6f849a}.gb-guided .empty .eyebrow,.gb-guided .empty .empty-orb,.gb-guided .empty>button,.gb-guided .empty>small{display:none!important}.gb-guided .pnode>svg,.gb-guided .authorbadge{display:none}.gb-guided .pnode{background:transparent!important}.gb-guided .nodecontent{top:40px;left:0;width:230px;height:120px;background:#fff;border:1.5px solid #a7bfd7;box-shadow:0 3px 10px #244e7310;border-radius:10px;padding:17px 12px;display:flex;flex-direction:column;justify-content:center}.gb-guided .selected .nodecontent{border-color:#0876db;box-shadow:0 0 0 3px #0876db19}.gb-guided .nodekind{color:#6f839b;font:10px system-ui}.gb-guided .nodename{color:#243d59;font:600 14px/1.35 system-ui;margin:8px 0}.gb-guided .nodeid{color:#8a9bb0;font-size:8px}.gb-guided .port{border-color:#3f86bb;background:#ecf6ff}.gb-guided .edge-label{fill:#3c5772;paint-order:stroke;stroke:#fbfdff;stroke-width:4px;font:10px system-ui}.gb-guided .zoomtools{background:#fff;border-color:#c8d8e8;color:#2c4e71}.gb-guided .zoomtools button{color:#2c4e71}.gb-guided .canvasfoot{color:#71869d}.gb-guided .canvasfoot>span:first-child{display:none}.gb-dialog{width:min(680px,calc(100vw - 30px));max-height:85dvh;overflow:auto;border:1px solid #bfd2e6;border-radius:12px;padding:26px;background:#fff;color:#1d3652;font:14px/1.6 system-ui;box-shadow:0 20px 80px #0004}.gb-dialog::backdrop{background:#07172899}.gb-dialog h2{margin-top:0;font-size:23px}.gb-dialog>button{margin:14px 8px 0 0;padding:10px 13px;min-height:40px;border:1px solid #c1d2e3;border-radius:6px;background:#f6fafe;color:#2b4e75}.gb-dialog label{display:block;margin:14px 0}.gb-dialog form>button{margin-top:12px}.gb-review-list{max-height:35vh;overflow:auto;margin:16px 0}button:disabled{cursor:not-allowed;opacity:.5}
@media(max-width:1280px) and (min-width:1101px){.gb-guided .body{grid-template-columns:220px minmax(250px,1fr) 290px!important}.gb-documentbar{gap:10px}.gb-document-actions{gap:4px}.gb-document-actions button,.gb-document-actions a{padding:8px;font-size:11px}}
@media(max-width:1100px){.gb-documentbar{display:grid;grid-template-columns:1fr auto;gap:8px;padding:10px 12px}.gb-documentbar>strong{display:none}.gb-document-actions{justify-content:flex-end;gap:5px}.gb-document-actions #gbExpert{display:none}.gb-document-actions button,.gb-document-actions a{font-size:10px;padding:7px;min-height:36px}.gb-document-title #title{font-size:13px}.gb-guided .gb-mobile-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:5px 8px;background:#fff;border-bottom:1px solid #d8e4f0;flex:none}.gb-mobile-tabs button{background:#f3f7fb;color:#385775;border:1px solid #cfdeeb;border-radius:5px;min-height:38px;font:12px system-ui}.gb-mobile-tabs button[aria-pressed=true]{background:#e2f0ff;color:#0876db;border-color:#9ac4ec}.gb-guided .app{min-height:620px!important}.gb-guided .body{grid-template-columns:minmax(0,1fr)!important}.gb-guided .body>.left,.gb-guided .body>.right{display:none!important;position:absolute!important;top:124px!important;bottom:30px!important;width:min(370px,calc(100% - 16px));max-width:calc(100% - 16px);z-index:110;border:1px solid #ccdceb!important;border-radius:10px!important;overflow:auto!important}.gb-guided.gb-show-model .body>.left{display:flex!important;left:8px;right:auto}.gb-guided.gb-show-next .body>.right{display:flex!important;right:8px;left:auto}.gb-guided .gb-left,.gb-guided .gb-right{width:100%}.gb-guided .gb-canvas-tools{left:7px;right:7px;gap:4px;padding:6px}.gb-canvas-tools button{padding:6px 8px;font-size:11px}.gb-mode{font-size:10px;padding:6px}.gb-guided .empty{max-width:280px;top:50%}.gb-guided .empty h1{font-size:24px!important}.gb-field input,.gb-field textarea,.gb-field select{font-size:16px}.gb-expert .gb-documentbar{display:flex;flex-wrap:wrap}.gb-expert .gb-document-actions #gbExpert{display:block}.gb-boundary{font-size:9px}}
@media(max-width:420px){.gb-documentbar{grid-template-columns:1fr}.gb-document-title{display:flex;align-items:center;gap:8px}.gb-document-title #saveState{display:none}.gb-document-actions{justify-content:space-between}.gb-guided .body>.left,.gb-guided .body>.right{top:140px!important}.gb-canvas-tools button{padding:5px 7px}.gb-mode{display:none}}

.gb-step{flex-direction:row!important;align-items:center!important}.gb-step>span:last-child{flex:1;min-width:0}.gb-guided .canvasfoot{background:#f4f8fc!important}

.gb-documentbar #viewKnowledgeMap{display:inline-flex!important;align-items:center}@media(max-width:1100px){.gb-guided .body>.left,.gb-guided .body>.right{top:var(--gb-panel-top,150px)!important}}

/* Research model controls and next-step panels, aligned with the approved layout. */
.gb-guided .gb-left,.gb-guided .gb-right{padding:24px 20px;font-size:14px;box-sizing:border-box}.gb-step{position:relative;gap:12px;padding:14px 8px;min-height:92px;margin:0;border:0;align-items:center!important}.gb-step:not(:nth-of-type(6))::after{content:"";position:absolute;left:21px;top:64px;bottom:-15px;width:1px;background:#cfdae7;z-index:0}.gb-step .gb-number{position:relative;z-index:1;width:28px;height:28px;border:0;padding:0;cursor:pointer}.gb-complete .gb-number{background:#27b58c;color:white}.gb-step-icon{font-size:28px;color:#0876db;width:30px;flex:none;text-align:center}.gb-step-copy{flex:1;min-width:0}.gb-step-title{display:block;padding:0 0 7px;background:none;border:0;color:#172d4b;font:600 13px system-ui;text-align:left;cursor:pointer}.gb-step select{padding:7px 9px;min-height:36px;font-size:12px;background:#fff}.gb-current{background:#e6f2ff!important}.gb-stage-caption{color:#71849c;font-size:12px;margin:-7px 0 22px}.gb-right h3{font:600 15px/1.5 system-ui;color:#172d4b;margin:0 0 12px}.gb-right input[type=search]{min-height:44px;border-color:#4d9bff;padding:10px 12px}.gb-suggestion{padding:14px 10px;border:1px solid #e0e8f1;margin-top:-1px;background:white}.gb-suggestion:first-child{border-radius:8px 8px 0 0}.gb-suggestion strong{font-size:13px}.gb-suggestion small{font-size:11px}.gb-left>details{border:1px dashed #bbd0e5!important;border-radius:7px;padding:6px 12px;background:#f8fbff}.gb-checks{padding-top:14px;margin-top:26px}.gb-check{font-size:12px;gap:8px}.gb-check .gb-check-badge{flex:0 0 22px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#f3ba48;color:white;font-weight:bold}.gb-fix-button{flex:none;max-width:112px;min-height:34px;padding:6px 8px;border:1px solid #bdd9f4;border-radius:5px;background:white;color:#0969c7;font:11px system-ui;cursor:pointer}.gb-details{margin-top:24px}.gb-step-actions{margin-top:14px}.gb-guided .body{grid-template-columns:300px minmax(280px,1fr) 360px!important}@media(min-width:1101px) and (max-width:1350px){.gb-guided .body{grid-template-columns:260px minmax(250px,1fr) 310px!important}.gb-guided .gb-left,.gb-guided .gb-right{padding:18px 12px}.gb-step-icon{width:22px;font-size:23px}.gb-step{gap:8px}}@media(max-width:1100px){.gb-guided .body{grid-template-columns:minmax(0,1fr)!important}.gb-guided .body>.left,.gb-guided .body>.right{width:min(390px,calc(100% - 16px))}.gb-step select{font-size:16px}.gb-step{min-height:88px}.gb-guided .gb-left,.gb-guided .gb-right{padding:20px 16px}}
.gb-picker-list{max-height:45dvh;overflow:auto;border:1px solid #cedce9;border-radius:7px;margin:14px 0}.gb-picker-list label{display:flex;align-items:center;gap:12px;padding:10px 14px;margin:0;border-bottom:1px solid #e5edf4;cursor:pointer}.gb-picker-list input[type=checkbox]{width:18px;flex:none}.gb-confirm{max-width:440px}.gb-dark.gb-guided .app,.gb-dark.gb-guided .body,.gb-dark.gb-guided .center{background:#0d1929!important}.gb-dark.gb-guided .sidebar,.gb-dark .gb-documentbar,.gb-dark .gb-canvas-tools,.gb-dark .gb-boundary{background:#142339!important;color:#e3edf8;border-color:#324861!important}.gb-dark .gb-left h2,.gb-dark .gb-right h2,.gb-dark .gb-right h3,.gb-dark .gb-step-title,.gb-dark .gb-suggestion strong{color:#e3edf8}.gb-dark .gb-step,.gb-dark .gb-suggestion,.gb-dark.gb-guided input,.gb-dark.gb-guided textarea,.gb-dark.gb-guided select,.gb-dark .gb-documentbar button,.gb-dark .gb-documentbar a,.gb-dark .gb-canvas-tools button{background:#1b304b!important;color:#e3edf8!important;border-color:#3d5876!important}.gb-dark .gb-current{background:#203f63!important}.gb-dark .gb-muted,.gb-dark .gb-stage-caption{color:#b2c4d9}.gb-dark.gb-guided .nodecontent{background:#1b304b!important;border-color:#70a2d1}.gb-dark.gb-guided .nodename,.gb-dark .gb-document-title #title{color:#e3edf8}.gb-dark.gb-guided .edge-label{fill:#d7e9ff;stroke:#0d1929}.gb-dark .gb-check,.gb-dark details{color:#d1e0f2}.gb-dark .gb-left>details{background:#1b304b}.gb-dark .gb-dialog{background:#142339;color:#e3edf8}.gb-dark .gb-picker-list label{border-color:#3d5876}.gb-dark .gb-dialog input,.gb-dark .gb-dialog textarea,.gb-dark .gb-dialog select{background:#1b304b;color:#e3edf8}.gb-canvas-tools{flex-wrap:wrap}.gb-dark .gb-guided .canvasfoot{background:#142339!important}

/* Review rows keep their action column inside the scrollport at every width. */
.gb-dialog{box-sizing:border-box;max-width:calc(100vw - 24px)}
.gb-review-dialog{width:min(1000px,calc(100vw - 24px));max-height:92dvh;padding:clamp(16px,3vw,30px)}
.gb-review-dialog .gb-review-list{max-height:48dvh;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;padding-right:12px;box-sizing:border-box}
.gb-review-dialog .gb-check{display:grid;grid-template-columns:minmax(0,1fr) 70px;gap:18px;align-items:center;padding:14px 4px;box-sizing:border-box;width:100%}
.gb-review-dialog .gb-check>span{min-width:0;overflow-wrap:anywhere}
.gb-review-dialog .gb-fix-button{display:block;min-width:64px;min-height:40px;max-width:100%;margin:0;padding:8px;background:#eff7ff;color:#0861b6;border:1px solid #9fc4e5}
.gb-review-dialog textarea{width:100%;box-sizing:border-box}
@media(max-width:550px){.gb-review-dialog .gb-check{gap:10px;grid-template-columns:minmax(0,1fr) 60px}.gb-review-dialog .gb-review-list{padding-right:6px}.gb-review-dialog .gb-fix-button{min-width:56px}.gb-review-dialog>button{margin:8px 4px 0 0;padding:8px}}
/* Compact visual rhythm over the same original model, controls and document. */
.gb-documentbar{padding:10px 18px;min-height:66px;gap:12px}.gb-documentbar>strong{font-size:17px}.gb-document-title #title{font-size:14px}.gb-document-actions{gap:6px}.gb-guided .gb-left,.gb-guided .gb-right{padding:17px 14px}.gb-left h2,.gb-right h2{font-size:16px}.gb-right h3{font-size:14px;line-height:1.5}.gb-guided .gb-step{margin:5px 0;padding:9px 8px;min-height:64px;border-radius:7px}.gb-guided .gb-canvas-tools{box-shadow:none}.gb-guided .body{grid-template-columns:248px minmax(280px,1fr) 296px!important}.gb-document-actions #gbNarrativeJump{color:#176aa3;font-size:11px}.gb-documentbar a:focus-visible,.gb-mobile-tabs button:focus-visible{outline:3px solid #449ed5;outline-offset:2px}
@media(max-width:1280px) and (min-width:1101px){.gb-guided .body{grid-template-columns:220px minmax(250px,1fr) 276px!important}}
@media(max-width:1100px){.gb-guided .body{grid-template-columns:minmax(0,1fr)!important}.gb-guided .gb-mobile-tabs{grid-template-columns:repeat(4,minmax(0,1fr));padding:6px 8px;gap:4px}.gb-mobile-tabs button{min-height:44px;font-size:11px}.gb-guided .gb-documentbar{display:flex;flex-wrap:wrap;gap:6px;padding:9px 10px}.gb-document-title{flex:1 1 100%}.gb-document-title #title{font-size:16px!important}.gb-document-actions{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;width:100%;gap:6px;padding-bottom:2px}.gb-document-actions>*{flex:0 0 auto;min-height:40px!important}.gb-document-actions #gbNarrativeJump{display:none}.gb-guided .body>.left,.gb-guided .body>.right{top:var(--gb-panel-top,165px)!important;bottom:30px!important}.gb-guided .gb-check .gb-fix-button{min-height:44px;min-width:60px}.gb-guided .gb-field input,.gb-guided .gb-field textarea{font-size:16px}.gb-guided.gb-show-hypothesis .app{height:auto!important;min-height:0!important}.gb-guided.gb-show-hypothesis .app>.body,.gb-guided.gb-show-hypothesis .gb-boundary{display:none!important}.gb-guided .app{scroll-margin-top:72px}.gb-guided.gb-show-hypothesis .hypothesis-live-panel{padding:20px 14px}.gb-guided.gb-show-hypothesis .hypothesis-live-panel h2{font-size:21px}.gb-guided.gb-show-hypothesis .hypothesis-live-panel>p{font-size:12px}.gb-guided.gb-show-hypothesis .hypothesis-live-panel pre{font-size:13px;line-height:1.75;max-height:55dvh;padding:14px}.gb-guided.gb-show-hypothesis .narrative-actions{position:sticky;bottom:0;background:#f5f9fd;padding:10px 0;z-index:5;border-top:1px solid #d5e2ef}.gb-guided.gb-show-hypothesis .narrative-actions button{min-height:44px;padding:9px 12px}.gb-dark.gb-show-hypothesis .narrative-actions{background:#142339}}
@media(min-width:1101px){.gb-guided .body{grid-template-columns:280px minmax(280px,1fr) 300px!important}.gb-guided .gb-step{gap:8px}.gb-guided .gb-step-icon{width:22px;font-size:22px}.gb-guided .gb-step select{font-size:12px;padding:7px}.gb-guided .gb-step-title{font-size:12px}}
@media(max-width:1100px){.gb-guided .gb-document-title{display:block!important;width:100%;min-width:0}.gb-guided .gb-document-title #title{width:100%;max-width:100%;box-sizing:border-box}.gb-guided #firebase-save-state{display:block;font-size:10px;margin-top:4px}.gb-guided .gb-document-actions #save{order:-1;position:sticky;left:0;z-index:1;background:#0876db}.gb-guided .gb-document-actions{scroll-padding-left:84px}}

/* Canvas-first Guided layout. Existing seven-field hypothesis editor is unchanged. */
@media(min-width:1101px){
 .gb-guided .body{grid-template-columns:280px minmax(0,1fr)!important}
 .gb-guided .body>.sidebar.right{display:none!important}
 .gb-guided .sidebar.left>.gb-right{display:block!important;border-top:1px solid #3d587640}
 .gb-guided .gb-step{min-height:54px;padding:7px 6px}
 .gb-guided .gb-step::after{display:none}
}
@media(max-width:1100px){
 .gb-guided.gb-show-next .body>.left{display:flex!important;left:8px;right:auto}
 .gb-guided.gb-show-next .body>.right{display:none!important}
 .gb-guided.gb-show-next .sidebar.left>.gb-left{display:none!important}
 .gb-guided.gb-show-next .sidebar.left>.gb-right{display:block!important}
 .gb-guided.gb-show-model .sidebar.left>.gb-right{display:none!important}
 .gb-document-actions #gbExpert{display:inline-flex!important}
}
#gbArrowHandles{z-index:12;pointer-events:none}
.gb-arrow-handle{fill:#0c263d;stroke:#36dbea;stroke-width:2.5;pointer-events:all;cursor:crosshair;opacity:.9}
.gb-arrow-handle:hover,.gb-arrow-handle:focus{fill:#36dbea;stroke:#fff;outline:none}
.gb-arrow-preview{fill:none;stroke:#36dbea;stroke-width:2;stroke-dasharray:7 5;pointer-events:none}
.gb-arrow-status{position:absolute;z-index:65;top:106px;left:14px;right:14px;background:#12334b;color:#fff;border:1px solid #36dbea;border-radius:7px;padding:10px;font:12px system-ui;pointer-events:none}

.gb-guided #gbModel>#gbNext{padding:12px 8px 18px;border-bottom:1px solid #45617c40}
.gb-guided #gbNext>h2,.gb-guided #gbNext>.gb-stage-caption{display:none}
.gb-arrow-handle{fill:transparent}
@media(max-width:1100px){.gb-guided.gb-show-next .sidebar.left>.gb-left{display:block!important}.gb-guided.gb-show-next #gbModel>:not(#gbNext){display:none!important}.gb-guided.gb-show-model #gbNext{display:none!important}}
/* Approved canvas-first visual system: Guided shares the original document and tools. */
.gb-guided{--bg:#07121e;--panel:#0b1928;--border:#284357;--ink:#eef5fc;--muted:#9aafc4;--cyan:#35dce7;background:var(--bg);color:var(--ink)}
.gb-guided>.app{height:calc(100dvh - 54px)!important;min-height:700px!important;background:var(--bg)!important;display:flex;flex-direction:column}
.gb-guided .gb-documentbar{background:var(--bg)!important;color:var(--ink);height:54px;min-height:54px;box-sizing:border-box;padding:8px 24px;gap:16px;border-bottom:1px solid var(--border)}
.gb-guided .gb-documentbar>strong{display:none}.gb-guided .gb-document-title{display:flex;align-items:center;gap:20px;min-width:0}.gb-guided .gb-document-title #title{background:none!important;border:0!important;padding:0;font:600 18px system-ui;width:min(540px,100%);color:var(--ink)}
.gb-guided .gb-document-title #saveState{white-space:nowrap;color:var(--muted);font-size:11px}.gb-guided .gb-document-actions{flex:none;overflow:visible}.gb-guided .gb-document-actions>*{display:none!important}.gb-guided .gb-document-actions #viewKnowledgeMap{display:inline-flex!important;background:none!important;border:1px solid #7f9aaf!important;color:var(--ink)!important;border-radius:6px;min-height:32px;padding:6px 14px}
.gb-guided .body{display:grid!important;grid-template-columns:290px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) auto!important;gap:0 12px!important;padding:12px 12px 12px 0!important;flex:1;min-height:0}
.gb-guided .body>.sidebar.left{grid-column:1;grid-row:1/3;background:var(--bg)!important;border-right:1px solid var(--border)!important;overflow:auto!important;display:block!important}
.gb-guided .body>.sidebar.right{display:none!important}.gb-guided .gb-left{padding:6px 16px!important}.gb-guided .gb-left h2{font:650 18px system-ui;margin:0 0 6px;color:var(--ink)}.gb-guided .gb-left>.gb-muted{font-size:12px;margin:0 0 20px;line-height:1.5;color:var(--muted)}
.gb-guided .gb-step{display:block;padding:0!important;min-height:0!important;margin:8px 0!important;border:1px solid var(--border)!important;border-radius:8px;background:#0b1928!important;overflow:hidden}
.gb-guided .gb-step::after{display:none!important}.gb-guided .gb-current{border-color:var(--cyan)!important;background:#10313d!important}
.gb-stage-open{display:flex;align-items:center;gap:10px;width:100%;min-height:62px;text-align:left;border:0;background:none;color:inherit;padding:10px;font-family:system-ui;cursor:pointer}.gb-guided .gb-step .gb-number{width:24px;height:26px;border-radius:5px;background:#263e4e!important;color:#dce9f4!important;font-size:12px;display:grid;place-items:center}.gb-guided .gb-current .gb-number{background:#187180!important;color:white!important}.gb-guided .gb-step-icon{font-size:23px;width:24px;color:#9fbcd0}.gb-guided .gb-current .gb-step-icon{color:var(--cyan)}
.gb-guided .gb-step-copy strong{font-size:12px;line-height:1.35;color:var(--ink)}.gb-guided .gb-step-copy small{font-size:10px;line-height:1.4;color:var(--muted);margin-top:3px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:170px}.gb-step-done{margin-left:auto;color:#5cebd2;font-weight:700}
.gb-guided #gbModel>#gbNext{padding:9px 10px 12px;background:#0e2634;border:1px solid #287d89;border-top:0;border-radius:0 0 8px 8px;margin-top:-10px;margin-bottom:12px}.gb-guided #gbNext>h3{display:none}.gb-guided #gbNext input[type=search]{height:34px;min-height:34px;padding:7px 10px;background:#122d3d!important;border-color:#426271!important;font-size:12px;margin:4px 0 8px}.gb-guided .gb-suggestion{padding:7px 5px;background:none!important;border:0;border-bottom:1px solid #284551!important;gap:6px}.gb-guided .gb-suggestion strong{font-size:11px;color:var(--ink)}.gb-guided .gb-suggestion small{display:none}.gb-guided .gb-suggestion button{width:25px;height:25px;border:0;background:none;color:var(--cyan)}.gb-guided #gbNext>div>.gb-muted{display:none}.gb-guided #gbNext>.gb-muted{font-size:10px;margin:6px 0}.gb-guided #gbNext summary{font-size:11px;padding:7px 0}.gb-guided .gb-step-actions{margin-top:6px}.gb-guided .gb-step-actions button{min-height:30px;padding:5px 10px;background:transparent;color:var(--ink);border-color:#426271}.gb-guided .gb-step-actions .gb-primary{background:var(--cyan)!important;color:#05202a!important;border:0!important}.gb-guided .gb-details,.gb-guided .gb-checks{margin-top:7px;padding-top:3px;border-top-color:#426271!important}.gb-guided .gb-field{margin:10px 0;color:var(--muted)}
.gb-progress{padding:18px 6px 12px}.gb-progress small{font-size:12px;color:#b7c9d9}.gb-progress progress{display:block;width:100%;height:7px;margin-top:12px;border:0;border-radius:8px;overflow:hidden;accent-color:#35dce7}.gb-progress progress::-webkit-progress-bar{background:#243b4d}.gb-progress progress::-webkit-progress-value{background:#35dce7}
.gb-guided .gb-left>.gb-more{margin:14px 0 0;border:1px solid var(--border)!important;background:#0b1928!important;padding:5px 12px}.gb-more button{display:block}
.gb-guided .center{grid-column:2;grid-row:1;background:#081725!important;border:1px solid var(--border)!important;border-radius:9px;overflow:hidden;min-height:300px}.gb-guided .dots{opacity:.45!important;background-image:radial-gradient(#44647e 1px,transparent 1px)!important}.gb-guided .gb-canvas-tools{top:0;left:0;right:0;border:0;border-bottom:1px solid var(--border);border-radius:0;background:#0b1928!important;padding:10px 12px;gap:7px;min-height:48px;box-sizing:border-box}.gb-canvas-tools>strong{font-size:15px;color:var(--ink);margin-right:12px}.gb-tool-spacer{flex:1}.gb-guided .gb-canvas-tools button{min-height:28px;padding:5px 10px;font-size:11px;background:#112436!important;color:#e5eef7!important;border-color:#38556c!important;border-radius:5px}.gb-guided .gb-canvas-tools .gb-selected-mode{background:var(--cyan)!important;color:#03232c!important;font-weight:700;border-color:var(--cyan)!important}
.gb-guided .pnode{filter:none!important;border:0!important;background:none!important;box-shadow:none!important}.gb-guided .pnode::before,.gb-guided .pnode::after{display:none!important}.gb-guided .nodecontent{top:65px!important;left:0!important;right:auto!important;width:230px!important;height:74px!important;padding:13px 22px!important;background:#172335!important;border:1.5px solid #ac8cc9!important;border-radius:10px!important;box-shadow:none!important;display:flex;flex-direction:column-reverse;align-items:center;justify-content:center;gap:5px}.gb-guided .nodekind{font:9px system-ui;color:#c4b4dc;letter-spacing:.06em}.gb-guided .nodename{font:600 14px/1.2 system-ui;color:#f3edf9;margin:0}.gb-guided .nodeid,.gb-guided .authorbadge,.gb-guided .ide-nested-mark{display:none!important}.gb-guided .selected .nodecontent{border-color:var(--cyan)!important;box-shadow:0 0 0 2px #35dce720!important}.gb-guided .port{background:#143442;border-color:#63d8e0;box-shadow:none;width:14px;height:14px;top:94px;opacity:.3}.gb-guided .pnode:hover .port{opacity:1}.gb-guided .edge-label{fill:#cfdfeb;stroke:#081725;stroke-width:5px;font:italic 11px system-ui}.gb-guided .zoomtools{background:#112436!important;border-color:#38556c!important;color:#e5eef7;bottom:12px;right:12px;border-radius:6px}.gb-guided .zoomtools button{color:#e5eef7}.gb-guided .canvasfooter{background:none!important;bottom:14px;color:#8da9be;font-size:10px}.gb-guided .canvasfooter>span:not(:last-child){display:none}
.gb-live-strip{grid-column:2;grid-row:2;display:flex;align-items:center;gap:12px;margin-top:12px;border:1px solid var(--border);border-radius:8px;background:#0b1928;padding:12px 15px;min-width:0;font:12px system-ui}.gb-live-strip strong{font-size:14px;white-space:nowrap}.gb-draft-badge{font-size:10px;color:#c8bcdf;background:#302b44;border-radius:5px;padding:4px 7px}.gb-live-summary{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;border:1px solid #38556c;background:#132638;border-radius:6px;padding:8px 12px;color:#c5d5e2}.gb-live-strip a{color:#d5e5f2;border:1px solid #7c97ac;border-radius:5px;padding:7px 10px;white-space:nowrap;text-decoration:none}.gb-expert .gb-live-strip,.gb-expert .gb-footer{display:none}
.gb-footer{display:flex;align-items:center;gap:10px;min-height:65px;box-sizing:border-box;padding:12px 24px;border-top:1px solid var(--border);background:#091624;flex:none;font:12px system-ui}.gb-footer-state{margin-right:auto;font-size:11px;color:#82dfd3}.gb-footer button{border:1px solid #38556c;background:#112436;color:#e5eef7;border-radius:6px;min-height:34px;padding:7px 16px;font:12px system-ui;cursor:pointer}.gb-test-caption{font-size:10px;color:#9bb2c5;margin-left:16px}.gb-footer .gb-test{background:var(--cyan);color:#03232c;border:0;padding:9px 26px;font-size:16px;font-weight:700}.gb-test::after{content:'Free';font:10px system-ui;margin-left:12px;background:#087a86;color:#fff;border-radius:4px;padding:3px 6px}.gb-guided .gb-boundary{display:none}.gb-guided .gb-mobile-tabs{background:var(--bg)}
@media(max-width:1100px){.gb-guided .gb-documentbar{height:auto;min-height:60px;padding:8px 12px;display:flex!important;flex-wrap:wrap}.gb-guided .gb-document-title{flex:1!important;width:auto!important}.gb-guided .gb-document-title #title{font-size:14px}.gb-guided .gb-document-title #saveState{display:none}.gb-guided .gb-document-actions #viewKnowledgeMap{font-size:10px;padding:5px 8px}.gb-guided .body{grid-template-columns:minmax(0,1fr)!important;padding:8px!important;gap:0!important}.gb-guided .center,.gb-live-strip{grid-column:1}.gb-guided .body>.sidebar.left{display:none!important;width:min(340px,calc(100% - 16px));background:#07121e!important;bottom:70px!important}.gb-guided.gb-show-model .body>.sidebar.left,.gb-guided.gb-show-next .body>.sidebar.left{display:block!important}.gb-guided .gb-canvas-tools{gap:5px;padding:7px;min-height:45px}.gb-canvas-tools>strong{display:none}.gb-tool-spacer{display:none}.gb-guided .gb-canvas-tools button{padding:5px 7px;font-size:10px}.gb-live-strip{padding:8px;gap:8px}.gb-live-strip strong{font-size:11px}.gb-live-strip .gb-draft-badge{display:none}.gb-live-strip a{font-size:10px;padding:5px}.gb-live-summary{padding:6px;font-size:11px}.gb-footer{padding:8px;gap:6px;min-height:54px;flex-wrap:wrap}.gb-footer button{padding:6px 10px;font-size:11px}.gb-footer-state,.gb-test-caption{display:none}.gb-footer .gb-test{margin-left:auto;padding:6px 14px;font-size:13px}.gb-guided .gb-mobile-tabs button{background:#112436;color:#bcd0df;border-color:#38556c}.gb-guided .gb-mobile-tabs button[aria-pressed=true]{background:#35dce7;color:#03232c}.gb-guided>.app{min-height:730px!important}.gb-guided .gb-live-strip{min-height:46px;box-sizing:border-box}
}
@media(prefers-reduced-motion:reduce){.gb-guided *{scroll-behavior:auto!important}}
.gb-guided .pnode[data-kind=pathway] .nodecontent,.gb-guided .pnode[data-kind=protein] .nodecontent,.gb-guided .pnode[data-kind=gene] .nodecontent{background:#10353d!important;border-color:#35dce7!important}.gb-guided .pnode[data-kind=drug] .nodecontent{background:#152d40!important;border-color:#7bbfee!important}
.gb-guided .canvasfooter{left:14px;right:190px;justify-content:flex-start;pointer-events:none}.gb-guided .zoomtools{z-index:30}.gb-guided .gb-step-copy small{max-width:150px}
@media(max-width:1100px){.gb-guided .gb-live-strip{min-width:0}.gb-guided .canvasfooter{right:150px;font-size:9px}}
/* Shared site chrome is owned by site-shell.css in both workspaces. */
.gb-guided>.app{height:calc(100dvh - 72px)!important}.gb-guided .gb-document-actions #gbExpert{display:inline-flex!important;background:#112436!important;color:#e5eef7!important;border:1px solid #38556c!important;padding:7px 12px;border-radius:6px}.gb-guided .gb-document-title #firebase-save-state{max-width:220px;white-space:normal}
.gb-pro .body{grid-template-columns:230px minmax(350px,1fr) 285px!important}.gb-pro .body>.sidebar.right{display:block!important;grid-column:3;grid-row:1/3;background:#0b1928!important;border:1px solid #284357!important;border-radius:8px;overflow:auto!important}.gb-pro .sidebar.right>:not(.pro-review){display:none!important}.gb-pro .sidebar.left>.gb-left{display:none!important}.gb-pro .sidebar.left>.toolbox,.gb-pro .sidebar.left>.searchwrap,.gb-pro .sidebar.left>.library{display:block!important}.gb-pro .sidebar.left>.toolbox{margin:10px;padding:12px;border:1px solid #284357;border-radius:8px;background:#0b1928}.gb-pro .library{max-height:350px;overflow:auto}.gb-pro .gb-selected-mode{background:#112436!important;color:#e5eef7!important}.pro-review{padding:18px 14px;font:12px/1.6 system-ui;color:#d7e5f0}.pro-review h2{font-size:19px;margin:0}.pro-review h3{font-size:13px;margin-top:20px}.pro-review>strong{display:block;color:#ffc975;border-bottom:1px solid #38556c;padding:12px 0}.pro-issue{padding:12px;margin:10px 0;border:1px solid #8f7550;border-radius:7px;background:#2b291f}.pro-issue.pro-error{border-color:#a35e6e;background:#2d202c}.pro-issue small{font-size:9px;overflow-wrap:anywhere;color:#ffd095}.pro-issue p{margin:6px 0}.pro-review button{background:#112436;color:#d7e5f0;border:1px solid #38556c;border-radius:5px;padding:7px 10px;cursor:pointer}.pro-helpers{display:flex;flex-wrap:wrap;gap:6px;margin:18px 0}.pro-review>button:disabled{cursor:not-allowed;opacity:.55}.gb-guided .authorbadge{display:block!important;top:47px;right:8px;width:26px;height:26px;z-index:15}.gb-guided .authorbadge img{width:26px;height:26px;border-radius:50%;object-fit:cover}.gb-guided .authorbadge span{display:grid;place-items:center;width:26px;height:26px;background:#214556;color:#b8fbff;border-radius:50%;font-size:11px}
.collab-identity{display:flex;align-items:center;gap:7px;font:11px system-ui;color:#c5d9e8}.collab-identity img,.collab-member img{height:28px;width:28px;object-fit:cover;border-radius:50%}.collab-identity button{background:#112436;color:#d7e5f0;border:1px solid #38556c;padding:6px 10px;border-radius:6px}.gb-guided .gb-document-actions>.collab-identity{display:flex!important}.collab-member{display:flex;align-items:center;gap:10px;padding:8px;border-bottom:1px solid #38556c}.collab-member small{color:#9cb7cc}.gb-pro .pro-review[hidden]{display:none!important}
@media(max-width:1250px) and (min-width:1101px){.gb-pro .body{grid-template-columns:200px minmax(300px,1fr) 260px!important}.gb-documentbar{flex-wrap:wrap!important;height:auto!important;min-height:62px!important}.gb-pro .gb-canvas-tools>strong{display:none}}
@media(max-width:1100px){.gb-pro .body{grid-template-columns:minmax(0,1fr)!important}.gb-pro .body>.sidebar.right{display:none!important}.gb-pro.gb-show-next .body>.sidebar.right{display:block!important;position:absolute!important;right:8px!important;top:var(--gb-panel-top,170px)!important;bottom:65px!important;width:min(340px,calc(100% - 16px));z-index:120}.gb-pro.gb-show-next .body>.sidebar.left{display:none!important}.gb-guided .gb-document-actions{flex-wrap:wrap;gap:6px}.collab-identity>span{display:none}.gb-guided .gb-document-title #firebase-save-state{display:none}.gb-pro.gb-show-model .sidebar.left>.gb-left{display:none!important}}
.gb-pro .sidebar.right>.pro-review{display:block!important}.gb-pro .gb-canvas-tools>strong::after{content:' PRO';font-size:10px;color:#35dce7;margin-left:5px}
.pro-issue-list{max-height:38vh;overflow:auto;padding-right:5px;margin-top:10px}.pro-review-counts{padding:10px 0;color:#ffcf91;font-size:12px}.gb-pro .sidebar.left>.searchwrap{display:flex!important;align-items:center;margin:10px;min-height:38px;padding:5px;box-sizing:border-box}.gb-pro .searchwrap input{min-width:0;width:100%;margin:0;background:transparent!important;border:0!important;padding:5px!important;font-size:11px}.gb-pro .searchwrap kbd{display:none}.gb-pro .gb-canvas-tools .gb-selected-mode{background:#112436!important;color:#e5eef7!important}.gb-pro .gb-canvas-tools button:nth-of-type(2){background:#35dce7!important;color:#03232c!important}
/* Category colors label scientific roles, never evidence strength or efficacy. */
.gb-guided [data-category=organ]{--role:#c6a0ff;--role-bg:#211e39;--role-rgb:198,160,255}
.gb-guided [data-category=disease]{--role:#f499c0;--role-bg:#301e32;--role-rgb:244,153,192}
.gb-guided [data-category=cell]{--role:#8cbaff;--role-bg:#182b43;--role-rgb:140,186,255}
.gb-guided [data-category=mechanism]{--role:#42dbe4;--role-bg:#10343c;--role-rgb:66,219,228}
.gb-guided [data-category=arms]{--role:#74dfbd;--role-bg:#15362f;--role-rgb:116,223,189}
.gb-guided [data-category=measurements]{--role:#f4c16c;--role-bg:#352e20;--role-rgb:244,193,108}
.gb-icon{width:18px;height:18px;flex:none;vertical-align:middle;pointer-events:none;overflow:visible}
.gb-icon-button{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.gb-guided .gb-step{border-color:rgba(var(--role-rgb),.3)!important;border-left:3px solid var(--role)!important;background:linear-gradient(110deg,rgba(var(--role-rgb),.09),#0b1928 85%)!important}
.gb-guided .gb-step .gb-step-icon{width:27px;height:27px;color:var(--role)!important;flex:none}
.gb-guided .gb-step .gb-number{background:rgba(var(--role-rgb),.13)!important;color:var(--role)!important}
.gb-guided .gb-step.gb-current{border-color:var(--role)!important;background:linear-gradient(110deg,rgba(var(--role-rgb),.18),#0c2431)!important;box-shadow:0 0 0 1px rgba(var(--role-rgb),.12)}
.gb-guided .gb-step-copy strong{font-size:12px}.gb-guided .gb-step-open:focus-visible,.gb-guided .gb-stage-open:focus-visible{outline:2px solid var(--role);outline-offset:-3px}
.gb-guided .pnode[data-category] .nodecontent{border-color:var(--role)!important;background:linear-gradient(115deg,rgba(var(--role-rgb),.1),transparent),var(--role-bg)!important;display:grid!important;grid-template-columns:35px minmax(0,1fr);grid-template-rows:auto auto;align-content:center;align-items:center;gap:5px 12px;height:80px!important;top:62px!important;padding:13px 17px!important;text-align:left}
.gb-guided .pnode[data-category] .nodekind{grid-column:2;grid-row:2;color:var(--role)!important;font-size:8px!important;line-height:1.2;letter-spacing:.06em}
.gb-guided .pnode[data-category] .nodename{grid-column:2;grid-row:1;text-align:left!important;width:100%;font-size:13px!important;line-height:1.25!important;max-height:34px;white-space:normal;overflow:hidden;color:#f2f6fc}
.gb-node-icon{grid-column:1;grid-row:1/3;color:var(--role);display:grid;place-items:center;border-right:1px solid rgba(var(--role-rgb),.3);height:42px;padding-right:9px}
.gb-guided .pnode .gb-node-icon svg{position:static!important;inset:auto!important;width:28px!important;height:28px!important;display:block!important;pointer-events:none!important}
.gb-guided .pnode .port{opacity:.45;border-color:var(--role);background:var(--role-bg)}.gb-guided .pnode.selected .nodecontent{box-shadow:0 0 0 3px rgba(var(--role-rgb),.22)!important;border-color:#edfbff!important}
.gb-guided .gb-canvas-tools button{min-height:32px;padding:5px 8px}.gb-guided .gb-canvas-tools button .gb-icon{width:15px;height:15px}.gb-guided .gb-footer button{gap:8px;padding:7px 12px}.gb-footer .gb-test .gb-icon{width:20px;height:20px}
.gb-link-legend{position:absolute;left:16px;bottom:16px;display:flex;gap:18px;z-index:25;font:10px system-ui;color:#b8cada;pointer-events:none}.gb-link-legend span{display:inline-flex;gap:8px;align-items:center}.gb-link-legend span::before{content:'';width:23px;border-top:2px solid #a9bcd5}.gb-link-legend .gb-legend-proposed::before{border-top:2px dashed #42dbe4}.gb-guided .canvasfooter{display:none!important}
@media(max-width:1100px){.gb-guided .gb-canvas-tools{gap:5px}.gb-guided .gb-canvas-tools button{padding:5px 7px;gap:4px}.gb-guided .gb-canvas-tools button .gb-icon{width:13px;height:13px}.gb-guided .gb-footer button{padding:6px 9px;gap:5px}.gb-guided .gb-footer button .gb-icon{width:14px;height:14px}.gb-link-legend{bottom:54px;left:12px;gap:10px;font-size:9px}.gb-link-legend span::before{width:16px}}
/* Keep node symbols clear of the existing endpoint hit targets. */
.gb-guided .pnode[data-category] .nodecontent{padding:13px 30px!important;grid-template-columns:28px minmax(0,1fr);column-gap:10px}.gb-node-icon{padding-right:6px}.gb-guided .pnode .gb-node-icon svg{width:24px!important;height:24px!important}
@media(max-width:600px){.gb-guided.gb-show-model .body>.sidebar.left,.gb-guided.gb-show-next .body>.sidebar.left,.gb-pro.gb-show-next .body>.sidebar.right{bottom:114px!important}}
