#slope-tool{--tool-blue:#245da7;--tool-ink:#20353e;--tool-muted:#586b75;--tool-line:#cbd6dd;margin-top:28px;padding:clamp(16px,2.5vw,28px);border:1px solid var(--tool-line);border-radius:20px;background:#fafaf7;color:var(--tool-ink)}
#slope-tool *{min-width:0}
#slope-tool [hidden]{display:none!important}
#slope-tool .slope-tool-heading{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:18px}
#slope-tool h2{margin:0 0 8px;font-size:clamp(20px,2.5vw,28px);line-height:1.2;letter-spacing:-.025em;font-weight:600}
#slope-tool .slope-tool-heading p{max-width:660px;margin:0;color:var(--tool-muted);font-size:14px;line-height:1.65}
#slope-tool .slope-tool-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr);gap:22px;align-items:start}
#slope-tool .slope-tool-map-wrap{border:1px solid var(--tool-line);border-radius:14px;background:#e9eeed;overflow:hidden}
#slope-tool-map{display:block;width:100%;height:clamp(230px,30vw,360px);touch-action:auto;user-select:none;-webkit-user-select:none}
#slope-tool-map[data-drawing=true]{cursor:crosshair}
#slope-tool-map:focus-visible{outline:3px solid var(--tool-blue);outline-offset:-4px}
#slope-tool .slope-tool-valid{fill:#3176c0;fill-opacity:.3;stroke:#d6edff;stroke-width:.4;vector-effect:non-scaling-stroke}
#slope-tool .slope-tool-support{fill:#fff;fill-opacity:.12;stroke:none}
#slope-tool .slope-tool-mask{fill:none;stroke:#fff;stroke-width:1.5;stroke-dasharray:5 4;vector-effect:non-scaling-stroke}
#slope-tool .slope-tool-map-key{display:flex;align-items:center;gap:8px;margin:10px 0 0;color:var(--tool-muted);font-size:12px;line-height:1.5}
#slope-tool .slope-tool-map-key::before{content:"";flex:none;width:14px;height:14px;border:1px solid #245da7;background:#a0c5ea}
#slope-tool .slope-tool-map-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
#slope-tool button{min-height:44px;border-color:var(--tool-line);font-size:13px;line-height:1.4;white-space:normal}
#slope-tool button:enabled:hover{border-color:var(--tool-blue);color:var(--tool-blue)}
#slope-tool button:disabled{cursor:default;opacity:.5}
#slope-tool button:focus-visible,#slope-tool input:focus-visible{outline:3px solid #245da7;outline-offset:3px}
#slope-tool #slope-tool-start:enabled{background:var(--tool-blue);color:#fff;border-color:var(--tool-blue)}
#slope-tool .slope-tool-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}
#slope-tool .slope-tool-actions #slope-tool-start{grid-column:1/-1}
#slope-tool .slope-tool-help{margin:0 0 10px;font-size:13px;line-height:1.65;color:var(--tool-muted)}
#slope-tool-status{min-height:3em;margin:0;font-size:14px;line-height:1.5;font-weight:600}
#slope-tool-cursor{min-height:1.5em;font-size:12px;line-height:1.5;color:var(--tool-muted);margin:8px 0 0}
#slope-tool .slope-tool-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;border-top:1px solid var(--tool-line);padding-top:18px;margin:20px 0 0}
#slope-tool .slope-tool-metrics div{min-width:0}
#slope-tool dt{font-size:12px;line-height:1.5;color:var(--tool-muted);margin-bottom:5px}
#slope-tool dd{margin:0;font-size:clamp(17px,2.1vw,25px);line-height:1.25;letter-spacing:-.015em;font-weight:600;color:var(--tool-blue);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#slope-tool dd[data-unresolved=true]{font-size:16px;line-height:1.4}
#slope-tool-result-note{margin:12px 0 0;font-size:13px;line-height:1.6;color:var(--tool-muted)}
#slope-tool .slope-tool-profile{margin-top:18px;padding-top:16px;border-top:1px solid var(--tool-line)}
#slope-tool .slope-tool-profile h3{margin:0 0 6px;font-size:15px;font-weight:600}
#slope-tool .slope-tool-profile svg{width:100%;height:auto;display:block;aspect-ratio:600/180}
#slope-tool .slope-tool-profile .tool-baseline{stroke:#bdcbd4;stroke-width:1;vector-effect:non-scaling-stroke}
#slope-tool .slope-tool-profile .tool-profile-dot{fill:var(--tool-blue);fill-opacity:.8}
#slope-tool .slope-tool-profile .tool-profile-cursor{stroke:var(--tool-blue);stroke-width:1;stroke-dasharray:4 4;vector-effect:non-scaling-stroke}
#slope-tool .slope-tool-profile .tool-profile-current{fill:#fff;stroke:var(--tool-blue);stroke-width:2;vector-effect:non-scaling-stroke}
#slope-tool .slope-tool-chart-ends{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--tool-muted);margin-top:2px}
#slope-tool .slope-tool-profile label{display:block;margin-top:12px;font-size:13px;font-weight:600}
#slope-tool-profile-position{width:100%;min-height:44px;accent-color:var(--tool-blue);margin:0}
#slope-tool-profile-reading{display:block;font-size:13px;line-height:1.6;color:var(--tool-ink);font-variant-numeric:tabular-nums}
#slope-tool .slope-tool-profile-note,#slope-tool .slope-tool-source{font-size:12px;line-height:1.65;color:var(--tool-muted);margin:12px 0 0}
#slope-tool .slope-tool-source{padding-top:14px;border-top:1px solid var(--tool-line);margin-top:20px}
#slope-tool .tool-line-halo{stroke:#fff;stroke-width:6;vector-effect:non-scaling-stroke}
#slope-tool .tool-line{stroke:#153c67;stroke-width:3;vector-effect:non-scaling-stroke}
#slope-tool .tool-line.is-preview{stroke-dasharray:5 4}
#slope-tool .tool-line.is-invalid{stroke:#8c452c}
#slope-tool .tool-point{fill:#173f70;stroke:#fff;stroke-width:2;vector-effect:non-scaling-stroke}
#slope-tool .tool-point-label{fill:#fff;text-anchor:middle;dominant-baseline:central;font-family:Manrope,Arial,sans-serif;font-weight:700;pointer-events:none}
#slope-tool .tool-crosshair{fill:none;stroke:#fff;stroke-width:1.5;vector-effect:non-scaling-stroke}
#slope-tool .tool-crosshair-centre{fill:none;stroke:#153c67;stroke-width:1.5;vector-effect:non-scaling-stroke}
#slope-tool .tool-map-profile{fill:#fff;stroke:#173f70;stroke-width:2;vector-effect:non-scaling-stroke}
@media(max-width:800px){#slope-tool .slope-tool-layout{grid-template-columns:minmax(0,1fr);gap:16px}#slope-tool-map{height:250px}#slope-tool-status{min-height:0}#slope-tool .slope-tool-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){#slope-tool{padding:14px;border-radius:16px}#slope-tool .slope-tool-metrics{grid-template-columns:minmax(0,1fr);gap:12px}#slope-tool .slope-tool-metrics div{display:flex;justify-content:space-between;align-items:baseline;gap:10px}#slope-tool dt{margin:0}#slope-tool dd{text-align:right;font-size:21px}#slope-tool dd[data-unresolved=true]{max-width:55%;font-size:15px}#slope-tool-map{height:230px}}
@media(forced-colors:active){#slope-tool .tool-line,#slope-tool .tool-crosshair-centre{stroke:CanvasText}#slope-tool .tool-point{fill:Highlight;stroke:CanvasText}#slope-tool .tool-point-label{fill:HighlightText}#slope-tool .slope-tool-valid{fill:Highlight;fill-opacity:.35;stroke:CanvasText}#slope-tool .tool-profile-dot{fill:CanvasText}}
