/* Swapagon Alley, 2026-11 look (palette, fonts, the site bar and the night scene come from theme.css + hoodwarts.css).
   The page header (icon, name, live counts), then the rooms as framed tabs with the filter and the vault address. */
.small{font-size:13.5px}.sm{min-height:28px;padding:3px 10px;font-size:13px}.ghost{background:transparent}
.awrap{max-width:1680px;margin:0 auto;padding:0 16px}

/* ---- the header: live counts under the name, in small spaced capitals ---- */
.astats{display:flex;flex-wrap:wrap;gap:2px 0;min-height:1.4em}
.astats span+span::before{content:"·";margin:0 .7em;color:var(--sage)}
.astats b{color:var(--parch);font-weight:600}

/* ---- the rooms bar: framed tabs (the open one green), the filter, the vault address ---- */
.abar{position:sticky;top:0;z-index:20;padding:8px 0;background:linear-gradient(180deg,rgba(14,19,17,.94),rgba(14,19,17,.84));border-top:1px solid var(--line2);border-bottom:1px solid var(--line2);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.arow{display:flex;align-items:center;gap:10px 14px;flex-wrap:wrap}
.atabs{display:inline-flex;gap:6px;flex:none}
.atabs button{position:relative;min-height:42px;padding:6px 22px;border:1px solid var(--line);border-radius:3px;background:rgba(20,26,24,.88);color:var(--ink2);
  box-shadow:inset 0 0 0 3px rgba(20,26,24,.9),inset 0 0 0 4px var(--line2);font:600 19px/1 var(--head);letter-spacing:.02em;white-space:nowrap;transition:color .15s,border-color .15s,background .15s}
.atabs button:hover{color:var(--parch);border-color:var(--sage)}
.atabs button.on{background:rgba(180,154,108,.17);color:var(--parch);border-color:#C9AE7C;box-shadow:inset 0 0 0 3px rgba(20,26,24,.55),inset 0 0 0 4px rgba(201,174,124,.45)}
.atabs .n{font:600 11px/1 var(--ui);padding:3px 6px;border-radius:99px;background:rgba(180,154,108,.18);border:1px solid rgba(180,154,108,.55);color:var(--parch);margin-left:6px;vertical-align:2px}
.fcoll select{min-height:42px;width:auto;min-width:200px;padding:8px 34px 8px 12px;border:1px solid var(--line);border-radius:4px;background:rgba(14,19,17,.88);color:var(--parch);font:500 14px var(--ui);
  -webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23B49A6C' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center}
.vaultchip{margin-left:auto;display:inline-flex;align-items:center;gap:8px;padding:3px 4px 3px 12px;border:1px solid var(--line);border-radius:4px;background:rgba(37,61,48,.5);font-size:13px;white-space:nowrap}
.vaultchip[hidden]{display:none}
.vaultchip b{font:600 11px/1 var(--ui);letter-spacing:.16em;text-transform:uppercase;color:var(--gilt)}
.vaultchip code{color:var(--parch);font-size:12.5px}
.vaultchip .sm{border-radius:3px}

/* ---- notices ---- */
.banner{margin:14px 0 0;padding:10px 14px;border:1px solid var(--line);border-radius:4px;background:rgba(20,26,24,.88);font-size:15px;color:var(--ink2)}
.banner b{color:var(--parch)}
.banner.bad{border-color:rgba(192,97,75,.6);color:#e0a593}
.tab{padding-top:16px}

/* ---- the grid of cards: all the same size ---- */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px}
.lcard{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:4px;overflow:hidden;padding:6px;background:rgba(20,26,24,.9);
  box-shadow:0 10px 24px rgba(0,0,0,.4);transition:border-color .15s}
.lcard:hover{border-color:var(--sage)}
.lcard .pic{position:relative}
.lcard img{width:100%;aspect-ratio:1;object-fit:cover;display:block;background:#0f1412;border:1px solid var(--line2);border-radius:2px}
.lcard .pic .sig{position:absolute;top:7px;left:7px;width:36px;height:36px;aspect-ratio:auto;object-fit:contain;background:none;border:0;filter:drop-shadow(0 1px 3px rgba(0,0,0,.75))}
.lcard .b{padding:9px 4px 4px;display:flex;flex-direction:column;gap:4px;flex:1}
.lcard .coll{font:600 10.5px/1.3 var(--ui);letter-spacing:.16em;text-transform:uppercase;color:var(--gilt)}
.lcard .nm{font:600 15px/1.3 var(--ui);color:var(--parch)}.lcard .rk{font-size:12px;font-weight:400;color:var(--mute)}
.lcard .wants{font-size:13px;color:var(--ink2)}.lcard .wants b{color:var(--parch);font-weight:600}
.lcard .acts{display:flex;gap:6px;flex-wrap:wrap;margin-top:auto;padding-top:8px}
.lcard .acts button{flex:1;min-height:36px;padding:5px 8px;font-size:14px}
.warn{font-size:12.5px;padding:5px 8px;border-radius:4px;border:1px solid rgba(217,166,108,.45);background:rgba(217,166,108,.07);color:#e6c69c}
.tag{display:inline-block;font-size:12px;padding:2px 8px;border-radius:3px;border:1px solid var(--line);color:var(--mute)}
.tag.ok{border-color:rgba(134,173,132,.5);color:#9fc39c}.tag.wait{border-color:rgba(217,166,108,.5);color:#D9A66C}.tag.bad{border-color:rgba(192,97,75,.6);color:#e0a593}
.empty{padding:26px;text-align:center;border:1px dashed var(--line);border-radius:4px;color:var(--mute);grid-column:1/-1;background:rgba(20,26,24,.8)}

/* ---- framed panels ---- */
.alleypage .panel{border-radius:4px;background:rgba(20,26,24,.88);box-shadow:inset 0 0 0 4px rgba(20,26,24,.9),inset 0 0 0 5px var(--line2),0 10px 26px rgba(0,0,0,.4);padding:18px 20px}
.alleypage .panel p,.alleypage .panel li{color:var(--ink2)}
.alleypage .panel b{color:var(--parch);font-weight:600}

/* ---- My corner: what to do on the left, your things on the right ---- */
.mine{display:grid;grid-template-columns:minmax(300px,380px) 1fr;gap:18px;align-items:start}
.mine[hidden]{display:none}
.mineL{display:flex;flex-direction:column;gap:12px;position:sticky;top:76px}
.mineL .panel h3{font-size:21px;margin-bottom:6px}
.mineR .sect:first-child{margin-top:0}
.wallets{margin:6px 0;padding-left:18px}.wallets li{font-family:ui-monospace,Menlo,monospace;font-size:12.5px;word-break:break-all}
.handrow{display:flex;gap:8px;flex-wrap:wrap}.handrow input{flex:1;min-width:0;background:rgba(14,19,17,.88);color:var(--fg);border:1px solid var(--line);border-radius:4px;padding:9px 10px;font:13px ui-monospace,Menlo,monospace}
.sect{font:600 19px/1.2 var(--title);letter-spacing:.05em;margin:18px 0 10px;display:flex;align-items:center;gap:12px}
.sect::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,var(--line),transparent)}
.stack{display:flex;flex-direction:column;gap:10px}
#asks:empty{display:none}
.ocard{border:1px solid var(--line);border-radius:4px;padding:12px 14px;background:rgba(20,26,24,.9);box-shadow:inset 0 0 0 3px rgba(20,26,24,.9),inset 0 0 0 4px var(--line2)}
.ocard .row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.ocard .row>b{color:var(--parch);font-weight:600}
.thumbs{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0}.thumbs figure{margin:0;width:74px}.thumbs img{width:74px;height:74px;border-radius:3px;object-fit:cover;border:1px solid var(--line)}
.thumbs figcaption{font-size:11px;color:var(--mute);line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.paybox{margin:8px 0;padding:12px 14px;border:1px solid rgba(180,154,108,.55);border-radius:4px;background:rgba(37,61,48,.35)}
.paybox .amt{font:600 20px ui-monospace,Menlo,monospace;color:var(--parch)}
.paybox .kv{display:grid;grid-template-columns:auto 1fr auto;gap:4px 10px;align-items:center;font-size:14px;margin-top:6px}
.paybox .kv code{word-break:break-all;font-size:12.5px}

/* ---- My corner: items in your Hoodwarts wallet, one click to send in ---- */
.hwlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px;max-height:360px;overflow:auto}
.hwit{display:flex;flex-direction:column;gap:4px;border:1px solid var(--line);border-radius:4px;padding:5px;font-size:12.5px;background:rgba(14,19,17,.6)}
.hwit img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:2px}.hwit span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hwit button{min-height:30px;padding:3px 8px;font-size:12.5px}

/* ---- How it works: the art beside the words ---- */
.how2{display:grid;grid-template-columns:minmax(260px,min(520px,32vw)) 1fr;gap:22px;align-items:stretch}   /* the two buttons end level with the panel beside them */
.howside{display:flex;flex-direction:column;min-width:0}
.how2[hidden]{display:none}
.howart img{width:auto;max-width:100%;max-height:clamp(200px,38vh,400px);height:auto;margin:0 auto;display:block;filter:drop-shadow(0 10px 24px rgba(0,0,0,.6)) saturate(.85)}
.colls{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-top:8px}.colls span{font-size:13px;padding:3px 10px;border:1px solid var(--line);border-radius:3px;background:rgba(20,26,24,.85);color:var(--ink2)}
.colls span.paused{border-color:rgba(192,97,75,.6);color:#e0a593}
.howside .lede{color:var(--parch);font:italic 500 clamp(17px,2.3vh,20px)/1.35 var(--head);margin:clamp(8px,1.6vh,16px) 4px 10px;text-align:center}
.how h3{font-size:clamp(19px,2.6vh,23px);margin-top:clamp(8px,1.4vh,16px);padding-bottom:3px;border-bottom:1px solid var(--line2)}
.how p{margin:6px 0}
.how h3:first-child{margin-top:0}
/* the way in: two big buttons, into the Alley and into My corner */
.howgo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:auto 0 0}
.howgo button{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;padding:14px 18px;min-height:72px;border-radius:3px;border:1px solid var(--line);
  background:rgba(20,26,24,.9);box-shadow:inset 0 0 0 4px rgba(20,26,24,.9),inset 0 0 0 5px var(--line2)}
.howgo button b{font:600 16px/1.2 var(--title);letter-spacing:.06em;text-transform:uppercase;color:var(--parch)}
.howgo button span{font:400 13.5px/1.3 var(--ui);letter-spacing:0;text-transform:none;color:var(--ink2)}
.howgo button.gold{background:#253D30;border-color:var(--sage);box-shadow:inset 0 0 0 4px #253D30,inset 0 0 0 5px rgba(180,154,108,.4)}
.howgo button:hover{border-color:var(--gilt)}
body[data-tab=how] .fcoll,body[data-tab=how] #count,body[data-tab=mine] .fcoll,body[data-tab=mine] #count{display:none}   /* the collection filter is for the Alley */
.how ol,.how ul{padding-left:20px;margin:6px 0}.how li{margin:3px 0}
.how .hcol>section{margin-top:clamp(8px,1.4vh,16px)}.how .hcol:first-child>section:first-child{margin-top:0}.how .hcol>section>h3{margin-top:0}
.how .times b{color:var(--parch)}
/* wide screens: two columns whose sections spread to fill the box, so it's neither sparse nor scrolling */
@media (min-width:1200px){
  .panel.how{display:grid;grid-template-columns:1fr 1fr;gap:0;font-size:clamp(14px,1.5vh,16px);line-height:1.5;padding:clamp(16px,2.2vh,28px) clamp(18px,1.6vw,30px)}
  .how .hcol{display:flex;flex-direction:column;justify-content:space-between;gap:clamp(10px,1.6vh,22px);min-width:0}
  .how .hcol>section{margin-top:0}
  .how .hcol:first-child{padding-right:clamp(18px,1.6vw,30px)}
  .how .hcol+.hcol{border-left:1px solid var(--line2);padding-left:clamp(18px,1.6vw,30px)}
  .how h3{margin-bottom:clamp(6px,1vh,12px)}
  .how li{margin:clamp(2px,.6vh,8px) 0}}
/* short laptop screens: the art shrinks and the words tighten so the whole page fits */
@media (min-width:1200px) and (max-height:700px){.how2{grid-template-columns:minmax(250px,28vw) 1fr}.panel.how{font-size:13px;line-height:1.4;padding:10px 14px}
  .how h3{font-size:18px;margin-top:8px}.how ol,.how ul{margin:4px 0}.how p{margin:4px 0}.foot{margin:8px 0 6px}
  .how2 .panel.how{line-height:1.34}.how2 .how .hcol{gap:4px}.how2 .how li{margin:1px 0}.how .times li:last-child{display:none}}   /* the shortest screens: tighter still, and the least needed line goes */
@media (min-width:1200px) and (max-height:700px){body.alleypage .hwbar{margin-bottom:6px}body.alleypage .pstats{margin-bottom:4px}.abar{padding:5px 0}.howart img{max-height:clamp(140px,26vh,400px)}}
@media (min-width:1200px) and (max-height:820px){.howart img{max-height:clamp(150px,30vh,400px)}.colls span{font-size:12px;padding:2px 8px}
  .howside .lede{font-size:16px;margin:6px 4px 8px}.howgo button{min-height:62px;padding:10px 16px}
.panel.how{font-size:13.5px;line-height:1.42;padding:12px 16px}.how2{grid-template-columns:minmax(250px,27vw) 1fr}.how .hcol{gap:8px}.how h3{margin-bottom:4px}.how li{margin:2px 0}.how h3{font-size:19px}.how li{margin:2px 0}}.how li::marker{color:var(--gilt)}

/* ---- dialogs and the toast ---- */
dialog{max-width:640px;width:calc(100% - 24px);border:1px solid var(--line);border-radius:4px;background:#161e1b;color:var(--fg);padding:0;
  box-shadow:inset 0 0 0 4px #161e1b,inset 0 0 0 5px var(--line2),0 24px 60px rgba(0,0,0,.7)}
dialog::backdrop{background:rgba(8,11,10,.72)}
.dlgin{position:relative;padding:20px 22px;max-height:85vh;overflow:auto}.dlgin h3{font-size:24px;font-variant-numeric:lining-nums;padding-right:38px;overflow-wrap:anywhere}.dlgin .x{position:absolute;top:10px;right:10px;min-height:0;padding:4px 10px;border-radius:3px}
.dlgin p{color:var(--ink2)}.dlgin p b{color:var(--parch)}
.picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;margin:8px 0}
.picker label{display:flex;flex-direction:column;gap:3px;border:1px solid var(--line);border-radius:4px;padding:5px;cursor:pointer;font-size:12px}
.picker label.on{border-color:#C9AE7C;background:rgba(180,154,108,.17)}.picker img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:2px}
.picker input{display:none}
.slot{display:grid;grid-template-columns:auto minmax(0,1.3fr) minmax(0,1fr) auto;gap:6px;margin:6px 0;padding:8px;border:1px solid var(--line2);border-radius:4px;background:rgba(14,19,17,.5)}
.slot [data-f=rm]{grid-column:4;grid-row:1}
.slot .exact{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}.slot .exact input{width:110px}.slot .pv{display:inline-flex;align-items:center;gap:6px;min-width:0;font-size:13px}.slot .pv img{width:34px;height:34px;border-radius:4px;object-fit:cover}.slot .pv b{overflow-wrap:anywhere}.slot .pv .bad{color:#e3a08f}
.slot [data-f=extra]{grid-column:1/-1}   /* the trait / item number / stars get the whole second line, so nothing is squeezed */
.slot select,.slot input{background:rgba(14,19,17,.88);color:var(--fg);border:1px solid var(--line);border-radius:4px;padding:6px;font:inherit;font-size:14px;min-width:0;width:auto}
.slot [data-f=extra]{display:flex;gap:6px;min-width:0}.slot [data-f=extra] select,.slot [data-f=extra] input{flex:1;min-width:0;padding:8px}
.slot [data-f=extra]:empty{display:none}
.err{color:#e0a593;margin:6px 0}
#toast{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);background:#18211d;border:1px solid var(--sage);color:var(--fg);padding:9px 16px;border-radius:4px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:40;max-width:calc(100% - 32px);box-shadow:0 12px 30px rgba(0,0,0,.5)}
#toast.on{opacity:1}
.foot{margin:12px 0 10px;text-align:center;text-shadow:0 1px 4px #000}

/* ---- tablets and phones: the bar scrolls away, the rooms share the width, two cards a row ---- */
@media (max-width:860px){
  .mine,.how2{grid-template-columns:1fr}
  .howart img{max-width:min(380px,100%);margin:0 auto}   /* so the buttons sit near the top, never wider than the screen */
  .mineL{position:static}
  .vaultchip{margin-left:0}
}
@media (max-width:760px){
  .awrap{padding:0 12px}
  .abar{position:relative;padding:8px 0}
  .astats{font-size:10.5px;letter-spacing:.1em}
  .astats span+span::before{margin:0 .45em}
  /* phones: the three rooms share the width; the filter and the vault address sit under them */
  .arow{gap:8px}
  .atabs{display:flex;width:100%;gap:5px}
  .atabs button{flex:1 1 0;min-width:0;min-height:42px;padding:6px 6px;font-size:16px}
  .fcoll{flex:1 1 100%}.fcoll select{width:100%;min-height:40px;min-width:0}
  .vaultchip{flex:1 1 100%;min-width:0;white-space:normal;padding:5px 5px 5px 10px}
  .vaultchip code{flex:1;min-width:0;word-break:break-all;font-size:12px;line-height:1.35}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .lcard{padding:5px}.lcard .b{padding:7px 3px 3px}.lcard .acts button{font-size:13px;min-height:34px}
  .slot{grid-template-columns:auto minmax(0,1fr) auto}.slot [data-f=mode]{grid-column:1/3}.slot [data-f=rm]{grid-column:3;grid-row:1}.slot [data-f=extra]{flex-direction:column}
  .alleypage .panel{padding:14px 15px}
  .mineL{display:contents}   /* phones: wallet box, payments waiting, then your items, then how to send in */
  #handBox{order:1}#asks{order:2}.mineR{order:3}.mineL .sendin{order:4}
  .paybox .kv{grid-template-columns:auto 1fr}
  .howside .lede{font-size:18px}
  .howgo{grid-template-columns:1fr;gap:8px}.howgo button{min-height:60px;padding:11px 15px}.howgo button b{font-size:15px}
  .dlgin{padding:18px 16px}
}

/* ---- the status popup: one line per step as it happens. Not a modal, and below Privy's windows (z-index 999999+),
   so Privy's confirm always shows on top. ---- */
#flow{position:fixed;right:18px;bottom:18px;z-index:9000;width:min(360px,calc(100% - 24px));max-height:calc(100vh - 100px);overflow:auto;padding:12px 14px 12px;
  background:#121816;border:1px solid var(--line);border-radius:10px;box-shadow:0 18px 40px rgba(0,0,0,.6);color:var(--fg)}
#flow.done{border-color:var(--on,#C9AE7C)}#flow.failed{border-color:rgba(192,97,75,.7)}
#flow .fh{display:flex;align-items:center;gap:10px;margin-bottom:6px}
#flow .fh b{flex:1;font:600 17px/1.2 var(--head);color:var(--parch)}
#flow .fxx{min-height:0;width:28px;height:28px;padding:0;border:0;background:none;color:var(--mute);font-size:15px}
#flow .fxx:hover{color:var(--parch)}
#flow .fthumbs{display:flex;gap:6px;margin:0 0 6px}#flow .fthumbs:empty{display:none}
#flow .fthumbs figure{margin:0}#flow .fthumbs img{width:44px;height:44px;border-radius:4px;object-fit:cover;display:block}#flow .fthumbs figcaption{display:none}
#flow ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
#flow li{position:relative;padding-left:24px;font:400 14px/1.4 var(--ui);color:var(--ink2,rgba(228,212,184,.74))}
#flow li::before{position:absolute;left:0;top:1px;width:16px;height:16px;display:grid;place-items:center;font-size:12px;line-height:1}
#flow li.doing{color:var(--parch)}
#flow li.doing::before{content:"";box-sizing:border-box;border:2px solid rgba(201,174,124,.3);border-top-color:#C9AE7C;border-radius:50%;animation:flowspin .9s linear infinite}
#flow li.ok::before{content:"✓";color:#C9AE7C;font-weight:700}
#flow li.bad{color:#e0a08f}#flow li.bad::before{content:"✕";color:#e07a62;font-weight:700}
#flow li.note::before{content:"•";color:var(--mute)}
#flow .fx:not(:empty){margin-top:10px}
@keyframes flowspin{to{transform:rotate(360deg)}}
@media (max-width:560px){#flow{right:10px;left:10px;bottom:10px;width:auto}}

/* ---- what a listing wants: Schools of Thought as sigils (any picked School will do), then specific items ---- */
.schools{margin:10px 0 6px;padding:10px 12px;border:1px solid var(--line);border-radius:4px;background:rgba(14,19,17,.55)}
.sh,.sh2{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin-bottom:8px}.sh b,.sh2 b{font:600 15px/1.3 var(--ui);color:var(--parch)}
.sh2{margin-top:14px}
.sigils{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px}
.sigil{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 6px 8px;min-height:0;border:1px solid var(--line);border-radius:6px;background:rgba(20,26,24,.8);color:var(--ink2);font:500 13px/1.2 var(--ui)}
.sigil img{width:44px;height:44px;object-fit:contain;filter:drop-shadow(0 2px 4px rgba(0,0,0,.5)) saturate(.85);opacity:.8}
.sigil:hover{border-color:var(--gilt)}
.sigil.on{border-color:var(--on,#C9AE7C);background:var(--on-bg,rgba(180,154,108,.17));color:var(--parch);box-shadow:inset 0 0 0 1px rgba(201,174,124,.35)}
.sigil.on img{opacity:1;filter:drop-shadow(0 0 6px rgba(201,174,124,.35)) saturate(1)}
.sqty{display:inline-flex;align-items:center;gap:8px;margin-top:10px;font-size:14px;color:var(--ink2)}
.sqty select{background:rgba(14,19,17,.88);color:var(--fg);border:1px solid var(--line);border-radius:4px;padding:5px 8px}
.wants img.sig,.mute img.sig{display:inline;width:18px;height:18px;aspect-ratio:auto;vertical-align:-4px;margin:0 3px 0 2px;object-fit:contain;border:0;background:none}

/* ---- The Alley: the activity log beside the listings ---- */
.alleyt:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:16px;align-items:start}
.actp{position:sticky;top:72px;max-height:clamp(340px,calc(100vh - 300px),640px);display:flex;flex-direction:column;padding:14px 14px 8px !important}
.acth{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.acth h3{font-size:21px;margin:0}
.actf{display:flex;gap:4px;flex-wrap:wrap}
.actf button{min-height:28px;padding:2px 9px;font:500 12px/1 var(--ui);border-radius:3px;border:1px solid var(--line);background:rgba(14,19,17,.7);color:var(--ink2);cursor:pointer}
.actf button.on{border-color:var(--on);color:var(--parch);background:var(--on-bg)}
.actday{margin:8px 0 4px;font-size:12.5px;color:var(--mute)}.actday b{color:var(--parch)}
.actl{overflow:auto;min-height:0;flex:1;margin:0 -4px;padding:0 4px}
.evrow{display:flex;align-items:flex-start;gap:12px;padding:10px 4px;border-top:1px solid var(--line2)}
.evrow:first-child{border-top:0}
.evrow.swap{background:linear-gradient(90deg,rgba(180,154,108,.13),rgba(180,154,108,0) 75%);border-radius:4px}
.apics{position:relative;flex:none;width:56px;height:54px}
.ai{display:block;width:48px;height:48px;border-radius:4px;object-fit:cover;border:1px solid var(--line);background:#141A18}
.ai.sub{position:absolute;right:0;bottom:0;width:30px;height:30px;border:2px solid #141A18;box-shadow:0 2px 6px rgba(0,0,0,.6)}
.apics .x{position:absolute;right:20px;bottom:22px;font-size:12px;line-height:1;color:var(--gilt);text-shadow:0 1px 3px #000}
.apics .more{position:absolute;right:-4px;top:-4px;font:600 10px/1 var(--ui);padding:3px 4px;border-radius:8px;background:#253D30;color:var(--parch);border:1px solid var(--line)}
.atxt{min-width:0;font-size:13.5px;line-height:1.4;color:var(--ink2);overflow-wrap:anywhere}
.atxt b{color:var(--parch);font-weight:600}.atxt .you{color:var(--on)}.atxt .addr{font-variant-numeric:tabular-nums;color:var(--ink2)}
.atxt .awants{font-size:12.5px;margin-top:2px}.atxt .awants .sig{width:15px;height:15px;vertical-align:-3px;margin-right:2px}
.ameta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin-top:4px;font-size:12px;color:var(--mute)}
.ameta a{color:var(--gilt)}
.ameta button{min-height:0;padding:3px 9px;font-size:12px;border-radius:3px}
@media (max-width:1100px){.alleyt:not([hidden]){grid-template-columns:1fr}.actp{position:static;max-height:none}.actl{max-height:480px}}

/* ---- My corner: the four steps of a swap, following where you are (as Greengotts had) ---- */
.mflow{grid-column:1/-1;padding:12px 14px !important}
.msteps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.msteps li{display:flex;gap:10px;align-items:flex-start;background:rgba(14,19,17,.55);border:1px solid var(--line2);border-radius:4px;padding:10px 12px;min-width:0}
.msteps .n{flex:none;width:24px;height:24px;border-radius:50%;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;font:600 12px/1 var(--ui);color:var(--ink2)}
.msteps b{display:block;font:600 15px/1.25 var(--title);letter-spacing:.03em;color:var(--parch);margin-bottom:3px}
.msteps .d{display:block;font-size:13px;line-height:1.4;color:var(--ink2)}
.msteps li.done{opacity:.72}.msteps li.done .n{background:var(--on-bg);border-color:var(--on);color:var(--on)}
.msteps li.now{border-color:var(--on);background:linear-gradient(180deg,rgba(180,154,108,.14),rgba(14,19,17,.6));box-shadow:inset 0 0 0 1px rgba(180,154,108,.25)}
.msteps li.now .n{background:var(--on);border-color:var(--on);color:#141A18}
@media (max-width:1100px){.msteps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.msteps{grid-template-columns:1fr}.msteps:has(li.now) li:not(.now){display:none}}   /* phones: just the step you're on */


/* refunds in My corner, and the exact-amount warning (24 Nov 2026) */
.mrefunds{display:flex;flex-direction:column;gap:6px;grid-column:1/-1}
.mrefunds .rf{display:grid;grid-template-columns:1fr auto;gap:2px 12px;padding:8px 0;border-top:1px solid var(--line,rgba(180,154,108,.25));font-size:14px}
.mrefunds .rf .mute{grid-column:1/-1}.mrefunds .ok{color:#7fb08f;font-weight:600}
@media (max-width:600px){.mrefunds .rf{grid-template-columns:1fr}}
.paybox .warn.exact{margin:8px 0 4px;font-size:13.5px}
.paybox .tip{margin:6px 0 4px;font-size:13px;color:var(--mute);border-left:2px solid rgba(180,154,108,.45);padding:2px 0 2px 9px}
