/* Swap decisions keep copy history beside the front and current deck costs
   above the choices. Solid and striped slices remain distinct without color. */
.swap-deck-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:start}
.swap-insights{min-width:0;width:100%;padding:15px 2px 0;border-top:1px solid #9dc0cd38}
.swap-insights>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.swap-insights h2{display:flex;align-items:center;gap:6px;margin:0;font:500 13px/1.2 var(--font-ui,sans-serif);letter-spacing:.06em;color:#c1d4d8}
.swap-insights h2>.icon{width:15px;height:15px;color:#8fc9df}
.swap-curve-key{display:flex;gap:12px;font:500 11px/1.2 var(--font-ui,sans-serif);color:#b3c5ca}
.swap-curve-key>span{display:flex;align-items:center;gap:5px;white-space:nowrap}
.swap-curve-key i{display:block;width:9px;height:9px;border:1px solid #c1dce066}
.swap-curve-unit{background:#76bed5}
.swap-curve-action{background:repeating-linear-gradient(135deg,#e6c89b 0 2px,#725d47 2px 4px)}
.run-cost-curve.swap-cost-curve{height:104px;gap:clamp(3px,1.3vw,10px);margin:0;padding:2px 0 7px;border-bottom:1px solid #9dc0cd38}
.swap-cost-curve>.swap-curve-column{max-width:none;width:auto;flex:1;gap:5px}
.swap-cost-curve .swap-curve-column>b{height:12px;font:500 11px/12px var(--font-ui,sans-serif);color:#d8e6e8;font-variant-numeric:tabular-nums}
.swap-cost-curve .swap-curve-stack{display:flex;flex-direction:column;width:clamp(10px,2.7vw,21px);height:calc(60px * var(--curve));min-height:0;overflow:hidden;border-radius:0}
.swap-cost-curve .swap-curve-stack>i{display:block;width:100%;max-width:none;height:auto;min-height:0;border-radius:0}
.swap-cost-curve .swap-curve-stack>.swap-curve-unit{flex:var(--units);background:#76bed5}
.swap-cost-curve .swap-curve-stack>.swap-curve-action{flex:var(--actions);background:repeating-linear-gradient(135deg,#e6c89b 0 2px,#725d47 2px 4px)}
.swap-cost-curve .swap-curve-column>small{font:500 11px/13px var(--font-ui,sans-serif);color:#a9c4ce;font-variant-numeric:tabular-nums}
.swap-copy-grid .swap-copy>.swap-play-count{display:inline-flex;align-items:center;align-self:flex-end;justify-content:center;gap:5px;min-width:34px;margin:8px 1px 0;padding:3px 7px;border:1px solid #a8c7cd2b;border-radius:3px;background:#10212c99;white-space:nowrap;overflow:visible;color:#a9c5cd;font:500 12px/15px var(--font-ui,sans-serif);font-variant-numeric:tabular-nums}
.swap-play-count>.icon{width:11px;height:11px;stroke-width:1.8;opacity:.8}
.swap-play-count>b{font:inherit}
.swap-copy-grid .swap-copy>.swap-play-count.is-partial{color:#b3bab8;border-style:dashed}
.swap-deck-layout>.swap-copy-grid{margin-top:0}
@media(min-width:1100px){
 .swap-page{max-width:1360px}
 .swap-deck-layout{grid-template-columns:minmax(0,1fr) 264px;gap:34px}
 .swap-deck-layout>.swap-insights{grid-column:2;grid-row:1;position:sticky;top:24px;padding-top:16px}
 .swap-deck-layout>.swap-copy-grid{grid-column:1;grid-row:1;grid-template-columns:repeat(3,minmax(0,1fr))}
 .swap-insights>header{align-items:flex-start;flex-direction:column;gap:12px}
 .run-cost-curve.swap-cost-curve{height:142px;gap:5px;margin-top:10px}
 .swap-cost-curve .swap-curve-stack{height:calc(98px * var(--curve));width:15px}
}
/* Confirmation belongs to the copy grid; the desktop curve stays unobscured. */
@media(min-width:1100px){.swap-footer{width:calc(100% - 298px)}}
