
/* Marketplace: more tool than poster. One headline moment, then a calm, fast working surface. */
.phead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.phead h1 .c { color: var(--blue); }
.search-row { margin-top: 4px; }
.note { margin-top: 12px; font-size: 13.5px; color: var(--muted); }

.layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 8px; }
/* filters */
.filters { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; padding-right: 6px; scrollbar-width: thin; }
.fgroup { padding: 16px 0; border-top: 1px solid var(--line); }
.fgroup:first-child { border-top: 0; padding-top: 0; }
.fgroup h2 { font: 800 17px Archivo; font-stretch: 100%; letter-spacing: -.01em; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; }
.fgroup h2 button { font: 500 12px Inter; color: var(--blue); background: none; border: 0; padding: 0; }
.opt { display: grid; grid-template-columns: 22px 26px 1fr auto; gap: 8px; align-items: center; padding: 6px 4px; border-radius: 8px; cursor: pointer; font-size: 14.5px; }
.opt.nog { grid-template-columns: 22px 1fr auto; }
.opt:hover { background: var(--soft); }
.opt input { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; }
.opt .g { width: 26px; height: 26px; color: var(--blue); }
.opt small { font: 500 12px var(--mono); color: var(--muted); }
.opt.zero { opacity: .45; }
.mfilter { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; margin-bottom: 8px; background: var(--white); font-size: 14px; }
.more { margin-top: 6px; font-size: 13.5px; color: var(--blue); background: none; border: 0; padding: 4px; font-weight: 600; }

/* toolbar */
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.bar .count { font: 800 24px Archivo; font-stretch: 92%; letter-spacing: -.02em; margin-right: auto; }
.bar select { height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: var(--white); font-size: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--white); }
.seg button { height: 36px; padding: 0 12px; border: 0; background: none; font-size: 13.5px; font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.fbtn { display: none; }
.active { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 6px 0 12px; border-radius: 99px; background: var(--blue); color: #fff; font-size: 13.5px; font-weight: 600; border: 0; }
.chip span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); font-size: 14px; line-height: 1; }
.chip.clear { background: none; color: var(--ink); border: 1px solid var(--line); padding: 0 12px; }

/* results: grid */
.results { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rc { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 12px; display: grid; gap: 2px; align-content: start; transition: border-color .25s, box-shadow .35s var(--ease); }
.rc:hover { border-color: var(--blue); box-shadow: 0 18px 34px -26px rgba(8, 16, 58, .5); }
.rc .top { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.ic { width: 48px; height: 48px; flex: none; border-radius: 11px; background: var(--soft); color: var(--blue); display: grid; place-items: center; overflow: hidden; }
.ic svg { width: 78%; } .ic img { width: 100%; height: 100%; object-fit: cover; }
.rc .ref { display: grid; font: 500 11.5px var(--mono); color: var(--muted); line-height: 1.45; }
.rc .ref b { font: 900 24px/.9 Archivo; font-stretch: 62%; color: var(--blue); }
.rc h3 { font: 800 22px/1.05 Archivo; font-stretch: 92%; letter-spacing: -.02em; }
.rc h3 a { text-decoration: none; }
.rc h3 a::after { content: ''; position: absolute; inset: 0; border-radius: 14px; }
.rc .t { display: grid; min-width: 0; }
.rc .by { font-size: 14px; color: var(--muted); }
.rc .app { font-size: 14px; font-weight: 600; margin-top: 4px; }
.rc .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font: 400 11.5px var(--mono); color: var(--muted); }
.rc .row2 { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 13px; }
.cmpbox { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px 8px; margin: -6px -8px; border-radius: 8px; }
.cmpbox:hover { background: var(--soft); }
.cmpbox input { width: 17px; height: 17px; accent-color: var(--blue); margin: 0; }
/* results: list */
.results.list { display: block; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.results.list .rc { display: grid; grid-template-columns: 48px minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.3fr) 96px; gap: 14px; align-items: center; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 14px; box-shadow: none; }
.results.list .rc:hover { background: #FAFBFF; }
.results.list .top { display: contents; }
.results.list .ref { display: none; }
.results.list .t { display: grid; }
.results.list .meta { display: none; }
.results.list .row2 { margin: 0; justify-content: flex-end; }
.results.list .row2 .nv { display: none; }
.lc { display: none; font-size: 14px; }
.results.list .lc { display: block; }
.results.list .by, .results.list .app { display: none; }
.empty { padding: 48px 24px; text-align: center; background: var(--white); border: 1px dashed var(--line); border-radius: 14px; margin-top: 16px; }
.empty h3 { font: 800 24px Archivo; margin-bottom: 8px; }

/* compare tray */
.tray { position: fixed; z-index: 45; left: 50%; bottom: 16px; transform: translate(-50%, 140%); width: min(860px, 100% - 24px); background: var(--ink); color: #fff; border-radius: 16px; padding: 10px 10px 10px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .5); transition: transform .45s var(--ease); }
.tray.on { transform: translate(-50%, 0); }
.tray .sel { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
.tray .sel button { background: #23293B; color: #fff; border: 0; border-radius: 8px; height: 32px; padding: 0 8px 0 10px; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.tray .sel button span { opacity: .6; }
.tray .lim { font-size: 12.5px; color: #C7CBD8; }
.tray .btn-blue { flex: none; }
.proto-flag { bottom: 84px !important; }

/* mobile filters dialog */
@media (max-width: 960px) {
  .phead { grid-template-columns: 1fr; gap: 16px; }
  .layout { grid-template-columns: 1fr; }
  .fbtn { display: inline-flex; }
  .filters { position: fixed; inset: 0; z-index: 60; max-height: none; background: var(--paper); padding: 0 16px 96px; transform: translateY(100%); transition: transform .4s var(--ease); visibility: hidden; }
  .filters.open { transform: none; visibility: visible; }
  .filters .fhead { position: sticky; top: 0; background: var(--paper); display: flex; justify-content: space-between; align-items: center; padding: 16px 0; z-index: 2; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
  .filters .fdone { position: fixed; left: 16px; right: 16px; bottom: 16px; }
  .results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results.list .rc { grid-template-columns: 44px minmax(0, 1fr) 84px; }
  .results.list .lc.hide-s { display: none; }
}
.fhead, .fdone { display: none; }
@media (max-width: 960px) { .fhead { display: flex; } .fdone { display: inline-flex; } }
@media (max-width: 600px) {
  .results { grid-template-columns: 1fr; }
  .bar .count { width: 100%; }
  .tray { padding: 8px 8px 8px 12px; }
  .tray .sel { display: none; }
  .tray .lim { flex: 1; }
}
