.player-trade-window{color:#655047;background:#fff9f1;border:1px solid #d9b8a2;border-radius:18px;padding:20px;width:min(820px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box;box-shadow:0 12px 42px #35261d40;animation:trade-open .18s ease-out;font-family:inherit;font-size:14px;line-height:1.4}
.player-trade-window::backdrop{background:#38251b40}
.player-trade-window [hidden]{display:none!important}
.player-trade-window header,.trade-offer-heading,.trade-bag-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.player-trade-window header{margin-bottom:18px}.player-trade-window h2{font-size:21px;margin:0}.player-trade-window h3{font-size:15px;margin:0}
.player-trade-window button,.player-trade-window input{font:inherit;color:inherit;border:1px solid #debda8;background:#fff5e9;border-radius:10px;padding:9px 12px;margin:0;max-width:100%;box-sizing:border-box}
.player-trade-window button{cursor:pointer;transition:background .15s,color .15s,border-color .15s}.player-trade-window button:hover,.player-trade-window button:focus-visible{background:#655047;color:#fff}
.player-trade-window button:focus-visible,.player-trade-window input:focus-visible{outline:2px solid #ae83ad;outline-offset:2px}
.player-trade-window button:disabled{opacity:.5;cursor:default}.player-trade-window button.trade-primary{background:#7c4c63;border-color:#7c4c63;color:#fff;min-width:110px;font-weight:600}
.player-trade-window button.trade-primary:hover,.player-trade-window button.trade-primary:focus-visible{background:#655047;border-color:#655047}
.player-trade-window button.trade-close{width:36px;height:36px;min-width:36px;padding:0;display:inline-grid;place-items:center;flex:0 0 36px;line-height:1;border-radius:10px}
.player-trade-window.trade-invitation{width:min(350px,calc(100vw - 24px))}
.trade-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}.trade-offer{padding:12px;background:#fff2e7;border:1px solid #e6ccba;border-radius:12px;min-width:0}
.trade-crowns{display:flex;align-items:center;gap:5px;margin-left:auto;white-space:nowrap}.trade-crowns img{width:22px;height:28px;object-fit:contain}.trade-crowns input{width:96px;min-width:0;padding:6px 8px}
.trade-card-grid{display:grid;gap:9px;align-content:start}.trade-offer-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:12px;max-height:270px;overflow:auto;padding:2px;min-height:104px}.trade-offer-grid>.trade-muted{grid-column:1/-1}
.player-trade-window button.trade-card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:12px 7px 8px;width:100%;min-height:114px;aspect-ratio:auto;border:1px solid #eadde3;border-radius:13px;background:#fff;color:#6f5361;text-align:center}
.player-trade-window button.trade-card:hover,.player-trade-window button.trade-card:focus-visible{background:#f3e7ed;border-color:#bba0af;color:#655047}
.player-trade-window button.trade-card.selected{border-color:#987387;background:#f6edf2}.trade-card .inventory-item-icon{width:64px;height:64px;display:flex;align-items:center;justify-content:center;font-size:30px}.trade-card .inventory-item-image{width:100%;height:100%;object-fit:contain}
.trade-card .inventory-item-name{font-size:12px;line-height:1.25;overflow-wrap:anywhere}.trade-card .inventory-quantity{position:absolute;right:4px;top:4px;border-radius:12px;padding:1px 5px;background:#f1e3e9;color:#745363;font-size:11px}
.trade-card-detail{font-size:10px;line-height:1.2;color:#947465}.trade-offered-item{min-width:0}.trade-item-tools{display:flex;justify-content:center;gap:4px;margin-top:5px}.trade-item-tools input{width:58px;min-width:0;padding:5px}.trade-item-tools button{padding:5px 6px;font-size:11px}
.trade-bag{border-top:1px solid #e6ccba;padding-top:14px;margin-top:14px}.trade-bag-heading input{width:190px;min-width:0;padding:7px 10px}.trade-filters{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.trade-filters button{padding:5px 10px;border-radius:18px;font-size:12px}.trade-filters button[aria-pressed=true]{background:#655047;color:#fff;border-color:#655047}
.trade-bag-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:260px;overflow:auto;padding:3px}
.trade-footer{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.trade-status,.trade-muted{font-size:12px;color:#947465}.trade-status:empty{display:none}.trade-review{background:#f0e6f1;border-radius:10px;padding:12px;font-size:13px}
.player-trade-window.closing{animation:trade-close .17s ease-in forwards;pointer-events:none}
@keyframes trade-open{from{opacity:0;translate:0 9px;scale:.97}to{opacity:1;translate:0 0;scale:1}}
@keyframes trade-close{to{opacity:0;translate:0 6px;scale:.98}}
@media(max-width:560px){.player-trade-window{padding:14px}.trade-columns{gap:8px}.trade-offer{padding:8px}.trade-offer-heading{align-items:flex-start;flex-wrap:wrap;gap:5px}.trade-offer-heading h3{font-size:13px}.trade-crowns{max-width:100%}.trade-crowns input{width:78px}.trade-offer-grid{grid-template-columns:1fr;max-height:230px;min-height:96px}.trade-bag-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-height:245px}.trade-bag-heading input{width:160px}.trade-card .inventory-item-icon{width:52px;height:52px}.trade-item-tools{flex-wrap:wrap}.player-trade-window h2{font-size:18px}}
@media(prefers-reduced-motion:reduce){.player-trade-window,.player-trade-window.closing{animation:none}}

.trade-offer-locked{background:#e9e6e4;border-color:#c7c0bc}.trade-offer-locked .trade-card{filter:grayscale(1)}
.trade-offered-item{position:relative}.trade-offered-item .inventory-quantity{left:4px;right:auto}
.player-trade-window button.trade-remove{position:absolute;top:4px;right:4px;width:26px;height:26px;padding:0;line-height:1;background:#655047;color:white;border-color:#655047;border-radius:7px}
.player-trade-window button.trade-edit-quantity{padding:3px 6px;width:100%;margin-top:4px;font-size:11px}
.trade-selection{width:min(350px,calc(100vw - 24px))}.trade-selection label{display:block;margin-bottom:12px;font-size:12px}.trade-selection select{display:block;width:100%;margin-top:5px;padding:10px;background:#fff5e9;color:#655047;border:1px solid #debda8;border-radius:10px;font:inherit}
.trade-quantity{display:flex;gap:10px;align-items:center;margin:16px 0}.trade-quantity input[type=range]{padding:0;width:100%;accent-color:#7c4c63}.trade-quantity input[type=number]{width:85px}
.trade-plant-preview{display:flex;align-items:center;gap:12px;padding:10px;margin-bottom:14px;border:1px solid #e6ccba;border-radius:12px;background:#fff2e7}.trade-plant-preview .inventory-item-icon{display:flex;align-items:center;justify-content:center;width:76px;height:76px;flex:0 0 76px;font-size:36px}.trade-plant-preview :is(img,canvas){width:100%;height:100%;object-fit:contain}.trade-plant-preview strong,.trade-plant-preview small{display:block;overflow-wrap:anywhere}.trade-plant-preview small{font-size:12px;color:#947465;margin-top:4px}.trade-plant-preview .garden-card-colour{display:none}
.trade-inspection-host{border:0;padding:20px 80px 32px 20px;box-sizing:border-box;background:transparent;width:min(400px,calc(100vw - 8px));max-width:100vw;max-height:100dvh;overflow:visible}.trade-inspection-host::backdrop{background:#38251b66}
.trade-inspection-host .world-object-inspection-card{position:relative!important;inset:auto!important;margin:0 auto;max-width:calc(100vw - 104px);zoom:1}

@media(max-height:500px){.trade-inspection-host{overflow-y:auto;overflow-x:hidden}}
