/* Approved Market visual system, shared dark/light layouts. */
.marketplace-shell,.marketplace-detail-shell,.market-editor-shell,.mw-owner{--mw-surface:#0d3043;--mw-deep:#032331;--mw-line:#386075;--mw-text:#edf7fc;--mw-muted:#b6ccd8;--mw-accent:#34e3dd;--mw-ink:#042d34;--mw-button:linear-gradient(160deg,#24536c,#10364b);--mw-highlight:#ffffff35;--mw-shadow:#00151f;color:var(--mw-text)}
[data-ui-theme="fresh_light"] :is(.marketplace-shell,.marketplace-detail-shell,.market-editor-shell,.mw-owner),html[data-theme="light"] :is(.marketplace-shell,.marketplace-detail-shell,.market-editor-shell,.mw-owner),body[data-theme="light"] :is(.marketplace-shell,.marketplace-detail-shell,.market-editor-shell,.mw-owner),body.theme-light :is(.marketplace-shell,.marketplace-detail-shell,.market-editor-shell,.mw-owner){--mw-surface:#f6f7f8;--mw-deep:#e7ebef;--mw-line:#bdc7ce;--mw-text:#203441;--mw-muted:#556b79;--mw-accent:#637c8b;--mw-ink:#fff;--mw-button:linear-gradient(155deg,#fff,#dce3e8);--mw-highlight:#fff;--mw-shadow:#a3b1bb}
:is(.marketplace-shell,.marketplace-detail-shell,.market-editor-shell,.mw-owner) .btn,.mw-main-tabs>a,.market-feed-tabs>a{border:1px solid var(--mw-line)!important;background:var(--mw-button)!important;color:var(--mw-text)!important;box-shadow:inset 0 1px 1px var(--mw-highlight),0 3px 0 var(--mw-shadow),0 5px 9px #0002;border-radius:12px;transition:transform .12s,box-shadow .12s,background .12s;min-height:42px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:5px}
:is(.marketplace-shell,.marketplace-detail-shell,.market-editor-shell,.mw-owner) .btn:active,.market-feed-tabs>a:active{transform:translateY(3px);box-shadow:inset 0 2px 5px #0003!important;filter:brightness(.9)}
:is(.marketplace-shell,.marketplace-detail-shell,.market-editor-shell,.mw-owner) :is(.btn.primary,.btn.selected,.market-ask),.market-feed-tabs>a.selected,.market-editor-steps>[aria-current="step"]{background:linear-gradient(150deg,color-mix(in srgb,var(--mw-accent) 70%,white),var(--mw-accent))!important;color:var(--mw-ink)!important;box-shadow:inset 0 1px 1px #ffffff70,0 3px 0 color-mix(in srgb,var(--mw-accent) 45%,#17333d),0 5px 9px #0002!important;border-color:var(--mw-accent)!important}
:is(.marketplace-shell,.marketplace-detail-shell,.market-editor-shell,.mw-owner) :is(a,button,input,select,textarea):focus-visible{outline:3px solid var(--mw-accent);outline-offset:3px}
.mw-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 18px}.mw-heading a{color:var(--mw-muted);font-size:13px}.mw-heading h1{font-size:clamp(18px,3vw,25px);margin:0;letter-spacing:-.4px}.mw-main-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:16px}.mw-main-tabs .btn{padding:8px;font-size:14px;font-weight:700}
.market-v3-search{background:var(--mw-surface)!important;border-color:var(--mw-line)!important;padding:12px!important}.market-search-query>span{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.market-v3-search .market-search-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.market-v3-search .market-search-query{margin:0}.market-v3-search .market-search-query input{min-height:44px;font-size:16px}.mw-quick-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}.mw-quick-filters label{font-size:11px;min-width:0;color:var(--mw-muted)}.mw-quick-filters select{width:100%;min-width:0;font-size:13px;margin-top:3px}.market-global-footer label{min-width:0!important;flex:1}.market-global-footer{display:flex;flex-wrap:wrap;gap:8px}.market-global-footer .btn{min-height:38px;font-size:12px;padding:6px 10px}.market-global-filters summary,.mw-more summary,.mw-purposes summary{cursor:pointer;font-size:13px;padding:10px 0;color:var(--mw-muted)}.mw-purposes{margin:0}.market-category-rail{margin:10px 0 0;gap:8px}.market-category-tile{border:0!important;border-radius:0!important;background:transparent!important;min-height:76px;flex-basis:82px;padding:3px 2px 8px;box-shadow:none!important}.market-category-tile>span{height:48px;width:48px;display:grid;place-items:center;background:var(--mw-button);border:1px solid var(--mw-line);border-radius:50%;box-shadow:inset 0 1px 2px var(--mw-highlight),0 3px 0 var(--mw-shadow)}.market-category-tile.selected>span{background:var(--mw-accent);color:var(--mw-ink)}.market-category-tile b{font-size:12px}.market-feed-tabs{gap:7px;border:0;padding:6px 0 12px}.market-feed-tabs>a{padding:8px 10px;font-size:13px;flex:1;white-space:nowrap;border-bottom-width:1px}
.market-v3 .marketplace-grid{gap:14px}.market-v3-card{border:1px solid var(--mw-line)!important;background:var(--mw-surface)!important;border-radius:15px!important;overflow:hidden;box-shadow:0 5px 15px #0002}.market-v3-card .marketplace-cover{aspect-ratio:1/1!important}.market-v3-card .marketplace-cover img{object-fit:cover}.market-v3-card .market-card-summary{display:none}.market-v3-card .marketplace-card-body{padding:10px!important;gap:0}.market-v3-card h3{font-size:16px;margin:6px 0;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.8em}.market-v3-card .marketplace-price{color:var(--mw-accent);font-size:18px}.market-v3-card .marketplace-meta{font-size:10px;gap:4px}.market-v3-card .market-card-actions{display:flex;gap:6px}.market-v3-card .market-card-actions .btn{font-size:12px;min-height:36px;padding:5px 8px}.market-v3-card .market-card-actions>a{flex:1}.market-v3-card .market-seller-line{font-size:12px;padding:7px 0;min-width:0}.market-seller-line>a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.market-cover-labels{font-size:10px}.mw-more{border-top:1px solid var(--mw-line);margin-top:18px}.mw-create{position:sticky;bottom:calc(8px + env(safe-area-inset-bottom));z-index:8;padding:7px;background:var(--mw-deep);border-radius:16px;margin-top:16px}.mw-create>a{width:100%;font-weight:700}.market-discovery-section{margin-top:10px}.market-section-title h2{font-size:17px}.market-section-title>span{font-size:12px;color:var(--mw-muted)}
.marketplace-detail-shell{padding-bottom:90px}.marketplace-detail-info,.marketplace-gallery,.market-detail-content>.panel{background:var(--mw-surface)!important;border-color:var(--mw-line)!important}.marketplace-gallery{padding:0!important;overflow:hidden;border-radius:18px}.market-gallery-stage{background:var(--mw-deep)}.market-gallery-stage figure{aspect-ratio:4/3}.market-gallery-stage img{width:100%;height:100%;object-fit:contain}.market-gallery-controls{padding:7px 10px}.market-gallery-controls>span{font-size:11px;color:var(--mw-muted)}.market-gallery-thumbs{padding:8px;gap:8px}.market-gallery-thumbs button{border-radius:10px;overflow:hidden}.market-gallery-thumbs [aria-pressed="true"]{outline:2px solid var(--mw-accent)}.marketplace-detail-info h1{font-size:clamp(24px,4vw,32px);line-height:1.35}.marketplace-detail-info .marketplace-price{font-size:28px;color:var(--mw-accent)}.market-contact-note{display:none}.marketplace-contact-box{border:1px solid var(--mw-line);border-radius:16px;padding:14px;background:var(--mw-deep);display:flex;gap:8px;flex-wrap:wrap}.marketplace-contact-box>b,.market-seller-heading{width:100%}.marketplace-contact-box .btn{font-size:12px;flex:1}.market-detail-content summary{font-size:16px;cursor:pointer;font-weight:700}.market-detail-content .marketplace-longtext{font-size:14px;line-height:1.8;margin-top:12px}.market-detail-content{gap:12px}.market-sticky-inquiry{background:var(--mw-deep)!important;border-color:var(--mw-line)!important;gap:8px!important;padding:12px!important;bottom:0;z-index:15}.market-sticky-inquiry .btn{flex:1;font-weight:700}.market-sticky-inquiry strong{font-size:14px;color:var(--mw-accent)}
.market-editor-shell{max-width:880px;margin:auto}.market-editor-shell .panel,.mw-owner .panel{background:var(--mw-surface);border-color:var(--mw-line)}.market-editor-steps{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px!important}.market-editor-steps .btn{font-size:13px;padding:10px 5px}.market-editor-toolbar{font-size:12px;padding:10px!important;display:flex;flex-wrap:wrap;gap:8px;align-items:center}.market-editor-toolbar #draft-status{margin-left:auto}.market-editor-shell input,.market-editor-shell textarea,.market-editor-shell select{font-size:16px;min-height:42px}.market-editor-shell h2{font-size:19px}.market-editor-shell .pagehead p{display:none}.mw-editor-advanced{margin-top:15px}.mw-editor-advanced summary{cursor:pointer;padding:12px 0}.market-editor-shell .market-editor-navigation{position:sticky;bottom:calc(6px + env(safe-area-inset-bottom));background:var(--mw-deep);border:1px solid var(--mw-line);border-radius:14px;padding:10px;z-index:9}.market-editor-review{font-size:13px}.mw-preview{max-width:360px;border:1px solid var(--mw-line);border-radius:16px;overflow:hidden;margin:18px 0;padding:12px}.mw-preview img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px}.mw-preview h3{margin:10px 0}.mw-preview strong{color:var(--mw-accent)}.market-template-save{margin-top:20px}.mw-owner .market-workbench-tabs{overflow-x:auto;flex-wrap:nowrap}.mw-owner .market-workbench-tabs>a{white-space:nowrap;min-width:72px}.mw-owner .market-owner-cover img{border-radius:12px}.mw-owner .market-workbench-stats{gap:10px}.mw-owner .market-workbench-stats>div,.mw-owner .market-workbench-stats>a{background:var(--mw-surface);border:1px solid var(--mw-line);border-radius:16px;padding:12px}.mw-owner .market-workbench-stats strong{color:var(--mw-accent)}
@media(max-width:600px){.marketplace-shell,.marketplace-detail-shell{max-width:480px;margin:auto;padding-inline:0}.market-v3 .marketplace-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px}.market-v3-card h3{font-size:14px}.market-v3-card .marketplace-price{font-size:16px;overflow-wrap:anywhere}.market-v3-card .marketplace-meta span:first-child{display:none}.market-v3-card .market-avatar{width:23px;height:23px;font-size:12px}.market-feed-tabs{gap:5px}.market-feed-tabs>a{font-size:12px;padding:8px 5px}.market-global-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.market-global-grid label{min-width:0}.market-global-grid select{min-width:0;width:100%}.marketplace-detail-grid{display:flex!important;flex-direction:column;gap:10px!important}.marketplace-detail-info{padding:15px!important}.marketplace-gallery{border-radius:14px}.market-sticky-inquiry strong{display:none}.market-detail-actions{display:none}.marketplace-detail-head{font-size:12px}.market-editor-shell .pagehead h1{font-size:24px}.market-editor-shell .market-global-grid{grid-template-columns:minmax(0,1fr)}.market-editor-shell .span2{grid-column:auto}.market-editor-steps .btn{font-size:12px;min-height:50px}.mw-owner .market-workbench-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.mw-owner .market-owner-row{padding:10px}.market-editor-shell .market-editor-media{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){:is(.marketplace-shell,.marketplace-detail-shell,.market-editor-shell,.mw-owner) .btn{transition:none}}

body:has(.marketplace-shell) :is(.sidebar,.workspace-topbar,.cl-four-navigation),body:has(.marketplace-detail-shell) :is(.sidebar,.workspace-topbar,.cl-four-navigation),body:has(.market-editor-shell) :is(.sidebar,.workspace-topbar,.cl-four-navigation){display:none!important}
body:has(.marketplace-shell) .app-shell,body:has(.marketplace-detail-shell) .app-shell,body:has(.market-editor-shell) .app-shell{display:block!important;max-width:1100px;margin:auto}
body:has(.marketplace-shell) .shell-container,body:has(.marketplace-detail-shell) .shell-container,body:has(.market-editor-shell) .shell-container{max-width:none;width:100%;padding:18px 18px 40px}
@media(max-width:600px){body:has(.marketplace-shell) .shell-container,body:has(.marketplace-detail-shell) .shell-container,body:has(.market-editor-shell) .shell-container{padding:10px 10px 26px}}

body:has(.marketplace-shell) :is(.sidebar,.workspace-topbar,.cl-four-navigation),body:has(.marketplace-detail-shell) :is(.sidebar,.workspace-topbar,.cl-four-navigation),body:has(.market-editor-shell) :is(.sidebar,.workspace-topbar,.cl-four-navigation){display:none!important}
body:has(.marketplace-shell) .app-shell,body:has(.marketplace-detail-shell) .app-shell,body:has(.market-editor-shell) .app-shell{display:block!important;max-width:1100px;margin:auto}
body:has(.marketplace-shell) .shell-container,body:has(.marketplace-detail-shell) .shell-container,body:has(.market-editor-shell) .shell-container{max-width:none;width:100%;padding:18px 18px 40px}
@media(max-width:600px){body:has(.marketplace-shell) .shell-container,body:has(.marketplace-detail-shell) .shell-container,body:has(.market-editor-shell) .shell-container{padding:10px 10px 26px}}

.marketplace-shell{display:block!important}.marketplace-detail-shell{gap:12px!important}.marketplace-shell .mw-heading{margin:4px 0 12px}.marketplace-shell .mw-main-tabs{margin:0 0 14px}.marketplace-shell .market-category-rail{margin:8px 0 0}.marketplace-shell .mw-purposes summary{padding:4px 0}.marketplace-shell .market-feed-tabs{padding:5px 0 7px}
.market-gallery-stage{aspect-ratio:4/3;overflow:hidden}.market-gallery-stage figure{height:100%;min-height:0}.market-gallery-stage .market-zoom-button{height:100%;width:100%;min-height:0}.market-gallery-stage img{max-height:100%;object-fit:contain}.marketplace-detail-head{margin:0 0 10px!important}.marketplace-detail-head>a:last-child{color:var(--mw-muted);font-size:12px}
