/* FIX310 — Marketplace desktop/mobile and Path of the Wolf refinement.
   Late-scoped layer: no new data, business rules, chat positioning or keyboard changes. */

/* Selected category is colour-coded; the OTHER choice must be visibly neutral
   on every theme, including My Sales/My Purchases and For Sale/Wanted. */
html body.gcMarketplacePage #mpTypeTabs216 .mpTypeTab216:not(.isActive){
 background:linear-gradient(120deg,#353a3d,#22272a)!important;
 background-color:#2b3033!important;
 border:1px solid rgba(167,174,180,.39)!important;
 color:#d6dadb!important;
 filter:none!important;
 opacity:.86!important;
 box-shadow:inset 0 1px rgba(255,255,255,.025)!important;
}
html body.gcMarketplacePage #mpTypeTabs216 .mpTypeTab216:not(.isActive) :is(svg,.mpTypeLabel308){
 color:inherit!important;opacity:1!important;
}
html body.gcMarketplacePage #mpTypeTabs216 .mpTypeTab216:not(.isActive):hover{
 background:linear-gradient(125deg,#41474a,#2c3235)!important;
 opacity:1!important;filter:none!important;
}
html[data-gc-theme="basic-bitch"] body.gcMarketplacePage #mpTypeTabs216 .mpTypeTab216:not(.isActive){
 background:linear-gradient(125deg,#e4e7eb,#cfd5dd)!important;
 background-color:#d9dfe6!important;color:#34404d!important;
 border-color:#aeb7c2!important;opacity:1!important;
}
html[data-gc-theme="basic-bitch"] body.gcMarketplacePage #mpTypeTabs216 .mpTypeTab216:not(.isActive):hover{
 background:linear-gradient(125deg,#eef0f3,#d9dee5)!important;
}
html[data-gc-theme="path-of-the-wolf"] body.gcMarketplacePage #mpTypeTabs216 .mpTypeTab216:not(.isActive){
 background:linear-gradient(115deg,#363631,#242521)!important;
 color:#d4cbba!important;border-color:rgba(190,176,150,.38)!important;
}
html[data-gc-theme="path-of-the-wolf"] body.gcMarketplacePage #mpTypeTabs216 .mpTypeTab216.isSelling.isActive{
 background:linear-gradient(120deg,#a44336 0%,#762d27 54%,#3f1d19 100%)!important;
 background-color:#8d372e!important;color:#fff0df!important;
 border-color:#d7866a!important;
 box-shadow:inset 0 1px rgba(255,210,180,.23),0 3px 14px rgba(88,24,17,.25)!important;
}
html[data-gc-theme="path-of-the-wolf"] body.gcMarketplacePage .listingCard.type-sale:not(.is-closed) .mp211Ribbon{
 background:#8d372e!important;
 background-image:linear-gradient(112deg,#a44336,#732b24 85%)!important;
 border-color:#c26a50!important;color:#fff0df!important;
}

/* Semantic counter and chevron geometry; prevents the count from floating
   half-way across desktop section headers or colliding with the title. */
html body.gcMarketplacePage .mpHistory309>summary.contentHead{
 display:grid!important;
 grid-template-columns:minmax(0,1fr) auto 34px!important;
 gap:clamp(9px,1.2vw,18px)!important;
 align-items:center!important;justify-content:stretch!important;
 min-height:54px!important;cursor:pointer!important;
 padding:7px 3px!important;
}
html body.gcMarketplacePage .mpHistory309>summary.contentHead>div:first-child{
 min-width:0!important;max-width:100%!important;
}
html body.gcMarketplacePage .mpHistory309>summary .mpHistoryCount309{
 justify-self:end!important;align-self:center!important;
 margin:0!important;display:grid!important;place-items:center!important;
 height:26px!important;min-width:27px!important;
 padding:2px 9px!important;box-sizing:border-box!important;
 border-radius:999px!important;
 border:1px solid color-mix(in srgb,currentColor 29%,transparent)!important;
 background:color-mix(in srgb,currentColor 8%,transparent)!important;
 color:inherit!important;font-weight:750!important;font-size:11px!important;
 font-variant-numeric:tabular-nums!important;opacity:.9!important;
}
html body.gcMarketplacePage .mpHistory309>summary .mpHistoryChevron309{
 position:relative!important;display:grid!important;place-items:center!important;
 width:32px!important;height:32px!important;margin:0!important;
 border:1px solid color-mix(in srgb,currentColor 25%,transparent)!important;
 border-radius:11px!important;
 background:color-mix(in srgb,currentColor 7%,transparent)!important;
 font-size:0!important;line-height:1!important;opacity:1!important;
 transform:none!important;transition:background .18s,border-color .18s!important;
}
html body.gcMarketplacePage .mpHistory309>summary .mpHistoryChevron309::after{
 content:""!important;display:block!important;box-sizing:border-box!important;
 width:8px!important;height:8px!important;
 border-right:1.9px solid currentColor!important;
 border-bottom:1.9px solid currentColor!important;
 transform:translateY(-2px) rotate(45deg)!important;
 transition:transform .18s ease!important;
}
html body.gcMarketplacePage .mpHistory309[open]>summary .mpHistoryChevron309::after{
 transform:translateY(2px) rotate(225deg)!important;
}
html body.gcMarketplacePage .mpHistory309>summary:hover .mpHistoryChevron309{
 background:color-mix(in srgb,currentColor 13%,transparent)!important;
}
html[data-gc-theme="path-of-the-wolf"] body.gcMarketplacePage .mpHistory309>summary .mpHistoryChevron309{
 border-radius:3px 11px 3px 11px!important;color:#dec49b!important;
}
@media(max-width:480px){
 html body.gcMarketplacePage .mpHistory309>summary.contentHead{
  grid-template-columns:minmax(0,1fr) auto 32px!important;
  gap:8px!important;min-height:51px!important;
 }
 html body.gcMarketplacePage .mpHistory309>summary .mpHistoryChevron309{
  width:30px!important;height:30px!important;
 }
}

/* Transaction action buttons need a perceivable interactive plate, distinct
   from the article itself; preserve native theme palettes and focus rings. */
html body.gcMarketplacePage .mpTransactionCard221 .mpTransactionActions221 .premiumBtn{
 min-height:40px!important;
 background:linear-gradient(145deg,#173440,#0a222d)!important;
 border:1px solid rgba(108,196,210,.33)!important;
 box-shadow:inset 0 1px rgba(255,255,255,.065),0 2px 8px rgba(0,0,0,.15)!important;
 color:#e9faff!important;font-weight:750!important;
 transition:background .16s,border-color .16s,transform .16s!important;
}
html body.gcMarketplacePage .mpTransactionCard221 .mpTransactionActions221 .premiumBtn:hover{
 background:linear-gradient(145deg,#244757,#13333f)!important;
 border-color:rgba(135,226,238,.62)!important;
}
html body.gcMarketplacePage .mpTransactionCard221 .mpTransactionActions221 .premiumBtn:focus-visible{
 outline:2px solid var(--mp215-price,#70dce9)!important;outline-offset:2px!important;
}
html[data-gc-theme="basic-bitch"] body.gcMarketplacePage .mpTransactionCard221 .mpTransactionActions221 .premiumBtn{
 background:linear-gradient(140deg,#e8edf2,#d4dfe9)!important;
 border-color:#b1c0ce!important;color:#192e42!important;
 box-shadow:0 2px 8px rgba(32,55,71,.08)!important;
}
html[data-gc-theme="basic-bitch"] body.gcMarketplacePage .mpTransactionCard221 .mpTransactionActions221 .premiumBtn:hover{
 background:linear-gradient(140deg,#d9e6f1,#c4d5e5)!important;
}
html[data-gc-theme="path-of-the-wolf"] body.gcMarketplacePage .mpTransactionCard221 .mpTransactionActions221 .premiumBtn{
 background:linear-gradient(145deg,#353126,#24231d)!important;
 border-color:rgba(211,172,108,.5)!important;
 color:#f0dab5!important;
 box-shadow:inset 0 1px rgba(248,210,152,.06),0 2px 9px rgba(0,0,0,.24)!important;
}
html[data-gc-theme="path-of-the-wolf"] body.gcMarketplacePage .mpTransactionCard221 .mpTransactionActions221 .premiumBtn:hover{
 background:linear-gradient(140deg,#453a2d,#292720)!important;
 border-color:#c09a64!important;
}

/* Wolf deal sheet: transition from brown header to iron instead of an abrupt
   brown/dark-grey break. Do not change the fixed-height chat scroller. */
html[data-gc-theme="path-of-the-wolf"] body.gcMarketplacePage #detailModal.isDealDetail>.sheet{
 background:linear-gradient(180deg,#252019 0%,#1b1d17 34%,#151711 100%)!important;
}
html[data-gc-theme="path-of-the-wolf"] body.gcMarketplacePage #detailModal.isDealDetail>.sheet>.sheetHead{
 background:linear-gradient(155deg,#2e261d 0%,#28221b 50%,#21221b 100%)!important;
 border-bottom:1px solid rgba(215,182,128,.22)!important;
}
html[data-gc-theme="path-of-the-wolf"] body.gcMarketplacePage #detailModal.isDealDetail>.sheet>.detailBody,
html[data-gc-theme="path-of-the-wolf"] body.gcMarketplacePage #detailModal.isDealDetail>.sheet>.detailBody>#detailBody{
 background:linear-gradient(180deg,#21221b 0%,#1b1e18 112px,#141711 256px)!important;
 background-color:#171914!important;
}
html[data-gc-theme="path-of-the-wolf"] body.gcMarketplacePage #detailModal.isDealDetail .mpChatPrice221{
 padding-top:3px!important;
 text-shadow:0 1px 6px rgba(0,0,0,.15)!important;
}
html[data-gc-theme="path-of-the-wolf"] body.gcMarketplacePage #detailModal.isDealDetail .sheetHead :is(.closeBtn,#detailClose){
 display:grid!important;place-items:center!important;
 flex:0 0 38px!important;width:38px!important;min-width:38px!important;
 height:38px!important;min-height:38px!important;
 padding:0!important;margin:0!important;
 border-radius:9px!important;
 border:1px solid rgba(204,167,106,.41)!important;
 background:linear-gradient(150deg,#362b20,#25221d)!important;
 box-shadow:inset 0 1px rgba(240,202,157,.1)!important;
 font-size:20px!important;line-height:1!important;
}
html[data-gc-theme="path-of-the-wolf"] body.gcMarketplacePage #detailModal.isDealDetail .sheetHead :is(.closeBtn,#detailClose) svg{
 width:18px!important;height:18px!important;stroke-width:2.1!important;
}
html[data-gc-theme="path-of-the-wolf"] body.gcMarketplacePage #detailModal.isDealDetail .mpDealActionBar #mpDealComplete:disabled{
 opacity:1!important;filter:none!important;cursor:default!important;
 background:linear-gradient(155deg,#302c26,#25231f)!important;
 border:1px solid rgba(188,158,114,.35)!important;
 color:#bcae99!important;
 box-shadow:inset 0 1px rgba(244,213,164,.04)!important;
}
html[data-gc-theme="path-of-the-wolf"] body.gcMarketplacePage #detailModal.isDealDetail .mpDealActionBar #mpDealComplete:disabled :is(svg,span){
 color:#c1b39e!important;stroke:currentColor!important;
 opacity:1!important;
}
html[data-gc-theme="path-of-the-wolf"] body.gcMarketplacePage #detailModal.isDealDetail .mpDealActionBar #mpDealComplete:disabled svg{
 opacity:.68!important;
}
/* Remove the Wolf dock underline altogether: six small icons and labels
   already communicate the active item via their colour and selected glow.
   This avoids the rune/icon collision in 360–430px viewports. */
html[data-gc-theme="path-of-the-wolf"] body :is(#profileBottomNav.gcAppBottomNav,#gcAdminUnifiedNav.gcAdminFloatingNav)>:is(.gcAppNavButton,.gcAdminFloatButton):is(.isActive,[aria-current="page"])::before{
 content:none!important;display:none!important;
}
html[data-gc-theme="path-of-the-wolf"] body :is(#profileBottomNav.gcAppBottomNav,#gcAdminUnifiedNav.gcAdminFloatingNav)>:is(.gcAppNavButton,.gcAdminFloatButton):is(.isActive,[aria-current="page"]){
 background:radial-gradient(ellipse at 50% 28%,rgba(219,166,105,.14),transparent 78%)!important;
}
@media(prefers-reduced-motion:reduce){
 html body.gcMarketplacePage .mpHistory309>summary .mpHistoryChevron309::after,
 html body.gcMarketplacePage .mpTransactionCard221 .mpTransactionActions221 .premiumBtn{
  transition:none!important;
 }
}

/* FIX310 — owner-only Korma pin diagnostics in the existing Guardians Admin tab. */
body[data-gc-page="admin_whatsapp_bot"] .gcK310PinPanel{
 margin:18px 0 6px;padding:14px 16px;
 border:1px solid color-mix(in srgb,var(--gc-theme-accent,#8bafb5) 36%,transparent);
 border-radius:15px;
 background:color-mix(in srgb,var(--gc-theme-bg,#14222a) 80%,#485861 20%);
 color:var(--gc-theme-text,inherit);
}
body[data-gc-page="admin_whatsapp_bot"] .gcK310PinPanel>h3{margin:0 0 8px;font-size:16px;line-height:1.3}
body[data-gc-page="admin_whatsapp_bot"] .gcK310PinPanel>p,
body[data-gc-page="admin_whatsapp_bot"] .gcK310PinHint,
body[data-gc-page="admin_whatsapp_bot"] .gcK310PinText>p{font-size:12px;line-height:1.5;opacity:.88}
body[data-gc-page="admin_whatsapp_bot"] #gcK310WishlistPin{
 display:flex;gap:14px;justify-content:space-between;align-items:center;flex-wrap:wrap;
 padding-top:8px;
}
body[data-gc-page="admin_whatsapp_bot"] .gcK310PinText{min-width:0;flex:1 1 265px;display:grid;gap:5px}
body[data-gc-page="admin_whatsapp_bot"] .gcK310PinText>strong{font-size:14px}
body[data-gc-page="admin_whatsapp_bot"] .gcK310PinText>span,
body[data-gc-page="admin_whatsapp_bot"] .gcK310PinText>small{font-size:11px;opacity:.76;overflow-wrap:anywhere}
body[data-gc-page="admin_whatsapp_bot"] .gcK310PinText>p{margin:3px 0 0}
body[data-gc-page="admin_whatsapp_bot"] .gcK310PinRetry{
 border:1px solid color-mix(in srgb,currentColor 33%,transparent);
 border-radius:11px;padding:10px 14px;min-height:40px;font:700 12px/1.3 inherit;
 color:inherit;background:color-mix(in srgb,currentColor 11%,transparent);
 box-shadow:inset 0 1px rgba(255,255,255,.07);cursor:pointer;
}
body[data-gc-page="admin_whatsapp_bot"] .gcK310PinRetry:is(:hover,:focus-visible):not(:disabled){outline:2px solid var(--gc-theme-accent,#8bd2d8);outline-offset:2px}
body[data-gc-page="admin_whatsapp_bot"] .gcK310PinRetry:disabled{opacity:.4;cursor:not-allowed}
html[data-gc-theme="basic-bitch"] body[data-gc-page="admin_whatsapp_bot"] .gcK310PinPanel{
 background:linear-gradient(140deg,#f5f6f8,#e5eaee)!important;
 color:#263543!important;border-color:#bfcad3!important;
}
html[data-gc-theme="path-of-the-wolf"] body[data-gc-page="admin_whatsapp_bot"] .gcK310PinPanel{
 background:linear-gradient(140deg,#29251d,#151812)!important;
 color:#eee0c6!important;border-color:#7d6548!important;
 border-radius:2px 15px 2px 15px!important;
}
@media(max-width:430px){
 body[data-gc-page="admin_whatsapp_bot"] .gcK310PinPanel{padding:12px}
 body[data-gc-page="admin_whatsapp_bot"] .gcK310PinRetry{width:100%}
}
