/* Scope the run: the trench drawn to scale. Lifts out with scope.js and the #scope section. */
.scope { display: grid; gap: 18px; }
.sc-stage { position: relative; margin: 0 -8px; border-radius: 14px; background: #fbfcfd; border: 1px solid var(--paper-3, #e9eff3); overflow: hidden; }
.sc-stage::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(0,59,102,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,59,102,.05) 1px, transparent 1px); background-size: 19px 19px; pointer-events: none; }
.sc-svg { position: relative; width: 100%; height: auto; }
.sc-svg text { font-family: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace; fill: #003b66; }
.sc-svg .sc-dim text { font-size: 12.5px; font-weight: 600; }
.sc-svg .sc-staff { font-size: 10px; font-weight: 600; }
.sc-svg .sc-title, .sc-svg .sc-title text { font-size: 10.5px; letter-spacing: .08em; fill: #44566a; }
.sc-ctrl { display: grid; gap: 14px; }
.sc-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.sc-group legend, .sc-range label { font: 500 .72rem/1.2 ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; letter-spacing: .09em; text-transform: uppercase; color: #44566a; margin-bottom: 8px; padding: 0; display: flex; justify-content: space-between; width: 100%; }
.sc-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-seg label { position: relative; }
.sc-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sc-seg span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #d6e0e7; background: #fff; font-size: .92rem; color: #0d1a25; transition: background .2s, color .2s, border-color .2s; }
.sc-seg input:checked + span { background: #003b66; border-color: #003b66; color: #fff; }
.sc-seg input:focus-visible + span { outline: 3px solid #4caecf; outline-offset: 2px; }
.sc-range { display: grid; }
.sc-range output, .sc-range [data-v] { font-weight: 600; color: #003b66; letter-spacing: 0; text-transform: none; font-size: .9rem; }
.sc-range input[type=range] { width: 100%; height: 44px; margin: 0; background: none; accent-color: #003b66; cursor: pointer; }
.sc-range input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #e89838 0 4px, #d6e0e7 4px); }
.sc-range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; background: #fff; border: 2px solid #003b66; box-shadow: 0 2px 6px rgba(0,37,63,.25), inset 0 0 0 5px #fff, inset 0 0 0 9px #4caecf; }
.sc-range input[type=range] { -webkit-appearance: none; appearance: none; }
.sc-range input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: #d6e0e7; }
.sc-range input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid #003b66; }
.sc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sc-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 0; }
.sc-out div { border-top: 2px solid #003b66; padding-top: 8px; }
.sc-out dt { font: 500 .66rem/1.3 ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; letter-spacing: .07em; text-transform: uppercase; color: #44566a; }
.sc-out dd { margin: 2px 0 0; font: 600 1.05rem/1.2 ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; color: #003b66; }
.sc-flags { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sc-flag { display: flex; gap: 12px; align-items: center; background: #f4f7f9; border-radius: 12px; padding: 8px 12px 8px 8px; }
.sc-flag img { width: 52px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.sc-flag p { margin: 0; font-size: .94rem; line-height: 1.45; }
.sc-ico { flex: none; width: 52px; height: 52px; display: inline-flex; align-items: flex-end; justify-content: center; gap: 3px; padding-bottom: 14px; }
.sc-ico i { width: 5px; background: #e89838; height: 14px; } .sc-ico i:nth-child(2) { background: #4caecf; height: 24px; } .sc-ico i:nth-child(3) { background: #849daa; height: 19px; }
.sc-send { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sc-send .small { margin: 0; }
@media (min-width: 980px) {
  .scope { grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: start; }
  .sc-stage { margin: 0; position: sticky; top: calc(var(--head-h, 64px) + 16px); }
  .sc-two { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .sc-svg .sc-flow { stroke-dasharray: 10 26; animation: sc-flow 1.6s linear infinite; }
  .sc-svg .sc-water { animation: sc-slosh 3.2s ease-in-out infinite alternate; }
  .sc-svg .sc-sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sc-sway 4s ease-in-out infinite alternate; }
  .sc-svg .sc-s1 { animation-duration: 5.2s; } .sc-svg .sc-s2 { animation-duration: 3.6s; animation-delay: -1s; }
  .sc-svg .sc-tape { transform-box: fill-box; transform-origin: 0 50%; animation: sc-tape 1.4s ease-in-out infinite alternate; }
  @keyframes sc-flow { to { stroke-dashoffset: -36; } }
  @keyframes sc-slosh { from { transform: translateX(-2px); } to { transform: translateX(2px); } }
  @keyframes sc-sway { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }
  @keyframes sc-tape { from { transform: skewY(-6deg) scaleX(.92); } to { transform: skewY(7deg) scaleX(1.04); } }
}
@media (prefers-reduced-motion: reduce) { .sc-svg .sc-flow { stroke-dasharray: 2 8; } }
