@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/dm-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/dm-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/dm-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/roboto-latin-500-normal.woff2') format('woff2'); }

:root {
  --bg: #0b0d10;
  --bg-soft: #0f1215;
  --surface: #14171b;
  --surface-2: #1a1e23;
  --surface-3: #22272d;
  --border: #252a30;
  --border-strong: #343a41;
  --text: #f2f3ef;
  --text-2: #c3c7ca;
  --muted: #8d9399;
  --lime: #cbf279;
  --lime-hover: #dcfa9c;
  --lime-ink: #141a0c;
  --lime-soft: rgba(203, 242, 121, .1);
  --danger: #f29b9b;
  --danger-soft: rgba(242, 155, 155, .1);
  --radius: 14px;
  --radius-sm: 9px;
  --display: 'Space Grotesk', 'DM Sans', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font: 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body.modal-open { overflow: hidden; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--lime); color: var(--lime-ink); padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 12px; }
.container { width: min(1200px, 100% - var(--gutter) * 2); margin-inline: auto; }
.muted { color: var(--muted); }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 16px; height: 16px; }
kbd { font: 600 11px/1 var(--body); color: var(--muted); border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; padding: 3px 6px; }

/* Platform icons are self-contained app tiles. */
.pi { width: 40px; height: 40px; flex: none; border-radius: 10px; }
.pi-sm { width: 22px; height: 22px; border-radius: 6px; }
.pi-md { width: 32px; height: 32px; border-radius: 8px; }
.pi-lg { width: 48px; height: 48px; border-radius: 12px; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid transparent; font-weight: 700; font-size: 14px; line-height: 1; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, transform .15s; }
.button:disabled { opacity: .55; }
.button:not(:disabled):active { transform: translateY(1px); }
.button-lime { background: var(--lime); color: var(--lime-ink); }
.button-lime:not(:disabled):hover { background: var(--lime-hover); }
.button-ghost { color: var(--text-2); }
.button-ghost:not(:disabled):hover { color: var(--text); background: var(--surface-2); }
.button-outline { border-color: var(--border-strong); color: var(--text); }
.button-outline:not(:disabled):hover { border-color: #4b525a; background: var(--surface-2); }
.button-quiet { background: var(--surface-3); color: var(--text); border-color: var(--border-strong); }
.button-quiet:not(:disabled):hover { background: #2a3037; }
.button-quiet.danger { color: var(--danger); }
.button-small { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.button-large { min-height: 50px; font-size: 15px; }
.button-block { width: 100%; }
.button.is-busy { opacity: .8; cursor: progress; }
.button.is-busy::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.text-button { color: var(--lime); font-weight: 700; font-size: inherit; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.icon-button { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--muted); }
.icon-button:hover { background: var(--surface-3); color: var(--text); }
.icon-button.danger:hover { color: var(--danger); background: var(--danger-soft); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(11, 13, 16, .86); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 30px; height: 30px; }
.wordmark { font: 700 22px/1 var(--display); letter-spacing: -.05em; color: var(--text); }
.wordmark span { color: var(--muted); }
.primary-nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav-link { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 14px; transition: color .15s, background-color .15s; }
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.is-active { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 8px; animation: fade .25s ease-out; }
/* Until the script knows who is signed in, keep the sign-in buttons out of sight (revealed after 3s regardless). */
html.booting .header-actions { visibility: hidden; animation: reveal 0s 3s forwards; }
@keyframes reveal { to { visibility: visible; } }
.header-icon { position: relative; display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--text-2); transition: background-color .15s, color .15s, border-color .15s; }
.header-icon:hover, .header-icon.is-active { background: var(--surface-2); color: var(--text); }
.header-icon.is-active { border-color: #5b6a45; }
.header-icon .i { width: 18px; height: 18px; }
.unread-dot { position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font: 700 11px/18px var(--body); text-align: center; box-shadow: 0 0 0 2px var(--bg); animation: pop .2s ease-out; }
.guest-actions { display: flex; gap: 6px; }
.guest-actions .button { min-height: 38px; }
.account { position: relative; }
.account-button { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-2); }
.account-button:hover, .account-button[aria-expanded="true"] { background: var(--surface-2); color: var(--text); }
.account-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: 14px; }
.avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; overflow: hidden; background: var(--lime); color: var(--lime-ink); font: 700 12px/1 var(--display); letter-spacing: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 56px; height: 56px; font-size: 20px; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; padding: 6px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, .5); transform-origin: top right; animation: menu-in .14s ease-out; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px) scale(.97); } }
.menu-head { padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--border-strong); display: grid; gap: 2px; }
.menu-head strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-head span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; font-size: 14px; color: var(--text-2); text-align: left; }
.menu a:hover, .menu button:hover { background: var(--surface-3); color: var(--text); }
.menu a:focus-visible, .menu button:focus-visible { background: var(--surface-3); color: var(--text); outline: 2px solid var(--lime); outline-offset: -2px; }
.menu .i { width: 17px; height: 17px; color: var(--muted); }

/* Motion: pages fade in, loaded content rises into place, cards arrive one after another. */
.view { animation: view-in .28s cubic-bezier(.2, .7, .2, 1); }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.rise-in { animation: rise .32s cubic-bezier(.2, .7, .2, 1) backwards; }
.listing-grid > .listing-card:not(.skeleton), .stack > .order-card:not(.skeleton), .mini-list > .mini-row:not(.skeleton) { animation: rise .34s cubic-bezier(.2, .7, .2, 1) backwards; }
.listing-grid > :nth-child(2), .stack > :nth-child(2), .mini-list > :nth-child(2) { animation-delay: .03s; }
.listing-grid > :nth-child(3), .stack > :nth-child(3), .mini-list > :nth-child(3) { animation-delay: .06s; }
.listing-grid > :nth-child(4), .stack > :nth-child(4), .mini-list > :nth-child(4) { animation-delay: .09s; }
.listing-grid > :nth-child(5), .stack > :nth-child(5), .mini-list > :nth-child(5) { animation-delay: .12s; }
.listing-grid > :nth-child(6), .stack > :nth-child(6), .mini-list > :nth-child(6) { animation-delay: .15s; }
.listing-grid > :nth-child(7), .stack > :nth-child(7) { animation-delay: .18s; }
.listing-grid > :nth-child(8), .stack > :nth-child(8) { animation-delay: .21s; }
.listing-grid > :nth-child(n+9), .stack > :nth-child(n+9) { animation-delay: .24s; }
.tab-panel { animation: fade .2s ease-out; }

/* Hero */
.hero { position: relative; border-bottom: 1px solid var(--border); background: radial-gradient(900px 380px at 50% -20%, rgba(203, 242, 121, .1), transparent 70%); }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 88px 0 76px; }
.hero h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -.055em; max-width: 16ch; }
.hero h1 .accent { color: var(--lime); }
.hero-lead { margin-top: 18px; max-width: 560px; font-size: 17px; color: var(--text-2); }
.hero-search { display: flex; align-items: center; gap: 10px; margin-top: 32px; width: 100%; max-width: 580px; text-align: left; padding: 6px 6px 6px 16px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.hero-search:focus-within { border-color: #5b6a45; box-shadow: 0 0 0 4px var(--lime-soft); }
.hero-search .i { color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; height: 40px; background: none; border: 0; outline: none; font-size: 16px; }
.hero-search input::placeholder { color: #8a9096; }

/* Market */
.market { padding: 48px 0 72px; scroll-margin-top: 72px; }
@media (max-width: 760px) { .market { scroll-margin-top: 8px; } }
.market-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.market-head h2 { font-size: 30px; }
.market-summary { margin-top: 6px; color: var(--muted); font-size: 14px; min-height: 22px; }
.market-controls { display: flex; gap: 10px; align-items: center; }
.search-field { display: flex; align-items: center; gap: 10px; width: 300px; height: 42px; padding: 0 10px 0 12px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--muted); }
.search-field:focus-within { border-color: #5b6a45; }
.search-field input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font-size: 14px; }
.search-field input::placeholder { color: #8a9096; }
.search-field input::-webkit-search-cancel-button { filter: invert(.6); }
.search-field input:placeholder-shown::-webkit-search-cancel-button { display: none; }
.price-form input::placeholder { color: #8a9096; }
.select-field { position: relative; display: flex; align-items: center; }
.select-field select { appearance: none; height: 42px; padding: 0 36px 0 12px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 14px; color: var(--text); cursor: pointer; }
.select-field .i { position: absolute; right: 12px; color: var(--muted); pointer-events: none; }
.market-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.filters { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow-y: auto; padding: 4px 6px 4px 4px; margin: -4px -6px -4px -4px; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; min-width: 0; }
.filter-block { min-width: 0; }
.filter-title { font: 700 12px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.platform-list { display: grid; gap: 2px; }
.platform-option { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border-radius: 8px; color: var(--text-2); font-size: 14px; text-align: left; transition: background-color .15s, color .15s; }
.platform-option:hover { background: var(--surface-2); color: var(--text); }
.platform-option.is-selected { background: var(--surface-3); color: var(--text); box-shadow: inset 2px 0 0 var(--lime); }
.platform-option span:nth-of-type(1) { flex: 1; }
.option-count { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.price-form { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
.price-form input { width: 100%; height: 38px; padding: 0 10px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px; outline: none; font-size: 14px; -moz-appearance: textfield; }
.price-form input::-webkit-outer-spin-button, .price-form input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-form input:focus { border-color: #5b6a45; }
.price-sep { color: var(--muted); }
.price-form .button { grid-column: 1 / -1; }
.market-main { min-width: 0; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.active-filters:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px 0 12px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border-strong); font-size: 13px; color: var(--text); }
.chip:hover { border-color: #4b525a; }
.chip .i { color: var(--muted); }
.active-filters .text-button { font-size: 13px; margin-left: 4px; }

.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; transition: opacity .15s; }
.listing-grid.is-loading { opacity: .55; }
.listing-grid:empty { display: none; }
.listing-card { display: flex; flex-direction: column; min-width: 0; min-height: 210px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .15s, background-color .15s, transform .15s; }
.listing-card:hover { border-color: #3d4636; background: #161a1e; transform: translateY(-2px); }
.card-top { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; font-weight: 500; }
.card-age { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 400; }
.card-handle { margin: 22px 0 8px; font: 700 30px/1.1 var(--display); letter-spacing: -.045em; overflow-wrap: anywhere; }
.card-handle.is-long { font-size: 24px; }
.card-handle.is-xlong { font-size: 19px; }
.at { color: var(--lime); }
.card-desc { color: var(--muted); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-desc.is-empty { color: var(--muted); font-style: italic; }
.card-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.card-price { font: 700 22px/1 var(--display); letter-spacing: -.03em; }
.card-seller { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skeleton { position: relative; overflow: hidden; pointer-events: none; }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .035), transparent); transform: translateX(-100%); animation: shimmer 1.3s infinite; }
.listing-card.skeleton span { display: block; height: 14px; border-radius: 6px; background: var(--surface-3); }
.listing-card.skeleton span:nth-child(1) { width: 40%; }
.listing-card.skeleton span:nth-child(2) { width: 70%; height: 28px; margin: 28px 0 12px; }
.listing-card.skeleton span:nth-child(3) { width: 30%; margin-top: auto; height: 20px; }
@keyframes shimmer { to { transform: translateX(100%); } }

.empty-state { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 56px 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--bg-soft); }
.empty-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--lime-soft); color: var(--lime); margin-bottom: 4px; }
.empty-state h3 { font-size: 22px; }
.empty-state p { max-width: 420px; color: var(--muted); font-size: 14px; }
.empty-state .button { margin-top: 8px; }

/* How it works */
.how { padding: 8px 0 80px; }
.how > h2 { font-size: 30px; margin-bottom: 24px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.steps li { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--lime-soft); color: var(--lime); margin-bottom: 18px; }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 14px; }
.sell-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 14px; padding: 26px 28px; border-radius: var(--radius); background: var(--lime); color: var(--lime-ink); }
.sell-banner h3 { font-size: 22px; }
.sell-banner p { margin-top: 4px; color: #3d4a26; }
.sell-banner .button-lime { background: var(--lime-ink); color: var(--lime); }
.sell-banner .button-lime:hover { background: #24301a; }

/* Pages */
.page { padding: 40px 0 88px; min-height: 70vh; }
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: clamp(32px, 4vw, 44px); }
.page-head p { margin-top: 8px; color: var(--muted); max-width: 560px; }
.legal { max-width: 760px; }
.legal > p, .legal li { color: var(--text-2); line-height: 1.7; }
.legal > p + p, .legal ul + p { margin-top: 12px; }
.legal h2 { font-size: 20px; margin: 32px 0 10px; }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.legal strong { color: var(--text); }
.legal a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; font-size: 14px; margin-bottom: 20px; }
.back-link:hover { color: var(--text); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.panel-title { font-size: 18px; letter-spacing: -.025em; }
.panel-text { color: var(--muted); font-size: 14px; margin-top: 4px; }
.panel-text.small { font-size: 13px; margin: 14px 0 16px; }
.panel-row { display: flex; align-items: flex-start; gap: 14px; }
.panel-row.space { align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--lime-soft); color: var(--lime); }
.count:empty { display: none; }
.count { min-width: 26px; padding: 3px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: 12px; text-align: center; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 920px; }
.ok-text { display: inline-flex; align-items: center; gap: 6px; color: var(--lime); }

/* Forms */
.field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 0; margin-bottom: 8px; font-weight: 700; font-size: 13px; color: var(--text); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select, .input-affix { width: 100%; background: var(--bg-soft); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--text); padding: 11px 12px; outline: none; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.field input::placeholder, .field textarea::placeholder { color: #8a9096; }
.field input:focus, .field textarea:focus, .input-affix:focus-within { border-color: #6f8250; box-shadow: 0 0 0 3px var(--lime-soft); }
.field textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
.input-affix { display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.input-affix > span { color: var(--muted); font-weight: 700; white-space: nowrap; }
.field .select-field select { height: 46px; padding-right: 36px; appearance: none; cursor: pointer; }
.field .input-affix input { border: 0; padding: 11px 0; background: none; box-shadow: none; }
.hint { margin-top: 6px; color: var(--muted); font-size: 12px; }
.hint-right { text-align: right; }
.form-error { margin: -4px 0 16px; padding: 10px 12px; border-radius: 8px; background: var(--danger-soft); color: var(--danger); font-size: 13px; }
.form-actions { display: flex; gap: 8px; }
.note { display: flex; gap: 10px; padding: 12px 14px; margin: 4px 0 20px; border-radius: var(--radius-sm); background: var(--bg-soft); border: 1px solid var(--border); color: var(--muted); font-size: 13px; line-height: 1.55; }
.note .i { width: 18px; height: 18px; margin-top: 1px; color: var(--lime); }
.password-field { position: relative; }
.password-field input { padding-right: 46px; }
.reveal { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; color: var(--muted); }
.reveal:hover { color: var(--text); background: var(--surface-3); }
.reveal .i { width: 18px; height: 18px; }

/* Sell */
.sell-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.sell-layout > .panel > .panel-title { margin-bottom: 20px; }
.sell-side { display: grid; gap: 16px; }
.platform-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; }
.platform-choice { position: relative; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-soft); font-size: 13px; font-weight: 500; color: var(--text-2); cursor: pointer; transition: border-color .15s, background-color .15s; }
.platform-choice:hover { border-color: #4b525a; color: var(--text); }
.platform-choice input { position: absolute; opacity: 0; pointer-events: none; }
.platform-choice:has(input:checked) { border-color: var(--lime); background: var(--lime-soft); color: var(--text); }
.platform-choice:has(input:focus-visible) { outline: 2px solid var(--lime); outline-offset: 2px; }
.mini-list { display: grid; gap: 8px; }
.mini-list > .button { margin-top: 10px; }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-soft); }
.mini-main { display: grid; min-width: 0; flex: 1; }
.mini-main a { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-main a:hover { color: var(--lime); }
.mini-main small { color: var(--muted); font-size: 12px; }
.mini-side { display: flex; align-items: center; gap: 2px; }
.mini-side .badge { margin-right: 4px; }
.mini-row.skeleton { height: 56px; }

/* Badges */
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
.badge-active, .badge-paid, .badge-completed { background: rgba(203, 242, 121, .12); color: var(--lime); }
.badge-pending, .badge-reserved, .badge-delivered { background: rgba(240, 200, 100, .12); color: #f0cf7b; }
.badge-sold { background: rgba(140, 160, 255, .13); color: #b3c0ff; }
.badge-rejected, .badge-expired, .badge-refunded, .badge-removed, .badge-disputed { background: var(--danger-soft); color: var(--danger); }

/* Listing detail */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.detail-hero { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 380px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: radial-gradient(600px 300px at 20% 110%, rgba(203, 242, 121, .1), transparent 70%), var(--surface); }
.detail-hero.skeleton, .detail-skeleton { min-height: 380px; }
.detail-platform { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; }
.detail-handle { font-size: clamp(40px, 6vw, 72px); letter-spacing: -.055em; overflow-wrap: anywhere; }
.detail-handle.is-long { font-size: clamp(32px, 4.5vw, 54px); }
.detail-handle.is-xlong { font-size: clamp(26px, 3.4vw, 40px); }
.detail-listed { color: var(--muted); font-size: 14px; }
.detail-panel { display: grid; gap: 0; }
.detail-price-row { display: flex; align-items: center; justify-content: space-between; }
.label { color: var(--muted); font-size: 13px; }
.detail-price { font: 700 40px/1.1 var(--display); letter-spacing: -.04em; margin: 6px 0 18px; }
.detail-meta { display: grid; gap: 10px; margin: 22px 0; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 14px; }
.detail-meta div { display: flex; justify-content: space-between; gap: 12px; }
.detail-meta dt { color: var(--muted); }
.detail-meta dd { margin: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.detail-subtitle { font-size: 14px; letter-spacing: 0; font-family: var(--body); margin-bottom: 6px; }
.detail-description { color: var(--text-2); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 18px; }
.detail-panel .note { margin: 0; }
.buy-actions { display: grid; gap: 8px; }
.buy-note { color: var(--muted); font-size: 13px; text-align: center; }
.owner-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.owner-actions + .buy-note { margin-top: 10px; }

/* Orders and admin */
.order-card { display: flex; align-items: flex-start; gap: 16px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.order-card.skeleton { min-height: 100px; }
.order-main { flex: 1; min-width: 0; }
.order-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.order-title h3 { font-size: 20px; overflow-wrap: anywhere; }
.order-meta { margin-top: 4px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.order-hint { margin-top: 8px; color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.order-actions:empty { display: none; }
.order-amount { text-align: right; }
.order-amount strong { display: block; font: 700 20px/1.2 var(--display); }
.order-amount small { color: var(--muted); font-size: 12px; }

/* Account */
.account-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 680px; }
.profile-panel { display: flex; align-items: center; gap: 16px; }
.profile-panel > div { min-width: 0; }
.profile-panel .panel-title, .profile-panel .panel-text { overflow-wrap: anywhere; }
.profile-panel .badge { margin-top: 8px; }
.methods { display: grid; gap: 10px; margin-top: 16px; }
.method { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-soft); }
.method-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 9px; background: var(--surface-3); color: var(--text-2); }
.method-main { flex: 1; display: grid; min-width: 0; }
.method-main strong { font-size: 14px; }
.method-main span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.methods > .hint { margin: -2px 0 0 2px; }
.password-form { padding: 16px 0 0; }

/* Avatars: a stable colour per person when there is no photo */
.tone-0 { background: #cbf279; color: #141a0c; }
.tone-1 { background: #8fd3ff; color: #08263a; }
.tone-2 { background: #c9b6ff; color: #23164a; }
.tone-3 { background: #ffcf7a; color: #3d2600; }
.tone-4 { background: #ff9fb3; color: #45101d; }
.tone-5 { background: #7fe3c4; color: #06352a; }
.avatar-xl { width: 104px; height: 104px; font-size: 36px; box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--border-strong); }
.person-link { color: var(--text); font-weight: 500; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
.person-link:hover { color: var(--lime); text-decoration-color: var(--lime); }
.card-seller.person-link { color: var(--muted); font-weight: 400; cursor: pointer; }
.card-seller.person-link:hover { color: var(--lime); }
.card-foot .badge { margin-right: auto; }
.listing-card.is-sold .card-price { color: var(--muted); }

/* Profile page */
.profile-card { position: relative; display: flex; align-items: flex-start; gap: 24px; padding: 28px; border: 1px solid var(--border); border-radius: 18px; background: radial-gradient(700px 240px at 0% 0%, rgba(203, 242, 121, .08), transparent 70%), var(--surface); }
.profile-card.skeleton { min-height: 180px; }
.profile-main { flex: 1; min-width: 0; }
.profile-name { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: clamp(28px, 4vw, 40px); overflow-wrap: anywhere; }
.profile-name .badge { font-family: var(--body); letter-spacing: .02em; }
.profile-joined { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; color: var(--muted); font-size: 14px; }
.profile-handle { color: var(--text-2); font-weight: 500; }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--border-strong); margin: 0 4px; }
.profile-bio { margin-top: 14px; max-width: 620px; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
button.profile-bio.is-empty { display: block; width: 100%; max-width: 460px; padding: 10px 12px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); color: var(--muted); text-align: left; font-size: 14px; }
button.profile-bio.is-empty:hover { border-color: var(--lime); color: var(--text); }
.profile-stats { display: flex; gap: 10px; margin: 18px 0 0; }
.profile-stats div { min-width: 96px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); }
.profile-stats dt { color: var(--muted); font-size: 12px; }
.profile-stats dd { margin: 2px 0 0; font: 700 24px/1.1 var(--display); }
.profile-actions { display: flex; flex-direction: column; gap: 8px; flex: none; }
.tabs { display: flex; gap: 4px; margin: 28px 0 18px; border-bottom: 1px solid var(--border); }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 500; font-size: 15px; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--lime); }
.tab-count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: 12px; text-align: center; }
.tab[aria-selected="true"] .tab-count { background: var(--lime-soft); color: var(--lime); }
.seller-card { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); transition: border-color .15s, background-color .15s; }
.seller-card:hover { border-color: #4b525a; background: var(--surface-2); }
.seller-card .avatar { width: 40px; height: 40px; font-size: 14px; }
.seller-card-main { flex: 1; display: grid; min-width: 0; }
.seller-card-main small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.seller-card-main strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seller-card-main span { color: var(--muted); font-size: 12px; }
.seller-card > .i { color: var(--muted); }
.profile-panel-main { flex: 1; min-width: 0; }
.profile-panel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-preview { display: flex; align-items: center; gap: 14px; padding: 14px; margin-bottom: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); }
.profile-preview div { display: grid; min-width: 0; }
.profile-preview strong { font-size: 16px; overflow-wrap: anywhere; }
.profile-preview span:not(.avatar) { color: var(--muted); font-size: 13px; }
.check { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--lime); }
.cooldown { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: rgba(240, 200, 100, .1); color: #f0cf7b; font-size: 13px; }
.mini-more { display: inline-block; margin-top: 6px; font-size: 13px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 28px; background: var(--bg-soft); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.footer-brand p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.footer-brand .brand-mark { width: 26px; height: 26px; }
.footer-brand .wordmark { font-size: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer-links a { color: var(--text-2); font-size: 14px; }
.footer-links a:hover { color: var(--lime); }
.footer-legal { display: flex; justify-content: space-between; gap: 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.footer-legal > span:first-child { flex: none; white-space: nowrap; }

/* Toast */
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 120; display: flex; align-items: center; gap: 10px; max-width: min(440px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border-strong); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); font-size: 14px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast .i { color: var(--lime); }
.toast.error .i { color: var(--danger); }
.toast.visible { opacity: 1; transform: none; }

/* Modals */
.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 5, 7, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .15s ease-out; }
.modal-box { position: relative; width: min(420px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; padding: 32px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: pop .18s ease-out; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--muted); }
.modal-close:hover { background: var(--surface-3); color: var(--text); }
.auth-mark { width: 40px; height: 40px; margin-bottom: 18px; }
.auth-box h2 { font-size: 26px; }
.auth-subtitle { margin: 6px 0 24px; color: var(--muted); font-size: 14px; }
.auth-switch { margin-top: 20px; text-align: center; color: var(--muted); font-size: 14px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border-strong); }
.link-notice { display: flex; gap: 12px; padding: 14px; margin-bottom: 20px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--bg-soft); font-size: 13px; color: var(--text-2); }
.link-notice img { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.link-notice strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 4px; }
.link-notice b { color: var(--text); font-weight: 700; overflow-wrap: anywhere; }
.link-notice .text-button { margin-top: 8px; font-size: 13px; }

/* "Continue with Google" — Google's light-theme button (white, #747775 border, Roboto Medium). */
.gsi-button { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 44px; padding: 0 12px; background: #fff; border: 1px solid #747775; border-radius: 22px; color: #1f1f1f; font: 500 14px/20px 'Roboto', var(--body); letter-spacing: .25px; transition: background-color .2s, box-shadow .2s; }
.gsi-button:hover:not(:disabled) { background: #f8f9fa; box-shadow: 0 1px 2px rgba(60, 64, 67, .3), 0 1px 3px 1px rgba(60, 64, 67, .15); }
.gsi-button:active:not(:disabled) { background: #eef0f2; }
.gsi-button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.gsi-button:disabled { cursor: progress; }
.gsi-icon { display: grid; place-items: center; width: 20px; height: 20px; }
.gsi-icon img { width: 20px; height: 20px; }
.gsi-button.is-busy .gsi-icon img { display: none; }
.gsi-button.is-busy .gsi-icon::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #4285f4; border-right-color: transparent; animation: spin .7s linear infinite; }

/* Messages */
.page-messages { padding-bottom: 48px; min-height: 0; }
.messages-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); height: calc(100vh - 136px); height: calc(100dvh - 136px); min-height: 460px; max-height: 860px; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: var(--surface); }
.inbox { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border); background: var(--bg-soft); }
.inbox-head { padding: 20px 20px 14px; border-bottom: 1px solid var(--border); }
.inbox-head h1 { font-size: 24px; }
.inbox-list { flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 2px; padding: 8px; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.inbox-item { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px; border-radius: 12px; transition: background-color .15s; }
.inbox-item:hover { background: var(--surface-2); }
.inbox-item.is-active { background: var(--surface-3); box-shadow: inset 2px 0 0 var(--lime); }
.inbox-item.skeleton { height: 62px; background: var(--surface); }
.inbox-item .avatar { width: 42px; height: 42px; font-size: 15px; }
.inbox-main { flex: 1; display: grid; gap: 2px; min-width: 0; }
.inbox-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.inbox-top strong { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-top time { flex: none; color: var(--muted); font-size: 12px; }
.inbox-preview { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-item.is-unread .inbox-top strong, .inbox-item.is-unread .inbox-preview { color: var(--text); font-weight: 700; }
.inbox-count { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; flex: none; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font-size: 11px; font-weight: 700; animation: pop .2s ease-out; }
.inbox-empty { display: grid; justify-items: center; gap: 10px; padding: 32px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.inbox-empty .i { color: var(--lime); }
.thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.thread-head { display: flex; align-items: center; gap: 8px; min-height: 69px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.thread-head .avatar.skeleton { background: var(--surface-3); }
.thread-head .line { display: block; width: 140px; height: 14px; border-radius: 6px; background: var(--surface-3); }
.thread-back { display: none; }
.thread-person { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 4px 8px 4px 4px; border-radius: 12px; transition: background-color .15s; }
.thread-person:hover { background: var(--surface-2); }
.thread-head .avatar { width: 40px; height: 40px; font-size: 14px; }
.thread-who { display: grid; min-width: 0; }
.thread-who strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-who span { color: var(--muted); font-size: 13px; }
.thread-empty { display: grid; justify-items: center; align-content: center; gap: 10px; flex: 1; padding: 32px 24px; text-align: center; }
.thread-empty h3 { font-size: 22px; }
.thread-empty p { max-width: 360px; color: var(--muted); font-size: 14px; }
.feed { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; padding: 18px 20px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.feed-empty { display: grid; justify-items: center; gap: 8px; margin: auto; max-width: 340px; text-align: center; }
.feed-empty strong { font-size: 18px; }
.feed-empty span:not(.avatar) { color: var(--muted); font-size: 14px; }
.day { align-self: center; margin: 14px 0 6px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 500; }
.stamp { align-self: flex-start; margin: 10px 6px 2px; color: var(--muted); font-size: 11px; }
.stamp.mine { align-self: flex-end; }
.bubble { align-self: flex-start; max-width: min(78%, 540px); padding: 9px 13px; border-radius: 18px; background: var(--surface-3); font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.mine { align-self: flex-end; background: var(--lime); color: var(--lime-ink); }
.bubble.is-new { animation: bubble-in .24s cubic-bezier(.2, .7, .2, 1); }
.bubble.mine.is-new { transform-origin: bottom right; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.bubble-listing { align-self: flex-start; display: flex; align-items: center; gap: 10px; max-width: min(78%, 380px); margin: 2px 0; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--bg-soft); font-size: 13px; transition: border-color .15s; }
.bubble-listing.mine { align-self: flex-end; }
.bubble-listing:hover { border-color: var(--lime); }
.bubble-listing > span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bubble-price { color: var(--muted); }
.composer { display: grid; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: var(--surface); }
.composer-row { display: flex; align-items: flex-end; gap: 8px; }
.composer textarea { flex: 1; min-width: 0; height: 44px; min-height: 44px; max-height: 160px; resize: none; padding: 11px 16px; border-radius: 22px; background: var(--bg-soft); border: 1px solid var(--border-strong); outline: none; font-size: 14px; line-height: 1.45; transition: border-color .15s, box-shadow .15s; }
.composer textarea::placeholder { color: #8a9096; }
.composer textarea:focus { border-color: #6f8250; box-shadow: 0 0 0 3px var(--lime-soft); }
.composer .button { width: 44px; min-height: 44px; padding: 0; border-radius: 50%; }
.composer-context { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 10px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--bg-soft); color: var(--text-2); font-size: 13px; animation: rise .2s ease-out; }
.composer-context > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer-context .icon-button { width: 28px; height: 28px; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-inner { padding: 64px 0 56px; }
  .market-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 24px; }
  .search-field { width: 240px; }
  .sell-layout, .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-hero { min-height: 280px; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .site-header { position: relative; }
  .header-inner { height: auto; flex-wrap: wrap; gap: 0 12px; padding-top: 10px; }
  .brand { height: 40px; }
  .header-actions { margin-left: auto; }
  .primary-nav { order: 3; width: calc(100% + 16px); margin: 6px 0 0 -12px; padding: 0 4px; gap: 0; overflow-x: auto; scrollbar-width: none; }
  .nav-link:focus-visible { outline-offset: -3px; }
  .nav-link { padding: 10px 12px; border-radius: 0; box-shadow: inset 0 -2px 0 transparent; }
  .nav-link:hover { background: none; }
  .nav-link.is-active { box-shadow: inset 0 -2px 0 var(--lime); }
  .account-name { display: none; }
  .account-button { padding-right: 8px; }
  .hero-inner { padding: 40px 0 36px; }
  .hero-lead { font-size: 16px; }
  .hero-search { margin-top: 24px; }
  .market { padding-top: 36px; }
  .market-head { flex-direction: column; align-items: stretch; }
  .market-controls { width: 100%; }
  .search-field { flex: 1; width: auto; min-width: 0; }
  .select-field select { max-width: 150px; }
  .search-field kbd { display: none; }
  .market-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .filters { position: static; max-height: none; overflow: visible; padding: 0; margin: 0; gap: 16px; }
  .filter-title { margin-bottom: 8px; }
  .platform-list { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; margin: -4px calc(var(--gutter) * -1) -4px -4px; padding: 4px var(--gutter) 4px 4px; }
  .platform-list::-webkit-scrollbar { display: none; }
  .platform-option { flex: none; width: auto; padding: 6px 10px 6px 6px; border: 1px solid var(--border-strong); border-radius: 999px; }
  .platform-option.is-selected { box-shadow: none; border-color: var(--lime); }
  .platform-option span:nth-of-type(1) { flex: none; }
  .price-form { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; }
  .price-form .button { grid-column: auto; }
  .listing-grid { grid-template-columns: minmax(0, 1fr); }
  .listing-card { min-height: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .sell-banner { flex-direction: column; align-items: flex-start; }
  .page { padding-top: 28px; }
  .panel { padding: 18px; }
  .order-card { flex-wrap: wrap; }
  .profile-card { flex-direction: column; align-items: center; text-align: center; padding: 24px 18px; }
  .profile-name, .profile-joined, .profile-stats { justify-content: center; }
  .profile-bio { margin-inline: auto; }
  button.profile-bio.is-empty { text-align: center; margin-inline: auto; }
  .profile-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .profile-panel { flex-wrap: wrap; }
  .tabs { overflow-x: auto; scrollbar-width: none; }
  .order-card > .pi-lg { width: 40px; height: 40px; }
  .order-amount { width: 100%; display: flex; align-items: baseline; justify-content: space-between; text-align: left; padding-top: 12px; border-top: 1px solid var(--border); }
  .footer-inner, .footer-legal { flex-direction: column; }
  .modal-box { padding: 28px 20px 24px; }
  .toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  .header-icon { width: 36px; height: 36px; }
  .page-messages { padding: 12px 0 24px; }
  .messages-layout { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - 140px); min-height: 420px; border-radius: 14px; }
  .messages-layout.has-thread .inbox { display: none; }
  .messages-layout:not(.has-thread) .thread { display: none; }
  .inbox { border-right: 0; }
  .thread-head { padding: 10px 12px; min-height: 61px; }
  .thread-back { display: inline-grid; }
  .feed { padding: 14px 12px; }
  .bubble, .bubble-listing { max-width: 86%; }
}
@media (max-width: 420px) {
  .guest-actions .button-ghost { padding: 0 10px; }
  .guest-actions .button-lime { padding: 0 12px; }
  .wordmark { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
