/* A guided diagram. All money labels describe allocations, never live balances. */
.fee-walkthrough {
  --flow-warm: #995336;
  --flow-warm-bg: #f6ece5;
  --flow-cool: #41678d;
  --flow-cool-bg: #eaf0f5;
  margin: 26px 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--panel);
  overflow: hidden;
}
[data-theme="dark"] .fee-walkthrough {
  --flow-warm: #e9b391;
  --flow-warm-bg: #30251f;
  --flow-cool: #a5bed7;
  --flow-cool-bg: #212b35;
}
.flow-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 28px; border-bottom: 1px solid var(--line); }
.flow-topline h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.025em; }
.flow-topline p { margin: 0; color: var(--muted); font-size: 12px; }
.flow-topline p::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--flow-warm); vertical-align: 1px; }
.flow-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 28px; border-bottom: 1px solid var(--line); }
.flow-steps button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 62px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.flow-steps button span { font-size: 11px; width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; }
.flow-steps button[aria-pressed="true"] { color: var(--text); border-bottom-color: var(--flow-warm); }
.flow-steps button[aria-pressed="true"] span { border-color: var(--flow-warm); color: var(--flow-warm); }
.flow-steps button:hover { color: var(--text); background: var(--panel-up); }
.fee-walkthrough button:focus-visible { outline: 2px solid var(--flow-cool); outline-offset: -4px; }
.flow-panel { padding: 30px 36px 26px; }
.is-enhanced .flow-panel { min-height: 433px; }
.flow-panel h3 { margin: 0 0 9px; font-size: clamp(22px, 2.3vw, 29px); font-weight: 550; letter-spacing: -.045em; line-height: 1.18; }
.flow-intro { max-width: 670px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.flow-intro strong { color: var(--text); font-weight: 550; }
.flow-allocation-meter { display: flex; gap: 3px; height: 6px; max-width: 760px; margin: 24px auto 0; overflow: hidden; border-radius: 3px; }
.flow-allocation-meter span:nth-child(1) { flex: 95; background: var(--flow-warm); }
.flow-allocation-meter span:nth-child(2) { flex: 5; background: var(--muted); }
.flow-allocation-meter span:nth-child(3) { flex: 5; background: var(--muted); }
.flow-split { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 20px; max-width: 760px; margin: 25px auto 22px; }
.flow-source { text-align: center; }
.flow-source .flow-token { margin: 0 auto 14px; }
.flow-source > strong { display: block; font-size: 14px; font-weight: 600; }
.flow-source > small { display: block; margin: 5px auto 0; color: var(--muted); font-size: 11px; line-height: 1.5; max-width: 170px; }
.flow-token { display: grid; place-items: center; width: 80px; height: 80px; border: 1px solid var(--flow-warm); border-radius: 50%; color: var(--flow-warm); background: var(--flow-warm-bg); box-shadow: inset 0 0 0 6px var(--panel), inset 0 0 0 7px var(--flow-warm-bg); font-size: 18px; font-weight: 600; letter-spacing: -.04em; }
.flow-token.cool { color: var(--flow-cool); background: var(--flow-cool-bg); border-color: var(--flow-cool); box-shadow: inset 0 0 0 6px var(--panel); }
.flow-branches { position: relative; display: grid; gap: 10px; }
.flow-branches::before { content: ''; position: absolute; top: 37px; bottom: 37px; left: 0; border-left: 1px solid var(--line-strong); }
.flow-branch { display: grid; grid-template-columns: 38px 1fr; align-items: center; min-width: 0; }
.flow-destination { display: flex; align-items: center; gap: 18px; min-height: 74px; padding: 12px 18px; background: var(--panel-up); border: 1px solid var(--line); border-radius: 8px; }
.flow-destination > b { width: 58px; flex-shrink: 0; font-size: 28px; font-weight: 500; letter-spacing: -.055em; color: var(--flow-warm); }
.flow-branch:nth-child(2) .flow-destination > b { color: var(--flow-cool); }
.flow-branch:nth-child(3) .flow-destination > b { color: var(--muted); }
.flow-destination strong { display: block; font-size: 13px; font-weight: 550; }
.flow-destination small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.flow-arrow { position: relative; height: 1px; background: var(--line-strong); color: var(--flow-warm); }
.flow-arrow::after { content: ''; position: absolute; right: 1px; top: -3px; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.flow-arrow i { position: absolute; top: -3px; left: 0; display: block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0; }
.is-playing .flow-panel:not([hidden]) .flow-arrow i { animation: fee-travel 2.2s ease-in-out infinite; }
.flow-branch:nth-child(2) .flow-arrow { color: var(--flow-cool); }
.flow-branch:nth-child(2) .flow-arrow i { animation-delay: .3s; }
.flow-branch:nth-child(3) .flow-arrow { color: var(--muted); }
.flow-branch:nth-child(3) .flow-arrow i { animation-delay: .6s; }
@keyframes fee-travel { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 7px); opacity: 0; } }
.flow-takeaway { margin: 20px 0 0; padding: 13px 16px; border-left: 2px solid var(--flow-warm); background: var(--flow-warm-bg); color: var(--text); font-size: 12px; line-height: 1.65; }
.flow-takeaway strong { font-weight: 600; }
.flow-chain { display: grid; grid-template-columns: 1fr 64px 1fr 64px 1fr; align-items: start; max-width: 790px; margin: 25px auto 22px; }
.flow-chain > .flow-arrow { margin-top: 75px; }
.flow-chain > .flow-arrow:nth-of-type(4) i { animation-delay: 1.1s; }
.flow-node { text-align: center; min-width: 0; }
.flow-node-art { height: 145px; display: flex; align-items: center; justify-content: center; }
.flow-node-art img { width: 145px; height: 145px; border-radius: 9px; image-rendering: pixelated; }
.flow-node h4 { font-size: 14px; font-weight: 550; margin: 14px 0 5px; letter-spacing: -.025em; }
.flow-node p { font-size: 12px; line-height: 1.55; color: var(--muted); margin: 0 auto; max-width: 190px; }
.flow-icon { display: grid; place-items: center; width: 96px; height: 96px; background: var(--flow-warm-bg); color: var(--flow-warm); border: 1px solid var(--line); border-radius: 24px; }
.flow-icon svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.flow-icon.cool { color: var(--flow-cool); background: var(--flow-cool-bg); }
.flow-split.otc-fees { grid-template-columns: 165px 1fr; margin-top: 24px; }
.otc-fees .flow-arrow { color: var(--flow-cool); }
.flow-condition { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.flow-condition h4 { font-size: 12px; font-weight: 550; line-height: 1.6; margin: 0; }
.flow-condition p { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 0; }
.flow-condition p strong { color: var(--text); }
.flow-ownership { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; padding: 15px 18px; background: var(--flow-warm-bg); border-left: 2px solid var(--flow-warm); }
.flow-ownership span { display: block; color: var(--muted); font-size: 11px; line-height: 1.6; }
.flow-ownership strong { display: block; margin-top: 5px; font-size: 13px; font-weight: 550; }
.otc-fees .flow-destination { min-height: 100px; }
.otc-fees .flow-branches::before { top: 50px; bottom: 50px; }
.flow-destination img { width: 66px; height: 66px; image-rendering: pixelated; border-radius: 6px; }
.flow-destination .flow-icon { flex-shrink: 0; width: 66px; height: 66px; border-radius: 14px; }
.flow-destination .flow-icon svg { width: 30px; height: 30px; }
.flow-destination .flow-destination-share { color: var(--flow-cool); font-size: 18px; letter-spacing: -.03em; margin-right: 5px; }
.flow-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 28px; border-top: 1px solid var(--line); background: var(--panel-up); }
.flow-controls button { min-height: 40px; padding: 9px 15px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel); color: var(--text); font: inherit; font-size: 12px; cursor: pointer; }
.flow-controls button:hover { border-color: var(--muted); }
.flow-controls button:disabled { opacity: .35; cursor: default; }
.flow-controls button[data-flow-play] { min-width: 147px; }
.flow-controls button[data-flow-play]::before { content: '\25B6'; font-size: 9px; margin-right: 9px; }
.flow-controls button[data-flow-play][aria-pressed="true"]::before { content: '\2016'; font-size: 13px; }
.flow-pagination { display: flex; align-items: center; gap: 15px; }
.flow-pagination span { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.flow-reduced { margin: 0; color: var(--muted); font-size: 11px; max-width: 230px; }
.flow-sources { margin: 0 0 28px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.flow-sources a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.holder-comparison { margin: 0 0 42px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.holder-comparison article { display: flex; align-items: center; gap: 20px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.holder-comparison img { width: 112px; height: 112px; border-radius: 7px; image-rendering: pixelated; }
.holder-comparison h2 { margin: 0 0 7px; font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.holder-comparison p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.65; }
.holder-comparison strong { display: block; margin-top: 9px; font-size: 12px; font-weight: 550; }
.flow-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fee-walkthrough [hidden] { display: none !important; }
@media (max-width: 1100px) {
  .flow-panel { padding: 28px 25px 24px; }
  .flow-chain { grid-template-columns: 1fr 35px 1fr 35px 1fr; }
  .flow-node-art img { width: 125px; height: 125px; }
  .holder-comparison article { gap: 14px; padding: 18px; }
  .holder-comparison img { width: 82px; height: 82px; }
}
@media (max-width: 700px) {
  .flow-condition { grid-template-columns: 1fr 1fr; gap: 8px 14px; }
  .flow-condition h4 { grid-column: 1 / -1; }
  .flow-ownership { gap: 12px; padding: 12px; }
  .flow-ownership span { font-size: 10px; }
  .flow-ownership strong { font-size: 11px; }
  .fee-walkthrough { margin-top: 22px; border-radius: 11px; }
  .flow-topline { padding: 17px 18px; gap: 8px; align-items: flex-start; }
  .flow-topline h2 { font-size: 14px; }
  .flow-topline p { font-size: 10px; padding-top: 2px; }
  .flow-topline p::before { margin-right: 5px; }
  .flow-steps { padding: 0 10px; }
  .flow-steps button { flex-direction: column; gap: 6px; min-height: 72px; padding: 9px 2px; font-size: 10px; }
  .flow-panel, .is-enhanced .flow-panel { padding: 23px 18px 20px; min-height: 0; }
  .flow-panel h3 { font-size: 23px; }
  .flow-intro { font-size: 12px; line-height: 1.7; }
  .flow-split, .flow-split.otc-fees { grid-template-columns: 1fr; gap: 18px; margin: 23px 0 20px; }
  .flow-source { display: grid; grid-template-columns: 56px 1fr; text-align: left; gap: 0 13px; align-items: center; }
  .flow-source .flow-token { grid-row: 1 / 3; margin: 0; width: 56px; height: 56px; font-size: 13px; }
  .flow-source > strong { align-self: end; font-size: 13px; }
  .flow-source > small { align-self: start; max-width: none; margin: 3px 0 0; font-size: 10px; }
  .flow-branches { margin-left: 27px; }
  .flow-branches::before { top: -18px; }
  .flow-branch { grid-template-columns: 23px 1fr; }
  .flow-destination { padding: 11px 13px; gap: 11px; min-height: 77px; }
  .flow-destination > b { width: 49px; font-size: 26px; }
  .flow-destination strong { font-size: 12px; }
  .flow-destination small { font-size: 10px; }
  .flow-takeaway { margin-top: 18px; padding: 12px; font-size: 11px; }
  .flow-chain { display: flex; flex-direction: column; margin: 21px 0; gap: 0; }
  .flow-node { display: grid; grid-template-columns: 85px 1fr; text-align: left; column-gap: 17px; align-items: center; width: 100%; }
  .flow-node-art { grid-row: 1 / 3; width: 85px; height: 85px; }
  .flow-node-art img { width: 85px; height: 85px; }
  .flow-node-art .flow-token { width: 67px; height: 67px; font-size: 17px; }
  .flow-node-art .flow-icon { width: 67px; height: 67px; border-radius: 17px; }
  .flow-node-art .flow-icon svg { width: 32px; height: 32px; }
  .flow-node h4 { align-self: end; margin: 0 0 5px; font-size: 13px; }
  .flow-node p { align-self: start; max-width: none; margin: 0; font-size: 11px; }
  .flow-chain > .flow-arrow { height: 1px; width: 26px; margin: 18px 0 18px 29px; transform: rotate(90deg); }
  .flow-split.otc-fees .flow-destination { min-height: 121px; gap: 12px; }
  .otc-fees .flow-branches::before { top: -18px; bottom: 60px; }
  .flow-destination img, .flow-destination .flow-icon { width: 46px; height: 46px; }
  .flow-destination .flow-icon { border-radius: 12px; }
  .flow-destination .flow-icon svg { width: 25px; height: 25px; }
  .flow-destination .flow-destination-share { display: block; font-size: 23px; margin: 0 0 3px; }
  .flow-controls { padding: 13px 14px; flex-wrap: wrap; }
  .flow-controls button { padding: 9px 12px; font-size: 11px; min-height: 42px; }
  .flow-controls button[data-flow-play] { min-width: 137px; }
  .flow-pagination { gap: 8px; }
  .flow-pagination button { padding: 9px 10px; }
  .flow-sources { font-size: 10px; margin-bottom: 24px; }
  .holder-comparison { grid-template-columns: 1fr; gap: 12px; margin-bottom: 32px; }
  .holder-comparison article { padding: 18px; gap: 18px; }
  .holder-comparison img { width: 95px; height: 95px; }
}
@media (prefers-reduced-motion: reduce) {
  .fee-walkthrough *, .fee-walkthrough *::before, .fee-walkthrough *::after { animation: none !important; transition: none !important; }
}
