/* Counter-asset request UI */
.wanted-section{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.wanted-section-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-end;margin-bottom:10px}
.wanted-section-head strong{display:block;font-family:Manrope,sans-serif;font-size:.92rem}
.wanted-section-head small{display:block;color:var(--muted);font-size:.7rem;margin-top:2px}
.wanted-type-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:8px 0 14px}
.wanted-type{min-height:70px;border:1px solid var(--line);background:var(--surface);border-radius:11px;padding:8px 5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.wanted-type span{font-size:1.45rem;line-height:1}
.wanted-type strong{font-size:.68rem}
.wanted-type.active{border-color:var(--green);background:var(--mint);box-shadow:inset 0 0 0 1px var(--green)}
.wanted-subtype-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:6px 0 13px}
.wanted-subtype{min-height:62px;border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:7px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-align:center}
.wanted-subtype span{font-size:1.25rem;line-height:1}
.wanted-subtype small{font-size:.58rem;line-height:1.1;color:var(--muted)}
.wanted-subtype.active{border-color:var(--green);background:var(--mint)}
.trade-requirement-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.trade-requirement-row.compact .modal-input{height:42px}
.optional{font-size:.62rem;font-weight:500;color:#97a19c;text-transform:none;letter-spacing:0}
textarea.modal-input.wanted-notes{height:auto;min-height:74px;padding-top:11px;resize:vertical}
.tradehub-requirement-summary{display:flex;justify-content:center;align-items:center;gap:5px;flex-wrap:wrap;margin:7px 0 1px;color:var(--muted);font-size:.64rem}
.tradehub-requirement-summary strong{color:var(--ink)}
.tradehub-requirement-chip{display:inline-flex;align-items:center;gap:3px;background:var(--surface-2);border:1px solid var(--line);border-radius:999px;padding:3px 7px;font-size:.6rem;font-weight:800}
.requirements-panel{margin-top:16px;border:1px solid var(--line);border-radius:13px;padding:14px;background:var(--surface-2)}
.requirements-panel>strong{display:block;font-family:Manrope,sans-serif;font-size:.9rem;margin-bottom:9px}
.requirement-icons{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:10px}
.requirement-icon{display:flex;align-items:center;gap:5px;border:1px solid var(--line);border-radius:9px;background:var(--surface);padding:6px 8px;font-size:.7rem;font-weight:800}
.requirement-icon span{font-size:1.05rem}
.requirement-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.requirement-fact{background:var(--surface);border-radius:9px;padding:9px 10px}
.requirement-fact small{display:block;color:var(--muted);font-size:.6rem;margin-bottom:2px}
.requirement-fact strong{display:block;font-size:.72rem;line-height:1.3}
.requirement-notes{margin-top:8px;background:var(--surface);border-radius:9px;padding:10px;color:var(--muted);font-size:.72rem;white-space:pre-wrap}
@media(max-width:720px){.wanted-type-grid,.wanted-subtype-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.trade-requirement-row,.requirement-grid{grid-template-columns:1fr}.tradehub-requirement-summary{justify-content:flex-start}}
@media(max-width:420px){.wanted-type-grid,.wanted-subtype-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.match-rule-row{margin:14px 0 7px;display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.match-rule-row strong{font-size:.78rem}
.match-rule-row span{color:var(--muted);font-size:.62rem;text-align:right}
.match-rule-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:13px}
.match-rule{display:flex;gap:7px;align-items:flex-start;border:1px solid var(--line);background:var(--surface);border-radius:9px;padding:8px;cursor:pointer}
.match-rule input{margin-top:2px;accent-color:var(--green)}
.match-rule span{display:flex;flex-direction:column;min-width:0}
.match-rule b{font-size:.66rem}
.match-rule small{font-size:.55rem;color:var(--muted);line-height:1.25;margin-top:2px}
.wanted-subtype-section{margin-bottom:8px}
.trade-match-list{display:grid;gap:7px;margin-top:9px}
.trade-match-card{border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:9px 10px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.trade-match-card-main{display:flex;align-items:center;gap:8px;min-width:0}
.trade-match-card-icon{font-size:1.4rem}
.trade-match-card-copy{display:flex;flex-direction:column;min-width:0}
.trade-match-card-copy strong{font-size:.72rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trade-match-card-copy span{font-size:.6rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trade-match-reasons{display:flex;gap:4px;flex-wrap:wrap;margin-top:4px}
.trade-match-reasons i{font-style:normal;font-size:.54rem;padding:3px 5px;border-radius:6px;background:var(--surface-2);color:var(--muted)}
.trade-match-card .quiet,.trade-match-card .primary{flex:none;padding:7px 9px;font-size:.64rem}
.trade-demand-note{margin-top:10px;border:1px solid var(--line);border-radius:10px;padding:9px 10px;background:var(--surface-2);font-size:.68rem}
.trade-demand-note strong{display:block;margin-bottom:2px}
.trade-demand-note span{color:var(--muted)}
.notification-count{position:absolute;right:-4px;top:-5px;min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:var(--green);color:#fff;font-size:.55rem;font-weight:900;display:grid;place-items:center;border:2px solid var(--surface)}
.notification-button{position:relative}
.match-notification-list{display:grid;gap:7px}
.match-notification{border:1px solid var(--line);background:var(--surface);border-radius:9px;padding:9px;text-align:left}
.match-notification.unread{border-color:#b8d9c8;background:var(--mint)}
.match-notification strong{display:block;font-size:.72rem}
.match-notification span{display:block;color:var(--muted);font-size:.6rem;margin-top:2px}
.match-notification small{display:block;color:var(--muted);font-size:.56rem;margin-top:5px}
@media(max-width:720px){.match-rule-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.match-rule-row{display:block}.match-rule-row span{display:block;text-align:left;margin-top:2px}.trade-match-card{align-items:flex-start}.trade-match-card .primary{margin-top:2px}}

.trade-adjustment-explainer{border:1px solid var(--line);border-radius:10px;background:var(--surface-2);padding:10px 12px;display:flex;flex-direction:column;justify-content:center}
.trade-adjustment-explainer strong{font-size:.7rem}
.trade-adjustment-explainer small{font-size:.58rem;color:var(--muted);line-height:1.3;margin-top:2px}

/* Canonical Elve-style Trade consideration composer. */
.trade-compose-labels{display:grid;grid-template-columns:1fr 30px 1fr;gap:8px;width:min(620px,100%);margin:8px auto 5px;text-align:center;font-size:.56rem;letter-spacing:.06em;color:var(--muted)}
.trade-compose-labels strong:first-child{grid-column:1}.trade-compose-labels strong:last-child{grid-column:3}
.trade-compose-board{display:grid;grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr);gap:8px;align-items:center;width:min(620px,100%);margin:0 auto 8px}
.trade-compose-slot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:5px;border:2px solid color-mix(in srgb,var(--line) 72%,var(--ink) 28%);border-radius:12px;background:color-mix(in srgb,var(--bg) 88%,#000 12%)}
.trade-compose-slot{aspect-ratio:1/1;min-width:0;border:1px solid color-mix(in srgb,var(--line) 82%,var(--ink) 18%);border-radius:7px;background:color-mix(in srgb,var(--surface-2) 90%,var(--ink) 10%);color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:3px;overflow:hidden}
.trade-compose-slot.empty{opacity:.68}.trade-compose-slot.filled{cursor:pointer}.trade-compose-slot.filled.active{border-color:var(--green)}.trade-compose-slot.offered{cursor:default}.trade-compose-slot small{max-width:100%;font-size:.52rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.trade-compose-slot .trade-compose-icon{font-size:1.45rem;line-height:1}.trade-compose-slot.add span{display:grid;place-items:center;width:52%;aspect-ratio:1;border-radius:50%;background:color-mix(in srgb,var(--surface) 88%,var(--ink) 12%);font-size:1.55rem;line-height:1}
.trade-compose-arrow{text-align:center;font-size:1rem;color:var(--muted)}
.trade-picker-empty{color:var(--muted);padding:20px}
#modalContent[data-mth-composer="trade"]{position:relative;width:min(820px,calc(100vw - 40px));max-width:820px;min-width:0;padding:20px 22px 0}
#modalContent[data-mth-composer="trade"] .eyebrow{margin:0 0 7px;font-size:.62rem;letter-spacing:.11em}
#modalContent[data-mth-composer="trade"]>h2{margin:0 0 10px;font-size:1.55rem;line-height:1.12}
/* Picker follows Elve: compact centered panel, left category rail, dense square card grid. */
.trade-picker-overlay{position:absolute;inset:0;z-index:55;padding:18px 20px;border-radius:inherit;background:color-mix(in srgb,var(--surface) 97%,#000 3%);overflow:hidden}
.trade-picker-head{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;gap:10px;align-items:center;max-width:690px;margin:0 auto}
.trade-picker-head .quiet{width:48px;height:44px;padding:0;border-radius:16px}
.trade-picker-head .modal-input{height:44px;font-size:.88rem;border-radius:16px}
.trade-picker-body{display:grid;grid-template-columns:142px minmax(0,1fr);gap:12px;max-width:690px;height:calc(100% - 58px);margin:12px auto 0}
.trade-picker-nav{display:flex;flex-direction:column;gap:6px;overflow-y:auto;overscroll-behavior:contain}
.trade-picker-nav button{min-height:36px;border:1px solid var(--line);border-radius:18px;background:transparent;color:var(--muted);font-size:.74rem;padding:6px 10px}
.trade-picker-nav button.active{color:var(--ink);border-color:color-mix(in srgb,var(--line) 45%,var(--ink) 55%);background:var(--surface-2)}
.trade-picker-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-content:start;gap:6px;overflow-y:auto;overscroll-behavior:contain;padding:0 3px 3px 0}
.trade-picker-item{aspect-ratio:1/1;min-height:0;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);padding:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-align:center;overflow:hidden}
.trade-picker-item:hover,.trade-picker-item:focus-visible{border-color:var(--muted)}
.trade-picker-item span{font-size:1.55rem;line-height:1}.trade-picker-item strong{max-width:100%;font-size:.68rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.trade-picker-item small{max-width:100%;font-size:.54rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trade-card-editor{margin-top:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);padding:12px}.trade-card-editor-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:9px}.trade-card-editor-head>div{display:flex;align-items:center;gap:7px}.trade-card-editor-head>div span{font-size:1.25rem}.trade-card-editor-head strong{font-size:.78rem}.trade-card-editor-head>small{font-size:.57rem;color:var(--muted);text-align:right}
:root[data-theme="night"] .trade-compose-slot-grid{background:#08090a;border-color:#202226}:root[data-theme="night"] .trade-compose-slot{background:#0c0d0e;border-color:#232529}:root[data-theme="night"] .trade-compose-slot.add span{background:#a8a8aa;color:#111}
@media(max-width:720px){
#modalContent[data-mth-composer="trade"]{width:calc(100vw - 20px);padding:15px 14px 0}
#modalContent[data-mth-composer="trade"]>h2{font-size:1.28rem}
.trade-compose-labels,.trade-compose-board{grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:4px}
.trade-compose-slot-grid{gap:3px;padding:3px}
.trade-picker-overlay{padding:10px}.trade-picker-head{grid-template-columns:42px 1fr 42px;gap:7px}.trade-picker-head .quiet{width:42px;height:42px}.trade-picker-body{grid-template-columns:104px 1fr;gap:8px;height:calc(100% - 54px);margin-top:8px}.trade-picker-nav button{font-size:.66rem;min-height:34px;padding:5px}.trade-picker-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.trade-picker-item strong{font-size:.62rem}.trade-picker-item small{display:none}
}
.requirement-card-list{display:grid;gap:8px;margin-top:9px}
.requirement-request-card{border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:10px}
.requirement-request-card.cash{background:var(--surface-2)}
.requirement-request-head{display:flex;align-items:center;gap:7px;margin-bottom:7px}
.requirement-request-head span{font-size:1.2rem}
.requirement-request-head strong{font-size:.74rem}

/* Trade composer: fee disclosure, acceptance and primary actions stay together and visible. */
#modalContent[data-mth-composer="trade"] .trade-compose-footer{position:sticky;bottom:-25px;z-index:4;margin:12px -25px -25px;padding:0 25px 14px;background:var(--surface);border-top:1px solid var(--line)}
#modalContent[data-mth-composer="trade"] .trade-compose-footer .fee-box{margin:0 -25px;padding:9px 12px;border-radius:0;border-width:0 0 1px}
#modalContent[data-mth-composer="trade"] .trade-fee-accept{margin:8px 0 0;min-height:34px;padding:6px 9px;font-size:.68rem}
#modalContent[data-mth-composer="trade"] .trade-compose-footer .modal-actions{position:static;margin:8px 0 0;padding:0;border:0;background:transparent}
#modalContent[data-mth-composer="trade"] .modal-actions .primary{min-width:140px}
@media(max-width:720px){#modalContent[data-mth-composer="trade"] .trade-compose-footer{bottom:-15px;margin:10px -15px -15px;padding:0 15px 10px}#modalContent[data-mth-composer="trade"] .trade-compose-footer .fee-box{margin:0 -15px}#modalContent[data-mth-composer="trade"] .trade-fee-accept{font-size:.62rem}#modalContent[data-mth-composer="trade"] .modal-actions button{flex:1;min-height:44px}}

/* Requirement editor opens over the simple Trade board, like the inventory picker. */
.trade-editor-overlay{position:absolute;inset:0;z-index:60;padding:18px 22px;border-radius:inherit;background:var(--surface);display:flex;align-items:stretch;justify-content:center;overflow:hidden}
.trade-editor-shell{width:min(760px,100%);height:100%;display:flex;flex-direction:column;min-height:0}
.trade-editor-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.trade-editor-top>strong{font-family:Manrope,sans-serif;font-size:1rem}.trade-editor-top .quiet{width:42px;height:42px;padding:0;border-radius:50%}
.trade-editor-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:4px 3px 12px}
.trade-editor-scroll .trade-card-editor{margin-top:8px;border:0;background:transparent;padding:4px 0}
.trade-editor-actions{display:flex;justify-content:flex-end;padding-top:10px;border-top:1px solid var(--line)}.trade-editor-actions .primary{min-width:130px}
@media(max-width:720px){.trade-editor-overlay{padding:10px}.trade-editor-shell{width:100%}.trade-editor-actions .primary{width:100%;min-height:44px}}

/* Canonical site card hierarchy: name -> visual -> stated value. Context may scale the card, not reorder its content. */
.tradehub-item,.trade-compose-slot.filled,.trade-picker-item,.wanted-subtype{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.mth-card-name{order:1;font-weight:700;line-height:1.1;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tradehub-item-symbol,.tradehub-cash-symbol,.trade-compose-icon,.trade-picker-item>span,.wanted-subtype>span{order:2}
.mth-card-value{order:3;font-weight:650;line-height:1.1;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}


/* Mobile/tablet keyboard-safe Trade requirement editor.
   Use one dedicated scroll surface and size it to the visual viewport so iOS/iPadOS
   cannot strand focused fields behind the software keyboard. */
.trade-editor-scroll{
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
  scroll-behavior:auto;
  scrollbar-gutter:stable;
}
@media (hover:none) and (pointer:coarse), (max-width:1180px){
  .trade-editor-overlay{
    position:fixed;
    z-index:70;
    left:0;
    right:0;
    top:var(--mth-editor-vtop,0px);
    bottom:auto;
    width:100%;
    height:var(--mth-editor-vh,100dvh);
    max-height:none;
    padding:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));
    border-radius:0;
    overflow:hidden;
    overscroll-behavior:none;
  }
  .trade-editor-shell{
    width:min(760px,100%);
    height:100%;
    max-height:100%;
    min-height:0;
    margin:0 auto;
    overflow:hidden;
  }
  .trade-editor-top,.trade-editor-actions{flex:0 0 auto}
  .trade-editor-scroll{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior-y:contain;
    touch-action:pan-y;
    -webkit-overflow-scrolling:touch;
    padding-bottom:calc(22px + env(safe-area-inset-bottom));
  }
  .trade-editor-scroll input,
  .trade-editor-scroll textarea,
  .trade-editor-scroll select{
    touch-action:manipulation;
    font-size:16px;
  }
}


/* Post-publish match results — benchmarked on the clear listing-summary → ranked matches → broader matches pattern. */
#modalContent[data-mth-composer="published-matches"]{width:min(920px,calc(100vw - 28px));max-width:920px;padding:0;overflow:hidden}
.published-match-page{padding:22px;max-height:min(82vh,920px);overflow:auto}
.published-match-live{display:flex;gap:14px;align-items:flex-start;padding-bottom:18px;border-bottom:1px solid var(--line)}
.published-match-live>span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--surface-2);font-weight:800}
.published-match-live h2{margin:2px 0 4px;font-family:Manrope,sans-serif;font-size:1.45rem}
.published-match-live p:last-child{margin:0;color:var(--muted);font-size:.83rem}
.published-own-listing{display:flex;align-items:center;gap:14px;margin:18px 0;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2)}
.published-own-badge{flex:0 0 auto;padding:5px 8px;border:1px solid var(--line);border-radius:999px;font-size:.67rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.published-own-listing>div{display:grid;gap:3px}.published-own-listing strong{font-size:.92rem}.published-own-listing small{color:var(--muted)}
.published-match-section{margin-top:20px}.published-match-section.broader{padding-top:18px;border-top:1px solid var(--line)}
.published-match-heading{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:10px}
.published-match-heading h3{margin:1px 0 0;font-size:1rem}.published-match-heading>span{font-size:.72rem;color:var(--muted)}
.published-match-list{display:grid;gap:9px}
.published-match-card{width:100%;text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:13px 14px;cursor:pointer}
.published-match-card:hover{border-color:var(--text);transform:translateY(-1px)}
.published-match-card.broader{background:var(--surface-2)}
.published-match-copy{display:grid;gap:7px}.published-match-grade{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.published-match-grade strong{font-size:.75rem}.published-match-grade small{font-size:.66rem;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.published-match-card h3{margin:0;font-size:.95rem;line-height:1.25}
.published-match-reasons{display:flex;gap:7px;flex-wrap:wrap}.published-match-reasons span{font-size:.68rem;color:var(--muted)}
.published-match-meta{display:flex;justify-content:space-between;gap:12px;align-items:center}.published-match-meta strong{font-size:.86rem}.published-match-meta span{font-size:.72rem;color:var(--muted);text-align:right}
#modalContent[data-mth-composer="published-matches"] .modal-actions{position:sticky;bottom:-22px;margin:20px -22px -22px;padding:12px 22px;background:var(--surface);border-top:1px solid var(--line)}
@media(max-width:720px){
  #modalContent[data-mth-composer="published-matches"]{width:calc(100vw - 14px)}
  .published-match-page{padding:14px;max-height:88vh}
  .published-own-listing{align-items:flex-start;flex-direction:column;gap:8px}
  .published-match-meta{align-items:flex-start;flex-direction:column;gap:4px}.published-match-meta span{text-align:left}
  #modalContent[data-mth-composer="published-matches"] .modal-actions{bottom:-14px;margin:18px -14px -14px;padding:10px 14px}
  #modalContent[data-mth-composer="published-matches"] .modal-actions button{flex:1}
}

/* Professional category icon cards */
.trade-picker-item>span,.wanted-subtype>span,.trade-compose-icon,.trade-card-editor-head>div>span,.tradehub-item-symbol{
  display:grid;place-items:center;color:#5b3df5;
}
.trade-picker-item>span{width:54px;height:54px;margin-bottom:6px;border-radius:16px;background:linear-gradient(145deg,#fbfaff,#eee9ff);border:1px solid #e5defe}
.trade-picker-item>span .mth-icon-svg{width:42px;height:42px}
.wanted-subtype>span{width:48px;height:48px;margin-bottom:5px;border-radius:14px;background:linear-gradient(145deg,#fbfaff,#eee9ff);border:1px solid #e5defe}
.wanted-subtype>span .mth-icon-svg{width:38px;height:38px}
.trade-compose-icon{width:44px;height:44px;border-radius:13px;background:linear-gradient(145deg,#fbfaff,#eee9ff);border:1px solid #e5defe}
.trade-compose-icon .mth-icon-svg{width:34px;height:34px}
.trade-card-editor-head>div>span .mth-icon-svg{width:34px;height:34px}
.trade-picker-item,.wanted-subtype{border-radius:14px;transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease}
.trade-picker-item:hover,.wanted-subtype:hover{transform:translateY(-1px);border-color:#7c63ff;box-shadow:0 8px 20px rgba(91,61,245,.10)}
.trade-picker-item:focus-visible,.wanted-subtype:focus-visible{outline:3px solid rgba(91,61,245,.22);outline-offset:2px}
.wanted-subtype.active,.trade-compose-slot.request.active{border-color:#6d4aff;box-shadow:0 0 0 2px rgba(109,74,255,.10),0 8px 22px rgba(91,61,245,.10)}
:root[data-theme="night"] .trade-picker-item>span,:root[data-theme="night"] .wanted-subtype>span,:root[data-theme="night"] .trade-compose-icon{
  background:linear-gradient(145deg,#181526,#241d3d);border-color:#352d5c;color:#a18cff
}
@media(max-width:720px){
  .trade-picker-item>span{width:46px;height:46px}.trade-picker-item>span .mth-icon-svg{width:35px;height:35px}
  .wanted-subtype>span{width:42px;height:42px}.wanted-subtype>span .mth-icon-svg{width:32px;height:32px}
}

/* The published-matches dialog must size its parent, not only its inner page.
   Otherwise the default narrow modal clips the left edge and produces horizontal scroll. */
.modal:has(> #modalContent[data-mth-composer="published-matches"]){
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  width:min(960px,calc(100vw - 32px))!important;
  max-width:calc(100vw - 32px)!important;
  min-width:0!important;
  max-height:calc(100dvh - 32px)!important;
  padding:0!important;
  overflow:hidden!important;
}
.modal:has(> #modalContent[data-mth-composer="published-matches"])>#modalContent{
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:0!important;
  padding:0!important;
  overflow:hidden!important;
}
#modalContent[data-mth-composer="published-matches"] .published-match-page{
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  min-width:0;
  min-height:0;
  max-height:none;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
}
#modalContent[data-mth-composer="published-matches"] .published-match-page *,
#modalContent[data-mth-composer="published-matches"] .published-match-page *::before,
#modalContent[data-mth-composer="published-matches"] .published-match-page *::after{
  box-sizing:border-box;
  min-width:0;
}
#modalContent[data-mth-composer="published-matches"] .published-match-live,
#modalContent[data-mth-composer="published-matches"] .published-match-heading,
#modalContent[data-mth-composer="published-matches"] .published-match-meta{
  flex-wrap:wrap;
}
#modalContent[data-mth-composer="published-matches"] .published-own-listing,
#modalContent[data-mth-composer="published-matches"] .published-match-card{
  max-width:100%;
  overflow-wrap:anywhere;
}
@media(max-width:720px){
  .modal:has(> #modalContent[data-mth-composer="published-matches"]){
    width:calc(100vw - 16px)!important;
    max-width:calc(100vw - 16px)!important;
    max-height:calc(100dvh - 16px)!important;
  }
  #modalContent[data-mth-composer="published-matches"] .published-match-live{
    padding-right:36px;
  }
  #modalContent[data-mth-composer="published-matches"] .published-match-heading{
    align-items:flex-start;
  }
}
