.market-page{max-width:1200px;margin:auto}.market-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px}.market-heading h1{font-size:clamp(26px,3vw,36px);margin:8px 0 10px;color:#345a50}.market-heading p{margin:0;color:#7c8c86;line-height:1.65}.market-eyebrow{font-size:10px;font-weight:700;letter-spacing:1.2px;color:#78978b}.market-heading>.button{white-space:nowrap;flex-shrink:0}.market-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px;margin:0 0 24px}.market-filters{display:flex;flex-wrap:wrap;gap:8px}.market-filters .filter-chip{padding:9px 16px;min-height:38px}.market-filters .active{background:#e2f0e9;border-color:#afcdbf;color:#315e4e}.market-search{display:flex;align-items:center;max-width:100%;border:1px solid #dde5df;border-radius:12px;background:#fff;padding:3px 7px 3px 14px}.market-search input{border:0;outline:none;background:transparent;font:inherit;font-size:12px;width:190px;max-width:100%;color:#35564a}.market-search:focus-within{outline:2px solid #b3cebf}.market-stand-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.barter-stand{--awning:#a8d9c7;--soft:#e9f6ef;--stand-ink:#4e7968;background:#fff;border:1px solid #dde4dd;border-radius:18px;overflow:hidden;box-shadow:0 4px 12px #274e3b04;min-width:0}.market-color-rose{--awning:#efb7c8;--soft:#fbedf1;--stand-ink:#a35e74}.market-color-honey{--awning:#efcb87;--soft:#fcf3e3;--stand-ink:#9b773e}.market-color-lilac{--awning:#c8b8e3;--soft:#f1edf9;--stand-ink:#80699c}.market-awning{height:28px;background:repeating-linear-gradient(90deg,var(--awning) 0,var(--awning) 26px,#fff 26px,#fff 52px);border-bottom:1px solid #e5e9e2;position:relative}.market-awning:after{content:'';position:absolute;inset:auto 0 -5px;height:7px;background:radial-gradient(ellipse at 50% 0,var(--awning) 0 65%,transparent 69%) 0 0/52px 7px repeat-x;opacity:.55}.market-stand-body{padding:20px 16px 16px}.market-stand-heading{display:flex;align-items:center;gap:10px;min-height:66px;margin-bottom:16px}.market-avatar{background:var(--soft);color:var(--stand-ink);border-radius:50%;width:37px;height:37px;display:grid;place-items:center;font-size:12px;font-weight:700;flex-shrink:0}.market-stand-heading>div{flex:1;min-width:0}.market-stand-heading h2{font-size:15px;line-height:1.4;margin:0 0 3px;overflow-wrap:anywhere;color:#355247}.market-stand-heading .text-link{font-size:11px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#88968e;text-decoration:none}.market-settings{align-self:flex-start;color:#89968e;width:26px;height:28px}.market-state{font-size:10px;color:var(--stand-ink);display:block;margin-top:3px}.market-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.market-slot{font:inherit;border:1px solid transparent;background:#f9faf7;border-radius:10px;display:flex;align-items:center;justify-content:flex-start;flex-direction:column;padding:9px 4px;gap:4px;min-width:0;text-align:center;cursor:pointer;color:#58695f;transition:border-color .15s,background .15s}.market-slot:hover{border-color:var(--awning);background:var(--soft)}.market-slot:focus-visible{outline:2px solid var(--stand-ink);outline-offset:-2px}.market-slot>.item-art{width:50px;height:50px;object-fit:contain;max-width:100%}.market-item-symbol{height:50px;display:grid;place-items:center}.market-item-symbol .icon{width:27px;height:27px}.market-slot>span:not(.market-item-symbol){font-size:10px;line-height:1.4;min-height:28px;display:flex;align-items:center;justify-content:center;overflow-wrap:anywhere}.market-slot>strong{font-size:10px;font-weight:600;color:var(--stand-ink);margin-top:auto}.market-slot>small{font-size:9px;color:#8f9c92}.market-slot-empty{border:1px dashed #dce3da;background:transparent;justify-content:center;color:#a3afa3;min-height:135px}.market-slot-empty>.icon{width:23px;height:23px;margin-bottom:6px}.market-slot-empty>span{font-size:10px}.market-match{border-color:var(--awning)}.market-stand-section{margin:20px 0}.market-stand-section:empty{display:none}.market-compact .market-stand-body{padding:19px 20px}.market-compact .market-slot>.item-art{width:64px;height:64px}.market-compact .market-slot>span:not(.market-item-symbol){font-size:12px}.market-compact .market-slot>strong{font-size:11px}.market-stand-note,.market-help,.market-footnote{font-size:11px;line-height:1.7;color:#89958a}.market-stand-note{margin:14px 0 0}.market-footnote{text-align:center;margin:28px 0}.market-result-count{font-size:11px;color:#8c998f;margin-bottom:16px;display:flex;gap:15px}.market-result-count .text-link{font-size:inherit}.market-empty{padding:55px 20px;text-align:center;border:1px dashed #d9e2d6;border-radius:18px;background:#fbfcf8}.market-empty>.icon{width:38px;height:38px;color:#9cb4a1}.market-empty h2{font-size:20px;color:#536b58}.market-empty p{font-size:13px;color:#89978a;margin-bottom:22px}.market-pagination{display:flex;justify-content:center;align-items:center;gap:25px;margin-top:25px}.market-loading{font-size:12px;color:#8a9a8c;padding:12px}.market-error{color:#a1524c;font-size:12px;line-height:1.6}.market-color-options{border:0;padding:0;margin:16px 0;display:flex;flex-wrap:wrap;gap:10px}.market-color-options legend{font-size:12px;font-weight:600;margin-bottom:10px}.market-color-options label{background:var(--soft);border:1px solid var(--awning);padding:8px 12px;border-radius:9px;font-size:12px;cursor:pointer;display:flex;gap:6px;align-items:center}.market-color-options input{accent-color:#5d8b72}.market-open-toggle{display:flex;align-items:center;gap:10px;font-size:13px;margin:18px 0}.market-open-toggle input{width:17px;height:17px;accent-color:#5d8b72}.market-quantity-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.market-offer-explanation{font-size:12px;line-height:1.7;padding:12px 15px;background:#f4f7ef;border-radius:10px;color:#778870;margin:10px 0 22px}.market-price-editor{display:grid;grid-template-columns:minmax(0,1fr) 82px 28px;gap:8px;align-items:end;margin:12px 0}.market-price-editor label{font-size:11px;min-width:0}.market-price-editor label>span{display:block;margin-bottom:6px;color:#7a8b7c}.market-price-editor select,.market-price-editor input{font:inherit;color:#425f49;background:#fff;border:1px solid #dce4d9;padding:10px 8px;border-radius:8px;width:100%;min-width:0}.market-price-editor>.icon-button{height:36px;color:#8e998c}.market-remove{font-size:11px;color:#a77469;margin-top:16px}#market-dialog .barter-stand{margin-bottom:22px}#market-dialog .form-field{font-size:12px}#market-dialog .form-field input,#market-dialog .form-field select{width:100%;min-width:0}.market-offer-summary{display:flex;gap:18px;margin:0 0 25px;align-items:center}.market-offer-summary>.item-art{width:100px;height:100px;object-fit:contain;flex-shrink:0}.market-offer-summary h3{font-size:22px;margin:7px 0}.market-offer-summary p{font-size:13px;line-height:1.7;color:#75867a;margin:0 0 8px}.market-offer-summary small{font-size:11px;color:#91a08f}.market-offers{padding:0;border:0;margin:0 0 20px}.market-offers legend{font-size:14px;font-weight:600;margin-bottom:14px}.market-offer{border:1px solid #e1e7dd;background:#fafcf7;border-radius:12px;display:flex;gap:12px;align-items:center;padding:13px;margin-bottom:8px;cursor:pointer}.market-offer input{accent-color:#5d8b72}.market-offer strong{font-size:13px;font-weight:600}.market-offer small{display:block;font-size:11px;margin-top:5px;color:#849482}.market-offer:has(input:checked){background:#edf6ed;border-color:#9bbb9e}.market-offer-unavailable{cursor:default}.market-trade-summary,.market-confirm-copy{background:#f1f6eb;border-radius:12px;padding:16px;line-height:1.7;font-size:13px;color:#566d4f}.market-page button:disabled,#market-dialog button:disabled{opacity:.55;cursor:default}
@media(max-width:1100px){.market-stand-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.market-heading{align-items:flex-start;flex-direction:column;gap:18px}.market-heading p{font-size:13px}.market-stand-grid{grid-template-columns:1fr}.market-toolbar{gap:14px}.market-search{width:100%}.market-search input{width:100%;flex:1}.market-filters .filter-chip{font-size:11px;padding:8px 12px}.market-stand-body,.market-compact .market-stand-body{padding:18px 12px 12px}.market-slots{gap:6px}.market-slot{padding:8px 3px}.market-compact .market-slot>.item-art{height:50px;width:50px}.market-compact .market-slot>span:not(.market-item-symbol){font-size:10px}.market-compact .market-slot>strong{font-size:10px}.market-offer-summary{align-items:flex-start;gap:12px}.market-offer-summary>.item-art{width:65px;height:65px}.market-offer-summary h3{font-size:19px}.market-quantity-fields{grid-template-columns:1fr}.market-price-editor{grid-template-columns:minmax(0,1fr) 62px 24px;gap:6px}#market-dialog .modal-footer{gap:10px;flex-wrap:wrap}}

.market-search .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Match the gift selector while keeping its own form and behavior. */
#market-dialog .gift-picker{min-width:0;margin:0;padding:0;border:0}
#market-dialog .gift-picker legend{padding:0;font-size:13px;font-weight:600;color:#597152;margin-bottom:9px}
#market-dialog .gift-picker-search{display:flex;align-items:center;gap:7px;border:1px solid #e1e8dc;border-radius:10px;padding:0 9px;margin-bottom:8px;background:#fcfdf9}
#market-dialog .gift-picker-search>.icon{width:15px;height:15px;color:#8a9a80}
#market-dialog .gift-picker-search input{min-height:36px;min-width:0;width:100%;border:0;background:none;padding:8px 0;font:inherit;font-size:16px;color:#41634c}
#market-dialog .gift-picker-scroll{max-height:244px;max-height:min(244px,32dvh);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#bdceb4 #f5f7ef;padding:3px 5px 3px 3px;border-radius:12px;background:#f7f8f0}
#market-dialog .gift-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:7px}
#market-dialog .gift-picker-item{position:relative;min-width:0;cursor:pointer}
#market-dialog .gift-picker-item>input{min-height:0;position:absolute;width:1px;height:1px;opacity:0;clip-path:inset(50%);margin:0}
#market-dialog .gift-picker-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-width:0;height:100%;min-height:122px;padding:9px 6px 8px;border:1px solid #e2e8da;border-radius:12px;background:#fffdf7;text-align:center;color:#57704e}
#market-dialog .gift-picker-art{display:grid;place-items:center;height:52px;width:58px;flex:none;margin-bottom:5px}
#market-dialog .gift-picker-art>.item-art{width:52px;height:52px;object-fit:contain}
#market-dialog .gift-picker-art>.icon{width:30px;height:30px;color:#93a277}
#market-dialog .gift-picker-tile strong{font-size:12px;font-weight:500;line-height:1.25;overflow-wrap:anywhere}
#market-dialog .gift-picker-tile small{margin-top:auto;padding-top:4px;font-size:10px;color:#89917c}
#market-dialog .gift-picker-check{position:absolute;right:5px;top:5px;display:none;place-items:center;width:18px;height:18px;border-radius:50%;background:#719269;color:white}
#market-dialog .gift-picker-check .icon{width:12px;height:12px}
#market-dialog .gift-picker-item>input:checked+.gift-picker-tile{border-color:#90ad7f;background:#edf4e5;box-shadow:inset 0 0 0 1px #90ad7f}
#market-dialog .gift-picker-item>input:checked+.gift-picker-tile .gift-picker-check{display:grid}
#market-dialog .gift-picker-item>input:focus-visible+.gift-picker-tile{outline:2px solid #638a55;outline-offset:1px}
#market-dialog .gift-picker-item>input:disabled+.gift-picker-tile{opacity:.55}
#market-dialog .gift-picker-empty{padding:24px 12px;text-align:center;font-size:13px;color:#8a937f}
#market-dialog [hidden]{display:none!important}
@media(max-width:400px){#market-dialog .gift-picker-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#market-dialog .gift-picker-tile{min-height:116px;padding-inline:4px}#market-dialog .gift-picker-tile strong{font-size:11px}#market-dialog .gift-picker-art,#market-dialog .gift-picker-art>.item-art{width:46px;height:46px}}

.market-color-mint{--awning:#a8d9c7;--soft:#e9f6ef;--stand-ink:#4e7968}
.market-color-sky{--awning:#b4d1e5;--soft:#edf5fb;--stand-ink:#587c96}
.market-color-peach{--awning:#eec0a7;--soft:#fff0e7;--stand-ink:#a46e52}
.market-color-sage{--awning:#bccba3;--soft:#f1f5e8;--stand-ink:#71835b}
.market-color-cream{--awning:#ded2b2;--soft:#faf6eb;--stand-ink:#8f805b}
.market-color-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.market-color-options label{min-width:0;padding:9px 7px;gap:6px;justify-content:center}
.market-color-options input{position:absolute;opacity:0;width:1px;height:1px}
.market-color-options label:has(input:checked){box-shadow:0 0 0 2px var(--stand-ink)}
.market-color-options label:has(input:focus-visible){outline:2px solid #345e4c;outline-offset:3px}
.market-color-swatch{width:23px;height:20px;border:1px solid var(--awning);border-radius:5px;background:repeating-linear-gradient(90deg,var(--awning) 0,var(--awning) 6px,#fff 6px,#fff 12px);flex-shrink:0}
.market-open-toggle:has(input:disabled){color:#85907e}
#market-dialog .gift-picker{margin-bottom:18px}
#market-dialog .gift-picker-art>.market-item-symbol{height:52px}
#market-dialog .gift-picker-art>.market-item-symbol .icon{width:30px;height:30px}
#market-dialog .gift-picker-search:focus-within,#market-dialog .gift-picker-scroll:focus-visible{outline:2px solid #86a375;outline-offset:2px}
#market-dialog .gift-picker-search input:focus{outline:none;box-shadow:none}
#market-dialog .market-price-choice{min-width:0}
#market-dialog .market-selected-item{display:flex;align-items:center;gap:8px;font-size:12px;color:#425f49;min-height:50px;text-align:left}
#market-dialog .market-selected-item>.item-art{width:36px;height:36px;object-fit:contain;flex-shrink:0}
#market-dialog .market-selected-item>.market-item-symbol{height:36px;flex-shrink:0}
#market-dialog .market-selected-item strong{min-width:0;font-size:12px;font-weight:500;overflow-wrap:anywhere}
#market-dialog .market-price-editor{align-items:end}
#market-dialog .market-price-editor>label input{height:50px}
#market-dialog .market-price-editor>.icon-button{height:50px}
@media(max-width:400px){.market-color-options{grid-template-columns:repeat(2,minmax(0,1fr))}.market-color-options label{justify-content:flex-start;padding:9px 12px}}
@media(hover:hover){#market-dialog .gift-picker-item:hover .gift-picker-tile{border-color:#abc19a}}

/* Align the stand title with its caretaker, sigil and avatar as one compact header. */
.market-stand-heading{min-height:44px;align-items:center;margin-bottom:16px}
.market-stand-heading h2{line-height:1.35;margin:0 0 4px}
.market-stand-heading .market-stand-title{min-width:0}
.market-stand-meta{display:flex;align-items:center;flex-wrap:wrap;gap:5px 9px;min-width:0}
.market-stand-meta .text-link{display:inline-flex;align-items:center;padding:0;line-height:1.5;overflow:visible;white-space:normal;text-align:left}
.market-stand-meta .caretaker-name{min-width:0;align-items:center}
.market-stand-meta .caretaker-name>bdi{overflow-wrap:anywhere}
.market-stand-meta .market-state{display:inline-block;margin:0;padding:2px 6px;border-radius:5px;background:var(--soft);font-size:9px;line-height:1.4;white-space:nowrap}
.market-stand-heading .market-settings{align-self:center;flex:none}

.market-picker-filters{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 12px}
#market-dialog .market-picker-filters .filter-chip{font-size:12px;min-height:30px;padding:5px 11px;border:1px solid #dce7df;border-radius:18px;background:#fff;color:#567066}
#market-dialog .market-picker-filters .filter-chip.active{background:#e1f3ec;border-color:#91cbbb;color:#285e50}
.market-price-option{border:1px solid #dce7df;border-radius:14px;background:#f9fbf8;padding:14px;margin:12px 0}
.market-price-option>header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.market-price-option h4{margin:0;font-size:14px}.market-price-option>header .text-link{font-size:11px}
.market-price-option .market-price-editor{background:transparent;border-radius:10px;padding:10px;margin:8px 0}
.market-price-option .market-price-editor+.market-price-editor{position:relative;margin-top:20px}
.market-price-option .market-price-editor+.market-price-editor:before{content:'+';position:absolute;left:50%;top:-20px;font-weight:600;color:#779686}
.market-bundle-plus{color:#6d937f;padding:0 4px}.market-offer strong{line-height:1.6}
@media(max-width:460px){.market-price-option{padding:10px}.market-price-option .market-price-editor{padding:8px}.market-price-option>header{align-items:flex-start}}

/* Compact sale totals and illustrated payment bundles. */
.market-slot>.market-stock-line{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;gap:2px 4px;line-height:1.5}
.market-stock-line>span{white-space:nowrap}.market-stock-separator{opacity:.65}
.market-offer-content{min-width:0;flex:1}.market-wanted-items{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.market-wanted-item{display:flex;align-items:center;gap:7px;min-width:0;flex:1 1 135px;padding:8px;background:transparent;border:0}
.market-wanted-art{display:grid;place-items:center;flex:none;width:44px;height:44px}
.market-wanted-art .item-art{width:44px;height:44px;object-fit:contain}.market-wanted-art .market-item-symbol{height:44px}
.market-wanted-item>span:last-child{min-width:0;display:flex;flex-direction:column;gap:2px;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.market-wanted-item strong{font-size:12px}.market-offer>.market-offer-content>small{margin-top:8px;line-height:1.5}
.market-price-option>.market-price-picker{margin-top:12px;grid-column:auto}
#market-dialog .market-price-picker .market-help{margin:0 0 8px}
@media(max-width:460px){.market-wanted-item{flex-basis:120px}.market-wanted-items{gap:6px}.market-wanted-items>.market-bundle-plus{padding:0}}

.market-listing-title{margin-top:0}.market-quote-quantities{margin-top:18px;padding-top:14px;border-top:1px solid #e2e9dd}
.market-quote-quantities h5{margin:0 0 5px;font-size:12px;font-weight:600;color:#597152}.market-quote-quantities>.market-help{margin:0 0 10px}

.market-wanted-item.is-unavailable .market-wanted-art,.market-wanted-item.is-unavailable strong,.market-wanted-item.is-unavailable .market-wanted-name{opacity:.5}
.market-offer .market-payment-stock{margin-top:2px;font-size:10px;line-height:1.4;color:#61785b}
.market-wanted-item.is-unavailable .market-payment-stock{color:#8b6551}

.market-stand-badges{display:contents}
.market-stand-badge{display:inline-flex;align-items:center;gap:4px;border-radius:5px;padding:2px 6px;font-size:9px;line-height:1.4;font-weight:500;white-space:nowrap;border:1px solid transparent}
.market-stand-badge>.icon{width:12px;height:12px;flex:none}.market-badge-hot-seller{background:#fff0e4;border-color:#f2d8c1;color:#99623e}
.market-badge-much-loved{background:#f8eaf0;border-color:#ecd3df;color:#8f5c73}.market-badge-popular-stand{background:#eaf3ed;border-color:#d5e5da;color:#557461}

.market-activity-summary{display:grid;gap:5px;padding:14px 0 18px;font-size:12px;color:#61756a}.market-activity-summary>strong{color:#34534b}.market-activity-summary>small{font-size:10px;line-height:1.6}

.market-stand-badges[hidden]{display:none}

#notifications-view [data-social="notifications-all"]:not(:disabled){cursor:pointer}
#market-dialog .market-return-title{margin:24px 0 8px}
dialog:has([data-market-listing])>.modal-header h2{font-size:22px;line-height:1.3}
dialog:has([data-market-listing])>.modal-header{padding-bottom:12px}
.market-owner-log{margin-top:16px;padding-top:14px;border-top:1px solid #e2e8df}.market-log-heading{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:8px}.market-log-heading h3{margin:0;font-size:13px}.market-log-heading .text-link,.market-log-pages .text-link{font-size:11px;cursor:pointer}.market-log-scroll{max-height:215px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.market-log-scroll ul{list-style:none;margin:0;padding:0}.market-log-scroll li{display:flex;gap:8px;align-items:flex-start;padding:8px 0;font-size:12px;line-height:1.5}.market-log-scroll li+li{border-top:1px solid #edf0e9}.market-log-scroll li>.icon{width:16px;height:16px;flex:none;margin-top:2px;color:#7b9383}.market-log-scroll p{margin:0;overflow-wrap:anywhere}.market-log-scroll time{font-size:10px;color:#8a998c}.market-log-scroll .text-link{font:inherit;padding:0;cursor:pointer}.market-log-pages{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:8px;font-size:10px;color:#809083}.market-log-pages button:disabled{cursor:default;opacity:.45}.market-log-status{font-size:11px;color:#936c56;margin:5px 0 0}.market-log-empty{color:#879589}
#market-dialog .market-offer:not(.market-offer-unavailable),#market-dialog .market-offer:not(.market-offer-unavailable) input[type="radio"]{cursor:pointer}

.market-stand-meta .market-state{font-size:9px;line-height:1.4;font-weight:500;padding:2px 6px;border:1px solid transparent}

/* Share the heading and product rows across neighboring cards, including wrapped badges. */
@supports(grid-template-rows:subgrid){
 .market-stand-grid>.barter-stand{display:grid;grid-template-rows:subgrid;grid-row:span 3;row-gap:0}
 .market-stand-grid>.barter-stand>.market-stand-body{display:grid;grid-template-rows:subgrid;grid-row:span 2;row-gap:0}
 .market-stand-grid .market-stand-heading{align-items:flex-start}
}
