/* Shop (public/js/shop.js): inside the stock terminal and as a full-screen window on the home page */
.shop-root { --shop-fg: var(--st-fg, #f4f4f5); --shop-muted: var(--st-muted, rgba(244,244,245,.55)); --shop-line: var(--st-line, rgba(255,255,255,.1)); --shop-bg: var(--st-bg, #0b0b0d); --shop-hover: var(--st-hover, rgba(255,255,255,.07)); color: var(--shop-fg); font-family: Geist, system-ui, -apple-system, sans-serif; }
.shop-root .shop-head h3 { margin: 0 0 4px; font-size: 18px; font-weight: 650; }
.shop-root .shop-head p { margin: 0 0 14px; font-size: 12.5px; color: var(--shop-muted); }
.shop-root .shop-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--shop-line); margin-bottom: 14px; }
.shop-root .shop-tabs button { padding: 8px 12px; border: 0 !important; border-bottom: 2px solid transparent !important; background: none !important; color: var(--shop-muted) !important; font: 600 12.5px inherit; cursor: pointer; box-shadow: none !important; }
.shop-root .shop-tabs button.is-on { color: var(--shop-fg) !important; border-bottom-color: #3b82f6 !important; }
.shop-root .shop-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.shop-root .shop-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.shop-root .shop-filters button { height: 28px; padding: 0 11px; border: 1px solid var(--shop-line) !important; border-radius: 99px; background: transparent !important; color: var(--shop-fg) !important; font: 500 12px inherit; cursor: pointer; box-shadow: none !important; }
.shop-root .shop-filters button.is-on { background: var(--shop-fg) !important; color: var(--shop-bg) !important; border-color: var(--shop-fg) !important; }
.shop-root .shop-search { height: 30px; width: 180px; padding: 0 10px; border: 1px solid var(--shop-line); border-radius: 8px; background: transparent; color: var(--shop-fg); font: 500 12.5px inherit; }
.shop-root .shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.shop-root .shop-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--shop-line); border-radius: 12px; background: color-mix(in srgb, var(--shop-fg) 2%, transparent); transition: border-color .15s, background .15s; }
.shop-root .shop-card:hover { border-color: color-mix(in srgb, var(--shop-fg) 25%, transparent); background: var(--shop-hover); }
.shop-root .shop-card.is-best { border-color: #3b82f6; }
.shop-root .shop-card-top { display: flex; justify-content: space-between; gap: 8px; }
.shop-root .shop-kind { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #60a5fa; }
.shop-root .shop-tag { font-size: 11px; color: var(--shop-muted); }
.shop-root .shop-card h4 { margin: 2px 0 0; font-size: 14px; font-weight: 650; }
.shop-root .shop-card p { margin: 0; flex: 1; font-size: 12px; line-height: 1.5; color: var(--shop-muted); }
.shop-root .shop-card-foot { display: flex; align-items: baseline; justify-content: space-between; margin-top: 4px; }
.shop-root .shop-by { font-size: 11px; color: var(--shop-muted); }
.shop-root .shop-price { font-size: 14px; }
.shop-root .shop-get { height: 30px; margin-top: 4px; border: 1px solid var(--shop-line) !important; border-radius: 8px; background: transparent !important; color: var(--shop-muted) !important; font: 600 12px inherit; cursor: default; box-shadow: none !important; }
.shop-root .shop-empty { color: var(--shop-muted); font-size: 12.5px; }
.shop-root .shop-sell { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding: 14px; border: 1px dashed var(--shop-line); border-radius: 12px; }
.shop-root .shop-sell b { display: block; font-size: 13.5px; }
.shop-root .shop-sell span { font-size: 12px; color: var(--shop-muted); }
.shop-root .shop-sell .shop-get { padding: 0 14px; margin: 0; }
.shop-root .shop-balance { display: flex; padding: 14px; margin-bottom: 12px; border: 1px solid var(--shop-line); border-radius: 12px; }
.shop-root .shop-balance small { display: block; font-size: 11px; color: var(--shop-muted); }
.shop-root .shop-balance b { display: block; font-size: 18px; margin: 2px 0 4px; }
.shop-root .shop-balance span { font-size: 12px; color: var(--shop-muted); }
.shop-root .shop-best { position: absolute; top: -9px; right: 12px; padding: 2px 8px; border-radius: 99px; background: #3b82f6; color: #fff; font-size: 10.5px; font-weight: 700; }
.shop-root .shop-credit-n { font-size: 22px; font-weight: 700; }
.shop-root .shop-credit-n small { font-size: 12px; font-weight: 500; color: var(--shop-muted); }
.shop-root .shop-note { margin: 12px 0 0; font-size: 12px; color: var(--shop-muted); }
/* full-screen window */
.shop-overlay { position: fixed; inset: 0; z-index: 4000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
.shop-overlay[hidden] { display: none; }
.shop-window { position: relative; width: min(1040px, 100%); max-height: 100%; overflow-y: auto; padding: 22px 24px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: #0b0b0d; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.shop-close { position: absolute; top: 14px; right: 16px; width: 32px; height: 32px; border: 0 !important; border-radius: 8px; background: transparent !important; color: rgba(244,244,245,.6) !important; font-size: 22px; cursor: pointer; }
.shop-close:hover { background: rgba(255,255,255,.08) !important; color: #fff !important; }
@media (max-width: 640px) { .shop-root .shop-search { width: 100%; } .shop-window { padding: 18px 16px; } }
/* ---------- Shop on the home page (shop.js mountHome): a storefront under the dashboard ---------- */
#researchView .shop-home { --sh-fg: var(--ih-fg, var(--console-fg, #fff)); --sh-bg: var(--ih-bg, var(--console-bg, #000)); --sh-muted: var(--ih-muted, rgba(255,255,255,.56)); --sh-line: var(--ih-faint, rgba(255,255,255,.11)); --sh-card: color-mix(in srgb, var(--sh-fg) 3%, var(--sh-bg));
  margin: 34px 0 10px; color: var(--sh-fg); font-family: var(--ih-font, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif); }
html #researchView#researchView .shop-home :is(h2, h3, h4, p, span, small, b, i, label) { color: var(--ih-font, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif); }
html #researchView#researchView .shop-home :is(p, small, .shop-hby, .shop-hsec span, .shop-hnote, .shop-hero-stats span) { color: var(--sh-muted) !important; }
#researchView .shop-home .shop-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 30px 32px; border: 1px solid var(--sh-line); border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, #3b82f6 22%, transparent), transparent 55%), radial-gradient(90% 120% at 100% 100%, color-mix(in srgb, #a855f7 20%, transparent), transparent 60%), var(--sh-card); }
#researchView .shop-home .shop-eyebrow { display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, #60a5fa 18%, transparent); color: #93c5fd !important; font: 700 10.5px/1 var(--ih-mono, monospace); letter-spacing: .1em; text-transform: uppercase; }
#researchView .shop-home .shop-hero h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 34px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
#researchView .shop-home .shop-hero p { margin: 0 0 18px; max-width: 560px; font-size: 14.5px; line-height: 1.55; }
#researchView .shop-home .shop-hero-search { display: flex; align-items: center; gap: 10px; max-width: 460px; height: 44px; padding: 0 14px; border: 1px solid var(--sh-line); border-radius: 12px; background: color-mix(in srgb, var(--sh-bg) 70%, transparent); }
#researchView .shop-home .shop-hero-search svg { width: 17px; height: 17px; flex: none; color: var(--sh-muted); }
#researchView .shop-home .shop-hero-search input { flex: 1; min-width: 0; height: 100%; border: 0 !important; outline: none; background: transparent !important; color: var(--sh-fg) !important; font: 500 14px var(--ih-font, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif); box-shadow: none !important; }
#researchView .shop-home .shop-hero-stats { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font-size: 13px; }
#researchView .shop-home .shop-hero-stats b { color: var(--sh-fg) !important; font-size: 18px; font-weight: 750; margin-right: 4px; }
#researchView .shop-home .shop-hero-art { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--sh-line); box-shadow: 0 30px 60px rgba(0,0,0,.35); transform: rotate(-1.5deg); }
#researchView .shop-home .shop-hero-art svg { display: block; width: 100%; height: 220px; }
#researchView .shop-home .shop-hero-badge { position: absolute; left: 14px; bottom: 14px; display: flex; flex-direction: column; padding: 8px 12px; border-radius: 10px; background: rgba(8, 12, 22, .78); backdrop-filter: blur(6px); color: #fff; }
#researchView .shop-home .shop-hero-badge small { color: #93c5fd !important; font: 700 10px var(--ih-mono, monospace); letter-spacing: .1em; text-transform: uppercase; }
#researchView .shop-home .shop-hero-badge b { color: #fff !important; font-size: 13.5px; }
#researchView .shop-home .shop-hcats { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 22px 0 6px; padding: 8px 0; background: var(--sh-bg); }
#researchView .shop-home .shop-hcats button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border: 1px solid var(--sh-line) !important; border-radius: 999px; background: transparent !important; color: var(--sh-fg) !important; font: 600 13px var(--ih-font, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif); cursor: pointer; transition: background .15s, border-color .15s; }
#researchView .shop-home .shop-hcats button:hover { background: var(--ih-hover, rgba(255,255,255,.06)) !important; }
#researchView .shop-home .shop-hcats button i { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--sh-line); color: var(--sh-muted) !important; }
#researchView .shop-home .shop-hcats button.is-on { background: var(--sh-fg) !important; color: var(--sh-bg) !important; border-color: var(--sh-fg) !important; }
#researchView .shop-home .shop-hcats button.is-on i { background: color-mix(in srgb, var(--sh-bg) 18%, transparent); color: var(--sh-bg) !important; }
#researchView .shop-home .shop-grow { flex: 1; }
#researchView .shop-home .shop-hcats select { height: 34px; padding: 0 10px; border: 1px solid var(--sh-line); border-radius: 10px; background: var(--sh-bg); color: var(--sh-fg); font: 500 13px var(--ih-font, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif); }
#researchView .shop-home .shop-hsec { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 12px; }
#researchView .shop-home .shop-hsec h3 { margin: 0; font-size: 18px; font-weight: 750; letter-spacing: -.01em; }
#researchView .shop-home .shop-hsec span { font-size: 13px; }
#researchView .shop-home .shop-hfeat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
#researchView .shop-home .shop-hfeature { display: flex; flex-direction: column; border: 1px solid var(--sh-line); border-radius: 18px; overflow: hidden; background: var(--sh-card); transition: transform .18s, box-shadow .18s, border-color .18s; }
#researchView .shop-home .shop-hfeature:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(0,0,0,.28); border-color: color-mix(in srgb, var(--sh-fg) 22%, transparent); }
#researchView .shop-home .shop-hfeature svg { display: block; width: 100%; height: 150px; }
#researchView .shop-home .shop-hfeature-text { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
#researchView .shop-home .shop-hfeature h4 { margin: 4px 0 0; font-size: 16px; font-weight: 700; }
#researchView .shop-home .shop-hfeature p { margin: 0; flex: 1; font-size: 13px; line-height: 1.5; }
#researchView .shop-home .shop-hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
#researchView .shop-home .shop-hcard { display: flex; flex-direction: column; border: 1px solid var(--sh-line); border-radius: 16px; overflow: hidden; background: var(--sh-card); transition: transform .18s, box-shadow .18s, border-color .18s; outline: none; }
#researchView .shop-home .shop-hcard:hover, #researchView .shop-home .shop-hcard:focus-visible { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,0,0,.25); border-color: color-mix(in srgb, var(--sh-fg) 22%, transparent); }
#researchView .shop-home .shop-hcard-art { position: relative; }
#researchView .shop-home .shop-hcard-art svg { display: block; width: 100%; height: 120px; }
#researchView .shop-home .shop-hpill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: rgba(8, 12, 22, .72); color: #e0e7ff !important; font: 700 10px var(--ih-mono, monospace); letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(4px); align-self: flex-start; }
#researchView .shop-home .shop-hcard-art .shop-hpill { position: absolute; left: 10px; top: 10px; }
#researchView .shop-home .shop-hcard-art .shop-hpill.is-free { left: auto; right: 10px; background: #16a34a; color: #fff !important; }
#researchView .shop-home .shop-hcard-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
#researchView .shop-home .shop-hcard-body h4 { margin: 0; font-size: 14.5px; font-weight: 700; }
#researchView .shop-home .shop-hcard-body p { margin: 0; flex: 1; font-size: 12.5px; line-height: 1.5; }
#researchView .shop-home .shop-hcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
#researchView .shop-home .shop-hcard-foot b { font-size: 15px; font-weight: 750; }
#researchView .shop-home .shop-hby { font-size: 11.5px; }
#researchView .shop-home .shop-hget { height: 32px; margin-top: 6px; padding: 0 14px; border: 1px solid var(--sh-line) !important; border-radius: 10px; background: color-mix(in srgb, var(--sh-fg) 6%, transparent) !important; color: var(--sh-muted) !important; font: 600 12.5px var(--ih-font, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif); cursor: not-allowed; }
#researchView .shop-home .shop-hcard-foot .shop-hget { margin-top: 0; }
#researchView .shop-home .shop-hpacks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
#researchView .shop-home .shop-hpack { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--sh-line); border-radius: 18px; background: linear-gradient(160deg, color-mix(in srgb, #f59e0b 10%, transparent), transparent 55%), var(--sh-card); }
#researchView .shop-home .shop-hpack.is-best { border-color: color-mix(in srgb, #f59e0b 60%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, #f59e0b 30%, transparent); }
#researchView .shop-home .shop-hbest { position: absolute; right: 14px; top: 14px; padding: 3px 9px; border-radius: 999px; background: #f59e0b; color: #111 !important; font: 700 10.5px var(--ih-font, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif); }
#researchView .shop-home .shop-hpack small { font: 700 11px var(--ih-mono, monospace); letter-spacing: .1em; text-transform: uppercase; }
#researchView .shop-home .shop-hpack-n { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
#researchView .shop-home .shop-hpack-n span { margin-left: 6px; font-size: 13px; font-weight: 500; color: var(--sh-muted) !important; }
#researchView .shop-home .shop-hpack p { margin: 0; flex: 1; font-size: 13px; line-height: 1.5; }
#researchView .shop-home .shop-hsell { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding: 20px 22px; border: 1px dashed color-mix(in srgb, var(--sh-fg) 22%, transparent); border-radius: 18px; }
#researchView .shop-home .shop-hsell b { display: block; margin-bottom: 4px; font-size: 16px; }
#researchView .shop-home .shop-hsell span { font-size: 13px; color: var(--sh-muted) !important; }
#researchView .shop-home .shop-hsell .shop-hget { margin: 0; flex: none; }
#researchView .shop-home .shop-hempty { padding: 20px 0; }
#researchView .shop-home .shop-hnote { margin: 12px 0 0; font-size: 12px; text-align: center; }
@media (max-width: 960px) { #researchView .shop-home .shop-hero { grid-template-columns: 1fr; } #researchView .shop-home .shop-hero-art { display: none; } #researchView .shop-home :is(.shop-hfeat, .shop-hpacks) { grid-template-columns: 1fr; } }
/* the home page's button styles (color mode) are strong: these win inside the shop */
html #researchView#researchView .shop-home button { border-style: solid !important; box-shadow: none !important; text-transform: none; letter-spacing: normal; }
html #researchView#researchView .shop-home .shop-hcats button { border-radius: 999px !important; border: 1px solid var(--sh-line) !important; background: transparent !important; color: var(--sh-fg) !important; }
html #researchView#researchView .shop-home .shop-hcats button:hover { background: var(--ih-hover, rgba(255,255,255,.06)) !important; }
html #researchView#researchView .shop-home .shop-hcats button.is-on { background: var(--sh-fg) !important; color: var(--sh-bg) !important; border-color: var(--sh-fg) !important; }
html #researchView#researchView .shop-home .shop-hcats button.is-on i { color: var(--sh-bg) !important; }
html #researchView#researchView .shop-home .shop-hget { border-radius: 10px !important; border: 1px solid var(--sh-line) !important; background: color-mix(in srgb, var(--sh-fg) 6%, transparent) !important; color: var(--sh-muted) !important; }
html #researchView#researchView .shop-home .shop-hcats select { border-radius: 10px !important; }
html #researchView#researchView .shop-home .shop-hero-search input { border: 0 !important; background: transparent !important; }
/* ---------- creators, community, publish, details ---------- */
#researchView .shop-home .shop-hby a, .shop-mbox .shop-mby a { color: inherit !important; text-decoration: none; font-weight: 600; border-bottom: 1px dotted currentColor; }
#researchView .shop-home .shop-hby a:hover, .shop-mbox .shop-mby a:hover { color: #93c5fd !important; }
#researchView .shop-home .shop-hcreators { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
html #researchView#researchView .shop-home .shop-hcreator { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid var(--sh-line) !important; border-radius: 14px !important; background: var(--sh-card) !important; color: var(--sh-fg) !important; text-align: left; cursor: pointer; transition: transform .15s, border-color .15s; }
html #researchView#researchView .shop-home .shop-hcreator:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--sh-fg) 22%, transparent) !important; }
#researchView .shop-home .shop-hcreator span:last-child { display: flex; flex-direction: column; min-width: 0; }
#researchView .shop-home .shop-hcreator b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#researchView .shop-home .shop-hcreator small { font-size: 11.5px; color: var(--sh-muted) !important; }
.shop-avatar { flex: none; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(135deg, hsl(var(--h) 70% 55%), hsl(calc(var(--h) + 40) 70% 38%)); color: #fff !important; font: 800 13px -apple-system, BlinkMacSystemFont, 'Inter', sans-serif; letter-spacing: .02em; }
.shop-avatar.is-big { width: 64px; height: 64px; font-size: 21px; }
html #researchView#researchView .shop-home .shop-hpublish, .shop-mbox .shop-hpublish { height: 34px; padding: 0 16px; border: 0 !important; border-radius: 10px !important; background: var(--sh-fg, #fff) !important; color: var(--sh-bg, #000) !important; font: 650 13px -apple-system, BlinkMacSystemFont, 'Inter', sans-serif; cursor: pointer; white-space: nowrap; }
html #researchView#researchView .shop-home .shop-hpublish:hover { opacity: .88; }
html #researchView#researchView .shop-home .shop-hget.is-live { color: var(--sh-fg) !important; cursor: pointer; border-color: color-mix(in srgb, #22c55e 50%, var(--sh-line)) !important; background: color-mix(in srgb, #22c55e 12%, transparent) !important; }
html #researchView#researchView .shop-home .shop-hget.is-live:disabled { cursor: not-allowed; color: var(--sh-muted) !important; background: transparent !important; border-color: var(--sh-line) !important; }
#researchView .shop-home .shop-hsec .shop-grow { flex: 1; }
#researchView .shop-home .shop-hempty-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border: 1px dashed color-mix(in srgb, var(--sh-fg) 22%, transparent); border-radius: 16px; color: var(--sh-muted); font-size: 13.5px; }
#researchView .shop-home .shop-hcard { cursor: pointer; }
.shop-modal { --sh-fg: var(--console-fg, #fff); --sh-bg: var(--console-bg, #0b0b0f); --sh-muted: color-mix(in srgb, var(--sh-fg) 58%, transparent); --sh-line: color-mix(in srgb, var(--sh-fg) 12%, transparent); --sh-card: color-mix(in srgb, var(--sh-fg) 3%, var(--sh-bg));
  position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif; }
.shop-modal[hidden] { display: none; }
.shop-mbox { position: relative; width: min(520px, 100%); max-height: calc(100vh - 48px); overflow: auto; border: 1px solid var(--sh-line); border-radius: 20px; background: var(--sh-bg); color: var(--sh-fg); box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.shop-mbox.is-wide { width: min(760px, 100%); }
.shop-mbox.is-profile { width: min(980px, 100%); padding: 24px; }
.shop-mclose { position: absolute; right: 12px; top: 10px; z-index: 2; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; font-size: 20px; cursor: pointer; }
.shop-mart svg { display: block; width: 100%; height: 200px; }
.shop-mbody { padding: 20px 24px 22px; }
.shop-mbody h3, .shop-mprofile h3 { margin: 8px 0 4px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.shop-mbody p, .shop-mprofile p { margin: 6px 0; font-size: 14px; line-height: 1.55; color: var(--sh-muted); }
.shop-mbox .shop-hpill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: color-mix(in srgb, #60a5fa 16%, transparent); color: #93c5fd; font: 700 10px ui-monospace, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; }
.shop-mby { font-size: 13px !important; }
.shop-mmeta { font-size: 12.5px !important; }
.shop-mnote { padding: 10px 12px; border-radius: 10px; background: var(--sh-card); font-size: 12.5px !important; }
.shop-msrc { max-height: 260px; overflow: auto; margin: 10px 0 0; padding: 12px; border: 1px solid var(--sh-line); border-radius: 10px; background: color-mix(in srgb, #000 40%, var(--sh-bg)); color: #d4d4d4; font: 12px/1.5 Menlo, Monaco, monospace; white-space: pre; }
.shop-mactions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.shop-mactions b { margin-right: auto; font-size: 20px; }
.shop-mbox .shop-hpublish:disabled { opacity: .45; cursor: not-allowed; }
.shop-mbox .shop-hpublish.is-danger { background: transparent !important; color: #f87171 !important; border: 1px solid color-mix(in srgb, #f87171 50%, transparent) !important; }
.shop-mprofile { display: flex; gap: 18px; align-items: center; margin-bottom: 10px; }
.shop-mbox .shop-hsec { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 12px; }
.shop-mbox .shop-hsec h3 { margin: 0; font-size: 17px; }
.shop-mbox .shop-hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.shop-mbox .shop-hcard { display: flex; flex-direction: column; border: 1px solid var(--sh-line); border-radius: 14px; overflow: hidden; background: var(--sh-card); cursor: pointer; }
.shop-mbox .shop-hcard-art { position: relative; } .shop-mbox .shop-hcard-art svg { display: block; width: 100%; height: 110px; }
.shop-mbox .shop-hcard-art .shop-hpill { position: absolute; left: 8px; top: 8px; background: rgba(8,12,22,.72); color: #e0e7ff; }
.shop-mbox .shop-hcard-art .shop-hpill.is-free { left: auto; right: 8px; background: #16a34a; color: #fff; }
.shop-mbox .shop-hcard-body { display: flex; flex-direction: column; gap: 5px; padding: 10px 12px 12px; flex: 1; }
.shop-mbox .shop-hcard-body h4 { margin: 0; font-size: 14px; }
.shop-mbox .shop-hcard-body p { margin: 0; flex: 1; font-size: 12px; color: var(--sh-muted); }
.shop-mbox .shop-hcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11.5px; color: var(--sh-muted); }
.shop-mbox .shop-hcard-foot b { color: var(--sh-fg); font-size: 14px; }
.shop-mbox .shop-hget { height: 30px; margin-top: 4px; border: 1px solid var(--sh-line); border-radius: 9px; background: transparent; color: var(--sh-muted); font: 600 12px -apple-system, BlinkMacSystemFont, 'Inter', sans-serif; }
.shop-form { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.shop-form label { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.shop-form label > span { font-size: 12px; font-weight: 600; color: var(--sh-muted); }
.shop-form :is(input, select, textarea) { padding: 9px 11px; border: 1px solid var(--sh-line); border-radius: 10px; background: var(--sh-card); color: var(--sh-fg); font: 14px -apple-system, BlinkMacSystemFont, 'Inter', sans-serif; resize: vertical; }
.shop-form small { font-size: 11.5px; color: var(--sh-muted); }
.shop-form-row { display: flex; gap: 12px; }
.shop-form-err { margin: 0 !important; color: #f87171 !important; font-size: 13px; }
.shop-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 100001; padding: 11px 18px; border-radius: 12px; background: #111827; color: #fff; font: 500 13.5px -apple-system, BlinkMacSystemFont, 'Inter', sans-serif; box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.shop-toast[hidden] { display: none; }
/* squarer everywhere (avatars stay round); close buttons: a square with the × in its middle */
.shop-root *, .shop-window, .shop-mbox, .shop-mbox *, #researchView .shop-home, #researchView .shop-home *, html #researchView#researchView .shop-home * { border-radius: 2px !important; }
.shop-avatar, html #researchView#researchView .shop-home .shop-avatar, .shop-mbox .shop-avatar { border-radius: 50% !important; }
.shop-close, .shop-mclose { display: inline-flex !important; align-items: center; justify-content: center; width: 30px !important; height: 30px !important; padding: 0 !important; line-height: 1 !important; font: 400 20px/1 Arial, Helvetica, sans-serif !important; border: 1px solid rgba(255,255,255,.14) !important; border-radius: 2px !important; background: transparent !important; color: rgba(244,244,245,.75) !important; }
.shop-close:hover, .shop-mclose:hover { border-color: rgba(255,255,255,.4) !important; color: #fff !important; background: rgba(255,255,255,.06) !important; }
.shop-mclose { background: rgba(0,0,0,.55) !important; }
.shop-mclose:hover { background: rgba(0,0,0,.75) !important; }
.shop-root .shop-get { display: inline-flex !important; align-items: center; justify-content: center; padding: 0 12px !important; line-height: 1 !important; }
/* the Shop tab: the whole shop as its own page, under the tab bar */
#researchView .shop-home.shop-tabview { position: fixed; left: 0; right: 0; top: 44px; bottom: 0; z-index: 8990; overflow-y: auto; margin: 0; padding: 72px max(24px, calc((100vw - 1320px) / 2)) 60px; background: var(--console-bg, #000); }
#researchView .shop-home.shop-tabview[hidden] { display: none; }
/* the home page's shop preview */
#researchView .shop-home.shop-preview { cursor: pointer; }
#researchView .shop-preview .shop-prev-head { display: flex; align-items: center; gap: 12px; }
#researchView .shop-preview .shop-prev-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
#researchView .shop-preview .shop-prev-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
@media (max-width: 1100px) { #researchView .shop-preview .shop-prev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
/* calmer pictures: the listings' art and the shop's banner in muted, nearly grey tones */
.shop-art { filter: saturate(.22) brightness(.92) contrast(1.05); }
#researchView .shop-home .shop-hero, .shop-window .shop-hero { background: linear-gradient(135deg, #15171c, #0d0e11) !important; }
#researchView .shop-home .shop-hpill.is-free { filter: saturate(.35); }

/* an algo's results on its card (a backtest of the built-in algo it's based on) */
.shop-res { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 10px 0 2px; border: 1px solid color-mix(in srgb, var(--console-fg, #fff) 10%, transparent); background: color-mix(in srgb, var(--console-fg, #fff) 10%, transparent); }
.shop-res > span { background: var(--console-bg, #000); padding: 6px 8px; min-width: 0; }
.shop-res small { display: block; font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--console-fg, #fff) 45%, transparent); }
.shop-res b { display: block; margin-top: 2px; font-size: 13px; font-variant-numeric: tabular-nums; }
.shop-res b.is-pos { color: #22c55e; } .shop-res b.is-neg { color: #ef4444; }
.shop-res em { grid-column: 1 / -1; background: var(--console-bg, #000); padding: 4px 8px; font-style: normal; font-size: 10.5px; color: color-mix(in srgb, var(--console-fg, #fff) 45%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-res.is-wait { display: block; padding: 7px 8px; background: transparent; font-size: 11.5px; color: color-mix(in srgb, var(--console-fg, #fff) 45%, transparent); }
[data-hshop-tag] { margin-right: 8px; }
/* AI credit packs while they're free (early access): the price struck through, "Free", and why */
.shop-pk-foot { flex-wrap: wrap; row-gap: 8px; }
.shop-pk-price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; }
.shop-pk-price s { opacity: .55; font-weight: 600; }
.shop-pk-price small { flex-basis: 100%; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: #22c55e; }
html #researchView .shop-home .shop-hget.is-live, .shop-get.is-live { cursor: pointer !important; color: var(--sh-fg, inherit) !important; }
html #researchView .shop-home .shop-hget.is-live:hover { border-color: currentColor !important; }
