/* The Foundry Hub — patron-facing styles. [2026-09-25]
 * Project tokens (CLAUDE.md 3); dark first, light when asked for. */
:root {
  --bg: #0f1117; --panel: #171a23; --panel2: #1d2130; --line: #272c3d; --txt: #e6e8f0; --mut: #8f95aa;
  --acc: #6366f1; --acc2: #818cf8; --ok: #22c55e; --bad: #ef4444; --warn: #f59e0b; --dum: #a855f7;
  --r: 12px; color-scheme: dark;
}
:root[data-theme="light"] { --bg: #f5f6fa; --panel: #fff; --panel2: #eef0f6; --line: #dfe2ec; --txt: #151823; --mut: #5d6378; color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--txt); font: 15.5px/1.5 "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3, .btn, .brand, .nav a, .tabbar a, .stat b, .tile .price, .big-price, .step b, .post-head .nm { font-family: "Manrope", "Source Sans 3", system-ui, sans-serif; }
h1, h2 { letter-spacing: -.015em; }
a { color: var(--acc2); text-decoration: none; } a:hover { text-decoration: underline; }
.muted { color: var(--mut); } .small { font-size: 13px; } .right { text-align: right; }
[hidden] { display: none !important; }

/* header — logo 15% larger than v1 (owner 2026-09-27); nav lives in the sidebar */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 8px 20px; min-height: 62px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--txt); font-weight: 700; letter-spacing: .01em; }
.brand:hover { text-decoration: none; }
.brand img { height: 46px; width: 46px; display: block; filter: drop-shadow(0 2px 6px #0008); }
.brand span { font-size: 19.5px; letter-spacing: .01em; } .brand em { font-style: normal; color: #f59e0b; }
.menu-btn { display: none; background: none; border: 0; color: var(--txt); padding: 6px; border-radius: 8px; cursor: pointer; }
.cart-btn { position: relative; background: none; border: 1px solid var(--line); color: var(--txt); padding: 7px 9px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; }
.cart-btn:hover { background: var(--panel2); } .cart-btn .badge { position: absolute; top: -6px; right: -6px; }
.drawer-bg { position: fixed; inset: 0; background: #0009; z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); background: var(--panel); border-left: 1px solid var(--line); z-index: 41; display: flex; flex-direction: column; box-shadow: -12px 0 40px #000a; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-body { padding: 14px 16px; overflow: auto; flex: 1; }
.drawer .line { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.drawer .line .card-img { border-radius: 6px; }
.drawer .tot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-weight: 700; }
.menu-btn:hover { background: var(--panel2); }
.search { flex: 1; display: flex; justify-content: center; }
.search input { width: min(440px, 100%); border-radius: 999px; padding: 8px 16px; background: var(--panel); }

/* shell: sidebar | main | rail */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr) 300px; gap: 24px; max-width: 1320px; margin: 0 auto; padding: 18px 20px 60px; align-items: start; }
.side { position: sticky; top: 78px; display: flex; flex-direction: column; gap: 14px; }
.side .nav { display: flex; flex-direction: column; gap: 2px; }
.side .nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: var(--mut); font-weight: 600; font-size: 15px; }
.side .nav a:hover, .side .nav a.on { color: var(--txt); background: var(--panel2); text-decoration: none; }
.side .nav a.on { box-shadow: inset 3px 0 0 var(--acc); }
.nav svg, .tabbar svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.side-foot { padding: 12px; line-height: 1.5; }
.rail { position: sticky; top: 78px; display: flex; flex-direction: column; gap: 14px; }
body.wide .shell { grid-template-columns: 232px minmax(0, 1fr); max-width: 1680px; } body.wide .rail { display: none; }
/* Just listed rail as a compact list [2026-10-04] */
.rl { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); color: var(--txt); } .rl:first-of-type { border-top: 0; }
.rl:hover { text-decoration: none; } .rl:hover b { color: var(--acc); } .rl .card-img, .rl .card-ph { width: 44px; flex: none; border-radius: 4px; }
.rl b { display: block; font-size: 13.5px; line-height: 1.25; } .rl span { font-size: 12.5px; color: var(--mut); }
.rail .tile { padding: 8px; } .rail .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
.tabbar { display: none; }
.side-open .side { display: flex; }
.banner { display: block; width: 100%; border-radius: var(--r); margin: 26px 0 6px; box-shadow: 0 16px 40px #0008; }
.hero-art { display: block; width: min(360px, 80%); margin: 0 auto; border-radius: 50%; filter: drop-shadow(0 22px 40px #000a); }
.step img { width: 58px; height: 58px; object-fit: contain; display: block; margin-bottom: 4px; }
.empty img { width: 84px; opacity: .85; display: block; margin: 0 auto 10px; }
.nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav a { color: var(--mut); padding: 6px 10px; border-radius: 8px; }
.nav a:hover, .nav a.on { color: var(--txt); background: var(--panel2); text-decoration: none; }
.who { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--acc); color: #fff; font-size: 11.5px; text-align: center; }
main { min-width: 0; min-height: 70vh; }
.foot { padding: 26px 22px 24px; border-top: 1px solid var(--line); font-size: 13.5px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 18px; max-width: 1320px; margin: 0 auto; }
.foot-grid > div { display: flex; flex-direction: column; gap: 5px; } .foot-grid > div > b { color: var(--mut); text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; margin-bottom: 4px; }
.foot-grid a { color: var(--txt); } .foot-grid a:hover { color: var(--acc2); }
.foot-brand { flex-direction: row !important; align-items: flex-start; gap: 10px !important; } .foot-brand em { font-style: normal; color: #f59e0b; }
.foot-line { max-width: 1320px; margin: 18px auto 0; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.doc-tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 0 0 16px; }
.doc-tabs a { padding: 9px 13px; color: var(--mut); border-bottom: 2px solid transparent; font-weight: 600; font-family: "Manrope", system-ui, sans-serif; }
.doc-tabs a.on { color: var(--txt); border-bottom-color: var(--acc); } .doc-tabs a:hover { text-decoration: none; color: var(--txt); }

/* feed */
.feed { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.composer textarea { width: 100%; min-height: 76px; resize: vertical; }
.composer .row.tools { margin-top: 8px; gap: 8px; }
.composer .tools .btn.ghost { padding: 6px 10px; font-size: 13.5px; }
.pick-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pick-strip .pk { position: relative; width: 74px; }
.pick-strip img { width: 100%; border-radius: 6px; display: block; aspect-ratio: 1; object-fit: cover; }
.pick-strip .pk.card img { aspect-ratio: 63 / 88; }
.pick-strip .x { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--bad); color: #fff; font-size: 12px; cursor: pointer; line-height: 20px; padding: 0; }
.post { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.post.pinned { border-color: #3b3f86; }
.post-head { display: flex; align-items: center; gap: 10px; }
.post-head .nm { font-weight: 700; } .post-head .nm .pill { margin-left: 6px; vertical-align: middle; }
.post-head .when { color: var(--mut); font-size: 12.5px; }
.post-body { margin: 10px 0 4px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.post-media { display: grid; gap: 4px; margin-top: 10px; border-radius: 10px; overflow: hidden; }
.post-media.n2, .post-media.n4 { grid-template-columns: 1fr 1fr; } .post-media.n3 { grid-template-columns: 2fr 1fr 1fr; }
.post-media img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; display: block; background: var(--panel2); cursor: zoom-in; }
.post-media.n3 img:first-child { grid-row: span 2; }
.post-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 10px; }
.post-cards .tile { padding: 8px; } .post-cards .nm { font-size: 13px; } .post-cards .price { font-size: 15px; }
.buy-chip { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--acc); color: #fff; }
.post-link { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); font-size: 14px; }
.post-acts { display: flex; gap: 4px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.post-acts button { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--mut); font: inherit; font-size: 13.5px; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.post-acts button:hover { background: var(--panel2); color: var(--txt); } .post-acts button.on { color: #fca5a5; }
.post-acts svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.post-acts button.on svg { fill: currentColor; }
.comments { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.comment { display: flex; gap: 10px; align-items: flex-start; }
.comment .bubble { background: var(--panel2); border-radius: 12px; padding: 7px 12px; max-width: 100%; }
.comment .bubble b { font-size: 13.5px; } .comment .bubble p { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.comment-form { display: flex; gap: 8px; margin-top: 10px; } .comment-form input { flex: 1; border-radius: 999px; }
.welcome { background: linear-gradient(120deg, #1e1b4b, #312e81 55%, #581c87); border-radius: var(--r); padding: 18px 20px; margin-bottom: 14px; max-width: 680px; }
.welcome h2 { margin: 0 0 6px; font-size: 22px; } .welcome p { margin: 0 0 12px; color: #c7d2fe; }
.lightbox { position: fixed; inset: 0; background: #000d; z-index: 60; display: grid; place-items: center; cursor: zoom-out; }
.lightbox img { max-width: 96vw; max-height: 94vh; border-radius: 8px; }

/* building blocks */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; background: var(--acc);
  color: #fff; font: inherit; font-weight: 600; padding: 9px 16px; border-radius: 10px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--acc2); text-decoration: none; } .btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--txt); } .btn.ghost:hover { background: var(--panel2); }
.btn.ok { background: var(--ok); color: #06210f; } .btn.bad { background: transparent; border-color: #5b2330; color: #fca5a5; }
.btn.big { padding: 13px 22px; font-size: 16.5px; border-radius: 12px; } .btn.sm { padding: 5px 10px; font-size: 13px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
input, select, textarea { font: inherit; color: var(--txt); background: var(--panel2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--acc); outline-offset: 0; }
label.f { display: grid; gap: 4px; font-size: 13px; color: var(--mut); }
h1 { font-size: 28px; margin: 4px 0 14px; } h2 { font-size: 20px; margin: 22px 0 10px; } h3 { margin: 0 0 8px; font-size: 16px; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); color: var(--mut); }
.pill.sale { color: #86efac; border-color: #1f5133; background: #0f2418; }
.pill.offer { color: #fcd34d; border-color: #5c4413; background: #22190a; }
.pill.auction { color: #d8b4fe; border-color: #4c2a73; background: #1d1330; }
.pill.nfs { color: var(--mut); } .pill.feat { color: #c7d2fe; border-color: #3b3f86; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--mut); cursor: pointer; font: inherit; font-size: 14px; }
.chip.on { background: var(--acc); border-color: var(--acc); color: #fff; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--mut); font: inherit; padding: 9px 14px; cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--txt); border-bottom-color: var(--acc); }
.empty { text-align: center; padding: 48px 20px; color: var(--mut); border: 1px dashed var(--line); border-radius: var(--r); }
#toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--panel2); border: 1px solid var(--line);
  padding: 10px 16px; border-radius: 10px; z-index: 50; box-shadow: 0 10px 30px #0008; max-width: 90vw; }
#toast.bad { border-color: #7f1d1d; color: #fecaca; }
.spin { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--acc); border-radius: 50%; animation: sp 0.8s linear infinite; margin: 40px auto; }
@keyframes sp { to { transform: rotate(360deg); } }

/* hero */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; padding: 26px 0 10px; }
.hero h1 { font-size: 42px; line-height: 1.08; margin: 0 0 12px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--acc2), var(--dum)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 17px; color: var(--mut); margin: 0 0 20px; max-width: 34em; }
.fan { position: relative; height: 300px; }
.fan .card-img { position: absolute; width: 170px; top: 20px; left: 50%; box-shadow: 0 18px 40px #000a; transition: transform .4s; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0; }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 22px 0; }
.how .step { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.how .step img { width: 96px; height: 96px; object-fit: contain; margin-bottom: 4px; }
.how .step b { font-size: 18px; }
.signup { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; } .signup input { flex: 1; min-width: 220px; }
.faq details { border-top: 1px solid var(--line); padding: 10px 0; } .faq summary { cursor: pointer; font-weight: 700; font-family: "Manrope", system-ui, sans-serif; } .faq p { margin: 8px 0 0; color: var(--mut); }
.step b { display: block; font-size: 16px; margin: 6px 0 4px; }
.step .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--acc); color: #fff; font-weight: 700; }

/* card grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
/* Market with an eBay-style filter column [2026-10-04]; folds into a Filters drop-down on phones and tablets. */
.mkt { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; align-items: start; }
.mkt-filters > summary { display: none; } .mkt-filters { position: sticky; top: 70px; }
.fgrp { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; } .fgrp > b { font-size: 13px; margin-bottom: 4px; }
.fsub { font-size: 12.5px; color: var(--mut); margin: 4px 0 2px; }
.fopt { display: flex; justify-content: space-between; gap: 6px; text-align: left; background: none; border: 0; color: var(--txt); font: inherit; font-size: 13.5px; padding: 4px 6px; border-radius: 6px; cursor: pointer; }
.fopt span { color: var(--mut); font-size: 12px; } .fopt:hover { background: var(--panel2); text-decoration: none; } .fopt.on { background: var(--panel2); color: var(--acc); font-weight: 600; }
@media (max-width: 900px) { .mkt { grid-template-columns: 1fr; } .mkt-filters { position: static; } .mkt-filters > summary { display: block; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; } }
/* Marketplace tile [2026-10-04]: compact, eBay-style text block under the image. */
.tile .tag { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 6px; font: 600 11px/1.5 "Source Sans 3", system-ui, sans-serif; color: var(--mut); border: 1px solid var(--line); vertical-align: middle; }
.tile .st.listed { color: var(--ok); }
.tile .nm { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; display: flex; flex-direction: column; gap: 3px; color: var(--txt); transition: transform .15s, border-color .15s; }
a.tile:hover { transform: translateY(-3px); border-color: var(--acc); text-decoration: none; }
.tile.sel { outline: 2px solid var(--acc); }
.card-img { width: 100%; aspect-ratio: 63 / 88; object-fit: cover; border-radius: 8px; background: var(--panel2); display: block; }
.card-ph { width: 100%; aspect-ratio: 63 / 88; border-radius: 8px; background: linear-gradient(160deg, var(--panel2), #262b44); display: grid; place-items: center; text-align: center; padding: 10px; color: var(--mut); font-size: 13px; }
.tile .nm { font-weight: 600; font-size: 14px; line-height: 1.25; }
.tile .st { font-size: 12.5px; color: var(--mut); }
.tile .price { font-size: 16px; font-weight: 700; margin-top: 2px; }
.tile .ribbon { position: absolute; top: 16px; left: 16px; }
.tile .chk { position: absolute; top: 16px; right: 16px; width: 20px; height: 20px; accent-color: var(--acc); }
.mv { font-size: 12px; color: var(--mut); }

/* item page */
.item { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 28px; align-items: start; }
.item .card-img, .item .card-ph { max-width: 420px; box-shadow: 0 16px 40px #0009; }
.big-price { font-size: 32px; font-weight: 800; margin: 4px 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--mut); } .kv dd { margin: 0; }
.clock { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--warn); }

/* profile */
.cover { height: 210px; border-radius: var(--r); background: linear-gradient(120deg, #1e1b4b, #312e81 45%, #581c87); background-size: cover; background-position: center; }
.prof { display: flex; gap: 18px; align-items: flex-end; margin: -52px 0 16px 22px; flex-wrap: wrap; }
.avatar { width: 112px; height: 112px; border-radius: 50%; border: 4px solid var(--bg); background: var(--panel2); object-fit: cover; display: grid; place-items: center; font-size: 40px; font-weight: 700; color: var(--acc2); }
.avatar.sm { width: 30px; height: 30px; border-width: 0; font-size: 14px; }
.stats { display: flex; gap: 22px; } .stats b { display: block; font-size: 20px; }

/* tables */
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.t th { color: var(--mut); font-weight: 600; font-size: 12.5px; }
.bulk { position: sticky; top: 58px; z-index: 10; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--panel2);
  border: 1px solid var(--acc); border-radius: var(--r); padding: 10px 14px; margin-bottom: 14px; }
.modal-bg { position: fixed; inset: 0; background: #000a; z-index: 40; display: grid; place-items: center; padding: 16px; }
.modal { width: min(560px, 100%); max-height: 90vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.form { display: grid; gap: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

@media (max-width: 1100px) { .shell { grid-template-columns: 220px minmax(0, 1fr); } .rail { display: none; } }
@media (max-width: 820px) {
  .hero, .item { grid-template-columns: 1fr; } .hero h1 { font-size: 32px; } .fan { display: none; }
  .steps { grid-template-columns: 1fr; } .top { gap: 8px; padding: 6px 12px; min-height: 56px; } .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; }
  .brand span { display: none; } .brand img { width: 42px; height: 42px; } .menu-btn { display: inline-flex; }
  .search { order: 5; flex-basis: 100%; display: none; } .top.search-open .search { display: flex; }
  .shell { display: block; padding: 14px 16px 80px; }
  .side { display: none; position: fixed; top: 56px; left: 0; bottom: 0; width: min(280px, 85vw); z-index: 30; background: var(--panel); border-right: 1px solid var(--line); padding: 12px; box-shadow: 8px 0 30px #0008; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--mut); font-size: 11px; font-weight: 600; padding: 4px; border-radius: 8px; }
  .tabbar a.on { color: var(--txt); } .tabbar a:hover { text-decoration: none; }
  .foot { padding-bottom: 80px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; } .two { grid-template-columns: 1fr; }
  .prof { margin-left: 8px; } .avatar { width: 86px; height: 86px; }
}

/* Notifications [2026-10-04] */
.note { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); color: var(--txt); }
.note:first-child { border-top: 0; } .note:hover { background: var(--panel2); text-decoration: none; }
.note.unread { box-shadow: inset 3px 0 0 var(--acc); } .note-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--panel2); flex: none; display: inline-block; }
#bell-btn { margin-right: 6px; }
/* Mystery pack tile [2026-10-04] */
.pack-tile .card-img { object-fit: cover; } .pack-tile select { padding: 4px 6px; }

/* Category tiles above the market grid [2026-10-08] */
.cat-row { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 0 14px; scroll-snap-type: x proximity; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--txt); cursor: pointer; font: inherit; text-align: center; scroll-snap-align: start; text-decoration: none; }
.cat-tile:hover { border-color: var(--acc); text-decoration: none; }
.cat-tile.on { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.cat-tile.empty { opacity: .62; }
.cat-tile img { width: 96px; height: 96px; border-radius: 12px; }
.cat-tile span { font-weight: 700; font-size: 13px; line-height: 1.2; }
.cat-tile em { font-style: normal; font-size: 11.5px; color: var(--mut); }
@media (max-width: 600px) { .cat-row { grid-auto-columns: 104px; } .cat-tile img { width: 72px; height: 72px; } }
