#mainNav i[hidden],.notification-bell span[hidden]{display:none!important}
#openSearch{display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:48px}
#mainNav [data-view="search"] span{display:flex;align-items:center;justify-content:center}
#tradesView .page-wrap{max-width:1240px;padding:28px 32px 70px}
#tradesView .next-actions{margin:0 0 26px;padding:20px 24px;background:#151b21;border:1px solid #353f48;border-left:3px solid var(--lime);border-radius:16px}
#tradesView .next-actions h2{font-size:16px;color:#b6bfc8;font-weight:600;letter-spacing:0;margin:0 0 10px}
#tradesView .next-action{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 20px;padding:12px 0;border-top:1px solid #2b343e}
#tradesView .next-action strong{font-size:17px}#tradesView .next-action span{font-size:14px;margin:0;line-height:1.5}
#tradesView .next-action span:nth-child(2){grid-column:1}#tradesView .next-action span:last-child{grid-column:2;grid-row:1/3;align-self:center}
#tradesView .trade-tabs{display:flex;gap:6px;padding:6px;background:#12181e;border:1px solid #2d363e;border-radius:12px;margin:0 0 24px;overflow:auto}
#tradesView .trade-tabs button{padding:11px 16px;margin:0;border:0;border-radius:8px;font-size:14px;white-space:nowrap;color:#aab4bd}
#tradesView .trade-tabs button.active{background:#2a333c;color:#f4f5ef;box-shadow:none;border-bottom:0}
#tradesView .trade-tabs button.active:after{display:none}
#tradesView .trade-row{display:flex;align-items:center;gap:22px;padding:22px;margin:14px 0;background:#141a20;border:1px solid #303a43;border-radius:16px}
#tradesView .trade-status{flex:0 0 190px;gap:8px}#tradesView .trade-status b{font-size:15px;line-height:1.5}#tradesView .trade-status>span:last-child{font-size:13px}
#tradesView .trade-row>.quiet{flex:0 0 auto;min-width:112px}
.trade-item-summary{flex:1;min-width:0;display:flex;align-items:center;gap:16px}.trade-item-summary>strong{font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.trade-thumbnails{display:flex;gap:5px;flex-shrink:0}.trade-thumbnails:empty{display:none}.trade-thumbnails img{width:48px;height:64px;object-fit:contain;background:#e9e9e4;border-radius:7px}
#tradesView .compact-protection{margin:0 0 22px;padding:20px 24px;background:#10161b;border:1px solid #2c353e;border-radius:16px}
#tradesView .compact-protection h2{font-size:19px;margin:0 0 8px;letter-spacing:-.02em}
#tradesView .compact-protection>p{font-size:14px;line-height:1.6;color:#aeb8c2;margin:6px 0 14px}
#tradesView .compact-protection .case-note{font-size:13px;margin:10px 0 0;color:#8f9aa5}
#tradesView .protection-trade{padding:14px 0;gap:16px}#tradesView .protection-trade b{font-size:15px}#tradesView .protection-trade small{font-size:13px}
#tradesView .protection-trade button{font-size:14px;padding:12px 16px}
@media(max-width:900px){#tradesView .trade-row{flex-wrap:wrap}.trade-item-summary{min-width:200px}.trade-thumbnails img{width:42px;height:56px}}
@media(max-width:600px){#tradesView .page-wrap{padding:20px 16px 85px}#tradesView .next-actions,#tradesView .compact-protection{padding:17px}#tradesView .next-action{display:block}#tradesView .next-action span{display:block;margin-top:6px}#tradesView .trade-row{padding:17px;gap:16px}#tradesView .trade-status{flex-basis:100%}.trade-item-summary{flex-basis:100%}#tradesView .trade-row>.quiet{width:100%}#tradesView .trade-tabs button{padding:10px 12px}}

/* Pair each name with its photo, with the exchange mark between the two sides. */
#tradesView .trade-item-summary{display:grid;grid-template-columns:minmax(0,1fr) 26px minmax(0,1fr);gap:12px;min-width:0}
.trade-summary-side{min-width:0;display:grid;gap:8px}
.trade-summary-piece{display:flex;align-items:center;gap:10px;min-width:0}
.trade-summary-piece strong{font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.trade-summary-piece img,.trade-summary-no-photo{width:48px;height:64px;flex:0 0 48px;object-fit:contain;background:#e9e9e4;border-radius:7px}
.trade-summary-no-photo{display:grid;place-items:center;background:#252e37;color:#aab4bd}
.trade-summary-side.receive .trade-summary-piece{justify-content:flex-end;text-align:right}
.trade-summary-emblem{color:var(--lime);display:flex}.trade-summary-emblem svg{width:26px;height:26px}
.trade-summary-cash{font-size:14px;color:#b6bfc8}.trade-summary-side.receive .trade-summary-cash{text-align:right}
.trade-listing{border-bottom:1px solid var(--line)}
.trade-listing>summary{display:grid;grid-template-columns:70px minmax(0,1fr) auto;cursor:pointer;list-style:none;border-radius:8px;padding:12px 0;border-bottom:0}
.trade-listing>summary::-webkit-details-marker{display:none}
.trade-listing>summary:hover{background:#171e25}
.trade-listing>summary:focus-visible{outline:2px solid var(--lime);outline-offset:4px}
.trade-expand-label{grid-column:1/-1;display:flex;justify-content:space-between;gap:8px;color:var(--lime);font-size:14px}
.trade-listing .when-open,.trade-listing[open] .when-closed{display:none}
.trade-listing[open] .when-open{display:inline}
.trade-listing[open] .trade-expand-label>span:last-child{transform:rotate(180deg)}
.trade-listing-expanded{padding:12px 0 20px;min-width:0}
.trade-listing-expanded .trade-snapshot-note{font-size:13px;color:#aab4bd}
.trade-listing-expanded dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.trade-listing-expanded dt{font-size:13px;color:#aab4bd}
.trade-listing-expanded dd{margin:4px 0 0;font-size:14px;overflow-wrap:anywhere}
.trade-listing-expanded h4{font-size:15px;margin:20px 0 8px}
.trade-listing-copy{font-size:15px;white-space:pre-wrap;overflow-wrap:anywhere}
.trade-listing-gallery{display:grid;gap:14px;margin-top:18px}
.trade-listing-gallery figure{margin:0;min-width:0}
.trade-listing-gallery img{display:block;width:100%;max-height:540px;object-fit:contain;background:#0a0e12;border-radius:8px}
.trade-listing-gallery figcaption{font-size:13px;color:#aab4bd;margin-top:6px}
@media(max-width:600px){.trade-listing>summary{grid-template-columns:56px minmax(0,1fr);gap:10px}.trade-listing>summary>strong{grid-column:2;margin-left:0}.trade-listing>summary>.trade-expand-label{grid-column:1/-1}}
@media(max-width:600px){#tradesView .trade-item-summary{gap:8px;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr)}.trade-summary-emblem svg{width:20px;height:20px}.trade-summary-piece{gap:6px}.trade-summary-piece img,.trade-summary-no-photo{width:36px;height:48px;flex-basis:36px}.trade-summary-piece strong{font-size:13px}}

/* Keep the exchange compact instead of stretching the two items to opposite edges. */
#tradesView .trade-item-summary{flex:0 1 auto;width:fit-content;max-width:100%;margin-inline:auto;grid-template-columns:minmax(0,auto) 26px minmax(0,auto);gap:14px}
.trade-summary-piece strong{max-width:180px}
.trade-summary-piece img,.trade-summary-no-photo{width:60px;height:80px;flex-basis:60px}
@media(max-width:600px){#tradesView .trade-item-summary{width:100%;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);gap:8px}.trade-summary-piece img,.trade-summary-no-photo{width:42px;height:56px;flex-basis:42px}.trade-summary-piece strong{max-width:none}.trade-summary-side:not(.receive) .trade-summary-piece{justify-content:flex-end}.trade-summary-side.receive .trade-summary-piece{justify-content:flex-start}}
/* Desktop offers: status and action above a full-width, image-led exchange. */
@media(min-width:901px){
 #tradesView .trade-row:has(.trade-item-summary){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;padding:24px}
 #tradesView .trade-row:has(.trade-item-summary) .trade-status{grid-column:1;grid-row:1;display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:12px;min-width:0}
 #tradesView .trade-row:has(.trade-item-summary) .trade-status>span:last-child{margin-left:4px;color:#98a4b0}
 #tradesView .trade-row:has(.trade-item-summary)>.quiet{grid-column:2;grid-row:1;justify-self:end;min-height:44px}
 #tradesView .trade-item-summary{grid-column:1/-1;grid-row:2;width:100%;margin:0;padding-top:22px;border-top:1px solid #303a43;grid-template-columns:minmax(0,1fr) 40px minmax(0,1fr);gap:20px;align-items:center}
 #tradesView .trade-summary-side{gap:14px}
 #tradesView .trade-summary-piece{gap:22px;justify-content:flex-start}
 #tradesView .trade-summary-piece img,#tradesView .trade-summary-no-photo{width:clamp(120px,15vw,210px);height:clamp(160px,19vw,260px);flex:0 0 clamp(120px,15vw,210px);border-radius:12px;object-fit:cover;object-position:center}
 #tradesView .trade-summary-piece strong{flex:1;max-width:none;font-size:clamp(22px,2.1vw,32px);font-weight:800;line-height:1.2;text-align:center;text-wrap:balance}
 #tradesView .trade-summary-side.receive .trade-summary-piece strong{text-align:center}
 #tradesView .trade-summary-emblem{justify-content:center;align-items:center}
 #tradesView .trade-summary-emblem svg{width:34px;height:34px}
 #tradesView .trade-summary-cash{font-size:16px}
}
