/* The Foundry Hub: market, item page, review order and order cards laid out to the designer's mocks
 * (Project Main/Mocks: marketplace, card listing, purchase journey, binder, seller workspace, matches, scan, landing).  [2026-10-17]
 * Loaded after hub.css; uses its tokens. */

/* ---- shared bits ---- */
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.linkish { background: none; border: 0; padding: 0; color: var(--mut); font: inherit; font-size: 13px; cursor: pointer; } .linkish:hover { color: var(--txt); text-decoration: underline; }
input.sw { appearance: none; width: 42px; height: 24px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); position: relative; cursor: pointer; flex: none; transition: background .15s; padding: 0; }
input.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--mut); transition: transform .15s, background .15s; }
input.sw:checked { background: #2fbf71; border-color: #2fbf71; } input.sw:checked::after { transform: translateX(18px); background: #fff; }

/* ---- market ---- */
.mk2 { max-width: 1560px; }
.mk-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mk-head .btn { gap: 10px; }
.mk-games { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin: 8px 0 18px; overflow-x: auto; }
.mk-game { display: inline-flex; align-items: center; gap: 8px; padding: 10px 2px 12px; margin-bottom: -1px; color: var(--mut); font-size: 16px; border-bottom: 2px solid transparent; white-space: nowrap; }
.mk-game.on { color: var(--txt); border-bottom-color: var(--amber); font-weight: 600; }
.mk-game svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mk-game.soon { opacity: .55; } .mk-game em { font-style: normal; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border: 1px solid var(--line); border-radius: 999px; padding: 1px 6px; }
.mk2 .mkt { grid-template-columns: 250px minmax(0, 1fr); gap: 20px; }
.mk-filt { padding: 16px; display: grid; gap: 14px; }
.mk-fh { display: flex; align-items: baseline; justify-content: space-between; } .mk-fh h3 { margin: 0; font-size: 20px; }
.mk-filt label { display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--txt); }
.mk-filt select, .mk-filt input { width: 100%; font-weight: 300; }
.mk-price { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; font-weight: 300; color: var(--mut); }
.mk-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.mk-bar .chip { padding: 8px 16px; font-size: 14px; } .mk-bar .chip.on { background: var(--amber); border-color: var(--amber); color: var(--ink); font-weight: 600; }
.mk-sort { min-width: 190px; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.mt { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px; color: var(--txt); transition: border-color .15s, transform .15s; }
.mt:hover { text-decoration: none; border-color: var(--amber); transform: translateY(-2px); }
.mt-img { position: relative; } .mt-img .card-img, .mt-img .card-ph { border-radius: 8px; }
.mt-heart { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #0009; color: #fff; display: grid; place-items: center; cursor: pointer; }
.mt-heart svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; } .mt-heart.on { color: #f05a5a; } .mt-heart.on svg { fill: currentColor; }
.mt-badge { position: absolute; left: 8px; bottom: 8px; background: #000b; color: #fff; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.mt-body { display: flex; flex-direction: column; gap: 1px; padding: 8px 4px 2px; }
.mt-nm { font-size: 16px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mt-set, .mt-cond { font-size: 13px; color: var(--mut); } .mt-cond { color: var(--txt); opacity: .8; }
.mt-price { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-top: 6px; } .mt-price b { font-size: 21px; } .mt-price span { font-size: 12px; color: var(--mut); white-space: nowrap; }
.mt-seller { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13.5px; }
.mt-seller img, .mt-av { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: var(--panel2); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.mt-ago { color: var(--mut); font-size: 12.5px; }
.mk-grid .pack-tile { border-radius: 12px; }
@media (max-width: 900px) { .mk2 .mkt { grid-template-columns: 1fr; } .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .mt-price { flex-direction: column; gap: 0; } }

/* ---- item page ---- */
.it2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 24px; align-items: start; max-width: 1500px; }
.it-gal { min-width: 0; }
.it-pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; } .it-pair.one { grid-template-columns: minmax(0, 520px); }
.it-pair .it-main, .it-back { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: grid; place-items: center; padding: 14px; }
.it-pair .it-main img, .it-back img { width: 100%; max-height: 620px; object-fit: contain; border-radius: 10px; } .it-back img { cursor: zoom-in; }
.it-gal .it-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 12px; } .it-gal .it-thumbs button { padding: 0; aspect-ratio: 1; }
.it-gal .it-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.it-side { min-width: 0; }
.it-crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--mut); flex-wrap: wrap; } .it-crumbs a { color: var(--mut); } .it-crumbs i { font-style: normal; opacity: .6; }
.it-title { font-size: 36px; line-height: 1.1; margin: 8px 0 4px; }
.it-sub { color: var(--mut); font-size: 16px; }
.it-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; } .it-chips span { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: 13.5px; }
.it-cond { font-size: 15.5px; } .it-cond b { font-weight: 600; }
.it-price { display: flex; align-items: center; gap: 18px; margin: 16px 0; } .it-price > b { font-size: 44px; line-height: 1; font-weight: 700; }
.it-price > div { display: flex; flex-direction: column; padding-left: 18px; border-left: 1px solid var(--line); font-size: 15px; } .it-price .muted { font-size: 13.5px; }
.it-acts { display: grid; gap: 10px; } .it-wide { width: 100%; gap: 10px; }
.it-offer { display: grid; grid-template-columns: 1fr auto; gap: 8px; } .it-offer .btn { gap: 8px; }
.it-closed { padding: 14px; border: 1px dashed var(--line); border-radius: 10px; color: var(--mut); text-align: center; }
.it-seller2 { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; } .it-seller2 .avatar { width: 56px; height: 56px; border-width: 0; font-size: 22px; }
.it-sname { font-weight: 600; font-size: 16.5px; color: var(--txt); } .it-star { color: var(--amber); }
.it-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; margin-right: 5px; vertical-align: 1px; }
.it-side .it-disc { margin-top: 12px; }
.it-about, .it-oth { min-width: 0; } .it-about h3, .it-oth h3 { font-size: 20px; margin: 0 0 8px; }
.it-spec { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.it-spec dt { color: var(--mut); } .it-spec dd { margin: 0; }
.it-oth-g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.it-oth-g a { display: flex; flex-direction: column; gap: 1px; color: var(--txt); font-size: 13px; } .it-oth-g a:hover { text-decoration: none; } .it-oth-g a:hover b { color: var(--amber); }
.it-oth-g img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--panel2); margin-bottom: 4px; }
.it-oth-g span { color: var(--mut); font-size: 12px; } .it-oth-g em { font-style: normal; font-weight: 700; font-size: 16px; }
@media (max-width: 1000px) { .it2 { grid-template-columns: 1fr; } .it-oth-g { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .it-pair { grid-template-columns: 1fr; } .it-back { display: none; } .it-title { font-size: 28px; } .it-price > b { font-size: 36px; } .it-gal .it-thumbs { grid-template-columns: repeat(4, 1fr); } }

/* ---- review order ---- */
.co2 { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; max-width: 1200px; }
.co-grp { padding: 0; margin-bottom: 16px; overflow: hidden; }
.co-seller { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--txt); }
.co-seller:hover { text-decoration: none; background: var(--panel2); } .co-seller b { display: block; font-size: 17px; }
.co-line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.co-line .card-img, .co-line .card-ph { width: 76px; border-radius: 6px; } .co-line .grow { display: flex; flex-direction: column; gap: 2px; } .co-line a { color: var(--txt); } .co-line b { font-size: 16px; }
.co-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; } .co-amt b { font-size: 16px; }
.co-ship { display: flex; justify-content: space-between; padding: 12px 16px; font-size: 14.5px; color: var(--mut); } .co-ship b { color: var(--txt); }
.co-grp > p { padding: 0 16px 12px; }
.co-side { position: sticky; top: 76px; display: grid; gap: 12px; }
.co-sum { display: grid; gap: 8px; }
.co-row { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; } .co-row .muted { font-size: 13px; }
.co-tot { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 22px; font-weight: 700; }
.co-box { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; } .co-box .grow { display: flex; flex-direction: column; gap: 2px; } .co-box b { font-weight: 600; }
.co-box .ico { width: 26px; height: 26px; margin-top: 4px; }
.co-ins { display: flex; gap: 8px; align-items: center; font-size: 13.5px; padding: 0 4px; }
.co-place { width: 100%; font-size: 18px; padding: 15px; }
.co-terms { text-align: center; margin: 0; }
@media (max-width: 900px) { .co2 { grid-template-columns: 1fr; } .co-side { position: static; } }

/* ---- order cards ---- */
.or2 { margin-bottom: 16px; }
.or-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); } .or-top > b:first-child { font-size: 18px; }
.or-grid { display: grid; grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr); gap: 22px; }
.or-ban { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); }
.or-ban b { display: block; font-size: 22px; font-family: "Carrois Gothic SC", "Afacad Flux", sans-serif; font-weight: 400; } .or-ban span { color: var(--mut); font-size: 14px; }
.or-ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); flex: none; } .or-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.or-ban.or-sale, .or-ban.or-auction { background: color-mix(in srgb, #2fbf71 12%, var(--panel)); border-color: color-mix(in srgb, #2fbf71 35%, transparent); } .or-ban.or-sale span, .or-ban.or-auction span { color: #6ee7a8; }
.or-ban.or-offer { background: color-mix(in srgb, var(--amber) 12%, var(--panel)); border-color: color-mix(in srgb, var(--amber) 40%, transparent); }
.or-tl { list-style: none; margin: 16px 0 0; padding: 0; }
.or-tl li { position: relative; padding: 0 0 18px 36px; } .or-tl li:last-child { padding-bottom: 0; }
.or-tl li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel); box-sizing: border-box; }
.or-tl li::after { content: ""; position: absolute; left: 10px; top: 24px; bottom: 0; width: 2px; background: var(--line); } .or-tl li:last-child::after { display: none; }
.or-tl li.done::before { background: #2fbf71 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 12l4 4 8-8'/></svg>") center / 14px no-repeat; border-color: #2fbf71; }
.or-tl li.done::after { background: #2fbf71; } .or-tl li.now::before { border-color: var(--amber); }
.or-tl b { display: block; font-size: 15.5px; } .or-tl span { color: var(--mut); font-size: 13px; }
.or-lines { display: grid; gap: 8px; }
.or-line2 { display: flex; align-items: center; gap: 12px; color: var(--txt); font-size: 14.5px; } .or-line2:hover { text-decoration: none; } .or-line2:hover .grow { color: var(--amber); }
.or-line2 img, .or-noimg { width: 44px; height: 60px; object-fit: cover; border-radius: 5px; background: var(--panel2); flex: none; }
.or-tot { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 17px; }
.or-track { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; } .or-track .grow { display: flex; flex-direction: column; }
.or-priv { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.or-priv svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; } .or-priv .grow { display: flex; flex-direction: column; }
.or-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
@media (max-width: 820px) { .or-grid { grid-template-columns: 1fr; } }

/* ---- collection and binders ("Maya's Vintage Card Binder") ---- */
.col-head { min-height: 170px; background-size: cover; background-position: center; }
.bd-shelf { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.bd-book { padding: 12px 14px; } .bd-cover { width: 60px; height: 80px; }
.bd-wrap { grid-template-columns: minmax(0, 1fr) 420px; }
.bd-page { background: linear-gradient(180deg, #1a1d23, #121418); box-shadow: inset 0 0 0 1px #ffffff0d, 0 10px 30px #0006; }
.bd-side { padding: 16px; gap: 12px; position: sticky; top: 76px; }
.bd-card { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; }
.bd-card .bd-big { width: 100%; aspect-ratio: 63 / 88; object-fit: cover; border-radius: 10px; border: 2px solid var(--amber); background: var(--panel2); }
.bd-card h3 { margin: 4px 0 2px; font-size: 20px; }
.bd-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; } .bd-chips span { background: var(--panel2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 12.5px; }
.bd-num { margin-top: 8px; color: var(--mut); font-size: 14px; } .bd-pill { font-style: normal; font-size: 11.5px; font-weight: 700; background: var(--amber); color: var(--ink); border-radius: 999px; padding: 2px 8px; margin-left: 6px; }
.bd-acts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bd-acts2 > * { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); color: var(--txt); font: inherit; font-weight: 600; cursor: pointer; }
.bd-acts2 > *:hover { text-decoration: none; border-color: var(--amber); } .bd-acts2 > .on { border-color: var(--amber); color: var(--amber); background: color-mix(in srgb, var(--amber) 10%, var(--panel)); }
.bd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .bd-two label { display: grid; gap: 5px; font-size: 13.5px; color: var(--mut); } .bd-two select { width: 100%; }
.bd-scan { width: 100%; display: flex; align-items: center; gap: 10px; }
@media (max-width: 1100px) { .bd-wrap { grid-template-columns: 1fr; } .bd-side { position: static; } }
@media (max-width: 520px) { .bd-card { grid-template-columns: 120px minmax(0, 1fr); } }

/* ---- seller workspace ("Seller workspace: orders, listings, and offers") ---- */
.sw-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.sw-head .fd-sub .sl-tier { margin-left: 8px; }
.sw-stats { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.sw-stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; min-width: 150px; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: var(--txt); }
.sw-stat:hover { text-decoration: none; border-color: var(--amber); }
.sw-stat .ico { grid-row: span 2; width: 26px; height: 26px; color: var(--amber); } .sw-stat span { color: var(--mut); font-size: 13px; } .sw-stat b { font-size: 26px; line-height: 1.1; }
.sw-create { gap: 10px; align-self: stretch; padding: 0 26px; }
.sw-home { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.sw-ship, .sw-tools, .sw-offers { min-width: 0; } .sw-tools, .sw-offers { grid-column: 1 / -1; }
.sw-ph { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; } .sw-ph .grow { display: flex; flex-direction: column; } .sw-ph b { font-size: 19px; } .sw-ph .grow span { color: var(--mut); font-size: 14px; }
.sw-ph > .ico { width: 26px; height: 26px; color: var(--amber); }
.sw-bigico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--amber) 18%, var(--panel)); color: var(--amber); flex: none; }
.sw-bigico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.sw-otab td, .sw-otab th { vertical-align: middle; white-space: nowrap; }
.sw-av { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--panel2); display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.sw-due { display: inline-block; padding: 3px 10px; border-radius: 6px; background: var(--panel2); font-size: 13px; } .sw-due.bad { background: #5b1d24; color: #fecaca; }
.sw-paid { display: inline-block; padding: 3px 10px; border-radius: 6px; background: #0f2418; color: #86efac; font-size: 13px; font-weight: 600; }
.sw-right { display: grid; gap: 16px; }
.sw-h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 18px; } .sw-h3 .ico { color: var(--amber); }
.sw-chk { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--txt); } .sw-chk:hover { text-decoration: none; } .sw-chk:hover b { color: var(--amber); }
.sw-chk .grow { display: flex; flex-direction: column; } .sw-chk span:not(.sw-chk-i) { color: var(--mut); font-size: 13px; }
.sw-chk-i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; } .sw-chk-i.bad { background: #e05252; color: #fff; } .sw-chk-i.warn { background: var(--amber); color: var(--ink); }
.sw-tgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sw-tool { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--txt); }
.sw-tool:hover { text-decoration: none; border-color: var(--amber); } .sw-tool .ico { width: 28px; height: 28px; } .sw-tool .grow { display: flex; flex-direction: column; } .sw-tool .grow span { color: var(--mut); font-size: 13px; }
.sw-ogrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sw-offer { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.sw-offer img { width: 90px; aspect-ratio: 63 / 88; object-fit: cover; border-radius: 6px; } .sw-offer .grow { display: flex; flex-direction: column; gap: 2px; }
.sw-cond { align-self: flex-start; margin-top: 6px; font-size: 12px; padding: 2px 9px; border-radius: 6px; background: var(--panel2); border: 1px solid var(--line); }
.sw-amt { font-size: 22px; } .sw-ob { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; font-size: 13.5px; }
@media (max-width: 1100px) { .sw-home { grid-template-columns: 1fr; } .sw-tgrid { grid-template-columns: repeat(2, 1fr); } .sw-ogrid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .sw-tgrid { grid-template-columns: 1fr; } .sw-offer { grid-template-columns: 70px minmax(0, 1fr); } .sw-ob { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; } }

/* ---- want matches ("Find trade matches for missing cards", no trades) ---- */
.wm-hero { margin-bottom: 6px; }
.wm2 { max-width: 1400px; }
.wm-strip2 { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin: 4px 0 16px; font-size: 16px; }
.wm-strip2 > span { display: inline-flex; align-items: center; gap: 10px; } .wm-strip2 .ico { width: 22px; height: 22px; color: var(--mut); }
.wm-sel { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.wm-sel > span { display: flex; flex-direction: column; } .wm-sel small { color: var(--mut); font-size: 11.5px; } .wm-sel select { border: 0; padding: 0 18px 0 0; background-color: transparent; font-weight: 600; }
.wm-cols { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 16px; align-items: start; }
.wm-list { padding: 14px; display: grid; gap: 10px; position: sticky; top: 76px; }
.wm-lh { display: flex; align-items: center; justify-content: space-between; } .wm-lh h3 { margin: 0; font-size: 20px; }
.wm-want { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--txt); }
.wm-want:hover { text-decoration: none; border-color: var(--amber); } .wm-want img, .wm-want .or-noimg { width: 64px; height: 89px; object-fit: cover; border-radius: 5px; }
.wm-want .grow { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; } .wm-want b { font-size: 15.5px; } .wm-want .ico { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.wm-n { position: absolute; top: 8px; right: 8px; font-style: normal; font-size: 11.5px; font-weight: 800; background: var(--amber); color: var(--ink); border-radius: 999px; min-width: 22px; text-align: center; padding: 2px 6px; }
.wm-right { display: grid; gap: 14px; }
.wm-card2 { padding: 16px; }
.wm-head2 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .wm-head2 b { font-size: 18px; } .wm-head2 .ico.sm { width: 14px; height: 14px; vertical-align: -2px; }
.wm-av2 { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--panel2); display: grid; place-items: center; font-weight: 800; font-size: 20px; color: var(--amber); flex: none; }
.wm-pill { background: #0f2418; color: #86efac; border: 1px solid #1f5133; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.wm-near { background: color-mix(in srgb, var(--amber) 15%, transparent); color: var(--amber); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.wm-body { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.wm-have2 { font-size: 16px; margin-bottom: 10px; } .wm-have2 b { color: var(--amber); }
.wm-cards2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.wm-cards2 a { display: flex; flex-direction: column; gap: 1px; color: var(--txt); font-size: 13px; } .wm-cards2 a:hover { text-decoration: none; } .wm-cards2 a:hover b { color: var(--amber); }
.wm-cards2 img { width: 100%; aspect-ratio: 63 / 88; object-fit: cover; border-radius: 6px; margin-bottom: 4px; } .wm-cards2 span { color: var(--mut); font-size: 12px; } .wm-cards2 em { font-style: normal; font-weight: 700; color: var(--amber); }
.wm-buy { display: flex; flex-direction: column; gap: 8px; justify-content: center; padding-left: 18px; border-left: 1px solid var(--line); } .wm-buy > b { font-size: 26px; }
.wm-foot { display: flex; align-items: center; gap: 14px; margin-top: 16px; } .wm-foot > .ico { width: 30px; height: 30px; color: var(--mut); }
@media (max-width: 1000px) { .wm-cols { grid-template-columns: 1fr; } .wm-list { position: static; } .wm-body { grid-template-columns: 1fr; } .wm-buy { padding-left: 0; border-left: 0; } }

/* ---- scan ("three-step card scan") ---- */
.sc .fd-tabs { margin-top: 4px; }
.sc-top { grid-template-columns: 360px 1fr; }
.sc-drop { border: 1px solid var(--line); background: #0a0b0e; padding: 18px; gap: 12px; }
.sc-frame { position: relative; padding: 14px; }
.sc-frame > i { position: absolute; width: 22px; height: 22px; border-color: var(--txt); border-style: solid; border-width: 0; opacity: .85; }
.sc-frame .c1 { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 6px; } .sc-frame .c2 { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 6px; }
.sc-frame .c3 { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 6px; } .sc-frame .c4 { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 6px; }
.sc-thumb { width: 220px; height: 300px; background: #15181e; } .sc-thumb.page { width: 280px; height: 280px; }
.sc-one { width: 62%; aspect-ratio: 63 / 88; border: 2px dashed #f0a93a99; border-radius: 10px; }
.sc-shoot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; width: 100%; }
.sc-up { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12.5px; } .sc-up .ico { width: 24px; height: 24px; }
.sc-shutter { width: 72px; height: 72px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px #0a0b0e, 0 0 0 8px var(--amber); }
.sc-drop:hover .sc-shutter { background: var(--amber2); }
.sc-cta { color: var(--txt); }
.sc-h2 { margin: 0 0 2px; font-size: 28px; }
.sc-rev .sc-row { background: var(--panel2); padding: 10px 12px; }
.sc-rev .sc-row i { font-size: 15px; width: 20px; }
.sc-rev .sc-row img, .sc-rev .sc-ph { width: 46px; height: 64px; }
.sc-rev .sc-row.warn { background: color-mix(in srgb, var(--amber) 10%, var(--panel2)); border-color: color-mix(in srgb, var(--amber) 45%, transparent); }
.sc-ok { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #0f2418; color: #86efac; font-size: 13px; font-weight: 600; flex: none; } .sc-ok .ico { width: 17px; height: 17px; }
.sc-chk { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; } .sc-warn { display: inline-flex; align-items: center; gap: 5px; color: var(--amber); font-size: 13px; } .sc-warn .ico { width: 16px; height: 16px; }
.sc-done { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.sc-opt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); color: var(--txt); }
.sc-opt:hover { text-decoration: none; border-color: var(--amber); } .sc-opt .ico { width: 28px; height: 28px; } .sc-opt .grow { display: flex; flex-direction: column; } .sc-opt .grow span { color: var(--mut); font-size: 13.5px; } .sc-opt > span:last-child { font-size: 22px; color: var(--mut); }
.sc-lock { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; } .sc-lock div { display: flex; flex-direction: column; font-size: 14px; } .sc-lock span { color: var(--mut); font-size: 13px; }
@media (max-width: 760px) { .sc-top { grid-template-columns: 1fr; } .sc-thumb { width: 100%; max-width: 280px; } }

/* ---- landing polish ("Collector Landing Page") ---- */
.ld-steps div { display: flex; gap: 16px; align-items: flex-start; padding: 20px 18px; }
.ld-steps p { margin: 0; }
.ld-si { width: 56px; height: 56px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; flex: none; }
.ld-si svg { width: 28px; height: 28px; fill: none; stroke: var(--txt); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ld-cards em { position: absolute; right: 16px; bottom: 16px; font-style: normal; font-size: 22px; color: #fff; }
.ld-cards span { padding-right: 48px; }
@media (max-width: 760px) { .ld-steps div { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---- deck builder filter column fixes (owner screenshot 2026-10-18) ----
 * The column scrolls on its own so Advanced filters are always reachable; inputs fit the column. */
.dk-filt { max-height: calc(100vh - 92px); overflow-y: auto; overscroll-behavior: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.dk-filt input, .dk-filt select { width: 100%; min-width: 0; box-sizing: border-box; }
.dk-two > label { min-width: 0; }
.dk-adv .dk-check, .dk-filt .dk-check { display: flex; grid-template-columns: none; flex-direction: row; align-items: center; color: var(--txt); font-size: 14px; }
.dk-filt .dk-check input { width: auto; flex: none; }
.dk-adv .dk-chips { gap: 5px; } .dk-adv .dk-chip { padding: 4px 9px; font-size: 12.5px; }
.dk-types .dk-ti { overflow: hidden; } .dk-ti img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dk-ti.has-img { background: none !important; }
@media (max-width: 820px) { .dk-filt { max-height: none; overflow: visible; } }
.dk-dot.has-img { width: 16px; height: 16px; border: 0; background: none !important; vertical-align: -3px; } .dk-dot img { width: 100%; height: 100%; display: block; }
/* landing review-card mockup with a real card [2026-10-18] */
.ld-phone-card { overflow: hidden; height: auto !important; aspect-ratio: 63 / 88; } .ld-phone-card img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.ld-pn { font-weight: 600; font-size: 12px; color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* restoration services picture [2026-10-18] */
.rs-art { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 12px; }
.rs-what dl { margin: 12px 0 0; display: grid; gap: 10px; } .rs-what dt { font-weight: 600; } .rs-what dd { margin: 2px 0 0; font-size: 14.5px; }
.rs-from { color: var(--amber); font-weight: 600; margin-left: 6px; }

/* Hub comic scanner [2026-10-21] (hub-comic-scan.js) */
.cs-shots { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
@media (max-width: 640px) { .cs-shots { grid-template-columns: 1fr; } }
.cs-shot { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-align: center; }
.cs-shot img { max-width: 100%; max-height: 260px; border-radius: 8px; object-fit: contain; }
.cs-book { width: 104px; aspect-ratio: 2 / 3; border: 2px dashed var(--amber, #f0a93a); border-radius: 6px; margin: 18px auto; opacity: .8; }
.cs-result { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: start; }
@media (max-width: 640px) { .cs-result { grid-template-columns: 84px 1fr; gap: 12px; } .cs-value { font-size: 28px; } }
.cs-cover { width: 100%; border-radius: 8px; }
.cs-value { font-family: "Carrois Gothic SC", sans-serif; font-size: 34px; color: var(--amber, #f0a93a); margin: 10px 0 2px; }
.cs-key { margin-top: 6px; color: var(--amber, #f0a93a); font-size: 14px; }
.cs-ok { color: var(--ok, #22c55e); }
.cs-sell { margin: 8px 0; display: flex; align-items: center; gap: 8px; }
.cs-stars { color: var(--amber, #f0a93a); letter-spacing: 2px; font-size: 18px; }
.cs-stars span { opacity: .25; }
.cs-sales { margin-top: 10px; width: 100%; }
.cs-wait { display: flex; gap: 14px; align-items: center; }

/* ---- scan studio [2026-10-24]: Start -> live camera -> one tap a scan -> the list (hub-scanner.js) ---- */
.st-pick { display: grid; gap: 10px; }
.st-pick .btn small { display: block; font-weight: 400; font-size: 12.5px; opacity: .75; margin-top: 2px; }
.st-cam { margin: 14px 0; }
.st-start { display: grid; justify-items: center; gap: 12px; padding: 22px 16px; text-align: center; }
.st-start .btn.big { min-width: 240px; font-size: 18px; padding: 14px 26px; }
.st-up { cursor: pointer; color: var(--mut); text-decoration: underline; }
.st-frame { position: relative; }
.st-frame > i { position: absolute; width: 24px; height: 24px; border: 0 solid var(--amber, #f0a93a); }
.st-frame .c1 { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 7px; }
.st-frame .c2 { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 7px; }
.st-frame .c3 { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 7px; }
.st-frame .c4 { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 7px; }
.st-start .st-frame { width: 120px; }
.st-card { aspect-ratio: 63 / 88; } .st-page { aspect-ratio: 1 / 1.05; } .st-book { aspect-ratio: 2 / 3; } .st-code { aspect-ratio: 2.2 / 1; }
.st-live { position: relative; border-radius: 14px; overflow: hidden; background: #000; }
.st-live video { display: block; width: 100%; height: min(72vh, 640px); object-fit: cover; }
.st-over { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); height: 62%; max-width: 86%; pointer-events: none; }
.st-over.st-code { height: auto; width: 62%; }
.st-over.st-page { height: 78%; }
.st-step { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 8px; align-items: baseline; justify-content: center; flex-wrap: wrap;
  background: #000a; color: #fff; padding: 8px 12px; border-radius: 10px; font-size: 14px; text-align: center; }
.st-step b { color: var(--amber, #f0a93a); }
.st-warn { position: absolute; left: 10px; right: 10px; bottom: 96px; background: #000d; color: #fff; padding: 10px; border-radius: 10px; text-align: center; }
.st-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px;
  background: linear-gradient(transparent, #000c); }
.st-bar .btn.ghost { background: #000a; color: #fff; border-color: #fff6; min-width: 70px; }
.st-bar [hidden] { visibility: hidden; display: inline-block; }
.st-shutter { width: 74px; height: 74px; border-radius: 50%; border: 5px solid #fff; background: var(--amber, #f0a93a); cursor: pointer; box-shadow: 0 0 0 3px #0006; }
.st-shutter:active { transform: scale(.94); }
.st-live.flash::after { content: ""; position: absolute; inset: 0; background: #fff; animation: st-flash .25s ease-out forwards; pointer-events: none; }
@keyframes st-flash { from { opacity: .7; } to { opacity: 0; } }
.st-listh { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 18px 0 6px; }
.st-listh .sc-h2 { margin: 0; }
.st-row .st-th { width: 42px; height: 58px; border-radius: 4px; object-fit: cover; flex: none; background: var(--panel); }
.st-row .st-th.book { height: 62px; }
.st-v { font-weight: 700; white-space: nowrap; }
.st-act { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.st-row.reading { opacity: .8; } .st-row.error { border-color: #ef444466; }
.sc-spin.sm { width: 20px; height: 20px; border-width: 2px; }
.st-hand { margin-bottom: 14px; } .st-hand summary { cursor: pointer; }
@media (max-width: 760px) {
  .st-live { margin: 0 -16px; border-radius: 0; }
  .st-live video { height: 68vh; }
  .st-row { flex-wrap: wrap; } .st-row .sc-rn { flex: 1 1 60%; } .st-act { flex: 1 1 100%; }
}

/* ---- collection folders + tools [2026-10-24] (hub-collection.js) ---- */
.col-folders { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.col-folders .chip.ghost { border-style: dashed; }
.col-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.col-fedit { display: inline-flex; gap: 6px; margin-left: 4px; }
.col-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.col-tools input[type=search] { flex: 1 1 220px; min-width: 0; }
.col-tools select { flex: 0 1 auto; }
#csum { margin: 2px 0 10px; }
@media (max-width: 760px) { .col-tools select { flex: 1 1 45%; } }
