.route-studio .case-heading h2{max-width:15ch}
.drawing-desk{border:1px solid #648378;background:#163a34;box-shadow:0 18px 45px #091d1a50}
.drawing-toolbar,.drawing-keys,.drawing-links{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.drawing-toolbar{justify-content:space-between;padding:12px 18px;background:#1c3936}.drawing-toolbar strong{font:700 15px/1.4 monospace;letter-spacing:.08em;color:#f1f6eb}.drawing-toolbar strong span{color:#b1c9bd;font-weight:400}
.drawing-toolbar button,.drawing-keys button{border:1px solid #718e81;background:transparent;color:#e7f2e8;cursor:pointer;font:600 14px/1.4 inherit;font-family:inherit;font-size:15px;font-weight:650;min-height:42px;padding:9px 15px}.drawing-toolbar button[aria-pressed=true]{background:#c6e5cc;color:#16342d}
.drawing-desk button:focus-visible,.drawing-scroll:focus-visible{outline:3px solid #ffac68;outline-offset:-3px}
.drawing-scroll{overflow:auto;background:#f3f5ed;max-height:75svh}.route-sheet{display:block;width:100%;height:auto;max-height:65svh;font-family:ui-monospace,monospace}
.drawing-scroll.enlarged .route-sheet{width:max(950px,145%);max-width:none;max-height:none}
.route-sheet .dims path,.route-sheet .doors path{fill:none;stroke:#879a8d;stroke-width:1.1}.route-sheet .dims text{font-size:11px;fill:#546c60}
.route-sheet .walls path{stroke:#465b50;stroke-width:5;stroke-linecap:square;fill:none}.route-sheet .fittings{fill:#e1e7db;stroke:#a7b4a5;stroke-width:1.3}
.route-sheet .room-name{fill:#54695d;font-size:14px;font-weight:700}.route-sheet .room-name tspan{font-size:10px;fill:#728471}
.route-sheet .power{color:#b64c15}.route-sheet .data{color:#126f86}
.route-sheet .trunk,.route-sheet .spur,.route-sheet .old-line,.route-hit{fill:none;stroke-linejoin:round;stroke-linecap:round}
.route-sheet .trunk{stroke:currentColor;stroke-width:2.6}.route-sheet .spur{stroke:currentColor;stroke-width:1.8;stroke-dasharray:3 3}
.route-sheet .muted{opacity:.49}.route-sheet .chosen .trunk{stroke-width:3.2;stroke-dasharray:1200;animation:trace-route .95s ease-out}
.route-sheet .old-line{stroke:#66746f;stroke-width:3;stroke-dasharray:8 6}.route-hit{stroke:transparent;stroke-width:14;pointer-events:stroke;cursor:pointer}
.route-sheet .socket circle,.route-sheet .socket path{stroke:currentColor;fill:white;stroke-width:2.6}
.route-sheet .socket text,.route-sheet .source-id{font-size:12px;font-weight:bold;fill:#344d42;paint-order:stroke;stroke:#f3f5ed;stroke-width:3px}
.route-sheet .route-note{pointer-events:none}.route-note rect,.route-note circle{fill:#13392f}.route-note path{stroke:#13392f;stroke-width:1.6}.route-note text{fill:white;font-size:15px;font-weight:bold}.route-note .note-sub{font-size:13px;fill:#d3ead5;font-weight:500}
.drawing-keys{padding:10px 16px;color:#29483c;background:#e5ebdf;gap:5px;border-top:1px solid #becabd}.drawing-keys button{color:#264539;border:1px solid transparent;padding:8px 11px}.drawing-keys button[aria-pressed=true]{border-color:#879d8b;background:white}.drawing-keys i{display:inline-block;width:17px;height:4px;vertical-align:middle;margin-right:7px;background:#b64c15}.drawing-keys button[data-pick="1"] i{background:#126f86}.drawing-keys [data-lights] svg{vertical-align:-2px}.drawing-keys [data-zoom]{margin-left:auto}.old-key{font-size:13px}.old-key::before{content:"";display:inline-block;width:18px;margin-inline-end:5px;border-top:2px dashed #66746f;vertical-align:middle}
.route-info{display:grid;grid-template-columns:.8fr 1.6fr;gap:24px;padding:clamp(20px,3vw,42px);color:#f1f6eb}.route-info[hidden],.old-key[hidden]{display:none}.route-info small{display:block;color:#b9d0c1;font:13px/1.5 monospace}.route-info h3{font-size:24px;line-height:1.3;margin:6px 0;color:inherit}.price-delta{font-size:clamp(27px,3.4vw,50px);line-height:1.18;letter-spacing:-.045em;color:#ffc391}
.route-info p{font-size:17px;line-height:1.55;margin:8px 0}.route-info details{margin:12px 0 0;padding:0;border-top:1px solid #628373;border-bottom:0}.route-info summary{font-size:15px}.drawing-links{justify-content:space-between;margin-top:18px}.drawing-links a{color:#d7e8d9;text-decoration:underline;text-underline-offset:4px;padding:8px 0}
@keyframes trace-route{from{stroke-dashoffset:1200}to{stroke-dashoffset:0}}
@media(prefers-reduced-motion:reduce){.route-sheet .chosen .trunk{animation:none}}
@media(max-width:660px){.route-info{grid-template-columns:1fr;gap:18px}.drawing-toolbar{padding:9px;gap:5px}.drawing-toolbar button{padding:8px 9px}.drawing-keys{padding:6px}.drawing-keys button{font-size:13px;padding:7px}.drawing-links{gap:4px}.route-sheet{min-height:225px}.drawing-scroll.enlarged{max-height:65svh}}
.point-pin{cursor:pointer}.point-pin circle{fill:#dff7df88;stroke:#165e47;stroke-width:1.8}.point-pin rect,.work-pin rect{fill:#15553f}.point-pin text,.work-pin text{fill:white;font:700 13px monospace}.point-pin:focus circle,.point-pin[aria-pressed=true] circle{stroke:#a13f12;stroke-width:4}.work-pin circle{fill:none;stroke:#e57630;stroke-width:4;stroke-dasharray:6 3}.route-studio.point-active .route-note{display:none}
.point-select,.point-tabs,.estimate-picks{display:flex;gap:7px;flex-wrap:wrap}.point-select,.point-tabs{padding:10px 16px}.point-select button,.point-inspector button,.estimate-picks button{padding:11px 14px;border:1px solid #91a79b;cursor:pointer;color:inherit;background:transparent;font:inherit}.point-select button[aria-pressed=true],.point-tabs button[aria-pressed=true],.estimate-picks button[aria-pressed=true]{background:#c8ead4;color:#12372c}
.point-inspector{background:#f7f7ef;color:#153b30;padding:0 16px 18px}.point-tabs{padding-inline:0}.point-inspector [hidden],.point-select[hidden],.point-inspector[hidden],.branch-info[hidden],.point-estimate [hidden]{display:none}
.point-bill table{width:100%;border-collapse:collapse}.point-bill td,.point-bill th{text-align:right;padding:8px 5px;border-bottom:1px solid #bdcfc1;font-size:14px;font-variant-numeric:tabular-nums}.point-bill th:first-child{text-align:left}.point-bill small{display:block;font:11px monospace;color:#496558}.point-bill p{font-size:15px;margin:8px 0 14px}.point-bill h3{margin:12px 0;font-size:24px;color:inherit}.point-bill dl>div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #cbd8cb;padding:7px 0}.point-bill dd{margin:0;font-weight:650}.point-estimate{margin-top:28px;background:#fffef7;padding:clamp(16px,3vw,38px)}.point-estimate .journey-button{margin-top:16px}.point-inspector a{color:inherit;text-decoration:underline}.point-inspector [data-work] p{margin:8px 0 16px}.point-inspector button:disabled{opacity:.45}.drawing-toolbar{scroll-margin-top:80px}
@media(max-width:650px){.point-bill th,.point-bill td{font-size:12px;padding:6px 2px}.point-select button,.point-tabs button,.estimate-picks button{padding:8px;font-size:14px}}
@media(min-width:960px){
 .point-active .drawing-desk{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(345px,1fr);align-items:start;background:#f3f5ed}
 .point-active .drawing-toolbar,.point-active .point-select{grid-column:1/-1}
 .point-active .drawing-scroll{grid-column:1;grid-row:2;align-self:center}
 .point-active .point-inspector{grid-column:2;grid-row:2/4;align-self:stretch;border-left:1px solid #bdcfc1}
 .point-active .drawing-keys{grid-column:1;grid-row:3;align-self:end}
 .point-active .point-select{background:#163a34}
 .point-active .point-bill td,.point-active .point-bill th{font-size:13px}
}
@media(max-width:959px){.work-active .drawing-scroll:not(.enlarged) .route-sheet{max-height:39svh}.work-active .point-select{padding-block:4px}}
.d13-running .rev-state .line-group,.d13-running .rev-state .old-line{opacity:.17}
.d13-demo path{fill:none;stroke-linejoin:round;stroke-linecap:round}
.d13-guide{stroke:#87998e;stroke-width:2;stroke-dasharray:3 4}
.d13-wire{stroke-width:4;visibility:hidden}.d13-wire.installed{visibility:visible}
.wire-0{stroke:#007286}.wire-1{stroke:#85469c}.d13-wire.pulling{stroke-dasharray:1;animation:d13-pull 1.9s ease-in-out both}
@keyframes d13-pull{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
.d13-test{visibility:hidden;stroke:#fff276;stroke-width:5}.d13-test.testing{visibility:visible;stroke-dasharray:.12 1;animation:d13-signal 1.65s ease-in-out both}
@keyframes d13-signal{from{stroke-dashoffset:.12}to{stroke-dashoffset:-1}}
.d13-clips path{stroke:#435d4c;stroke-width:3}.d13-demo[data-stage="0"] .d13-clips path{animation:d13-appear .8s ease-out}
.d13-origin{fill:#fff;stroke:#155c52;stroke-width:3}
.d13-leader{stroke:#315545;stroke-width:1.5}
.d13-face>rect{fill:#fefef8;stroke:#2b5142;stroke-width:2}.d13-face>text,.d13-readout text{font:700 13px monospace;fill:#294d3d}
.d13-port rect{fill:#d8e4da;stroke:#638373}.d13-port>path{fill:#17493d;stroke:#17493d}.d13-port>text{fill:#3c6150;font:700 11px monospace;text-anchor:middle}
.d13-demo:is([data-stage="0"],[data-stage="1"],[data-stage="2"]) :is(.d13-face,.d13-leader){visibility:hidden}
.d13-demo[data-stage="3"] .d13-face{animation:d13-fit .85s ease-out both;transform-box:fill-box;transform-origin:center}
@keyframes d13-fit{from{opacity:0;transform:translateY(-13px) scale(.85)}to{opacity:1;transform:none}}
.d13-pass,.d13-readout,.d13-patch,.read-port{display:none}.d13-pass.passed{display:inline}.d13-pass circle{fill:#208055}.d13-pass path{stroke:#fff;stroke-width:2}
.d13-demo:is([data-stage="4"],[data-stage="5"]) .d13-readout,.d13-demo[data-stage="4"] .port-one,.d13-demo[data-stage="5"] .port-two,.d13-demo[data-stage="6"] .d13-patch{display:inline}
.d13-readout rect{fill:#193e34}.d13-readout text{fill:#e8fbeb}.d13-readout .read-port{fill:#a7f4c8}.d13-pass.pending-result,.d13-readout .read-port{animation:d13-appear .25s 1.65s both}
@keyframes d13-appear{from{opacity:0}to{opacity:1}}
.d13-patch{stroke:#d57432;stroke-width:4}.d13-items{margin:12px 0;padding:12px;background:#e1efdf;border-left:3px solid #287751}.d13-items h4{margin:0;color:#1c5039}.d13-items small{color:#405d4e}.d13-items ul{padding:0;margin:5px 0 0;list-style:none}.d13-items li{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 9px;border-top:1px solid #bfd1be;padding:6px 0;font-size:14px}.d13-items li b{font:700 12px monospace}.d13-items li strong{margin-left:auto}.d13-running [data-work] h3{font-size:22px;line-height:1.2;margin:8px 0;color:inherit}.d13-running button[data-play]{background:#1e503f;color:white;margin-right:5px}
@media(prefers-reduced-motion:reduce){.d13-demo *{animation:none!important}.d13-test.testing{opacity:.65}}

@media(max-width:650px){.point-bill th{hyphens:auto;overflow-wrap:anywhere}}

.crew-sheet{margin-top:10px;max-height:none;min-height:0}.drawing-baseline{margin:4px 0 0;color:#b9d0c1;font-size:14px}

.route-sheet .riser-mark{color:#593d77;cursor:pointer}
.riser-mark .riser-leader{fill:none;stroke:currentColor;stroke-width:1.8}
.riser-mark circle{fill:currentColor;stroke:white;stroke-width:1.5}
.riser-mark .riser-arrow{fill:none;stroke:white;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.riser-mark .riser-label{fill:#f7f2fc;stroke:currentColor;stroke-width:1.4}
.riser-mark text{fill:currentColor;font-family:ui-sans-serif,system-ui,sans-serif}
.riser-mark .riser-id{font-size:17px;font-weight:750}
.riser-mark .riser-direction{font-size:13px;font-weight:600}
.riser-mark:hover .riser-label,.riser-mark:focus-visible .riser-label{fill:#ecddf7;stroke-width:2.5}
.rev-state .route-hit{stroke-width:4.5}
@media(max-width:540px){.drawing-toolbar [role=group]{display:flex;width:100%}.drawing-toolbar [data-rev]{flex:1;min-width:0}}

.route-sheet .concrete-lintel rect{fill:none;stroke:#3e5364;stroke-width:1.7;stroke-dasharray:5 3}.route-sheet .concrete-lintel text{font:700 13px monospace;fill:#3e5364;paint-order:stroke;stroke:#f3f5ed;stroke-width:3px}.old-key b{color:#3e5364}

.drawing-invitation{display:flex;align-items:center;gap:clamp(14px,2vw,30px);margin:0 0 24px}
.drawing-invitation p{margin:0;max-width:36ch;color:#d6e5df;font-size:16px;line-height:1.45}
.walkthrough-cta,.point-tabs button[data-mode="work"]{display:inline-flex;align-items:center;gap:12px;min-height:54px;padding:11px 18px;border:2px solid transparent;background:#ff9b52;color:#142522;font-family:inherit;font-size:1rem;font-weight:700;line-height:1.25;text-align:left;cursor:pointer}
.walkthrough-cta:hover,.point-tabs button[data-mode="work"]:hover{background:#ffb77d}
.walkthrough-cta:focus-visible,.point-tabs button[data-mode="work"]:focus-visible{outline:3px solid #087596;outline-offset:3px}
.drawing-invitation .walkthrough-cta:focus-visible{outline-color:#fff}
.walkthrough-icon{flex:none;width:28px;height:28px}
.walkthrough-point{border-left:1px solid #8c4c1f;padding-left:12px;font:700 0.87rem/1.2 ui-monospace,monospace}
.point-tabs button[data-mode="work"]{min-height:44px;padding:8px 12px}
.point-tabs button[data-mode="work"][aria-pressed="true"]{background:#193c33;color:#fff}
.point-tabs .walkthrough-icon{width:20px;height:20px}
.point-estimate .walkthrough-cta,.crew-support .walkthrough-cta{margin-top:16px}
@media(max-width:650px){
 .drawing-invitation{align-items:stretch;flex-direction:column;gap:10px;margin-bottom:18px}
 .walkthrough-cta{width:100%;min-height:56px}
 .walkthrough-point{margin-left:auto}
}

.work-controls{display:flex;align-items:center;gap:6px;padding:7px 12px;background:#183b34;color:#f4f7ef;border-top:1px solid #648378}
.work-controls[hidden],.work-controls button[hidden]{display:none}
.work-controls strong{flex:1;min-width:0;font:700 .85rem/1.35 ui-monospace,monospace}
.work-controls button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;min-width:44px;padding:8px 12px;background:transparent;border:1px solid #809c90;color:inherit;font:inherit;font-weight:650;cursor:pointer}
.work-controls button:disabled{opacity:.45;cursor:default}
.work-controls button[data-move="1"]{color:#1d2923;background:#ff9b52;border-color:#ff9b52}
.work-controls button:focus-visible{outline:3px solid #fff;outline-offset:-4px;box-shadow:inset 0 0 0 5px #124c53}
.work-controls .play-symbol{width:0;height:0;border-block:6px solid transparent;border-left:10px solid currentColor}
.work-controls [aria-pressed=true] .play-symbol{width:10px;height:13px;border:0;border-inline:3px solid currentColor}
@media(min-width:960px){
 .work-active .work-controls{grid-column:1;grid-row:3}
 .work-active .drawing-keys{grid-row:4}
 .work-active .point-inspector{grid-row:2/5}
}
@media(max-width:959px){
 .work-active .drawing-scroll{max-height:min(46svh,calc(100svh - var(--flow-header,80px) - 85px))}
 .work-active .drawing-scroll:not(.enlarged) .route-sheet{min-height:0;max-height:inherit}
 .work-controls{padding:6px;gap:5px}
 .work-controls button{padding:7px 10px}
 .work-controls strong{font-size:.79rem}
 .work-controls .work-control-label{display:none}
}
