/* Shared market, author workspace and review UI. */
:root {
  color-scheme: light;
  --bg: #faf9f5; --bg-2: #f2f1eb;
  --surface: #fffefb; --surface-2: #fdfcf8; --surface-3: #eeede6;
  --text: #292a28; --text-dim: #62635d; --text-faint: #6b6c64;
  --border: #cccac0; --border-soft: #e5e3da;
  --accent: #393c38; --accent-hover: #252824; --accent-2: #393c38; --accent-grad: #393c38;
  --cyan: #326879; --violet: #655c72; --green: #24704e;
  --gold: #876613; --rose: #a73955; --red: #b5383d; --rose-soft: #faedf0;
  --radius: 6px; --radius-sm: 4px; --radius-lg: 8px;
  --mono: ui-monospace, Consolas, "Cascadia Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --shadow: 0 8px 28px #292a2814; --shadow-soft: 0 2px 8px #292a2808;
  --overlay: #292a2870; --chip-overlay: #fffefbf2;
}
* { box-sizing: border-box; margin: 0; padding: 0; letter-spacing: 0; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; background: var(--bg); color: var(--text); font: 15px/1.65 var(--sans); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: #e5dfc8; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.mono { font-family: var(--mono); }
.muted { color: var(--text-dim); }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.topbar { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--border-soft); }
.topbar-inner { min-height: 68px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; font-size: 17px; font-weight: 700; line-height: 1.35; }
.brand .logo { width: 30px; height: 30px; display: grid; place-items: center; }
.brand em { display: block; font: normal 10px/1.6 var(--mono); color: var(--text-faint); }
.nav { display: flex; align-self: stretch; align-items: stretch; gap: 24px; margin-right: auto; }
.nav a { display: flex; align-items: center; font-size: 14px; color: var(--text-dim); border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { color: var(--accent); border-bottom-color: var(--accent); }
.usermenu { position: relative; }
.userchip { display: flex; align-items: center; gap: 8px; background: var(--surface); color: var(--text); border: 1px solid var(--border-soft); border-radius: 4px; padding: 5px 10px 5px 5px; min-height: 40px; }
.avatar { width: 28px; height: 28px; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--accent); border-radius: 4px; font-size: 13px; font-weight: 600; }
.uname { font-size: 13px; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rose); }
.dropdown { display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; padding: 5px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); box-shadow: var(--shadow); z-index: 60; }
.dropdown.show { display: block; }
.dropdown a, .dropdown button { display: block; width: 100%; padding: 10px 12px; border: 0; background: transparent; color: var(--text-dim); text-align: left; font-size: 14px; border-radius: 3px; }
.dropdown a:hover, .dropdown button:hover { background: var(--bg-2); color: var(--text); }
.dropdown hr { border: 0; border-top: 1px solid var(--border-soft); margin: 4px 0; }
.announce { margin-top: 18px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); color: var(--text-dim); font-size: 13px; overflow-wrap: anywhere; }
.market-heading { padding: 30px 0 24px; border-bottom: 1px solid var(--border-soft); }
.market-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.market-title h1 { font-size: 30px; line-height: 1.4; font-weight: 650; }
.searchbar { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 0; max-width: 740px; margin-top: 22px; }
.searchbar input[type=search] { height: 48px; border-radius: 4px 0 0 4px; background: var(--surface); padding: 0 14px; border-right: 0; }
.searchbar .go { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--accent); border-radius: 0 4px 4px 0; background: var(--accent); }
.searchbar .go:hover { background: var(--accent-hover); }
.searchbar .go img { width: 20px; height: 20px; }
.statstrip { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 18px; font-size: 12px; color: var(--text-faint); }
.statstrip > div { display: flex; align-items: baseline; gap: 6px; }
.statstrip b { color: var(--text); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.section { margin-block: 30px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { font-size: 19px; font-weight: 650; }
.section-head .more { color: var(--text-dim); font-size: 13px; }
.section-head .more:hover { color: var(--accent); }
.categories .section-head { display: none; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; display: flex; min-width: 0; min-height: 230px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 6px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: #aaa89c; box-shadow: var(--shadow-soft); }
.card .body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; min-width: 0; }
.card .body h3 { font-size: 17px; line-height: 1.5; font-weight: 650; overflow-wrap: anywhere; }
.card .sum { font-size: 13px; line-height: 1.75; min-height: 46px; color: var(--text-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.card .cover { position: absolute; top: 20px; right: 20px; width: 70px; height: 88px; border-radius: 3px; overflow: hidden; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card:has(.cover:not(.hidden)) h3, .card:has(.cover:not(.hidden)) .sum { padding-right: 84px; }
.card .cat-chip, .card .cover .badge-r18 { display: none; }
.card .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.card .meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--border-soft); padding-top: 12px; font-size: 12px; color: var(--text-faint); }
.card .uses b { color: var(--text-dim); font-weight: 500; }
.tag { display: inline-block; border: 1px solid transparent; padding: 1px 7px; border-radius: 3px; background: var(--bg-2); color: var(--text-dim); font-size: 11px; overflow-wrap: anywhere; }
.tag.p { color: #635f52; background: #f2efe7; }
.tag.g { color: #396672; background: #edf4f5; }
.tag.on, .tag.p.on { background: var(--accent); color: #fff; }
.badge-r18, .r18-inline { display: inline-block; color: var(--rose); background: var(--rose-soft); border-radius: 3px; font: 10px/1.6 var(--mono); padding: 0 5px; white-space: nowrap; vertical-align: middle; }
.badge-r18.static { position: static; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 7px 13px; border: 1px solid var(--border-soft); border-radius: 4px; background: var(--surface); font-size: 13px; color: var(--text-dim); cursor: pointer; }
.chip:hover { border-color: #aaa89c; color: var(--text); }
.chip.on { border-color: var(--accent); background: var(--surface-3); color: var(--accent); }
.chip .cnt { font-size: 11px; color: var(--text-faint); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 15px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 500; line-height: 1.5; text-align: center; }
.btn:hover { background: var(--bg-2); border-color: #aaa89c; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.danger { color: var(--red); background: #fff6f5; border-color: #e7b9b9; }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 34px; padding: 5px 10px; font-size: 12px; }
.btn.lg { min-height: 44px; padding: 10px 18px; }
.btn:disabled { cursor: not-allowed; opacity: .55; }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; }
.field .req { color: var(--rose); }
.field .tip { font-size: 12px; color: var(--text-faint); margin-top: 6px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], select, textarea { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--text); font-size: 14px; }
input:focus, textarea:focus, select:focus { outline: 2px solid #657b93; outline-offset: 1px; }
textarea { resize: vertical; min-height: 100px; line-height: 1.7; }
textarea.code { font-family: var(--mono); font-size: 13px; }
select { padding-right: 8px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check input { margin-top: 5px; accent-color: var(--accent); flex: none; }
.check .ct { font-size: 14px; }
.check .cd { font-size: 12px; color: var(--text-faint); }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { position: relative; flex: none; width: 40px; height: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-3); }
.switch .track::after { content: ''; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; background: #fff; border: 1px solid var(--border); border-radius: 50%; transition: transform .15s; }
.switch input:checked + .track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 3px; }
.switch .txt { font-size: 14px; }
.panel { padding: 22px 0; border: 0; border-top: 1px solid var(--border-soft); border-radius: 0; background: transparent; }
.panel + .panel { margin-top: 12px; }
.panel h3.ph { margin-bottom: 18px; font-size: 16px; font-weight: 650; }
.tbl-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border-soft); border-radius: 4px; background: var(--surface); overscroll-behavior-x: contain; }
.tbl { width: 100%; min-width: 700px; border-collapse: collapse; font-size: 13px; }
.tbl th { padding: 11px 14px; border-bottom: 1px solid var(--border-soft); text-align: left; color: var(--text-faint); font-weight: 500; background: var(--bg-2); white-space: nowrap; }
.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; overflow-wrap: anywhere; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: var(--surface-2); }
.st { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border-radius: 3px; font-size: 12px; background: var(--surface-3); color: var(--text-dim); white-space: nowrap; }
.st.published, .st.approved, .st.active, .st.resolved { color: var(--green); background: #e9f3ed; }
.st.pending, .st.processing { color: var(--gold); background: #f5f1e4; }
.st.rejected, .st.suspended, .st.banned { color: var(--red); background: #faeaea; }
.st.changes_required { color: var(--cyan); background: #eaf3f5; }
.st.admin { color: var(--accent); }
.toasts { position: fixed; z-index: 100; top: 80px; right: 20px; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100% - 32px)); }
.toast { padding: 14px 16px; border: 1px solid var(--border); border-left: 3px solid var(--cyan); background: var(--surface); box-shadow: var(--shadow); border-radius: 4px; font-size: 14px; }
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 32px; }
.detail-cover { aspect-ratio: 16/8; overflow: hidden; border-radius: 6px; background: var(--bg-2); }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 20px 0 10px; }
.detail-head h1 { font-size: 28px; line-height: 1.4; overflow-wrap: anywhere; }
.detail-head .badges { display: flex; gap: 6px; }
.pid-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; }
.pid-box .lbl { font-size: 12px; color: var(--text-faint); }
.pid-box .pid { font: 600 24px/1.6 var(--mono); color: var(--text); overflow-wrap: anywhere; }
.pid-box .copied { color: var(--green); }
.r18-banner { padding: 14px 16px; margin-block: 16px; background: var(--rose-soft); border-left: 3px solid var(--rose); border-radius: 3px; color: var(--rose); }
.r18-banner .rt { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.r18-banner p, .r18-banner .note { font-size: 13px; margin-top: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.meta-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; font-size: 13px; overflow-wrap: anywhere; }
.meta-list .k { margin-bottom: 2px; font-size: 12px; color: var(--text-faint); }
.prompt-view { padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; font: 13px/1.85 var(--mono); color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 480px; overflow: auto; }
.prompt-locked { padding: 24px 16px; border: 1px dashed var(--border); color: var(--text-dim); font-size: 13px; text-align: center; }
.prompt-locked .ic { font-size: 20px; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 36px; min-height: 36px; padding: 4px 10px; border: 1px solid var(--border-soft); border-radius: 3px; font-size: 13px; background: var(--surface); }
.pagination .cur { color: #fff; border-color: var(--accent); background: var(--accent); }
.shell { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; align-items: start; padding: 12px 0 40px; }
.shell > *, .detail-grid > *, .editor-grid > *, .grid2 > * { min-width: 0; }
.side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; padding-right: 16px; border-right: 1px solid var(--border-soft); }
.side .stitle { padding: 16px 10px 8px; color: var(--text-faint); font-size: 12px; }
.side a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 3px; color: var(--text-dim); font-size: 13px; }
.side a:hover { background: var(--surface-3); }
.side a.on { background: var(--surface-3); color: var(--accent); font-weight: 600; }
.side .cnt { margin-left: auto; padding: 0 5px; color: var(--rose); font: 11px/1.8 var(--mono); }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0; border-block: 1px solid var(--border-soft); }
.stat-card { padding: 16px 12px; }
.stat-card .num { font: 600 24px/1.3 var(--mono); }
.stat-card .lbl { font-size: 12px; color: var(--text-faint); margin-top: 5px; }
.stat-card.warn .num { color: var(--gold); }
.stat-card.rose .num { color: var(--rose); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding: 10px 0 24px; }
.bar-wrap { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.bars .bar { position: relative; width: 100%; min-height: 2px; background: #8b929a; border-radius: 2px 2px 0 0; }
.bars .pv { display: none; position: absolute; bottom: 100%; left: 0; padding: 3px; background: var(--surface); font-size: 10px; white-space: nowrap; z-index: 1; }
.bars .bar:hover .pv { display: block; }
.bars .d { font: 9px/1 var(--mono); color: var(--text-faint); }
.diff { max-height: 460px; overflow: auto; padding-block: 8px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); font: 12px/1.8 var(--mono); }
.diff .l { padding: 1px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.diff .l.same { color: var(--text-dim); }
.diff .l.add { background: #e6f3e9; color: #1e633c; }
.diff .l.del { background: #fbe9e9; color: #9b3036; }
.diff .l.add::before { content: '+ '; }
.diff .l.del::before { content: '- '; }
.diff .l { content-visibility: auto; contain-intrinsic-size: auto 24px; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 26px; }
.tag-select { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-select .chip { padding: 5px 10px; font-size: 12px; }
.tag-add-row { display: flex; gap: 8px; width: 100%; margin-top: 8px; }
.tag-add-row input { max-width: 230px; }
.preview-sticky { position: sticky; top: 88px; }
.msg-list { display: flex; flex-direction: column; }
.msg-item { padding: 16px 0; border-bottom: 1px solid var(--border-soft); }
.msg-item .mt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.msg-item .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.msg-item .tt { margin-left: auto; color: var(--text-faint); font-size: 12px; font-weight: 400; }
.msg-item .mb { margin-top: 6px; color: var(--text-dim); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.catalog-filters { padding: 18px 0; border-block: 1px solid var(--border-soft); }
.filter-more summary { cursor: pointer; }
.creator-actions { padding-block: 24px; border-top: 1px solid var(--border-soft); }
.creator-actions .row { justify-content: flex-start !important; }
.footer { padding-block: 24px; margin-top: 40px; border-top: 1px solid var(--border-soft); }
.footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; color: var(--text-faint); font-size: 12px; }
.footer a:hover { color: var(--accent); }
.footer .sep { color: var(--border); }
.auth-wrap { min-height: calc(100vh - 180px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: min(400px, 100%); }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-card .panel { border: 0; padding-block: 20px; }
.auth-card .hint, .auth-alt { color: var(--text-faint); font-size: 13px; margin-bottom: 18px; }
.auth-alt { text-align: center; margin-top: 18px; }
.auth-alt a { color: var(--accent); }
.altcha-box { display: flex; gap: 8px; align-items: center; padding: 12px; margin-block: 16px; border: 1px solid var(--border); border-radius: 4px; font-size: 13px; }
.altcha-dot { flex: none; width: 8px; height: 8px; background: #96978f; border-radius: 50%; }
.altcha-dot.ok { background: var(--green); }
.altcha-dot.err { background: var(--red); }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; }
.code-row .btn { flex: none; }
.captcha-refresh { margin-block: 8px; width: 40px; font-size: 20px !important; }
.nf { padding: 80px 20px; text-align: center; }
.nf .code { color: var(--accent); font: 600 72px/1.4 var(--mono); }
.nf p { margin: 12px 0 24px; color: var(--text-dim); }
.row { display: flex; gap: 12px; align-items: center; }
.row.between { justify-content: space-between; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mt1 { margin-top: 8px; } .mt2 { margin-top: 16px; } .mt3 { margin-top: 24px; } .mt4 { margin-top: 36px; }
.mb2 { margin-bottom: 16px; } .right { text-align: right; } .hidden { display: none !important; }
.empty { padding: 48px 16px; text-align: center; color: var(--text-faint); font-size: 14px; }
.empty .ic { display: block; font-size: 24px; }
code.inline { padding: 2px 5px; background: var(--surface-3); border-radius: 3px; font: 12px/1.5 var(--mono); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.divider { height: 1px; background: var(--border-soft); margin-block: 20px; }
.modal { display: none; position: fixed; inset: 0; z-index: 90; align-items: center; justify-content: center; padding: 20px; background: var(--overlay); }
.modal.show { display: flex; }
.modal-box { width: min(480px, 100%); max-height: 86vh; overflow-y: auto; padding: 24px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); box-shadow: var(--shadow); }
.modal-box h3 { margin-bottom: 16px; font-size: 18px; }
@media (max-width: 1050px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid, .editor-grid { grid-template-columns: minmax(0, 1fr); }
  .preview-sticky { position: static; }
  .shell { grid-template-columns: 155px minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 32px); }
  .topbar-inner { min-height: 60px; gap: 18px; }
  .brand { font-size: 15px; gap: 8px; }
  .brand em { display: none; }
  .nav { gap: 18px; }
  .nav a { font-size: 13px; }
  .market-heading { padding-top: 22px; }
  .market-title h1 { font-size: 26px; }
  .market-title .btn { font-size: 13px; }
  .shell { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 0; }
  .side { position: static; flex-direction: row; flex-wrap: wrap; padding: 0 0 14px; border: 0; border-bottom: 1px solid var(--border-soft); gap: 4px; }
  .side .stitle { flex-basis: 100%; padding: 10px 0 4px; font-size: 11px; }
  .side a { min-height: 38px; padding: 6px 10px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .detail-head h1 { font-size: 24px; }
  .row { flex-wrap: wrap; }
  .catalog-filters > .row:first-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-filters input[name=q] { grid-column: 1/-1; min-width: 0 !important; }
  .catalog-filters select { width: 100% !important; min-width: 0; }
  .catalog-filters .btn { width: 100%; }
  input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], select, textarea, textarea.code { font-size: 16px; }
  .prompt-view, .diff { max-height: 440px; font-size: 12px; }
  .toasts { top: 72px; right: 16px; }
}
@media (max-width: 480px) {
  .topbar-inner { gap: 12px; }
  .brand .logo { width: 24px; height: 24px; }
  .nav { gap: 12px; }
  .nav a:first-child { display: none; }
  .topbar .btn.sm { padding: 5px 8px; min-height: 36px; }
  .topbar .row { flex-wrap: nowrap; gap: 6px !important; }
  .uname { max-width: 64px; }
  .searchbar { margin-top: 18px; }
  .statstrip { gap: 16px; }
  .section { margin-block: 24px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .card { min-height: 208px; }
  .card .body { padding: 16px; gap: 10px; }
  .card .cover { top: 16px; right: 16px; }
  .card .sum { -webkit-line-clamp: 2; }
  .card .tags { margin-top: 8px; }
  .chip { min-height: 38px; padding: 6px 11px; }
  .tag-select .chip { min-height: 34px; }
  .meta-list { gap: 12px; }
  .pid-box { padding: 12px; }
  .creator-actions .row { gap: 8px; }
  .btn.lg { padding: 10px 14px; font-size: 14px; }
  .modal-box { padding: 18px; }
  .footer-inner { gap: 10px 14px; }
  .footer-inner .sep { display: none; }
}
