.marketplace-page { color-scheme: light; background: #ede5e6; color: #263038; }
.marketplace-page .bar { background: rgba(255,255,255,.68); }
.marketplace-page .bar [aria-current="page"] { color: #f6a81b; }
.marketplace-page .bar [aria-current="page"]::after { content: ''; position: absolute; bottom: 0; height: 2px; background: #f6a81b; left: 10px; right: 10px; }
.market-shell { width: min(1440px, 100%); padding: 58px var(--gutter) 40px; margin: auto; }
.market-heading { display: grid; grid-template-columns: 1fr 320px; align-items: end; gap: 48px; margin-bottom: 44px; }
.market-back { display: inline-block; color: #5a6065; font-size: calc(13px + var(--mobile-type-increase, 0px)); margin-bottom: 24px; text-decoration: none; }
.market-back:hover { color: #20272c; }
.market-heading h1 { max-width: 19ch; font-size: calc(clamp(36px, 4.4vw, 60px) + var(--mobile-type-increase, 0px)); letter-spacing: -.035em; line-height: 1.05; color: #20282d; margin: 0 0 20px; }
.market-heading > div > p { max-width: 54ch; font-size: calc(15px + var(--mobile-type-increase, 0px)); line-height: 1.7; color: #555d64; margin: 0; }
.demo-notice { display: flex; align-items: start; gap: 10px; padding: 16px 0; border-top: 1px solid #26303830; }
.demo-dot { width: 7px; height: 7px; background: #ab6900; border-radius: 50%; margin-top: 8px; flex: none; }
.demo-notice strong { font-size: calc(13px + var(--mobile-type-increase, 0px)); }
.demo-notice p { font-size: calc(12px + var(--mobile-type-increase, 0px)); line-height: 1.65; margin: 6px 0 0; color: #555d64; }
.market-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.catalog-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.search-box { display: flex; align-items: center; gap: 12px; border: 1px solid #26303830; border-radius: 8px; background: #ffffff50; padding: 11px 14px; flex: 1; }
.search-box:focus-within { outline: 2px solid #926019; outline-offset: 2px; }
.search-box svg { width: 18px; height: 18px; fill: none; stroke: #62686e; stroke-width: 1.5; flex: none; }
.search-box input { font: inherit; font-size: calc(14px + var(--mobile-type-increase, 0px)); border: 0; outline: none; background: transparent; color: #263038; width: 100%; min-width: 0; }
.search-box input::placeholder { color: #62686e; }
.catalog-count { font-size: calc(12px + var(--mobile-type-increase, 0px)); color: #62686e; white-space: nowrap; }
.market-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 24px; }
.market-filters button { cursor: pointer; font: inherit; font-size: calc(12px + var(--mobile-type-increase, 0px)); border: 1px solid transparent; padding: 8px 12px; background: transparent; color: #535b62; border-radius: 6px; }
.market-filters button:hover { background: #ffffff60; color: #263038; }
.market-filters button[aria-pressed="true"] { background: #263038; color: #fff; }
.market-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.market-card { min-width: 0; background: #f7f1ef; border: 1px solid #26303820; border-radius: 12px; overflow: hidden; }
.market-card.is-selected { border-color: #8e7650; }
.market-card-open { display: block; width: 100%; padding: 0; text-align: left; background: transparent; border: 0; color: #263038; font: inherit; cursor: pointer; }
.market-card-open img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; transition: opacity 150ms ease; }
.market-card-open:hover img { opacity: .85; }
.card-copy { display: flex; flex-direction: column; gap: 5px; padding: 18px 18px 12px; }
.card-title { font-size: calc(17px + var(--mobile-type-increase, 0px)); font-weight: 700; }
.card-summary { color: #62686e; font-size: calc(12px + var(--mobile-type-increase, 0px)); line-height: 1.6; }
.card-bottom { padding: 0 18px 18px; display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.card-category { font-size: calc(10px + var(--mobile-type-increase, 0px)); text-transform: capitalize; color: #62686e; }
.card-add { border: 0; background: transparent; padding: 10px 0 10px 8px; color: #775007; font: 700 calc(11px + var(--mobile-type-increase, 0px)) var(--sans); cursor: pointer; }
.card-add:hover { color: #262b30; }
.card-add.is-added { color: #3a694c; }
.market-inspector { display: grid; gap: 24px; }
.widget-detail { border: 1px solid #26303825; border-radius: 12px; background: #f7f1ef; overflow: hidden; scroll-margin-top: calc(var(--bar-h) + 16px); }
.detail-heading { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; font-size: calc(11px + var(--mobile-type-increase, 0px)); border-bottom: 1px solid #26303818; color: #62686e; }
.detail-heading a { color: #263038; text-decoration: none; }
#sidebar-count { display: inline-flex; justify-content: center; align-items: center; min-width: 20px; height: 20px; border-radius: 4px; background: #e7ded9; margin-left: 4px; font-size: calc(10px + var(--mobile-type-increase, 0px)); }
.detail-image { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; display: block; }
.detail-copy { padding: 20px; }
.detail-copy h2 { margin: 0 0 12px; color: #263038; font-size: calc(23px + var(--mobile-type-increase, 0px)); }
.detail-copy p { font-size: calc(12px + var(--mobile-type-increase, 0px)); line-height: 1.7; margin: 0; color: #555d64; }
.detail-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0 24px; }
.detail-tags span { font-size: calc(10px + var(--mobile-type-increase, 0px)); padding: 4px 7px; background: #e7ded9; border-radius: 4px; color: #50585f; }
.detail-copy h3 { color: #263038; font-size: calc(12px + var(--mobile-type-increase, 0px)); margin: 0 0 6px; }
.detail-add { width: 100%; border: 0; padding: 13px 8px; margin-top: 22px; background: #f6a81b; color: #241d12; font: 700 calc(12px + var(--mobile-type-increase, 0px)) var(--sans); border-radius: 6px; cursor: pointer; }
.detail-add:hover { background: #e79a0b; }
.detail-add.is-added { background: #e3e8df; color: #365440; }
.detail-copy p.detail-demo-note { font-size: calc(10px + var(--mobile-type-increase, 0px)); text-align: center; margin-top: 10px; }
.demo-sidebar { border-radius: 12px; background: #111318; color: #eef0f5; padding: 18px; scroll-margin-top: calc(var(--bar-h) + 16px); }
.sidebar-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sidebar-heading h2 { font-size: calc(14px + var(--mobile-type-increase, 0px)); margin: 0; }
.sidebar-heading button { font: inherit; font-size: calc(11px + var(--mobile-type-increase, 0px)); background: none; border: 0; color: #b6bcc8; cursor: pointer; padding: 8px 0 8px 8px; }
.sidebar-hint { color: #a7aeba; font-size: calc(11px + var(--mobile-type-increase, 0px)); margin: 6px 0 18px; }
.sidebar-empty { border: 1px dashed #ffffff30; border-radius: 6px; text-align: center; padding: 32px 10px; }
.sidebar-empty svg { width: 34px; height: 34px; fill: none; stroke: #8d95a3; stroke-width: 1; }
.sidebar-empty p { font-size: calc(12px + var(--mobile-type-increase, 0px)); margin: 12px 0 4px; }
.sidebar-empty span { color: #a7aeba; font-size: calc(10px + var(--mobile-type-increase, 0px)); }
.sidebar-widget + .sidebar-widget { margin-top: 14px; }
.sidebar-widget img { width: 100%; height: auto; border-radius: 6px; display: block; }
.sidebar-widget>div { display: flex; justify-content: space-between; align-items: center; padding-top: 6px; }
.sidebar-widget strong { font-size: calc(11px + var(--mobile-type-increase, 0px)); }
.sidebar-widget button { border: 0; background: none; color: #b6bcc8; font: inherit; font-size: calc(10px + var(--mobile-type-increase, 0px)); padding: 8px 0 8px 10px; cursor: pointer; }
.market-empty { text-align: center; padding: 60px 20px; }
.market-empty h2 { color: #263038; font-size: calc(22px + var(--mobile-type-increase, 0px)); }
.market-empty p { color: #555d64; font-size: calc(14px + var(--mobile-type-increase, 0px)); }
.market-empty button { padding: 12px 18px; border: 1px solid #26303830; background: #f7f1ef; color: #263038; border-radius: 6px; cursor: pointer; }
.market-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 28px; margin-top: 50px; border-top: 1px solid #26303825; }
.market-footer p { color: #555d64; font-size: calc(14px + var(--mobile-type-increase, 0px)); }
.market-install { padding: 12px 18px; background: #263038; color: #fff; border-radius: 6px; text-decoration: none; font-size: calc(13px + var(--mobile-type-increase, 0px)); }
.market-install:hover { color: #fff; background: #414d57; }
.marketplace-section-link { color: inherit; text-decoration: none; }
.marketplace-section-link:hover { color: var(--accent); }
.marketplace-page ::selection { background: #f6a81b66; color: #263038; }
.marketplace-page input { caret-color: #775007; }
.marketplace-page :focus-visible { outline: 2px solid #926019; outline-offset: 3px; }
[hidden] { display: none !important; }
@media (max-width: 1199px) { .market-layout { grid-template-columns: minmax(0,1fr) 280px; gap: 24px; } .market-heading { grid-template-columns: 1fr 280px; gap: 24px; } .card-bottom { flex-wrap: wrap; } }
@media (max-width: 999px) { .market-layout { grid-template-columns: 1fr; } .market-inspector { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; } .market-heading { grid-template-columns: 1fr; gap: 24px; } .demo-notice { max-width: 430px; } .market-heading { margin-bottom: 32px; } }
@media (max-width: 640px) { .market-shell { padding-top: 28px; } .market-heading h1 { font-size: calc(38px + var(--mobile-type-increase, 0px)); } .market-heading > div > p { font-size: calc(14px + var(--mobile-type-increase, 0px)); } .market-grid { gap: 16px; } .card-copy { padding: 12px 12px 6px; } .card-title { font-size: calc(14px + var(--mobile-type-increase, 0px)); } .card-summary { font-size: calc(11px + var(--mobile-type-increase, 0px)); } .card-bottom { padding: 0 12px 10px; gap: 0; } .card-category { display: none; } .card-add { padding-left: 0; font-size: calc(10px + var(--mobile-type-increase, 0px)); min-height: 36px; } .market-inspector { grid-template-columns: 1fr; } .catalog-count { display: none; } .market-filters { gap: 4px; } .market-filters button { padding: 8px 9px; font-size: calc(11px + var(--mobile-type-increase, 0px)); } .market-footer { flex-direction: column; align-items: flex-start; gap: 8px; } }
@media (prefers-reduced-motion: reduce) { .market-card-open img { transition: none; } }
