.guide {
  --guide-ink: #19251c;
  --guide-muted: #59655b;
  --guide-line: #d9e0d6;
  --guide-paper: #f8faf6;
  max-width: 1176px;
  padding: clamp(48px,7vw,104px) clamp(20px,5vw,64px) clamp(55px,8vw,115px);
  margin: auto;
  color: var(--guide-ink);
}
.guide a,.guide button{touch-action:manipulation}
.guide :is(a,button,summary,select,input):focus-visible{outline:2px solid #437b3f;outline-offset:4px}
.guide-back,.guide-stage-name,.guide-simulation,.guide-ident>span,.guide-note,.guide-intro-row>span {font-size:.82rem}
.guide-back,.guide-text,.guide-handoff a {text-decoration:underline;text-underline-offset:4px;color:inherit}
.guide-intro-row{display:flex;gap:20px;align-items:flex-start;justify-content:space-between;margin:22px 0 30px}
.guide .guide-intro h1{font-size:clamp(2.65rem,5.6vw,5.25rem);line-height:.96;letter-spacing:-.07em;font-weight:500;margin:0 0 18px;color:var(--guide-ink)}
.guide-intro p{max-width:56ch;font-size:clamp(1rem,1.45vw,1.2rem);line-height:1.5;color:var(--guide-muted);margin:0}
.guide-simulation{margin-top:.5em;display:inline-flex;gap:8px;align-items:center;white-space:nowrap;color:#3c6147}
.guide-simulation i{display:inline-block;height:8px;width:8px;border-radius:50%;background:#6c9d45}
.guide-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:18px}
.guide-tabs a{display:inline-flex;align-items:center;min-height:40px;padding:7px 16px;border-radius:999px;border:1px solid var(--guide-line);text-decoration:none;font-size:.9rem;color:var(--guide-ink);background:white}
.guide-tabs a[aria-current],.guide-tabs a:hover{background:#203125;border-color:#203125;color:white}
.guide-bench{scroll-margin-top:90px;display:grid;grid-template-columns:minmax(170px,.35fr) minmax(0,1fr);border:1px solid var(--guide-line);border-radius:20px;overflow:hidden;box-shadow:0 14px 35px -25px #19382255;background:#f8faf6 url('/media/cliffs.webp') center bottom / 100% auto no-repeat}
.guide-side{--guide-muted:#d6e1d3;--guide-line:#ffffff38;color:#f4f8f1;background:linear-gradient(165deg,#283b2ef2,#26392ddc 60%,#1a3023b8);border-right:1px solid var(--guide-line);padding:clamp(18px,3vw,35px) clamp(15px,2.5vw,30px);display:flex;flex-direction:column;justify-content:space-between;gap:34px}
.guide-stage-name,.guide-ident>span,.guide-records small,.guide-lines small{color:var(--guide-muted)}
.guide-side p{margin:0}
.guide-id,.guide-ref,.guide-records small{font-family:ui-monospace,"Courier New",monospace}
.guide-id{font-size:.87rem;margin-top:5px!important;overflow-wrap:anywhere}
.guide-nav{display:grid;gap:4px;margin-top:28px}
.guide-nav a{display:flex;gap:11px;align-items:center;border-radius:8px;padding:10px 9px;text-decoration:none;font-size:.91rem;color:var(--guide-muted)}
.guide-nav a>span{font-size:.75rem;font-family:ui-monospace,monospace;color:#c7d4bf}
.guide-nav a[aria-current],.guide-nav a:hover{background:#ffffff20;color:white}
.guide-nav a:focus-visible{outline-color:#d5efaf}
.guide-ident{display:grid;gap:3px;padding-top:18px;border-top:1px solid var(--guide-line)}
.guide-ident>strong{font-size:.88rem;font-weight:550;overflow-wrap:anywhere}
.guide-ident>strong:not(:last-child){margin-bottom:12px}
.guide-panel{padding:clamp(24px,4.2vw,60px);background:linear-gradient(170deg,#fffffffa,#ffffffef 65%,#f9fcf1da);min-width:0}
@media(prefers-reduced-transparency:reduce) {
 .guide-bench,.guide-panel{background:white}
 .guide-side{background:#29392d}
}
.guide-panel[aria-busy="true"]{cursor:progress}
.guide .guide-stage-head h2{font-size:clamp(1.75rem,3.25vw,3.1rem);line-height:1.06;letter-spacing:-.055em;font-weight:500;margin:11px 0 10px}
.guide-stage-head p,.guide-record-body>p{line-height:1.5;color:var(--guide-muted);margin:0}
.guide-lines,.guide-facts,.guide-records {margin:26px 0 0;border-top:1px solid var(--guide-line)}
.guide-lines>div,.guide-facts>div,.guide-records summary{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 0;border-bottom:1px solid var(--guide-line)}
.guide-lines small,.guide-records small{display:block;margin-top:4px;font-size:.78rem}
.guide-lines strong,.guide-facts dd{font-variant-numeric:tabular-nums;font-weight:550}
.guide-lines>div>span,.guide-record-body>p,.guide-facts dd{overflow-wrap:anywhere}
.guide-form{margin-top:28px;display:flex;align-items:flex-start;flex-direction:column;gap:16px}
.guide-field{display:grid;gap:7px;width:min(100%,390px);font-size:.88rem;font-weight:550}
.guide-field select,.guide-field input{padding:10px 14px;border:1px solid #aebcac;border-radius:8px;background:white;color:#152119;font:inherit;min-height:44px;width:100%}
.guide-note{margin:-6px 0 0;color:var(--guide-muted);line-height:1.4}
.guide-action,.guide-secondary{min-height:43px;box-sizing:border-box;border-radius:999px;padding:10px 19px;display:inline-flex;align-items:center;justify-content:center;font:inherit;font-size:.93rem;text-decoration:none;cursor:pointer}
.guide .guide-action{background:#243d28;border:1px solid #243d28;color:#fff;font-weight:550}
.guide .guide-action:hover{background:#345637}
.guide .guide-secondary{background:white;border:1px solid var(--guide-line);color:var(--guide-ink)}
.guide-actions{display:flex;flex-wrap:wrap;align-items:center;gap:13px;margin-top:25px}
.guide-text{font-size:.88rem}
.guide-facts{margin-bottom:0}
.guide-facts dt{color:var(--guide-muted)}
.guide-facts dd{margin:0;text-align:right}
.guide-records details{border-bottom:1px solid var(--guide-line)}
.guide-records summary{list-style:none;cursor:pointer;border:0}
.guide-records summary::-webkit-details-marker{display:none}
.guide-expand{position:relative;width:16px;height:16px;flex:none}
.guide-expand::before,.guide-expand::after{content:"";position:absolute;top:7px;left:2px;width:12px;height:1px;background:#23472c}
.guide-expand::after{transform:rotate(90deg)}
.guide-records details[open] .guide-expand::after{display:none}
.guide-record-body{padding:0 0 16px}
.guide-record-body .guide-facts{margin:13px 0 0;border:0;border-radius:8px;background:var(--guide-paper);padding:3px 13px}
.guide-record-body .guide-facts>div{padding:8px 0;font-size:.86rem}
.guide-record-body .guide-facts>div:last-child{border:0}
.guide-handoff{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:20px;color:var(--guide-muted);font-size:.91rem}
.guide-panel:focus{outline:none}
@media(max-width:690px){
 .guide-intro-row{flex-direction:column;gap:8px}
 .guide-tabs{gap:4px}
 .guide-tabs a{padding:6px 11px;font-size:.81rem}
 .guide-bench{grid-template-columns:minmax(0,1fr);border-radius:14px}
 .guide-side{padding:14px 18px;border-right:0;border-bottom:1px solid var(--guide-line)}
 .guide-side .guide-stage-name,.guide-ident{display:none}
 .guide-nav{margin-top:10px;display:flex;flex-wrap:wrap;gap:4px}
 .guide-nav a{font-size:.82rem;padding:8px;gap:5px}
 .guide-panel{padding:24px 18px}
}
@media(prefers-reduced-motion:no-preference){.guide-panel.guide-enter{animation:guide-in .2s ease-out}@keyframes guide-in{from{opacity:.45;transform:translateY(5px)}to{opacity:1;transform:none}}}

.guide{padding-top:clamp(30px,4.5vw,72px)}
.guide-panel{padding:clamp(18px,3vw,36px)}
.guide-bench[aria-busy=true]{cursor:progress}
.visually-hidden-guide,.trace-choices input{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.trace-form{margin:0;align-items:stretch;gap:18px}
.trace-form>.guide-action{align-self:start}
.trace-choices{padding:0;margin:0;border:0;min-width:0}
.trace-choices legend,.transfer-control label{font-size:.86rem;font-weight:600}
.trace-choices legend{margin-bottom:8px;padding:0}
.trace-choices>div{display:inline-flex;max-width:100%;border:1px solid var(--guide-line);background:var(--guide-paper);border-radius:12px;padding:3px;gap:2px}
.trace-choices label{display:flex;position:relative;cursor:pointer}
.trace-choices span{padding:8px 14px;min-height:38px;align-content:center;text-align:center;border-radius:9px;color:#495646;font-size:.85rem;line-height:1.25}
.trace-choices input:checked+span{color:#fff;background:#25462f;box-shadow:0 1px 3px #10271930}
.trace-choices input:focus-visible+span{outline:2px solid #437b3f;outline-offset:1px}
.transfer-control{display:grid;grid-template-columns:auto auto minmax(65px,1fr);align-items:center;gap:14px}
.transfer-control input[type=number]{width:7.25em;min-height:42px;padding:8px 11px;border-radius:9px;background:var(--guide-paper);border:1px solid #aebcac;color:var(--guide-ink);font:inherit;font-variant-numeric:tabular-nums}
.transfer-control input[type=range]{width:100%;margin:0;min-height:42px;accent-color:#315a3d;cursor:pointer}
.guide .trace{--trace-light:#c3f2a4;--trace-dim:#bfd0bc;--trace-warn:#ffbf8b;--trace-edge:#78917475;position:relative;isolation:isolate;overflow:hidden;border-radius:15px;margin:20px 0 0;padding:clamp(18px,3vw,32px);border:1px solid #29442f;color:#f4f8f1;background:linear-gradient(110deg,#15291dfa 18%,#1e392af6 64%,#213c2fbd),url('/media/moss.webp') right 58%/cover}
.trace-form .trace{margin-top:0}
.trace figcaption,.trace-key,.trace-leg,.trace-total{display:flex;align-items:center;justify-content:space-between;gap:12px}
.trace figcaption{color:var(--trace-dim);font-size:.78rem;font-weight:500}
.trace figcaption b{color:#e2eedb;font-weight:500;text-align:right}
.trace-total{align-items:flex-start;flex-direction:column;gap:2px;margin:21px 0 15px}
.trace-total>span,.trace-foot,.receipt-slip span{font-size:.8rem}
.trace-total strong{font-size:clamp(2.7rem,4.6vw,4.1rem);font-weight:450;line-height:1.08;letter-spacing:-.065em;font-variant-numeric:tabular-nums}
.trace-legs{display:grid}
.trace-leg{padding:10px 0;border-top:1px solid var(--trace-edge);gap:16px}
.trace-leg>div{display:grid;gap:3px;min-width:0}
.trace-leg>div:last-child{text-align:right}
.trace-leg small,.receipt-slip small{font:.71rem/1.4 ui-monospace,monospace;overflow-wrap:anywhere;letter-spacing:.015em}
.trace-leg small,.trace-leg>div:last-child span,.trace-foot{color:var(--trace-dim)}
.trace-leg>div:last-child span,.trace-key{font-size:.8rem}
.trace-leg>div:last-child b,.trace-key b{font-weight:560;font-variant-numeric:tabular-nums}
.signal{display:inline-flex;align-items:center;gap:7px;font-size:.84rem;font-weight:560;color:var(--trace-light)}
.signal i{position:relative;border:1px solid currentColor;border-radius:50%;width:11px;height:11px}
.signal i::after{content:"";position:absolute;inset:2px;background:currentColor;border-radius:inherit}
.signal-warn{color:var(--trace-warn)}
.signal-warn i{border-radius:3px;transform:rotate(45deg)}
.trace-wire{flex:1;min-width:12px;height:1px;background:repeating-linear-gradient(90deg,#a8c9ac82 0 3px,transparent 3px 7px)}
.trace-split{display:flex;height:7px;border-radius:99px;overflow:hidden;background:repeating-linear-gradient(125deg,#f3b67e 0 3px,#c98d5b 3px 5px);margin:10px 0}
.trace-split i{height:100%;display:block;background:var(--trace-light)}
.trace-key{flex-wrap:wrap;color:#d8e4d4}
.trace-key b{color:#fff}
.trace-key>span:first-child b,.trace-wallet[data-over=false] [data-limit-balance]{color:var(--trace-light)}
.trace-payout .trace-key>span:last-child b,.trace-wallet[data-over=true] [data-limit-balance]{color:var(--trace-warn)}
.trace-foot{margin:18px 0 0}
.allowance-meter{position:relative;margin:22px 0 15px;height:28px;border-radius:5px;background:#15251c;box-shadow:inset 0 0 0 1px var(--trace-edge)}
.allowance-meter i{position:absolute;inset:0 auto 0 0;width:var(--fill);border-radius:5px;background:repeating-linear-gradient(90deg,transparent 0 5px,#27452a70 5px 7px),linear-gradient(90deg,#6cad74,var(--trace-light))}
.trace-wallet[data-over=true] .allowance-meter{background:linear-gradient(to right,#15251c var(--ceiling),#583e2a var(--ceiling))}
.trace-wallet[data-over=true] .allowance-meter i{background:repeating-linear-gradient(90deg,transparent 0 5px,#29412c70 5px 7px),var(--trace-light)}
.trace-wallet[data-over=true] .allowance-meter::after{content:"";position:absolute;left:var(--ceiling);right:calc(100% - var(--fill));height:100%;border-radius:0 5px 5px 0;background:repeating-linear-gradient(90deg,var(--trace-warn) 0 5px,#b18960 5px 7px)}
.allowance-meter b{position:absolute;z-index:1;left:var(--ceiling);top:-6px;bottom:-6px;width:2px;background:white;box-shadow:0 0 0 1px #14261bbf}
.trace-receipts{display:grid;grid-template-columns:minmax(0,1fr) minmax(32px,.48fr) minmax(0,1fr);align-items:center;margin:30px 0}
.receipt-slip{display:grid;gap:10px;padding:clamp(12px,2.4vw,24px) clamp(10px,1.6vw,18px);background:linear-gradient(125deg,#f6f7e8,#dce9cf);color:#203826;border-radius:9px 9px 4px 4px;box-shadow:0 8px 18px #05150b44;transform:rotate(-2deg);min-width:0}
.receipt-slip:last-child{transform:rotate(2deg)}
.receipt-slip strong{font-size:clamp(1.4rem,3vw,2.4rem);letter-spacing:-.065em;font-weight:500}
.receipt-slip small{color:#425843;padding-top:8px;border-top:1px dashed #738a72;font-size:clamp(.61rem,.8vw,.75rem)}
.match-wire{display:flex;align-items:center;color:var(--trace-warn)}
.match-wire i{flex:1;border-top:1px dashed currentColor}
.match-wire b{flex:none;display:grid;place-items:center;width:27px;height:27px;border-radius:50%;border:1px solid currentColor;font:500 16px/1 ui-monospace,monospace}
.trace-loan[data-match=true] .match-wire{color:var(--trace-light)}
.trace-loan[data-match=true] .match-wire i{border-top-style:solid}
@media(max-width:800px){.transfer-control{grid-template-columns:1fr auto;gap:4px 12px}.transfer-control input[type=range]{grid-column:1/-1}}
@media(max-width:430px){.guide{padding-inline:12px}.guide-panel{padding:18px 12px}.trace-key{gap:7px}.trace-receipts{grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr)}.receipt-slip small{overflow-wrap:anywhere}.trace-choices span{padding-inline:10px}.trace-choices>div{display:flex}.trace-choices label{flex:1}.trace-choices span{width:100%}}
@media(prefers-reduced-motion:no-preference){.trace-form .trace.trace-change{animation:trace-change .3s ease-out}.trace-change .trace-wire{animation:trace-flow .5s linear 2}@keyframes trace-change{from{opacity:.72;transform:translateY(3px)}to{opacity:1;transform:none}}@keyframes trace-flow{to{background-position:14px 0}}}
