.connections{--graph-routing:#1B5E8F;--graph-line:var(--text-muted)}.graph-controls{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:16px}.graph-controls .field{margin:0;min-width:170px}.graph-controls .check-label{margin-top:22px;font-size:13px}.graph-legend{border:0;padding:0;margin:0 0 12px;display:flex;gap:16px;flex-wrap:wrap}.graph-legend legend{font-size:13px;font-weight:500;margin-bottom:10px}.graph-legend label{display:flex;align-items:center;gap:7px;font-size:12px}.graph-controls input[type=checkbox],.graph-legend input{width:15px;height:15px;accent-color:var(--accent)}.edge-sample{display:inline-block;width:25px;min-width:25px;border-top:2px solid var(--accent)}.edge-sample.routing{border-color:var(--graph-routing);border-top-style:dotted}.edge-sample.legacy{border-color:var(--graph-line);border-top-style:dashed}.graph-explainer{font-size:13px;color:var(--text-muted);max-width:85ch;margin-bottom:22px}.graph-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:18px;align-items:start}.graph-main{min-width:0}.graph-canvas{position:relative;background:var(--raised);border:1px solid var(--border);border-radius:10px;overflow:hidden}.graph-mapbar{padding:12px 14px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:var(--text-muted);background:var(--surface)}.graph-mapbar>div{display:flex;gap:6px}.graph-mapbar button{display:flex;align-items:center;justify-content:center;width:34px;height:34px;background:var(--raised);border:1px solid var(--text-muted);border-radius:7px;color:var(--accent)}.graph-mapbar button:hover{background:var(--accent-subtle)}.graph-svg{width:100%;height:570px;display:block;touch-action:none;cursor:grab}.graph-svg:active{cursor:grabbing}.graph-edge{fill:none;stroke:var(--graph-line);stroke-width:1.5;opacity:.28;vector-effect:non-scaling-stroke}.graph-edge.incident{opacity:.75}.graph-edge.prerequisite{stroke:var(--accent);stroke-width:2}.graph-edge.routing{stroke:var(--graph-routing);stroke-dasharray:2 5}.graph-edge.legacy{stroke-dasharray:7 5}.graph-arrow{fill:var(--graph-line)}.graph-arrow.routing{fill:var(--graph-routing)}.graph-arrow.prerequisite{fill:var(--accent)}.graph-node{cursor:pointer;outline:none}.graph-node circle{fill:var(--raised);stroke:var(--text-muted);stroke-width:1.6}.graph-node.has-answer circle{fill:var(--accent-subtle);stroke:var(--accent)}.graph-node.selected circle{fill:var(--accent);stroke:var(--accent-hover);stroke-width:3}.graph-node.outside circle{stroke-dasharray:4 4}.graph-node:focus-visible circle,.graph-node:hover circle{stroke:var(--focus);stroke-width:4}.graph-node:focus-visible{outline:none}.graph-node-id{font-family:var(--font-mono);font-size:14px;fill:var(--text);pointer-events:none}.graph-node.selected .graph-node-id{fill:var(--text-inverse)}.graph-node-label{font-family:var(--font-sans);font-size:14px;fill:var(--text);stroke:var(--raised);stroke-width:4;stroke-linejoin:round}.graph-node-check,.graph-node-label{paint-order:stroke;pointer-events:none}.graph-node-check{font-size:18px;fill:var(--accent);stroke:var(--raised);stroke-width:3}.graph-domain-label{font-size:21px;fill:var(--text-muted);font-weight:500}.graph-footnote{padding:10px 14px;background:var(--surface);border-top:1px solid var(--border);font-size:12px;color:var(--text-muted)}.graph-inspector{padding:20px;max-height:1000px;overflow:auto;overflow-wrap:anywhere}.graph-inspector h3{font-size:18px;line-height:1.4}.graph-inspector>p{font-size:13px;margin:10px 0}.graph-inspector .badge{margin:8px 0}.graph-inspector h4{font-size:14px;margin:24px 0 8px}.graph-inspector summary{font-size:13px;font-weight:500;padding:10px 0}.graph-inspector details{border-top:1px solid var(--border);margin-top:14px}.graph-observation{font-size:13px;margin:15px 0}.graph-observation dt{color:var(--text-muted);margin-top:12px}.graph-observation dd{margin:5px 0 12px;white-space:pre-wrap}.graph-question-list{max-height:290px;overflow:auto}.graph-question-list button{display:block;text-align:left;background:transparent;width:100%;padding:10px 2px;border-top:1px solid var(--border);color:var(--text)}.graph-question-list button:hover{background:var(--accent-subtle)}.graph-question-list button span{display:block;font-size:12px;margin-top:6px}.graph-relations details{margin:0}.graph-relations summary{display:flex;align-items:center;gap:8px;list-style:none}.graph-relations summary:before{content:"+";color:var(--accent)}.graph-relations details[open]>summary:before{content:"−"}.graph-relations small{display:block;font-size:12px;font-weight:400;color:var(--text-muted);margin-top:4px}.graph-relations p{font-size:13px;margin:6px 0}.graph-relations ul{padding:0 0 0 16px;font-size:12px;max-height:250px;overflow:auto}.graph-relations li{margin:8px 0}.graph-relations li span{display:block;margin-top:5px}.graph-relations code{font-size:11px}.graph-find{margin-top:18px}.graph-find-controls{display:flex;gap:10px;margin:14px 0 10px}.graph-find-controls>select{width:190px;font-size:13px}.graph-item-list{max-height:260px;overflow:auto;margin-top:12px}.graph-item-list>button{display:flex;gap:10px;align-items:center;text-align:left;width:100%;padding:12px 2px;background:transparent;border-bottom:1px solid var(--border);font-size:13px;color:var(--text)}.graph-item-list>button:hover,.graph-item-list>button[aria-pressed=true]{background:var(--accent-subtle)}.graph-item-list code{font-size:11px;flex-shrink:0}.graph-item-list span{flex:1}.graph-item-list svg{flex-shrink:0;color:var(--accent)}@media(max-width:1200px){.graph-layout{grid-template-columns:1fr}.graph-inspector{max-height:none}.graph-svg{height:550px}.graph-relations{max-height:500px;overflow:auto}}@media(max-width:650px){.graph-controls{gap:12px;display:grid;grid-template-columns:1fr}.graph-controls .check-label{margin-top:0}.graph-controls .field{min-width:0}.graph-legend{gap:12px}.graph-svg{height:420px}.graph-mapbar{flex-wrap:wrap}.graph-find-controls{flex-direction:column}.graph-find-controls>select{width:100%}.graph-inspector{padding:18px}.graph-explainer{font-size:13px}}@media print{.graph-controls,.graph-find,.graph-legend,.graph-mapbar button{display:none}.graph-layout{display:block}.graph-svg{height:600px}.graph-inspector{max-height:none;overflow:visible}}.auth-page{display:grid;grid-template-columns:1fr 1fr;gap:80px;max-width:1120px;padding:80px 36px;min-height:100vh;align-items:center}.auth-brand{display:flex;gap:16px;align-items:center;margin-bottom:55px}.auth-brand img{width:60px}.auth-brand strong{display:block;font-size:28px}.auth-brand span{color:var(--text-muted);font-size:14px}.auth-intro h1{font-size:44px;line-height:1.15;margin-bottom:24px}.auth-intro>p{font-size:17px;line-height:1.6;color:var(--text-muted);max-width:40ch}.auth-note{display:flex;gap:16px;align-items:start;margin-top:45px;padding-top:25px;border-top:1px solid var(--border);color:var(--text-muted);font-size:13px}.auth-note svg{flex-shrink:0;color:var(--accent)}.auth-card{padding:32px}.auth-card h2{font-size:28px;margin-bottom:12px}.auth-card>p{font-size:14px}.auth-card form{margin-top:28px}.auth-card .button{width:100%}.auth-card .notice{margin-top:22px;overflow-wrap:anywhere}.auth-card .field{font-size:14px}.auth-card input{font-size:16px}.auth-local{border-top:1px solid var(--border);margin-top:28px;padding-top:18px;color:var(--text-muted);font-size:12px!important}.account-recovery{margin-top:22px;font-size:13px}.account-recovery summary{color:var(--accent)}.account-recovery p{margin-top:12px;color:var(--text-muted)}.auth-card>small{display:block}.auth-card form>small{display:block;margin-bottom:15px}.auth-card>.text-link{margin-top:20px}.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.account-grid form{margin-top:22px}.account-grid form>small{display:block;margin-bottom:15px}.account-grid section>p{margin:16px 0}.account-grid section>h2{margin-bottom:15px}.invite-panel{margin-bottom:22px}.invite-form{display:grid;grid-template-columns:1fr 1.2fr 170px auto;gap:16px;align-items:end;margin-top:20px}.invite-form .field{margin:0}.invite-form .button{margin-bottom:1px}.account-row{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:20px 0;border-top:1px solid var(--border);margin-top:12px}.account-row>div{min-width:0}.account-row p{font-size:13px;color:var(--text-muted);margin:5px 0;overflow-wrap:anywhere}.account-row .button-row{justify-content:flex-end}.account-row .button{font-size:12px}.account-confirm .button-row{margin-top:15px}.invitation-result{margin-bottom:22px;background:var(--accent-subtle)}.invitation-result input{font-family:var(--font-mono);font-size:12px}.account-table{overflow-x:auto}.account-menu{display:flex;flex-direction:column;gap:8px;padding:16px 8px 0;border-top:1px solid var(--border);margin-top:16px}.account-menu>strong{font-size:13px;overflow-wrap:anywhere}.account-menu>small{font-size:12px;color:var(--text-muted);overflow-wrap:anywhere}.account-menu>select{font-size:12px}.account-menu .button-row{justify-content:space-between}.account-menu button{font-size:12px}.account-menu button svg{width:14px}.account-section{margin-bottom:22px}@media(max-width:1100px){.invite-form{grid-template-columns:1fr 1fr}.account-row{align-items:flex-start;flex-direction:column}.account-row .button-row{justify-content:flex-start}.auth-page{gap:35px;padding:50px 28px}.auth-intro h1{font-size:36px}}@media(max-width:650px){.auth-page{display:block;padding:28px 18px}.auth-brand{margin-bottom:24px}.auth-brand img{width:42px}.auth-intro h1{font-size:28px}.auth-intro>p,.auth-note{display:none}.auth-card{margin-top:26px;padding:24px}.auth-card h2{font-size:24px}.account-grid,.invite-form{grid-template-columns:1fr}.sidebar-bottom:has(.account-menu){position:static}.account-menu{margin:10px 0 0;padding:10px 0;display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:12px}.account-menu>strong{flex:1}.account-menu>small{display:none}.account-menu>select{width:auto}.account-menu .button-row{gap:14px}.account-menu button{font-size:13px}.account-row{gap:12px}.account-row .button-row{flex-wrap:wrap}}.user-management>section{margin-bottom:22px}.user-management>section>p{margin-top:12px}.user-management>section>h3{margin-top:20px}.ontology-summary{margin:20px 0;overflow-wrap:anywhere}.ontology-summary>summary{font-weight:600;cursor:pointer}.ontology-summary details{margin:12px 0;border-top:1px solid var(--border);padding-top:10px}.ontology-editor p,.ontology-summary p{white-space:pre-wrap}.ontology-editor{margin:20px 0}.ontology-editor fieldset{border:0;padding:0;min-width:0}.ontology-editor details{margin:14px 0}.ontology-editor .ontology-json{font-family:var(--font-mono);font-size:12px}.ontology-map .graph-node-label{font-size:12px}.ontology-map .graph-inspector p{white-space:pre-wrap}.ontology-mode{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}.chat-sources{font-size:11px;margin-top:12px}.chat-sources summary{cursor:pointer}.chat-sources ul{padding-left:18px}.chat-sources li{margin:8px 0}.chat-sources button{text-align:left;white-space:normal}.chat-knowledge{font-size:12px;margin-bottom:10px;max-height:180px;overflow:auto}.chat-knowledge p{white-space:pre-wrap}.chat-knowledge>summary{cursor:pointer}.question-help{border:1px solid var(--border);border-radius:10px;margin:22px 0;background:var(--surface)}.help-toggle{display:flex;align-items:center;gap:10px;padding:15px 17px;width:100%;text-align:left;background:transparent;color:var(--accent);font-size:14px;font-weight:500}.help-toggle>span:first-of-type{flex:1}.help-content{padding:3px 18px 20px}.help-content .section-heading{margin:14px 0}.help-content h3{font-size:15px}.help-source{margin:15px 0;font-size:13px}.help-source summary{font-weight:500;color:var(--accent)}.help-source p{margin-top:12px;white-space:pre-wrap}.help-status{display:flex;gap:10px;align-items:flex-start;margin:16px 0 20px;font-size:12px;color:var(--text-muted)}.help-status .badge{flex-shrink:0}.help-sharing{border:0;padding:0;margin:0 0 16px}.help-sharing legend{font-size:13px;font-weight:500;margin-bottom:10px}.help-sharing label{display:flex;align-items:flex-start;gap:9px;margin:9px 0;font-size:13px}.help-sharing input{width:15px;height:15px;flex-shrink:0;margin-top:3px;accent-color:var(--accent)}.help-disclosure{font-size:12px;line-height:1.6;color:var(--text-muted);margin:14px 0 18px}.help-content .button-row{gap:8px}.help-content .button{font-size:12px;white-space:normal;text-align:left}.help-content .alert{margin:18px 0}.help-result{background:var(--raised);border:1px solid var(--border);border-radius:7px;padding:18px;margin-top:20px}.help-result>p{white-space:pre-wrap;font-size:15px;line-height:1.65;margin:16px 0}.help-result>small{display:block;color:var(--text-muted);font-size:12px}.help-next{margin-top:25px;border-top:1px solid var(--border);padding-top:20px}.help-next>p{margin:10px 0}.help-next-item{display:flex;align-items:center;gap:12px;text-align:left;background:transparent;color:var(--text);padding:13px 0;border-top:1px solid var(--border);width:100%;font-size:13px}.help-next-item>span{flex:1}.help-next-item small{display:block;margin-top:4px;color:var(--accent)}.help-next-item code{font-size:11px}.help-next-item>svg{flex-shrink:0;color:var(--accent)}.help-next-item:hover{background:var(--accent-subtle)}.help-chat-launch{display:flex;align-items:center;gap:20px;margin:20px 0}.help-chat-launch>div{flex:1}.help-chat-launch strong{font-size:15px}.help-chat-launch p{font-size:13px;color:var(--text-muted);line-height:1.6;margin:8px 0}.help-chat-launch .button{white-space:nowrap}.guidance-dialog{padding:0;width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 40px);height:min(820px,calc(100dvh - 40px));margin:auto;border:1px solid var(--border);border-radius:14px;background:var(--raised);color:var(--text);box-shadow:0 24px 80px #0003;overflow:hidden}.guidance-dialog[open]{display:flex;flex-direction:column}.guidance-dialog::backdrop{background:#172b2866}.chat-header{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:20px 22px 16px;flex-shrink:0}.chat-header h2{font-size:19px;margin:6px 0;line-height:1.3}.chat-header>div{min-width:0}.chat-header h2{overflow-wrap:anywhere}.chat-question{padding:13px 22px;background:var(--accent-subtle);border-block:1px solid var(--border);flex-shrink:0}.chat-question strong{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.5}.chat-question>span{display:block;color:var(--text-muted);font-size:11px;margin-top:6px}.chat-transcript{flex:1;min-height:100px;overflow:auto;padding:20px 22px;overscroll-behavior:contain}.chat-empty{padding:12px 8px;color:var(--text-muted);text-align:center}.chat-empty>svg{color:var(--accent)}.chat-empty h3{font-size:17px;color:var(--text);margin:12px 0}.chat-empty p{font-size:13px;line-height:1.6;max-width:45ch;margin:0 auto}.chat-starters{display:flex;flex-wrap:wrap;gap:7px;justify-content:center;margin-top:18px}.chat-starters button{padding:9px 12px;border:1px solid var(--border);border-radius:7px;background:var(--raised);color:var(--accent);font-size:12px}.chat-starters button:disabled{opacity:.5;cursor:not-allowed}.chat-message{margin:0 0 18px;padding:13px 16px;border:1px solid var(--border);border-radius:10px;max-width:95%;overflow-wrap:anywhere}.chat-message.user{margin-left:auto;background:var(--accent-subtle)}.chat-message.assistant{background:var(--surface)}.chat-message>strong{font-size:11px;color:var(--accent)}.chat-message>p{white-space:pre-wrap;font-size:14px;line-height:1.65;margin-top:6px}.chat-pending{font-size:13px;color:var(--text-muted);padding:8px}.chat-controls{padding:12px 22px 16px;border-top:1px solid var(--border);flex-shrink:0;max-height:50%;overflow:auto}.chat-context summary{font-size:12px;color:var(--accent);cursor:pointer}.chat-context fieldset{margin:12px 0}.chat-disclosure{font-size:10px;line-height:1.5;color:var(--text-muted);margin:9px 0 12px}.chat-compose{display:flex;gap:8px;align-items:flex-end}.chat-compose textarea{flex:1;min-width:0;resize:vertical;min-height:55px;max-height:120px;font-size:14px;line-height:1.5}.chat-compose .button{height:44px;padding:12px}.chat-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:9px;color:var(--text-muted);font-size:10px}.chat-footer .text-link{font-size:11px;display:flex;align-items:center;gap:5px}.chat-error,.chat-reset,.chat-warning{padding:10px 12px;border-radius:7px;background:var(--surface);border:1px solid var(--border);font-size:12px;line-height:1.5;margin:10px 0}.chat-error{color:var(--danger)}.chat-reset .button-row{margin-top:10px}.chat-reset .button{font-size:12px;padding:8px 12px}.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}@media(max-width:650px){.help-chat-launch{align-items:stretch;flex-direction:column}.guidance-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px)}.chat-controls,.chat-header,.chat-question{padding-left:16px;padding-right:16px}.chat-transcript{padding:16px}.chat-controls{max-height:55%}.chat-header h2{font-size:17px}}.ai-settings-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:22px}.ai-settings .panel>h2{margin-bottom:14px}.ai-settings .panel>p{margin:12px 0 20px;line-height:1.6}.ai-settings .field{margin-top:18px}.ai-settings a{color:var(--accent);text-decoration:underline}.ai-toggle{display:flex;gap:10px;align-items:center;font-size:14px;margin:20px 0}.ai-toggle input{width:17px;height:17px;accent-color:var(--accent)}.ai-boundaries{display:flex;gap:12px;background:var(--accent-subtle);padding:18px;border-radius:8px;margin:22px 0}.ai-boundaries svg{flex-shrink:0;color:var(--accent)}.ai-boundaries p{font-size:13px;line-height:1.6}.ai-prompt,.ai-usage{margin-top:22px}.ai-prompt textarea{font-size:14px;line-height:1.6;resize:vertical;min-height:220px}.ai-save-row{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:22px 0}.ai-settings .small{line-height:1.6}@media(max-width:900px){.ai-settings-grid{grid-template-columns:1fr}.ai-save-row{align-items:stretch;flex-direction:column}.ai-prompt .section-heading{align-items:flex-start;gap:14px;flex-direction:column}}