/* Index only. Shared public menus, collection and profile pages are unchanged. */
.trades-browser { --tb-border:rgba(215,221,255,.17); }
.trades-browser svg { display:block; width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.trades-browser button, .trades-browser a { -webkit-tap-highlight-color:transparent; }
.trades-browser button:disabled { opacity:.45; cursor:default; }
.trades-browser .trades-main { margin-top:16px; }
.trades-browser .trades-header { display:grid; grid-template-columns:auto minmax(0,1fr) auto; width:min(1100px,calc(100% - 32px)); min-height:96px; gap:20px; padding:18px 0; border-bottom:1px solid rgba(215,221,255,.12); }
.trades-browser .trades-brand { gap:10px; }
.trades-browser .trades-brand-logo { width:40px; height:40px; flex-basis:40px; }
.trades-browser .trades-brand-copy { display:flex; min-width:0; flex-direction:column; gap:4px; }
.trades-browser .trades-brand-name { color:var(--tr-ink); font-size:1.75rem; line-height:1.15; letter-spacing:-.045em; white-space:nowrap; }
.trades-browser .trades-header-controls { display:flex; align-items:center; justify-content:flex-end; gap:8px; }
.trades-browser .trades-header .pm-public-tools-desktop { justify-content:flex-end; margin:0; }
.trades-browser .trades-header .pm-public-tools-desktop a { white-space:nowrap; }
.trades-browser .trades-header-actions { gap:8px; }
.trades-browser[data-viewer-logged-in="0"] .trades-header-actions { display:grid; grid-template-columns:repeat(2,1fr); }
.trades-browser .trades-header-actions > a { white-space:nowrap; }
.trades-browser .trades-logout-form { display:flex; margin:0; }
.trades-browser .trades-logout-button { display:grid; place-items:center; width:44px; height:44px; padding:0; border:1px solid rgba(255,128,145,.34); border-radius:12px; color:#ff8091; background:rgba(255,255,255,.06); }
.trades-browser .trades-logout-button svg { stroke-width:2; }
.trades-browser .trades-logout-label { display:none; }
.trades-browser .trades-primary-icon { margin-right:7px; }
.trades-browser .trades-primary-button { min-height:44px; color:#000; }
.trades-browser .trades-link-button { min-height:44px; }
.trades-browser .trades-header-actions { flex-shrink:0; }
.trades-browser .trades-open-tools { display:none; }
.trades-browser .trades-tools-control { display:none; }
.trades-browser .trades-tools-menu { position:absolute; z-index:12; top:calc(100% + 10px); right:0; width:min(280px,calc(100vw - 24px)); max-height:calc(100dvh - 160px); overflow-y:auto; overscroll-behavior:contain; padding:10px; border:1px solid rgba(215,221,255,.23); border-radius:18px; background:#191e36; box-shadow:0 12px 36px rgba(0,0,0,.45); }
.trades-browser .trades-tools-menu .pm-public-tools-nav { display:grid; gap:8px; margin:0; }
.trades-browser .trades-tools-menu .pm-public-tools-nav a { justify-content:flex-start; min-height:48px; }
.trades-browser .trades-tools-menu .trades-logout-form { margin-top:10px; }
.trades-browser .trades-tools-menu .trades-logout-button { display:flex; align-items:center; justify-content:flex-start; gap:10px; width:100%; height:48px; padding:0 12px; border-color:#ff8091; color:#ff8091; background:rgba(255,128,145,.08); font-size:.8rem; font-weight:700; }
.trades-browser .trades-tools-menu .trades-logout-label { display:inline; }
.trades-browser .trades-menu-close-icon, .trades-browser .is-open .trades-menu-open-icon { display:none; }
.trades-browser .is-open .trades-menu-close-icon { display:block; }
.trades-browser .trades-open-tools[aria-expanded="true"] { border-color:var(--tr-aqua); }
.trades-browser .trades-registration-modal { width:100%; max-width:none; height:100%; max-height:none; margin:0; border:0; background:transparent; color:var(--tr-ink); }
.trades-browser .trades-registration-modal:not([open]) { display:none; }
.trades-browser .trades-registration-modal::backdrop { background:transparent; }
.trades-browser .trades-toolbar { position:sticky; z-index:6; top:calc(8px + env(safe-area-inset-top,0px)); margin-bottom:12px; padding:12px; border:1px solid rgba(215,221,255,.24); border-radius:18px; background:linear-gradient(120deg,#242a49,#191d35); box-shadow:0 8px 24px rgba(0,0,0,.14); }
.trades-browser .trades-search-row { display:flex; align-items:stretch; gap:8px; }
.trades-browser .trades-compact-search { display:flex; align-items:center; min-width:0; flex:1; border:1px solid rgba(215,221,255,.28); border-radius:12px; background:#10142a; }
.trades-browser .trades-compact-search:focus-within { border-color:var(--tr-aqua); box-shadow:0 0 0 2px rgba(113,231,209,.12); }
.trades-browser .trades-compact-search button { display:grid; place-items:center; flex:0 0 44px; width:44px; height:46px; padding:0; background:transparent; border:0; color:var(--tr-muted); font-size:1.4rem; }
.trades-browser .trades-compact-search button svg { width:18px; height:18px; }
.trades-browser .trades-compact-search input { width:100%; min-width:0; height:46px; padding:0 8px 0 0; border:0; outline:none; color:var(--tr-ink); background:transparent; font-size:.9rem; }
.trades-browser .trades-compact-search input:focus-visible { outline:none; }
.trades-browser .trades-compact-search input::placeholder { color:#a1aac4; opacity:1; }
.trades-browser .trades-compact-search input::-webkit-search-cancel-button { display:none; }
.trades-browser .trades-filter-trigger, .trades-browser .trades-open-tools, .trades-browser .trades-secondary-control, .trades-browser .trades-icon-control { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:44px; padding:0 12px; border:1px solid var(--tb-border); border-radius:11px; color:var(--tr-ink); background:rgba(255,255,255,.04); font-size:.8rem; font-weight:650; text-decoration:none; }
.trades-browser .trades-open-tools { display:none; }
.trades-browser .trades-filter-trigger.has-filters { border-color:rgba(113,231,209,.5); color:var(--tr-aqua); }
.trades-browser .trades-filter-trigger b { min-width:18px; padding:2px 5px; border-radius:20px; background:var(--tr-yellow); color:#000; font-size:.65rem; }
.trades-browser .trades-tabs { display:flex; align-items:center; gap:6px; padding-top:8px; }
.trades-browser .trades-tabs button { display:flex; align-items:center; justify-content:center; gap:6px; min-height:44px; min-width:92px; padding:0 16px; border:1px solid transparent; border-radius:10px; color:var(--tr-muted); background:transparent; font-size:.82rem; font-weight:700; }
.trades-browser .trades-tabs svg { width:16px; height:16px; }
.trades-browser .trades-tabs [data-trades-type][aria-pressed="true"] { background:var(--tr-yellow); color:#000; }
.trades-browser #trades-favorites-filter { margin-left:auto; }
.trades-browser #trades-favorites-filter[aria-pressed="true"] { color:#ffb9c8; border-color:rgba(255,119,148,.35); background:rgba(231,79,115,.13); }
.trades-browser #trades-favorites-filter[aria-pressed="true"] svg { fill:currentColor; }
.trades-browser .trades-active-filters { display:flex; flex-wrap:wrap; gap:6px; padding-top:8px; }
.trades-browser .trades-active-filters button { display:flex; align-items:center; gap:7px; max-width:100%; min-height:36px; padding:5px 10px; border:1px solid rgba(113,231,209,.26); border-radius:8px; color:var(--tr-aqua); background:rgba(113,231,209,.05); font-size:.73rem; }
.trades-browser .trades-active-filters button span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.trades-browser .trades-active-filters [data-trades-reset] { color:var(--tr-muted); border-color:transparent; background:transparent; }
.trades-browser .trades-results-header { align-items:center; margin-bottom:12px; min-height:44px; scroll-margin-top:190px; outline:none; }
.trades-browser .trades-result-count { margin:0; max-width:none; font-size:.8rem; text-align:left; }
.trades-browser .trades-sort select { min-height:44px; max-width:155px; padding:0 28px 0 10px; border:1px solid var(--tb-border); border-radius:10px; color:var(--tr-ink); background:#15192f; font-size:.78rem; }
.trades-browser .trades-grid, .trades-browser .trades-skeletons { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; align-items:stretch; }
.trades-browser .trade-card { min-width:0; border-radius:16px; background:linear-gradient(145deg,#202640,#191d34); box-shadow:none; transition:border-color .15s; }
.trades-browser .trade-card:hover { transform:none; }
.trades-browser .trade-card-image { width:calc(100% - 16px); margin:8px 8px 0; aspect-ratio:63/88; background:rgba(5,8,20,.25); border-radius:9px; }
.trades-browser .trade-card-image::after { display:none; }
.trades-browser .trade-card-image-link { position:absolute; inset:0; display:grid; place-items:center; text-decoration:none; }
.trades-browser .trade-card-image img { object-fit:contain; }
.trades-browser .trade-card-favorite { top:4px; right:4px; }
.trades-browser .trade-card-copy { gap:7px; padding:11px 11px 9px; }
.trades-browser .trade-card-title { margin:0; min-height:2.6em; white-space:normal; font-size:.87rem; line-height:1.3; }
.trades-browser .trade-card-title a { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; color:var(--tr-ink); text-decoration:none; overflow-wrap:anywhere; }
.trades-browser .trade-card-set { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; min-height:2.56em; margin:0; overflow:hidden; font-size:.7rem; line-height:1.28; }
.trades-browser .trade-card-info { display:flex; flex-direction:column; align-items:flex-start; gap:7px; }
.trades-browser .trade-card-meta { gap:5px; }
.trades-browser .trade-card-meta li { min-height:20px; padding:2px 0; background:transparent; color:#c8d1e9; font-size:.66rem; }
.trades-browser .trade-card-meta li + li { margin-left:1px; }
.trades-browser .trade-card-price { display:block; min-height:1.3em; max-width:100%; font-size:1.2rem; line-height:1.3; white-space:normal; overflow-wrap:anywhere; }
.trades-browser .trade-badges { min-height:20px; gap:4px; margin:0 0 4px; }
.trades-browser .trade-badges .trade-badge { min-height:20px; padding:3px 5px; border:0; border-radius:5px; font-size:.62rem; line-height:1.2; }
.trades-browser .trade-user { margin-top:auto; padding-top:9px; gap:7px; font-size:.69rem; }
.trades-browser .trade-user-avatar { width:26px; height:26px; flex-basis:26px; font-size:.62rem; }
.trades-browser .trade-user-location { font-size:.63rem; color:#a1abc7; }
.trades-browser .trade-card-actions { display:flex; flex-wrap:nowrap; gap:6px; padding-top:2px; margin-top:0; }
.trades-browser .trade-card-contact { flex:1; min-width:0; min-height:44px; padding:0 9px; border:1px solid var(--tr-yellow); border-radius:10px; color:#000 !important; background:var(--tr-yellow); font-size:.76rem; transform:none; }
.trades-browser .trade-card-share { display:grid; place-items:center; flex:0 0 44px; width:44px; min-height:44px; padding:0; border-radius:10px; }
.trades-browser .trade-card-share svg { width:19px; height:19px; }
.trades-browser .trade-card-own-listing { flex:1; min-width:0; min-height:44px; padding:0 5px; justify-content:center; font-size:.68rem; }
.trades-browser .trades-pagination { margin:24px 0 12px; gap:16px; }
.trades-browser .trades-page-button { min-width:44px; min-height:44px; color:var(--tr-ink); font-size:1rem; }
.trades-browser .trades-page-position { color:var(--tr-muted); font-size:.8rem; }
.trades-browser .trades-empty { padding:36px 16px; min-height:210px; }
.trades-browser .trades-empty h3 { font-size:1.05rem; margin:0 0 18px; }
.trades-browser .trades-empty-actions { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; }
.trades-browser .trades-unavailable { max-width:none; margin:0; min-height:220px; box-shadow:none; background:rgba(255,255,255,.025); }
.trades-browser .trades-unavailable h2 { font-size:1.05rem; }
.trades-browser .trades-unavailable .trades-primary-button { margin-top:18px; }
.trades-browser .trades-skeleton { min-width:0; padding:8px; border:1px solid var(--tb-border); border-radius:16px; background:#1a2038; animation:trades-pulse 1.2s ease-in-out infinite alternate; }
.trades-browser .trades-skeleton div { aspect-ratio:63/88; border-radius:9px; background:#282f4b; }
.trades-browser .trades-skeleton span { display:block; width:85%; height:13px; margin-top:12px; background:#2b3350; border-radius:5px; }
.trades-browser .trades-skeleton span:last-child { width:55%; margin-bottom:12px; }
@keyframes trades-pulse { to { opacity:.5; } }
.trades-browser .trades-join { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:12px; padding:20px 0 0; margin-top:20px; border-top:1px solid var(--tb-border); }
.trades-browser .trades-join p { margin:0; color:var(--tr-muted); font-size:.78rem; }
.trades-browser .trades-sheet { position:fixed; inset:0; width:min(520px,calc(100% - 28px)); max-height:calc(100dvh - 32px); padding:0; overflow-y:auto; overscroll-behavior:contain; border:1px solid rgba(215,221,255,.23); border-radius:22px; color:var(--tr-ink); background:#191e36; box-shadow:0 20px 70px rgba(0,0,0,.5); }
.trades-browser .trades-sheet::backdrop { background:rgba(4,7,20,.78); }
.trades-browser .trades-sheet header, .trades-browser .trades-sheet footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 18px; }
.trades-browser .trades-sheet header { position:sticky; top:0; z-index:2; border-bottom:1px solid var(--tb-border); background:#191e36; }
.trades-browser .trades-sheet h2 { margin:0; font-size:1.08rem; letter-spacing:-.025em; }
.trades-browser .trades-sheet footer { position:sticky; bottom:0; border-top:1px solid var(--tb-border); background:#191e36; }
.trades-browser .trades-icon-control { width:44px; min-width:44px; padding:0; font-size:1.5rem; }
.trades-browser .trades-sheet-fields { display:grid; grid-template-columns:1fr 1fr; gap:16px 12px; padding:18px; }
.trades-browser .trades-sheet-fields label { display:grid; min-width:0; gap:7px; color:var(--tr-muted); font-size:.78rem; font-weight:650; }
.trades-browser .trades-sheet-fields label:first-child, .trades-browser .trades-sheet-fields label:last-child { grid-column:1/-1; }
.trades-browser .trades-sheet-fields select { width:100%; min-height:46px; padding:10px 28px 10px 12px; border:1px solid var(--tb-border); border-radius:10px; color:var(--tr-ink); background:#10152c; font-size:16px; }
html.trades-dialog-open { overflow:hidden; scrollbar-gutter:stable; }
.trades-browser .trades-feedback { position:fixed; z-index:10; right:18px; bottom:20px; max-width:min(420px,calc(100% - 32px)); padding:12px 16px; border:1px solid rgba(113,231,209,.4); border-radius:12px; color:#0d2230; background:var(--tr-aqua); box-shadow:0 8px 28px rgba(0,0,0,.3); font-size:.8rem; font-weight:650; opacity:0; pointer-events:none; transition:opacity .15s; }
.trades-browser .trades-feedback.is-visible { opacity:1; }
@media (min-width:1200px) { .trades-browser .trades-grid, .trades-browser .trades-skeletons { grid-template-columns:repeat(5,minmax(0,1fr)); } }
@media (min-width:901px) and (max-width:1199px) {
  .trades-browser .trades-header { grid-template-columns:minmax(0,1fr) auto; gap:14px 20px; }
  .trades-browser .trades-brand { grid-column:1/-1; }
  .trades-browser .trades-header .pm-public-tools-desktop { justify-content:flex-start; }
}
@media (max-width:1000px) and (min-width:641px) { .trades-browser .trades-grid, .trades-browser .trades-skeletons { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:900px) {
  body.trades-browser.pm-public-tools-page { padding-bottom:calc(80px + env(safe-area-inset-bottom,0px)); }
  .trades-browser .trades-header { grid-template-columns:minmax(0,1fr) auto; min-height:0; gap:12px; padding:10px 0 12px; }
  .trades-browser .trades-brand { display:flex; justify-content:flex-start; width:auto; height:44px; gap:7px; container-type:inline-size; }
  .trades-browser .trades-brand-name { font-size:clamp(.625rem,calc(7vw - 11px),1.15rem); font-size:clamp(.625rem,9cqi,1.15rem); }
  .trades-browser .trades-brand .trades-brand-logo { width:clamp(22px,calc(10vw - 10px),36px); height:auto; flex-basis:auto; width:clamp(20px,21cqi,36px); aspect-ratio:1; }
  .trades-browser .trades-header-controls { min-width:0; }
  .trades-browser .trades-header-actions { min-width:0; }
  .trades-browser[data-viewer-logged-in="1"] .trades-header { display:none; }
  .trades-browser[data-viewer-logged-in="1"] .trades-brand { display:none; }
  .trades-browser[data-viewer-logged-in="1"] .trades-header-controls { justify-content:flex-end; }
  .trades-browser .trades-tools-control { display:block; position:relative; flex:0 0 44px; width:44px; height:44px; --tools-bottom:calc(16px + env(safe-area-inset-bottom,0px)); }
  .trades-browser[data-viewer-logged-in="1"] > .trades-tools-control { position:fixed; z-index:13; right:max(16px,env(safe-area-inset-right,0px)); bottom:var(--tools-bottom); width:48px; height:48px; }
  .trades-browser .trades-open-tools { display:flex; flex-shrink:0; min-width:44px; padding:0 10px; border-color:var(--tr-yellow); color:#17152b; background:var(--tr-yellow); }
  .trades-browser .trades-tools-control > .trades-open-tools { width:44px; height:44px; }
  .trades-browser .trades-tools-control.is-docked > .trades-open-tools { position:fixed; z-index:13; right:max(16px,env(safe-area-inset-right,0px)); bottom:var(--tools-bottom); width:48px; height:48px; border-color:var(--tr-yellow); border-radius:14px; color:#17152b; background:var(--tr-yellow); box-shadow:0 6px 22px rgba(0,0,0,.35); }
  .trades-browser .trades-tools-control.is-docked > .trades-tools-menu { position:fixed; top:auto; right:max(16px,env(safe-area-inset-right,0px)); bottom:calc(var(--tools-bottom) + 58px); max-height:calc(100dvh - var(--tools-bottom) - 82px); }
  .trades-browser .trades-sheet { inset:auto 0 0; width:100%; max-width:540px; max-height:90dvh; margin:0 auto; border-radius:22px 22px 0 0; border-bottom:0; }
  .trades-browser .trades-sheet footer { padding-bottom:calc(14px + env(safe-area-inset-bottom,0px)); }
}
@media (max-width:800px) {
  body.trades-browser.pm-public-tools-page.pm-has-mobile-nav { padding-bottom:calc(100px + env(safe-area-inset-bottom,0px)); }
  .trades-browser.pm-has-mobile-nav .trades-feedback { bottom:calc(94px + env(safe-area-inset-bottom,0px)); }
  .trades-browser.pm-has-mobile-nav .trades-tools-control { --tools-bottom:calc(92px + env(safe-area-inset-bottom,0px)); }
}
@media (max-width:640px) {
  .trades-browser .trades-main { margin-top:10px; }
  .trades-browser .trades-header { width:calc(100% - 24px); }
  .trades-browser .trades-brand-logo { width:36px; height:36px; flex-basis:36px; }
  .trades-browser .trades-header-actions .trades-link-button, .trades-browser .trades-header-actions .trades-primary-button { min-height:44px; padding:0 14px; font-size:.8rem; }
  .trades-browser .trades-toolbar { padding:10px; margin-bottom:10px; border-radius:16px; }
  .trades-browser .trades-search-row { gap:6px; }
  .trades-browser .trades-compact-search input { height:44px; font-size:16px; }
  .trades-browser .trades-compact-search input::placeholder { font-size:.79rem; }
  .trades-browser .trades-compact-search button { height:44px; flex-basis:38px; width:38px; }
  .trades-browser .trades-filter-trigger { padding:0 9px; gap:5px; font-size:.74rem; }
  .trades-browser .trades-filter-trigger svg { width:17px; height:17px; }
  .trades-browser .trades-tabs { gap:3px; padding-top:6px; }
  .trades-browser .trades-tabs button { flex:1; min-width:0; padding:0 10px; font-size:.77rem; }
  .trades-browser #trades-favorites-filter { margin-left:0; }
  .trades-browser .trades-results-header { margin-bottom:8px; scroll-margin-top:180px; gap:10px; }
  .trades-browser .trades-result-count { font-size:.73rem; }
  .trades-browser .trades-sort select { max-width:144px; font-size:.73rem; }
  .trades-browser .trades-grid, .trades-browser .trades-skeletons { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .trades-browser .trade-card { border-radius:13px; }
  .trades-browser .trade-card-copy { padding:9px 8px 7px; gap:6px; }
  .trades-browser .trade-card-title { font-size:.79rem; }
  .trades-browser .trade-card-set { font-size:.65rem; }
  .trades-browser .trade-card-info { gap:6px; }
  .trades-browser .trade-card-meta li { font-size:.63rem; }
  .trades-browser .trade-card-price { font-size:1.12rem; }
  .trades-browser .trade-card-contact { padding:0 5px; font-size:.71rem; }
  .trades-browser .trade-card-own-listing { font-size:.6rem; }
  .trades-browser .trade-badges .trade-badge { font-size:.6rem; }
  .trades-browser .trade-user { gap:5px; font-size:.65rem; }
  .trades-browser .trade-user-location { font-size:.6rem; }
  .trades-browser .trades-contact-resume { align-items:center; padding:10px; gap:8px; margin-bottom:8px; }
  .trades-browser .trades-contact-copy { font-size:.73rem; margin:0; }
  .trades-browser .trades-contact-resume-button { min-height:44px; padding:0 9px; font-size:.7rem; }
}
@media (max-width:413px) {
  .trades-browser[data-viewer-logged-in="0"] .trades-header { gap:8px; }
  .trades-browser[data-viewer-logged-in="0"] .trades-header-controls,
  .trades-browser[data-viewer-logged-in="0"] .trades-header-actions { gap:4px; }
  .trades-browser[data-viewer-logged-in="0"] .trades-header-actions > a { min-width:44px; padding:0 6px; font-size:.75rem; }
}
@media (hover:hover) {
  .trades-browser .trade-card-title a:hover { color:var(--tr-aqua); }
  .trades-browser .trade-card-image-link:hover { opacity:.94; }
  .trades-browser .trades-primary-button:hover, .trades-browser .trade-card-contact:hover, .trades-browser .trades-tabs [data-trades-type][aria-pressed="true"]:hover { color:#fff !important; background:#705719; border-color:#705719; filter:none; transform:none; }
  .trades-browser .trades-filter-trigger:hover, .trades-browser .trades-secondary-control:hover, .trades-browser .trades-icon-control:hover { background:#353c5c; color:#fff; }
  .trades-browser .trades-open-tools:hover { filter:brightness(1.06); }
  .trades-browser .trades-logout-button:hover { color:#fff0f2; background:rgba(255,128,145,.14); }
}
@media (prefers-reduced-motion:reduce) { .trades-browser .trades-skeleton { animation:none; } }
@media (max-height:500px) and (max-width:900px) {
  .trades-browser .trades-sheet-fields label:first-child, .trades-browser .trades-sheet-fields label:last-child { grid-column:auto; }
  .trades-browser .trades-sheet header, .trades-browser .trades-sheet footer { padding-top:8px; padding-bottom:8px; }
  .trades-browser .trades-sheet-fields { gap:12px; padding-top:12px; padding-bottom:12px; }
}
