.intentscope-app{font-family:system-ui,sans-serif;color:#242321;background:#fffdf9;font-size:16px}.intentscope-app *{box-sizing:border-box}.intentscope-app{margin:0}.intentscope-app{max-width:1240px;margin:auto;padding:32px}.intentscope-app header{max-width:800px}.intentscope-app h1{font-family:Georgia,serif;font-size:clamp(30px,4vw,46px);margin:10px 0 16px}.intentscope-app h2{font-size:24px;margin:0}.intentscope-app .eyebrow{color:#a07d12;letter-spacing:.18em;font-size:13px;font-weight:700}.intentscope-app p{line-height:1.6;color:#5e5b57}.intentscope-app form{display:grid;grid-template-columns:1fr 180px auto;align-items:end;gap:16px;margin-top:28px}.intentscope-app label{display:grid;gap:8px;font-weight:600;font-size:14px}.intentscope-app input,.intentscope-app select,.intentscope-app button{font:inherit;padding:12px;border:1px solid #d8d8df;border-radius:8px;min-width:0}.intentscope-app button{background:#19295f;color:white;cursor:pointer;font-weight:600}.intentscope-app button:disabled{opacity:.6;cursor:wait}.intentscope-app input,.intentscope-app select{background:white;color:#242321;width:100%}.intentscope-app button:focus-visible,.intentscope-app input:focus-visible,.intentscope-app select:focus-visible{outline:3px solid #cfa92f;outline-offset:2px}.intentscope-app #status{min-height:26px}.intentscope-app #status.error{color:#a21d26;background:#ffefef;padding:14px;border-radius:8px}.intentscope-app .saved{display:flex;gap:12px;align-items:end;margin:20px 0}.intentscope-app .saved label{min-width:260px;flex:1;max-width:640px}.intentscope-app .saved button,.intentscope-app #export{background:transparent;color:#19295f}.intentscope-app .result-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:36px}.intentscope-app .note{background:#eff1f9;border-radius:8px;padding:12px;font-size:13px}.intentscope-app nav{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0}.intentscope-app nav button{background:#f1f2f6;color:#19295f;font-size:13px}.intentscope-app nav button[aria-pressed=true]{background:#19295f;color:white}.intentscope-app .table-scroll{overflow:auto}.intentscope-app table{border-collapse:collapse;width:100%;font-size:14px}.intentscope-app th,.intentscope-app td{text-align:left;padding:14px;border-bottom:1px solid #e2e3e9;vertical-align:top;overflow-wrap:anywhere}.intentscope-app th{background:#eff1f9}.intentscope-app a{color:#19295f}.intentscope-app .map{display:grid;gap:18px}.intentscope-app .root{background:#19295f;color:white;padding:20px;border-radius:12px;overflow-wrap:anywhere}.intentscope-app .branches{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}.intentscope-app .question{background:#f1f3fa;border:1px solid #dfe3f2;border-radius:12px;padding:18px;overflow-wrap:anywhere}.intentscope-app .question h3{margin:0 0 12px;font-size:16px}.intentscope-app .question button{font-size:12px;padding:8px}.intentscope-app .question small{display:block;margin-top:12px;color:#666}.intentscope-app .children{margin-top:12px;padding-left:12px;border-left:2px solid #cba426}.intentscope-app .children p{font-size:14px}.intentscope-app .empty{padding:24px;background:#f4f4f6;border-radius:8px}.intentscope-app footer{font-size:13px;color:#666;margin-top:40px;border-top:1px solid #ddd;padding-top:20px}@media(max-width:650px){.intentscope-app{padding:20px}.intentscope-app form{grid-template-columns:1fr}.intentscope-app form button{width:100%}.intentscope-app .saved,.intentscope-app .result-head{align-items:stretch;flex-direction:column}.intentscope-app .saved label{min-width:0}.intentscope-app th,.intentscope-app td{padding:10px}.intentscope-app .branches{grid-template-columns:1fr}}.intentscope-app .branches{display:flex;flex-direction:column;gap:20px;margin-left:24px;border-left:2px solid #cba426;padding-left:24px}.intentscope-app .question{position:relative}.intentscope-app .question:before{content:"";position:absolute;width:24px;border-top:2px solid #cba426;left:-25px;top:30px}.intentscope-app .children{display:grid;gap:12px;padding-left:24px;margin-top:18px}.intentscope-app .question[data-level="2"]{background:#fffdf9}.intentscope-app .question[data-level="3"]{background:#fff}.intentscope-app .question small:first-child{margin:0 0 8px;color:#96720a}.intentscope-app .root{text-align:center}@media(max-width:650px){.intentscope-app .branches{margin-left:8px;padding-left:16px}.intentscope-app .children{padding-left:14px}.intentscope-app .question{padding:12px}}.intentscope-app .tree-map{background:#fff;border:1px solid #dce3eb;border-radius:12px;overflow:hidden}.intentscope-app .tree-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px;border-bottom:1px solid #e5eaf0}.intentscope-app .tree-toolbar>span:first-child{margin-right:auto}.intentscope-app .tree-toolbar button{padding:7px 12px}.intentscope-app .tree-viewport{height:620px;overflow:auto;background:#fff;overscroll-behavior:contain}.intentscope-app .tree-surface{position:relative;margin:0 auto}.intentscope-app .tree-stage{position:relative;transform-origin:top left}.intentscope-app .tree-lines{position:absolute;inset:0;pointer-events:none}.intentscope-app .tree-lines path{fill:none;stroke:#a9c6e5;stroke-width:2}.intentscope-app .tree-node.question,.intentscope-app .tree-node.tree-root{position:absolute;width:220px;height:120px;box-sizing:border-box;padding:12px;background:white;border:1px solid #d7e4f1;border-radius:8px;margin:0;overflow:auto}.intentscope-app .tree-node.question:before{display:none}.intentscope-app .tree-node h3{font-size:15px;line-height:1.35;margin:5px 0}.intentscope-app .tree-node small{display:block;font-size:11px;color:#657487}.intentscope-app .tree-node button{padding:3px 6px;font-size:11px;background:transparent;color:#286397;border:0}.intentscope-app .tree-root{display:flex;align-items:center;justify-content:center;text-align:center;background:#edf5fc!important}.intentscope-app .tree-root h3{font-size:19px}.intentscope-app .tree-map>.note{padding:0 12px}@media(max-width:600px){.intentscope-app .tree-viewport{height:500px}.intentscope-app .tree-toolbar>span:first-child{width:100%}}.intentscope-app .tree-viewport{position:relative;overflow:hidden;touch-action:none;cursor:grab;user-select:none;background:radial-gradient(#e6edf5 .7px,transparent .7px) 0 0/20px 20px}.intentscope-app .tree-viewport.dragging{cursor:grabbing}.intentscope-app .tree-stage{position:absolute;left:0;top:0;will-change:transform}.intentscope-app .tree-node.question,.intentscope-app .tree-node.tree-root{width:250px;height:130px;border:0;box-shadow:none;background:rgba(255,255,255,.95);overflow:visible;padding:12px 16px;border-radius:12px}.intentscope-app .tree-node h3{font-size:16px;font-weight:500}.intentscope-app .tree-node.question:hover{box-shadow:0 0 0 2px #4b85c7}.intentscope-app .tree-node .node-actions{display:flex;gap:8px;align-items:center}.intentscope-app .tree-node button.node-search,.intentscope-app .tree-node button.node-toggle{border-radius:50%;background:#356cc2;color:white;width:25px;height:25px;padding:0;font-size:20px;line-height:25px}.intentscope-app .tree-node button.node-toggle{background:#edf4fd;color:#356cc2}.intentscope-app .tree-node button:disabled{opacity:.4}.intentscope-app .tree-lines path{stroke:#b7cee6;stroke-width:1.6}.intentscope-app .tree-lines path.highlighted{stroke:#c8991d;stroke-width:3}.intentscope-app .tree-map:fullscreen,.intentscope-app .tree-map.expanded-canvas{display:flex;flex-direction:column;background:white;width:100%;height:100vh;border-radius:0}.intentscope-app .tree-map:fullscreen .tree-viewport,.intentscope-app .tree-map.expanded-canvas .tree-viewport{flex:1;height:auto}.intentscope-app .tree-map.expanded-canvas{position:fixed;inset:0;z-index:1000}.intentscope-app .tree-toolbar{background:#fff}.intentscope-app .tree-viewport:focus-visible{outline:2px solid #356cc2;outline-offset:-2px}

.intentscope-app{max-width:100%;padding:28px;font:16px/1.5 system-ui,sans-serif;background:#fffdf9;color:#242321;border-radius:16px}.intentscope-app [hidden]{display:none!important}.intentscope-app .tool-heading{font:clamp(28px,4vw,42px)/1.15 Georgia,serif;margin:12px 0}.intentscope-app .tree-node.question,.intentscope-app .tree-node.tree-root{height:150px;border:1px solid #dce5f0;box-shadow:0 4px 12px #19295f0b}.intentscope-app .tree-root{background:#19295f!important;color:#fff}.intentscope-app .tree-node h3{font-size:15px;line-height:1.4;max-height:64px;overflow:auto}.intentscope-app .tree-node .node-actions{position:absolute;bottom:12px;left:16px}.intentscope-app .tree-node small{margin:0;font-size:10px}.intentscope-app .tree-node.search-match{box-shadow:0 0 0 3px #cba426}.intentscope-app .tree-node.search-muted{opacity:.25}.intentscope-app .tree-toolbar input{width:200px;font-size:13px;padding:8px}.intentscope-app .tree-toolbar button{background:#f0f3f9;color:#19295f;border-color:#e0e6f0;font-size:12px}.intentscope-app .tree-viewport{height:680px}.intentscope-app .tree-toolbar>span:first-child{font-size:12px;color:#657487}.intentscope-app .tree-map>.note{margin:0;padding:10px 16px;border-radius:0}.intentscope-app .tree-map:fullscreen .tree-viewport{height:auto}@media(max-width:650px){.intentscope-app{padding:16px}.intentscope-app .tree-viewport{height:520px}.intentscope-app .tree-toolbar input{width:100%}}

/* Open question labels and flowing connectors, matching the reference map. */
.intentscope-app .tree-viewport{background:#fff}.intentscope-app .tree-node.question,.intentscope-app .tree-node.tree-root{background:white!important;color:#253d5b;border:0;box-shadow:none;border-radius:0;padding:8px 12px 8px 46px;display:flex;align-items:center;text-align:left}.intentscope-app .tree-node h3{font:600 14px/1.5 system-ui,sans-serif;margin:0;max-height:100%;color:#253d5b}.intentscope-app .tree-node>small{display:none}.intentscope-app .tree-node .node-actions{position:absolute;left:5px;top:50%;bottom:auto;transform:translateY(-50%);gap:4px}.intentscope-app .tree-node .node-actions small{display:none}.intentscope-app .tree-node button.node-search{background:#3e64ed;width:30px;height:30px;font-size:25px;line-height:30px}.intentscope-app .tree-node button.node-toggle{position:absolute;left:-22px;width:18px;height:18px;font-size:14px;line-height:18px;background:white}.intentscope-app .tree-node.question:hover{box-shadow:none}.intentscope-app .tree-lines path{stroke:#b2c4e4;stroke-width:1.2}.intentscope-app .tree-lines path.highlighted{stroke:#eb3482;stroke-width:2}.intentscope-app .tree-node.search-match{box-shadow:0 0 0 2px #eb3482}.intentscope-app .tree-root{padding:12px;justify-content:center}.intentscope-app .tree-map{border-radius:8px}.intentscope-app .tree-toolbar{padding:14px 18px}.intentscope-app .tree-toolbar button{background:white;border-radius:20px;font-weight:500}.intentscope-app .tree-toolbar button:hover{background:#f0f4ff}.intentscope-app .tree-node button:disabled{cursor:default}body:has(.intentscope-app) .main-content{width:100%;flex:1;min-width:0}body:has(.intentscope-app) .main-content>.container{width:100%;box-sizing:border-box;margin-inline:auto}

.intentscope-app .question-outline{background:#fff;border:1px solid #e0e5ec;border-radius:10px;overflow:hidden}.intentscope-app .outline-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px 18px;border-bottom:1px solid #e0e5ec}.intentscope-app .outline-toolbar strong{margin-right:auto;font-size:14px}.intentscope-app .outline-toolbar button{padding:6px 10px;font-size:12px;background:white;color:#19295f}.intentscope-app .outline-toolbar input{width:190px;padding:7px 10px;font-size:13px}.intentscope-app .outline-tree{padding:12px 20px!important;margin:0!important;list-style:none!important}.intentscope-app .outline-tree ul{list-style:none!important;margin:0 0 6px 10px!important;padding:0 0 0 20px!important;border-left:1px solid #d4dfed}.intentscope-app .outline-tree li.question{margin:0!important;padding:0!important;border:0!important;background:none!important;border-radius:0;position:relative}.intentscope-app .outline-tree li:before{display:none!important}.intentscope-app .outline-row{display:flex;align-items:baseline;gap:8px;padding:7px 0;min-height:34px}.intentscope-app .outline-row:hover{background:#f6f8fc}.intentscope-app .outline-text{font-size:14px;line-height:1.5;color:#253d5b;overflow-wrap:anywhere}.intentscope-app .outline-tree>li>.outline-row>.outline-text{font-weight:650}.intentscope-app .outline-toggle,.intentscope-app .outline-bullet{flex:0 0 18px;text-align:center;color:#356cc2}.intentscope-app .outline-tree .outline-toggle{padding:0;border:0;background:none;font-size:16px;line-height:20px}.intentscope-app .outline-tree .outline-count{margin:0;color:#7b8797;font-size:11px}.intentscope-app .outline-tree .outline-research{padding:0;border:0;background:none;color:#356cc2;font-size:18px;line-height:20px;margin-left:auto;width:24px;flex:0 0 24px}.intentscope-app .outline-provenance{margin:0 0 4px 26px!important;font-size:11px}.intentscope-app .outline-match{background:#fff1a6;border-radius:3px}.intentscope-app .question-outline>.note{margin:0;border-radius:0;padding:10px 18px}@media(max-width:650px){.intentscope-app .outline-tree{padding:10px!important}.intentscope-app .outline-tree ul{padding-left:12px!important;margin-left:8px!important}.intentscope-app .outline-toolbar input{width:100%}}

/* Local preview: one column per top-level question. */
.intentscope-app .outline-tree{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;align-items:start}.intentscope-app .outline-tree>li.question{min-width:0;padding:0 12px 0 0!important;border-right:1px solid #e2e7ef!important}.intentscope-app .outline-tree>li.question:last-child{border-right:0!important;padding-right:0!important}.intentscope-app .outline-tree>li>.outline-row{align-items:flex-start;min-height:70px;border-bottom:2px solid #dce5f2;margin-bottom:10px;padding-bottom:12px}.intentscope-app .outline-row{align-items:flex-start}.intentscope-app .outline-text{flex:1;min-width:0}.intentscope-app .outline-tree ul{padding-left:12px!important;margin-left:7px!important}.intentscope-app .outline-tree .outline-research{margin-left:0}.intentscope-app .outline-count{padding-top:3px}@media(max-width:1050px){.intentscope-app .outline-tree{grid-template-columns:repeat(2,minmax(0,1fr))}.intentscope-app .outline-tree>li.question:nth-child(2n){border-right:0!important}}@media(max-width:600px){.intentscope-app .outline-tree{grid-template-columns:1fr;gap:18px}.intentscope-app .outline-tree>li.question{border-right:0!important;padding-right:0!important}.intentscope-app .outline-tree>li>.outline-row{min-height:0}}

/* Borderless local question columns. */
.intentscope-app .question-outline,.intentscope-app .outline-toolbar,.intentscope-app .outline-tree>li.question,.intentscope-app .outline-tree>li>.outline-row,.intentscope-app .outline-tree ul{border:0!important}.intentscope-app .outline-tree>li.question{padding-right:8px!important}.intentscope-app .outline-tree ul{padding-left:16px!important}.intentscope-app .question-outline{overflow:visible}.intentscope-app .outline-toolbar{padding-left:0;padding-right:0}.intentscope-app .outline-tree{padding-left:0!important;padding-right:0!important}

.intentscope-app .skipped-question>.outline-row>.outline-text{color:#7a6652;font-style:italic}.intentscope-app .outline-toolbar button[aria-pressed=true]{background:#19295f;color:#fff}

/* Keep references outside the question's flex row; preserve readable columns. */
.intentscope-app .outline-row{gap:8px;min-width:0}.intentscope-app .outline-text{flex:1 1 0;min-width:0;overflow-wrap:break-word;word-break:normal}.intentscope-app .outline-count{flex:0 0 auto;white-space:nowrap}.intentscope-app .outline-reference{display:block;margin:0 0 8px 26px!important;font-size:11px;line-height:1.5;overflow-wrap:break-word;color:#697586}.intentscope-app .table-scroll{max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain}.intentscope-app table{min-width:680px;table-layout:auto}.intentscope-app th{white-space:nowrap}.intentscope-app td{min-width:100px;max-width:420px;word-break:normal}.intentscope-app .outline-tree>li.question{min-width:0}.intentscope-app .outline-tree>li>.outline-row{min-height:0;margin-bottom:4px}@media(max-width:650px){.intentscope-app{width:100%;min-width:0}.intentscope-app .outline-tree{grid-template-columns:1fr}.intentscope-app .outline-toolbar>*{max-width:100%}.intentscope-app .result-head>*,.intentscope-app .saved>*{min-width:0}.intentscope-app nav button{max-width:100%;white-space:normal}}
