.challenge-intro{padding:3px 9px 7px}.challenge-brand{display:flex;align-items:center;gap:9px;margin:5px 0 38px}.challenge-brand strong{font-size:24px;letter-spacing:-.8px;font-weight:500}.challenge-brand>span{border-left:1px solid #4c5d3b;padding-left:15px;margin-left:6px;color:#9cab8d;font-size:11px;letter-spacing:1px}.challenge-intro h1{font-size:38px;letter-spacing:-1.4px;line-height:1.2;margin:24px 0}.challenge-intro h1 em{font-family:Sentient,serif;font-weight:400;color:#b9d69f;font-size:42px;line-height:1.4;letter-spacing:-1.3px}.challenge-intro>p{font-size:16px;line-height:1.8;color:#abb99b;max-width:535px}.challenge-how{display:flex;align-items:center;gap:12px;font-size:12px;color:#8fa77c;margin:28px 0}.challenge-how i{font-style:normal;color:#576a46}.challenge-start{padding:14px 20px;background:#d4e5c1;border:1px solid #d4e5c1;border-radius:6px;color:#27341f;font-size:14px;font-weight:600;margin-top:6px}.challenge-start:hover{background:#ebf6df}.challenge-map-link{display:inline-block;margin-left:20px;font-size:13px;color:#a6be8e;background:transparent;padding:10px 0}.challenge-scope{font-size:11px;color:#80966f;line-height:1.8;border-top:1px solid #46583a;padding-top:20px;margin-top:32px}.casco-widget .widget-content{padding:0;scrollbar-width:thin}.graph-widget-tabs{display:flex;padding:0 14px;border-bottom:1px solid #3f4837;gap:18px;height:34px;min-height:34px;background:#22271e}.graph-widget-tabs button{background:transparent;color:#8f9d80;padding:7px 0;font-size:11px;border-bottom:2px solid transparent}.graph-widget-tabs button.active{color:#c5d8b1;border-bottom-color:#abc78e}.widget-request{display:flex;align-items:center;gap:7px;font-size:10px;padding:10px 14px 0;color:#94a880;min-height:30px}.request-method{font-size:9px;border:1px solid #4c5d39;padding:2px 4px;border-radius:3px;color:#a8c18e}.widget-request code{font-family:Satoshi,sans-serif;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1;font-size:10px;color:#a4b68f}.widget-request>b,.graph-trace-bar>b,.graph-history b{font-size:10px;font-weight:400;color:#a9d58f;background:#2a4120;border:1px solid #446c30;border-radius:4px;padding:2px 5px}.widget-request>b.denied,.graph-trace-bar>b.denied,.graph-history b.denied{color:#e6aa98;background:#472e27;border-color:#795041}.compact-graph{display:block;width:100%;height:170px;background-image:radial-gradient(#4d5c3b70 .7px,transparent .9px);background-size:14px 14px;overflow:visible;margin-top:6px;max-height:170px}.sg-link{stroke:#687759;stroke-width:1.5;fill:none}.sg-link.permission-link{stroke-dasharray:5 4;stroke:#b09e66}.sg-link.trace-link{stroke:#b2d58d;stroke-width:2.5;filter:drop-shadow(0 0 3px #acd27a33)}.sg-link.trace-link.permission-link{stroke:#d2c37a;stroke-dasharray:5 4}.sg-node{cursor:pointer;color:#a9c18f;outline:none}.sg-node .node-hit{fill:transparent;stroke:none}.sg-node .node-halo{fill:#6c8c4710;stroke:transparent;stroke-width:1}.sg-node .node-disc{fill:#293623;stroke:#647c4c;stroke-width:1.2}.sg-node .iam-disc{fill:#3b3523;stroke:#8f7d4d;color:#c5b47c}.sg-node.on-trace .node-disc{stroke:#a9c686;fill:#34462a;stroke-width:1.7}.sg-node.on-trace .node-halo{fill:#9ac76a16}.sg-node.selected .node-disc{stroke:#d9edbf;fill:#4b6538;stroke-width:2}.sg-node.selected .node-halo{stroke:#9dc77a55;fill:#7fa65620}.sg-node.unvisited{opacity:.58}.sg-node:hover,.sg-node:focus-visible{opacity:1}.sg-node:hover .node-disc,.sg-node:focus-visible .node-disc{stroke:#e4f4cc;stroke-width:2.5}.node-label{font-family:Satoshi,sans-serif;font-size:13px;fill:#c3d2b3;font-weight:500;paint-order:stroke;stroke:#20261b;stroke-width:4px;stroke-linejoin:round}.node-type{font-family:Satoshi,sans-serif;font-size:11px;fill:#7f956c;paint-order:stroke;stroke:#20261b;stroke-width:3px}.compact-graph .node-label{font-size:12px;stroke-width:3px}.node-risk{fill:#50322c;stroke:#a2735d;stroke-width:1}.node-risk-text{font-family:Satoshi,sans-serif;font-size:9px;fill:#ecb89e;font-weight:700}.widget-selected{padding:4px 14px 12px;display:flex;align-items:center;flex-wrap:wrap;gap:3px 9px}.widget-selected>span{font-size:9px;color:#7e946b;text-transform:uppercase;letter-spacing:.7px}.widget-selected>strong{font-size:11px;font-weight:400;color:#b4c69e;overflow-wrap:anywhere}.widget-selected>small{font-size:9px;display:block;width:100%;color:#70875e}.widget-content>.finding-type{margin:15px 16px 10px}.widget-content>.finding-summary,.widget-content>.widget-facts,.widget-content>h2{margin-left:16px;margin-right:16px}.widget-content>.widget-facts{padding-bottom:12px}.widget-no-finding{padding:22px 17px}.widget-no-finding p{font-size:13px;color:#92a67e;line-height:1.7}.casco-widget .widget-header>div>span{font-size:10px}.graph-dialog{width:min(1180px,calc(100% - 38px));padding:0;background:#23281e;border-color:#485a36}.graph-dialog .dialog-close{position:sticky;float:right;right:15px;top:15px;margin-top:15px;margin-right:15px;z-index:9}.graph-dialog #dialog-content{display:contents}.graph-dialog-top{padding:25px 27px 18px;background:#252b20}.graph-dialog-top .detail-source{margin:0 0 20px;padding:0;border:0}.graph-dialog-top .detail-source>span{font-size:12px}.graph-dialog h1{font-size:26px;margin:8px 0 10px;letter-spacing:-.8px}.graph-dialog-top>p{margin:0;font-size:13px;color:#91a57c;line-height:1.7}.graph-toolbar{display:flex;align-items:center;gap:12px;padding:11px 20px;border-top:1px solid #405332;border-bottom:1px solid #405332;background:#252e20;flex-wrap:wrap}.graph-layer-buttons{display:flex;border:1px solid #50653b;padding:3px;border-radius:20px;gap:3px}.graph-layer-buttons button{font-size:11px;color:#8fa976;background:transparent;border-radius:20px;padding:6px 10px}.graph-layer-buttons button.active{background:#c7dbac;color:#27351e}.graph-toolbar>span{font-size:10px;margin-left:auto;color:#839b6b}.graph-toolbar>button{border:1px solid #526b39;background:#28371d;border-radius:5px;color:#b4cd96;padding:7px 10px;font-size:11px}.graph-explorer{display:grid;grid-template-columns:minmax(0,1fr) 285px;align-items:start}.graph-canvas-column{min-width:0;border-right:1px solid #3f5730}.graph-canvas{position:relative;background-color:#1f2819;background-image:radial-gradient(#5a704274 .7px,transparent .9px);background-size:17px 17px;overflow:hidden;min-height:420px;display:flex;align-items:center}.expanded-graph{width:100%;height:auto;min-height:420px;max-height:570px;display:block;touch-action:none;cursor:grab;user-select:none}.expanded-graph:active{cursor:grabbing}.edge-hit{fill:none;stroke:transparent;stroke-width:16;cursor:pointer}.sg-edge{cursor:pointer;outline:none}.sg-edge:hover .sg-link,.sg-edge:focus-visible .sg-link,.sg-edge.edge-selected .sg-link{stroke:#e4e8ac;stroke-width:3}.sg-edge.layer-dim{opacity:.15}.edge-label{font-family:Satoshi,sans-serif;font-size:10px;fill:#809b66;paint-order:stroke;stroke:#202b18;stroke-width:5px;stroke-linejoin:round}.sg-edge.edge-selected .edge-label{fill:#cde2a1}.graph-zoom{position:absolute;bottom:12px;left:12px;display:flex;align-items:center;gap:8px;border:1px solid #536d3b;background:#293a1b;border-radius:20px;padding:3px 8px}.graph-zoom button{background:transparent;color:#b2d38a;font-size:17px;padding:0 4px;min-width:23px;height:25px;line-height:1}.graph-zoom span{font-size:10px;color:#95b66d;min-width:30px;text-align:center}.graph-trace-bar{display:flex;align-items:center;gap:9px;padding:13px 17px;border-top:1px solid #455f30;border-bottom:1px solid #455f30;background:#27351f;flex-wrap:wrap}.graph-trace-bar>span{font-size:9px;letter-spacing:.7px;color:#789a58}.graph-trace-bar code{font-family:Satoshi,sans-serif;font-size:12px;color:#bad89b;overflow-wrap:anywhere;flex:1;min-width:140px}.graph-legend{display:flex;gap:16px;flex-wrap:wrap;align-items:center;padding:12px 17px;color:#7f9f60;font-size:9px}.graph-legend i{display:inline-block;width:17px;height:1px;border-top:1px solid #69864e;vertical-align:middle;margin-right:5px}.graph-legend i.legend-trace{border-color:#b3d686;border-top-width:2px}.graph-legend i.legend-permission{border-color:#b6a86b;border-top-style:dashed}.graph-inspector{padding:22px 18px;max-height:740px;overflow:auto;scrollbar-width:thin}.graph-inspector-eyebrow{font-size:10px;color:#87a467;letter-spacing:1px;line-height:1.6}.graph-resource-icon{width:43px;height:43px;background:#304522;border:1px solid #587e37;color:#a5cf7b;border-radius:9px;display:grid;place-items:center;margin-top:17px}.graph-inspector h2{font-size:21px;font-weight:500;letter-spacing:-.5px;line-height:1.4;overflow-wrap:anywhere;color:#cce3ad;margin:14px 0 9px}.graph-visit-state{font-size:10px;color:#8aab66;line-height:1.6}.graph-facts{margin-top:22px;border-top:1px solid #49672f}.graph-facts>div{border-bottom:1px solid #49672f;padding:11px 0;font-size:11px;line-height:1.8}.graph-facts dt{color:#729954;text-transform:capitalize;margin-bottom:4px}.graph-facts dd{margin:0;color:#b4d692;overflow-wrap:anywhere}.graph-primary-button,.graph-secondary-button{border-radius:5px;padding:10px 13px;font-size:12px;display:inline-block;line-height:1.5}.graph-primary-button{background:#c7dfa9;color:#283c1b;border:1px solid #c7dfa9}.graph-primary-button:hover{background:#deefc9}.graph-secondary-button{background:transparent;border:1px solid #60843a;color:#accd87;margin-top:10px}.graph-secondary-button:hover{background:#324722}.graph-inspector>.graph-primary-button,.graph-inspector>.graph-secondary-button{width:100%;margin-top:9px;font-size:11px}.graph-inspector h3{font-size:12px;color:#a2c77a;margin:24px 0 13px;font-weight:500}.graph-neighbor{display:flex;gap:10px;align-items:center;background:transparent;color:#a7cf7f;border-top:1px solid #4d702e;padding:13px 0;text-align:left;width:100%;font-size:12px}.graph-neighbor:hover{color:#d9efbb}.graph-neighbor>span{overflow-wrap:anywhere}.graph-neighbor small{display:block;color:#749a53;font-size:10px;line-height:1.7;margin-top:4px}.inspector-note{font-size:11px!important;color:#7c9e5d!important}.graph-history{border-top:1px solid #49682e;padding:17px 16px 20px}.graph-history h3{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#bad89a;font-weight:500;margin:0 0 15px;gap:12px}.graph-history h3>span{font-size:10px;color:#759a54}.graph-history>button{background:transparent;display:flex;align-items:center;gap:9px;width:100%;padding:11px 8px;color:#a3ca7b;border-top:1px solid #3e5a27;text-align:left}.graph-history>button:hover,.graph-history>button.active{background:#304622}.trace-number{font-size:10px;color:#6d944d}.graph-history code{font-family:Satoshi,sans-serif;font-size:11px;overflow-wrap:anywhere;flex:1}.graph-history>p{font-size:12px;color:#7a9d59}.graph-footer-note{font-size:11px;line-height:1.8;padding:17px 22px;color:#7a9d5c;background:#25371b;border-top:1px solid #496b2d}.graph-dialog+.dialog-close{z-index:10}
/* Keep the canvas and inspector in the same charcoal family as the Casco portal. */
.graph-dialog,.graph-dialog-top{background:#252a22}.graph-toolbar{background:#252d20;border-color:#455638}.graph-canvas{background-color:#1f251c}.graph-facts dt,.graph-neighbor small,.trace-number{color:#819a6c}.graph-facts dd{color:#b7cba4}.graph-facts,.graph-facts>div,.graph-neighbor,.graph-history,.graph-history>button,.graph-trace-bar,.graph-footer-note{border-color:#465b35}.graph-trace-bar,.graph-footer-note{background:#26301f}.graph-footer-note{color:#8da27b}.graph-inspector h2{color:#d0dfbd}.node-type,.edge-label{fill:#8da17c}.node-label{fill:#cad8bb}.graph-legend{color:#8b9f7b}.graph-history code{color:#aec596}
@media(max-width:1050px){.graph-explorer{grid-template-columns:minmax(0,1fr) 245px}.graph-inspector{padding:19px 15px}.graph-inspector h2{font-size:19px}.graph-canvas,.expanded-graph{min-height:390px}.graph-toolbar>span{display:none}.graph-dialog-top{padding:23px 23px 17px}.graph-dialog{width:calc(100% - 28px)}}
@media(max-width:760px){.challenge-intro{padding:0}.challenge-brand{margin-bottom:28px;gap:7px}.challenge-brand strong{font-size:22px}.challenge-brand>span{font-size:8px;padding-left:10px;margin-left:3px;letter-spacing:.6px}.challenge-intro h1{font-size:28px;letter-spacing:-.9px;line-height:1.2;margin:22px 0}.challenge-intro h1 em{font-size:32px;letter-spacing:-1px}.challenge-intro>p{font-size:14px}.challenge-how{font-size:10px;gap:7px;flex-wrap:wrap;line-height:1.6;margin:22px 0}.challenge-start{width:100%;font-size:14px;padding:13px}.challenge-map-link{display:block;text-align:center;width:100%;margin:9px 0 0;font-size:12px}.challenge-scope{font-size:10px;margin-top:22px;padding-top:18px}.graph-widget-tabs{height:30px;min-height:30px;padding:0 11px;gap:14px}.graph-widget-tabs button{font-size:10px;padding:6px 0}.widget-request{font-size:9px;padding:8px 11px 0;min-height:24px}.widget-request code{font-size:9px}.widget-request>b{font-size:9px}.request-method{font-size:8px}.compact-graph{height:133px;margin-top:3px}.widget-selected{padding:0 11px 9px;gap:1px 7px}.widget-selected>span,.widget-selected>small{font-size:8px}.widget-selected>strong{font-size:10px}.casco-widget .widget-header>div>span{font-size:8px}.widget-content>.finding-type{margin:12px 13px 9px}.widget-content>h2,.widget-content>.finding-summary,.widget-content>.widget-facts{margin-left:13px;margin-right:13px}.widget-content>h2{font-size:18px}.widget-content>.finding-summary{font-size:12px;line-height:1.7}.graph-dialog{width:calc(100% - 16px);max-height:calc(100dvh - 20px)}.graph-dialog .dialog-close{top:10px;margin-top:10px;margin-right:10px;right:10px}.graph-dialog-top{padding:21px 17px 16px}.graph-dialog-top .detail-source{padding:0;margin-bottom:18px}.graph-dialog-top .detail-source>span{font-size:10px}.graph-dialog h1{font-size:24px}.graph-dialog-top>p{font-size:12px;line-height:1.8}.graph-toolbar{padding:10px 12px;gap:9px;justify-content:space-between}.graph-layer-buttons{gap:1px;padding:2px}.graph-layer-buttons button{font-size:9px;padding:6px 7px}.graph-toolbar>button{font-size:9px;padding:6px 8px}.graph-explorer{grid-template-columns:1fr}.graph-canvas-column{border-right:0}.graph-canvas{min-height:315px}.expanded-graph{min-height:315px;height:315px}.graph-trace-bar{padding:11px 13px;gap:7px}.graph-trace-bar>span{font-size:8px}.graph-trace-bar code{font-size:11px}.graph-legend{gap:11px;font-size:8px;padding:12px 13px}.graph-history{padding:15px 12px}.graph-history code{font-size:10px}.graph-history>button{gap:8px;padding:10px 6px}.graph-history h3{font-size:12px}.graph-history h3>span{font-size:9px}.graph-inspector{max-height:none;padding:23px 20px;border-top:1px solid #455c32}.graph-resource-icon{float:left;margin:0 12px 0 0;width:37px;height:37px}.graph-inspector-eyebrow{margin-bottom:14px;font-size:10px}.graph-inspector h2{font-size:21px;margin:2px 0 8px}.graph-visit-state{font-size:11px}.graph-facts{clear:both;margin-top:24px}.graph-facts>div{font-size:12px}.graph-neighbor{font-size:13px}.graph-neighbor small{font-size:11px}.graph-inspector>.graph-primary-button,.graph-inspector>.graph-secondary-button{font-size:12px}.graph-footer-note{font-size:10px;padding:16px 18px}.graph-zoom{bottom:10px;left:10px;gap:5px}.graph-zoom button{min-width:22px}.graph-zoom span{font-size:9px}.node-label{font-size:15px}.node-type{font-size:12px}.edge-label{font-size:11px}.compact-graph .node-label{font-size:12px}}

.graph-dialog .dialog-close{position:absolute;top:14px;right:14px;margin:0;float:none;z-index:10}

.dialog-close-anchor{position:sticky;top:12px;height:0;z-index:30;pointer-events:none}.dialog-close-anchor .dialog-close{position:absolute;top:0;right:-20px;margin:0;float:none;pointer-events:auto}.graph-dialog .dialog-close-anchor .dialog-close{position:absolute;top:0;right:14px;margin:0;float:none}
@media(max-width:760px){.dialog-close-anchor .dialog-close{right:-10px}.graph-dialog .dialog-close-anchor .dialog-close{right:12px}}

/* Persistent history controls for the compact investigation. */
.widget-history{display:flex;align-items:center;gap:12px;min-height:35px;height:35px;padding:0 12px;border-bottom:1px solid #3f4837;background:#242820}
.widget-history>div{display:flex;gap:4px;flex-shrink:0}
.widget-history button{display:grid;place-items:center;width:26px;height:26px;border:1px solid transparent;border-radius:5px;background:transparent;color:#bdd4a3;cursor:pointer}
.widget-history button svg{width:17px;height:17px}
.widget-history button:hover:not(:disabled){background:#3a4730;border-color:#556b41}
.widget-history button:focus-visible{outline:2px solid #c5dfaa;outline-offset:1px}
.widget-history button:disabled{color:#65705b;opacity:.5;cursor:default}
.widget-history>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#b0c29c}
.compact-graph{height:140px;max-height:140px}
.widget-selected>small{display:none}
@media(max-width:760px){.widget-history{min-height:31px;height:31px;padding:0 8px;gap:8px}.widget-history button{width:25px;height:25px}.widget-history>span{font-size:10px}.compact-graph{height:100px;max-height:100px}}

/* Move the floating investigation without intercepting its controls. */
.casco-widget{max-width:calc(100vw - 24px)}
.casco-widget .widget-header{cursor:grab;touch-action:none;user-select:none}
.casco-widget.is-dragging,.casco-widget.is-dragging .widget-header{cursor:grabbing}
.casco-widget.is-dragging{box-shadow:0 24px 80px #18231555}
.casco-widget .widget-header:focus-visible{outline:2px solid #c5dfaa;outline-offset:-3px}
.casco-widget .widget-header button{cursor:pointer;touch-action:manipulation}
