/* Compact comments and author-space post tools. */
.single-comments-card { padding:0 22px; }
.single-comments-card .bilitop-comments { padding:18px 0 20px; }
.bilitop-comments .comments-header { gap:10px; padding-bottom:12px; }
.bilitop-comments .comments-header h3 { margin:0; font-size:17px; }
.bilitop-comments .comment-compose { gap:10px; padding:12px 0; }
.bilitop-comments .comment-compose-avatar { flex-basis:36px; }
.bilitop-comments .comment-compose-avatar img { width:36px; height:36px; }
.bilitop-comments .comment-form-bilitop.is-collapsed textarea[name="comment"] { min-height:40px; height:40px; padding:9px 12px; font-size:13px; }
.bilitop-comments .comment-item { padding:10px 0; }
.bilitop-comments .comment-inner { gap:9px; }
.bilitop-comments .comment-avatar { flex:0 0 32px; width:32px; }
.bilitop-comments .comment-avatar img { width:32px!important; height:32px!important; min-width:32px; }
.bilitop-comments .comment-body { padding:0; background:transparent; border-radius:0; }
.bilitop-comments .comment-header { gap:6px; margin-bottom:3px; }
.bilitop-comments .comment-author { font-size:13px; }
.bilitop-comments .comment-date { font-size:11px; }
.bilitop-comments .comment-content { font-size:13px; line-height:1.55; }
.bilitop-comments .comment-content p { margin:0 0 4px; }
.bilitop-comments .comment-content p:last-child { margin-bottom:0; }
.bilitop-comments .comment-actions { margin-top:3px; gap:8px; flex-wrap:wrap; }
.bilitop-comments .comment-reply a,.bilitop-comments .comment-pin-button { font-size:12px; }
.bilitop-comments .comment-pin-button { margin-left:0; }
.bilitop-comments .comment-identity-badge { min-height:18px; padding:1px 5px; font-size:10px; box-shadow:none; }
.bilitop-comments .comment-item[class*="comment-identity-"] > .comment-inner { padding:7px 9px; border-radius:5px; }
.bilitop-comments .comment-list .children { margin:6px 0 0 40px; padding-left:10px; border-left-width:1px; }
.bilitop-comments .comment-list .children .children { margin-left:12px; }
.bilitop-comments .comment-pagination { gap:6px; margin-top:14px; padding-top:12px; flex-wrap:wrap; }
.bilitop-comments .comment-pagination .page-numbers { min-width:32px; height:32px; padding:0 8px; border-radius:4px; font-size:12px; }
.browse-pagination { justify-content:flex-end; padding-top:26px; }
.browse-pagination-links { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:10px; }
.browse-page-link { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:38px; padding:0 16px; border:1px solid var(--border); border-radius:7px; background:var(--bg-card); color:var(--text-secondary); font-size:13px; font-weight:500; line-height:1; box-shadow:0 2px 8px rgba(20,35,55,.04); transition:border-color .18s ease,background .18s ease,color .18s ease,transform .18s ease; }
.browse-page-link > span { font-size:20px; font-weight:400; line-height:1; }
.browse-page-link:hover { border-color:var(--primary); color:var(--primary); transform:translateY(-1px); }
.browse-page-link.is-next { border-color:var(--primary); background:var(--primary); color:#fff; }
.browse-page-link.is-next:hover { background:var(--primary-light); color:#fff; }
@media(max-width:600px) { .browse-pagination,.browse-pagination-links { width:100%; } .browse-pagination-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); } .browse-page-link { min-width:0; padding:0 10px; } .browse-pagination-links > :only-child { grid-column:1 / -1; justify-self:end; min-width:120px; } }
.bilitop-comments .comment-sort-tabs { background:none; padding:0; border-radius:0; }
.bilitop-comments .comment-sort-tabs a { padding:3px 7px; border-radius:3px; font-weight:400; }
.bilitop-comments .comment-sort-tabs a.active { color:var(--primary); background:var(--bg); box-shadow:none; font-weight:600; }
.author-post-search { display:flex; align-items:center; gap:8px; margin:0 0 18px; }
.author-post-search .screen-reader-text { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.author-post-search input[type="search"] { min-width:0; width:100%; max-width:360px; height:36px; padding:6px 11px; border:1px solid var(--border); border-radius:5px; background:var(--bg); color:var(--text); font:inherit; font-size:13px; }
.author-post-search input:focus { outline:2px solid var(--primary); outline-offset:1px; }
.author-post-search button { display:inline-flex; align-items:center; justify-content:center; min-height:32px; padding:5px 11px; border:1px solid var(--border); border-radius:4px; background:var(--bg-card); color:var(--primary); font:inherit; font-size:12px; line-height:1.4; cursor:pointer; white-space:nowrap; }
.author-post-search button { min-height:36px; }
.author-search-clear { flex-shrink:0; color:var(--text-secondary); font-size:12px; }
.author-post-entry { min-width:0; display:flex; flex-direction:column; }
.author-post-entry > .content-card { flex:1; }
.card-cover-link { position:absolute; inset:0; display:block; }
.card-cover-tools { position:absolute; right:8px; bottom:8px; left:8px; display:flex; align-items:center; justify-content:flex-end; gap:6px; pointer-events:none; }
.card-cover-tools .card-time { position:static; flex-shrink:0; line-height:20px; }
.author-post-controls { display:flex; min-width:0; pointer-events:auto; }
.author-post-controls form { margin:0; }
.author-post-edit { display:inline-flex; align-items:center; justify-content:center; min-height:24px; padding:2px 8px; border:0; border-radius:4px; background:rgba(0,0,0,.65); color:#fff; font:inherit; font-size:12px; line-height:20px; cursor:pointer; white-space:nowrap; }
.author-post-edit:hover { background:rgba(0,0,0,.85); color:#fff; }
.author-post-edit:focus-visible { outline:2px solid #fff; outline-offset:2px; }
.author-post-pin { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; min-height:24px; padding:2px 8px; border:0; border-radius:4px; background:rgba(0,0,0,.65); color:#fff; font:inherit; font-size:12px; line-height:20px; cursor:pointer; white-space:nowrap; pointer-events:auto; }
.author-post-pin:hover { background:rgba(0,0,0,.85); }
.author-post-pin:focus-visible { outline:2px solid #fff; outline-offset:2px; }
.author-post-pin:disabled { opacity:.6; cursor:wait; }
.card-pin-tool { position:absolute; z-index:2; top:8px; right:8px; }
.author-space-pin-badge { position:absolute; z-index:2; top:8px; left:8px; padding:2px 7px; border-radius:4px; background:var(--primary); color:#fff; font-size:12px; line-height:20px; pointer-events:none; }
.comment-pinned-thread-link { color:var(--primary); font-size:12px; }
.author-post-grid > .empty-state { grid-column:1 / -1; }
@media(max-width:600px) {
    .single-comments-card { padding:0 14px; }
    .single-comments-card .bilitop-comments { padding:14px 0; }
    .bilitop-comments .comment-compose-avatar { flex-basis:32px; }
    .bilitop-comments .comment-compose-avatar img { width:32px; height:32px; }
    .bilitop-comments .comment-list .children { margin-left:18px; padding-left:7px; }
    .bilitop-comments .comment-list .children .children { margin-left:0; padding-left:7px; }
    .bilitop-comments .comment-date { margin-left:0; }
    .author-post-search { gap:6px; }
    .card-cover-tools { right:6px; bottom:6px; left:6px; gap:4px; }
    .author-post-edit { min-height:28px; padding-inline:6px; }
    .author-post-pin { min-height:32px; padding-inline:6px; }
    .card-pin-tool { top:6px; right:6px; }
}
/* Download shortcuts, quota and copy controls. */
.single-download-jump { display:inline-flex; align-items:center; gap:8px; margin:0 0 16px; padding:5px 10px; border:1px solid var(--border); border-radius:4px; color:var(--primary); font-size:12px; line-height:1.6; }
.single-download-jump:hover { border-color:var(--primary); background:var(--bg); }
.bilitop-article-card .single-meta { align-items:center; }
.single-meta .single-download-jump { margin:0 0 0 auto; flex-shrink:0; white-space:nowrap; }
#resource-download { scroll-margin-top:calc(var(--header-h) + 20px); }
.resource-quota { margin-top:12px; padding-top:10px; border-top:1px solid var(--border); font-size:13px; line-height:1.7; color:var(--text-secondary); }
.resource-quota p { margin:0; overflow-wrap:anywhere; }
.resource-copy { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; min-height:28px; margin-left:6px; padding:2px 7px; border:1px solid var(--border); border-radius:4px; background:var(--bg-card); color:var(--primary); font-size:11px; line-height:1.6; cursor:pointer; vertical-align:middle; }
.resource-copy:hover { border-color:var(--primary); }
.resource-copy:disabled { opacity:.6; cursor:wait; }
.attachment-download-item { display:flex; align-items:center; flex-wrap:wrap; gap:8px; min-width:0; }
.dark .resource-copy,.dark .single-download-jump { color:#b1caff; color:color-mix(in srgb,var(--primary) 40%,#fff); }
@media(max-width:700px) { .resource-copy { min-height:34px; }.single-download-jump { min-height:36px; } }
/* Article download panel: compact, flat permissions + content columns. */
.bilitop-article-card .resource-download-panel { display:grid; grid-template-columns:180px minmax(0,1fr); gap:28px; margin-top:28px; padding:24px; border:0; border-radius:4px; background:var(--bg); box-shadow:none; }
.resource-permissions,.resource-download-main { min-width:0; }
.bilitop-article-card .resource-download-panel h3 { display:flex; align-items:center; gap:4px; margin:0 0 18px; font-size:14px; font-weight:600; line-height:1.6; }
.bilitop-article-card .resource-download-panel h3::before { content:none; }
.resource-rule { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; font-size:13px; line-height:1.8; }
.resource-rule-value { display:inline-flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:3px; }
.resource-file-title { margin:0 0 16px; color:var(--text); font-size:17px; font-weight:500; line-height:1.5; overflow-wrap:anywhere; }
.resource-access-note { padding:10px 12px; border:1px dashed #ffa7ad; background:rgba(255,100,115,.025); font-size:14px; line-height:1.9; text-align:left; }
.resource-access-note p { margin:0; overflow-wrap:anywhere; }
.resource-viewer { margin-left:8px; color:var(--text-secondary); }
.resource-access-note.is-unlocked { border-color:var(--border); background:transparent; }
.resource-download-panel .resource-inline-action { display:inline; width:auto; min-width:0; margin-left:8px; padding:2px 0; border:0; border-radius:0; background:none; box-shadow:none; color:var(--primary); font:inherit; font-weight:400; line-height:inherit; cursor:pointer; text-decoration:none; }
.resource-download-panel .resource-inline-action:hover { text-decoration:underline; transform:none; }
.resource-download-panel .resource-inline-action:disabled { opacity:.5; cursor:wait; }
.resource-cost { color:#f14f69; font-weight:500; }
.resource-minor { color:var(--text-secondary); font-size:12px; }
.resource-provider-placeholders { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.resource-provider-placeholders[hidden] { display:none; }
.resource-provider-button,.resource-download-panel .download-btn { display:inline-flex; align-items:center; justify-content:center; width:auto; min-height:36px; max-width:100%; padding:7px 13px; border:0; border-radius:4px; background:var(--primary); color:#fff; font-size:13px; font-weight:400; line-height:1.6; overflow-wrap:anywhere; text-align:center; box-shadow:none; }
.resource-provider-button:hover,.resource-download-panel .download-btn:hover { background:var(--primary-light); color:#fff; transform:none; }
.resource-provider-button:disabled { opacity:.55; cursor:not-allowed; }
.resource-download-panel .download-info { margin-top:18px; gap:10px; }
.resource-download-panel .download-node-result { min-width:0; padding:0; border:0; border-radius:0; background:none; }
.resource-download-panel .download-node-result span { min-width:0; max-width:100%; overflow-wrap:anywhere; }
.resource-download-panel .download-node-result code { white-space:normal; overflow-wrap:anywhere; }
.resource-download-panel .attachment-downloads a { padding:8px 0; border:0; border-radius:0; background:none; overflow-wrap:anywhere; }
.resource-download-panel .download-unlocked-note { margin:14px 0 0; color:var(--text-secondary); font-size:13px; line-height:1.8; }
#resource-access-state { scroll-margin-top:calc(var(--header-h) + 24px); }
.dark .resource-download-panel .resource-inline-action { color:#a9c8ff; color:color-mix(in srgb,var(--primary) 40%,#fff); }
.dark .resource-cost { color:#ff8298; }
/* One interactive DOM instance: left rail on desktop, compact row after copyright on mobile. */
.bilitop-article-card { position:relative; }
.bilitop-article-card .single-action-rail { margin-top:16px; }
.bilitop-article-card .single-action-rail .single-actions { justify-content:space-between; gap:6px; padding:8px 0 0; }
.bilitop-article-card .single-action-rail .action-btn { flex:1; flex-direction:row; flex-wrap:wrap; min-width:0; min-height:44px; padding:6px 2px; gap:4px; font-size:12px; }
.bilitop-article-card .single-action-rail .action-btn svg { width:18px; height:18px; }
.bilitop-article-card .single-action-rail .action-count { min-height:0; font-size:11px; }
.bilitop-article-card .single-action-rail .share-result:empty { display:none; }
@media (min-width:1025px) {
    .bilitop-single .single-inner { max-width:var(--max-w); padding-left:92px; }
    .bilitop-article-card .single-action-rail { position:absolute; top:150px; bottom:0; left:-78px; width:60px; margin:0; }
    .bilitop-article-card .single-action-rail .single-actions { position:sticky; top:calc(var(--header-h) + 24px); display:flex; flex-direction:column; gap:12px; padding:0; }
    .bilitop-article-card .single-action-rail .action-btn { flex:none; width:60px; min-height:64px; padding:9px 5px; border:1px solid var(--border); border-radius:8px; background:var(--bg-card); }
    .bilitop-article-card .single-action-rail .action-btn svg { width:21px; height:21px; margin:0 14px 3px; }
    .bilitop-article-card .single-action-rail .share-result:not(:empty) { top:auto; left:68px; transform:none; z-index:2; }
}
@media (max-width:1200px) and (min-width:1025px) {
    .bilitop-article-card .resource-download-panel { grid-template-columns:145px minmax(0,1fr); gap:18px; padding:20px; }
    .resource-rule { flex-direction:column; gap:4px; }
    .resource-rule-value { justify-content:flex-start; }
}
@media (max-width:400px) {
    .bilitop-article-card .single-action-rail .action-btn { font-size:11px; gap:3px; padding-inline:0; }
    .bilitop-article-card .single-action-rail .action-btn svg { width:16px; height:16px; }
    .bilitop-article-card .single-action-rail .action-count { font-size:10px; }
}
@media (max-width:700px) {
    .bilitop-article-card .resource-download-panel { grid-template-columns:minmax(0,1fr); gap:16px; padding:18px 16px; }
    .resource-permissions { border-bottom:1px solid var(--border); padding-bottom:14px; }
    .bilitop-article-card .resource-download-panel h3 { margin-bottom:8px; }
    .resource-rule { justify-content:flex-start; gap:18px; }
    .resource-file-title { font-size:16px; margin-bottom:12px; }
    .resource-provider-button,.resource-download-panel .download-btn { min-height:40px; }
}
/* Account finances and configurable content-card metadata. */
.wealth-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 22px; padding:5px; border:1px solid var(--border); border-radius:var(--radius); background:var(--bg); }
.wealth-header { flex-wrap:wrap; gap:12px; }
.wealth-balances { display:flex; flex-wrap:wrap; gap:10px 20px; min-width:0; }
.wealth-balances .current-balance { overflow-wrap:anywhere; }
.money-wallet-summary { display:flex; flex-direction:column; gap:6px; margin:18px 0; }
.money-wallet-summary > span { color:var(--text-secondary); font-size:13px; }
.money-wallet-summary > strong { font-size:28px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }

/* Keep money and points clearly separated without adding another overview card. */
.user-info-grid .info-wallet-balance { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 10px; margin-top:10px; color:var(--text-secondary); font-size:12px; }
.user-info-grid .info-wallet-balance strong { min-width:0; color:var(--text); font-size:17px; font-weight:600; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.user-info-grid .info-card-credits .info-card-footer { flex-wrap:wrap; gap:4px 16px; }
.vip-payment-dialog[hidden] { display:none!important; }
.vip-payment-dialog { position:fixed; inset:0; z-index:100100; display:grid; place-items:center; padding:20px; background:rgba(0,0,0,.48); backdrop-filter:blur(3px); }
.vip-payment-dialog-panel { position:relative; width:min(600px,100%); max-height:min(720px,calc(100vh - 40px)); overflow:auto; padding:26px; border:1px solid color-mix(in srgb,var(--primary) 18%,var(--border)); border-radius:16px; background:var(--bg-card); box-shadow:0 24px 70px rgba(0,0,0,.24); }
.vip-payment-dialog-close { position:absolute; top:13px; right:14px; width:34px; height:34px; border:0; border-radius:50%; color:var(--text-secondary); background:var(--bg); font-size:23px; line-height:1; cursor:pointer; }
.vip-payment-dialog-close:hover { color:var(--primary); background:color-mix(in srgb,var(--primary) 9%,var(--bg)); }
.vip-payment-dialog-heading { display:flex; align-items:center; gap:13px; padding-right:42px; margin-bottom:19px; }
.vip-payment-dialog-heading>span { display:grid; place-items:center; width:42px; height:42px; flex:0 0 42px; border-radius:12px; color:#fff; background:linear-gradient(135deg,var(--primary),var(--pink)); font-size:20px; font-weight:800; }
.vip-payment-dialog-heading h2 { margin:0 0 4px; color:var(--text); font-size:20px; }
.vip-payment-dialog-heading p { margin:0; color:var(--text-secondary); font-size:13px; overflow-wrap:anywhere; }
.vip-payment-methods { min-width:0; margin:0; padding:0; border:0; }
.vip-payment-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; }
.vip-payment-options label { display:flex; align-items:center; gap:10px; min-width:0; padding:14px; border:1px solid var(--border); border-radius:7px; cursor:pointer; background:var(--bg); }
.vip-payment-options label:has(input:checked:not(:disabled)) { border-color:var(--primary); background:color-mix(in srgb,var(--primary) 7%,var(--bg-card)); }
.vip-payment-options label:has(input:disabled) { cursor:not-allowed; opacity:.65; }
.vip-payment-options input { width:16px; height:16px; flex:0 0 16px; margin:0; accent-color:var(--primary); }
.vip-payment-options span { min-width:0; }
.vip-payment-options strong { display:block; color:var(--text); font-size:14px; font-weight:600; }
.vip-payment-options small { display:block; margin-top:5px; color:var(--text-secondary); font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
.vip-payment-hint { margin:12px 0 0; color:var(--text-secondary); font-size:13px; line-height:1.7; }
.vip-payment-dialog-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }
.vip-payment-dialog-actions button { min-width:110px; min-height:40px; padding:9px 18px; border:1px solid var(--border); border-radius:8px; background:var(--bg-card); color:var(--text-secondary); cursor:pointer; font-weight:600; }
.vip-payment-dialog-actions .vip-payment-confirm { border-color:var(--primary); color:#fff; background:var(--primary); }
.vip-payment-dialog-actions .vip-payment-confirm:disabled { cursor:not-allowed; opacity:.5; }
body.vip-payment-dialog-open { overflow:hidden; }
@media(max-width:600px) { .vip-payment-dialog { padding:12px; } .vip-payment-dialog-panel { padding:21px 16px 16px; border-radius:13px; } .vip-payment-options { grid-template-columns:1fr; gap:8px; } .vip-payment-options label { padding:11px 12px; } .vip-payment-dialog-actions button { flex:1; min-width:0; } }
#bilitop-money-exchange { margin-top:20px; }
#bilitop-money-exchange > label { display:block; margin-bottom:8px; font-size:14px; }
.money-exchange-controls { display:flex; gap:12px; align-items:stretch; max-width:540px; }
.money-exchange-controls input { flex:1; min-width:0; width:100%; padding:10px 12px; border:1px solid var(--border); border-radius:6px; background:var(--bg-card); color:var(--text); font-size:15px; }
.money-exchange-controls input:focus { outline:2px solid var(--primary); outline-offset:2px; }
.money-exchange-controls .btn-primary { flex:none; width:auto; min-height:44px; margin:0; padding:10px 20px; }
.money-exchange-controls :disabled { cursor:not-allowed; opacity:.6; }
.money-exchange-preview { margin:12px 0; font-size:14px; color:var(--text-secondary); }
.wallet-message { margin:12px 0; padding:12px 14px; border:1px solid var(--border); border-radius:6px; background:var(--bg); color:var(--text); font-size:14px; line-height:1.7; overflow-wrap:anywhere; }
.wallet-message[data-state="error"] { border-color:#e895a4; }
.wallet-message[data-state="success"] { border-color:var(--primary); }
@media(max-width:480px) { .wealth-balances { width:100%; }.money-exchange-controls { flex-direction:column; }.money-exchange-controls .btn-primary { width:100%; } }
.wealth-tabs a { display:flex; align-items:center; justify-content:center; flex:1 1 auto; min-height:44px; padding:8px 14px; border-radius:6px; color:var(--text-secondary); font-size:14px; }
.wealth-tabs a.active { background:var(--bg-card); color:var(--primary); box-shadow:var(--shadow); font-weight:600; }
.wealth-hint { margin:0 0 16px; color:var(--text-secondary); font-size:12px; line-height:1.8; }
.credit-ledger { border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.credit-ledger-row { padding:16px; background:var(--bg-card); }
.credit-ledger-row + .credit-ledger-row { border-top:1px solid var(--border); }
.ledger-heading,.ledger-detail { display:flex; justify-content:space-between; gap:16px; }
.ledger-heading span { min-width:0; overflow-wrap:anywhere; line-height:1.6; }
.ledger-heading strong { flex-shrink:0; font-variant-numeric:tabular-nums; }
.ledger-heading .positive { color:#16865c; }.ledger-heading .negative { color:#db4359; }
.dark .wealth-tabs a.active,.dark .ledger-navigation a,.dark .user-content .current-balance strong,.dark .recharge-credits { color:#b1bfff; color:color-mix(in srgb,var(--primary) 40%,#fff); }
.dark .ledger-heading .positive { color:#61d4a2; }.dark .ledger-heading .negative { color:#ff8298; }
.ledger-detail { flex-wrap:wrap; margin-top:8px; color:var(--text-secondary); font-size:12px; line-height:1.6; }
.ledger-detail b { color:var(--text); }.ledger-warning { margin:10px 0 0; padding:10px 12px; border:1px solid #e6a23c; border-radius:6px; color:var(--text); background:rgba(230,162,60,.1); font-size:12px; line-height:1.8; }
.ledger-navigation { display:flex; flex-wrap:wrap; gap:12px; margin-top:18px; }.ledger-navigation a { display:flex; align-items:center; min-height:44px; padding:0 14px; border:1px solid var(--border); border-radius:6px; color:var(--primary); }
.content-card .card-meta { flex-wrap:wrap; gap:6px 10px; }.card-comments { display:inline-flex; align-items:center; gap:4px; white-space:nowrap; }
@media (max-width:768px) { .wealth-tabs a { flex-basis:40%; }.credit-ledger-row { padding:12px; }.ledger-detail { display:block; }.ledger-detail > span { display:block; margin-top:4px; } }
/* Registration and private conversations share the theme colors in both modes. */
.auth-form .auth-agreement { margin:14px 0 0; padding:0 4px; color:var(--text-secondary); font-size:13px; line-height:1.9; text-align:center; overflow-wrap:anywhere; }
.auth-agreement a { display:inline-block; color:var(--primary); text-decoration:underline; text-underline-offset:3px; }
.auth-agreement a:hover { opacity:.8; }
.message-sidebar { min-width:0; border-right:1px solid var(--border); background:var(--bg); }
.message-sidebar .message-peer-list { border:0; max-height:650px; overflow-y:auto; }
.message-search { margin:0; padding:14px 12px; border-bottom:1px solid var(--border); }
.message-search label { display:block; margin-bottom:8px; font-size:13px; font-weight:600; color:var(--text); }
.message-search-row { display:flex; align-items:center; gap:8px; }
.message-search-row input { flex:1; min-width:0; width:100%; min-height:40px; padding:8px 10px; border:1px solid var(--border); border-radius:6px; background:var(--bg-card); color:var(--text); font:inherit; font-size:13px; }
.message-search-row button { flex-shrink:0; min-height:40px; padding:8px 12px; border:0; border-radius:6px; background:var(--primary); color:#fff; font:inherit; font-size:13px; cursor:pointer; }
.message-search small { display:block; margin-top:8px; color:var(--text-muted); font-size:12px; line-height:1.6; }
.message-search a,.message-history-nav a { color:var(--primary); }
.message-history-search { padding:12px 18px; }
.message-history-nav { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:8px; padding:8px 18px; color:var(--text-muted); font-size:12px; }
.message-history-nav a { display:inline-flex; align-items:center; min-height:32px; }
.message-list-note { margin:0; padding:10px 12px; color:var(--text-muted); font-size:12px; line-height:1.6; }
@media (max-width:768px) {
    .message-sidebar { border-right:0; border-bottom:1px solid var(--border); }
    .message-sidebar .message-peer-list { max-height:none; }
    .message-search-row input,.message-search-row button { min-height:44px; }
    .message-search-row input { font-size:16px; }
    .message-history-nav a { min-height:44px; }
}
/* Shared feedback; keep the established menu stacking and pointer handling. */
.search-status,.download-unlocked-note { padding:12px 16px; border:1px solid var(--border); border-radius:var(--radius); background:var(--bg-card); color:var(--text-secondary); line-height:1.6; }
/* Native WordPress posts and theme submissions share the same action UI. */
.submissions-header { gap:16px; flex-wrap:wrap; }
.submissions-header h2 { flex:0 0 auto; margin:0; white-space:nowrap; }
.submissions-header .submission-create-link { flex:0 0 auto; width:auto; min-height:36px; margin-left:auto; padding:8px 16px; border-radius:6px; font-size:13px; line-height:20px; white-space:nowrap; }
.submission-row .row-actions,.submission-row .native-post-actions { display:inline-flex; align-items:center; flex:0 0 auto; gap:4px; white-space:nowrap; }
.submission-row .native-post-actions { margin:0; }
.submission-row .submission-action { display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; min-height:32px; padding:4px 8px; border:0; border-radius:4px; background:transparent; color:var(--primary); font-family:inherit; font-size:13px; font-weight:400; line-height:20px; text-decoration:none; white-space:nowrap; cursor:pointer; }
.submission-row .submission-action.is-danger { color:#f56c6c; }
.submission-row .submission-action:hover { background:var(--bg); color:var(--primary); }
.submission-row .submission-action.is-danger:hover { background:rgba(245,108,108,.09); color:#f56c6c; }
.dark .submission-row .submission-action { color:#aaa0ff; color:color-mix(in srgb,var(--primary) 55%,#fff); }
.dark .submission-row .submission-action.is-danger { color:#ff9292; }
:where(button,a,input,select,textarea):focus-visible { outline:2px solid var(--primary); outline-offset:3px; }
@media (max-width:768px) {
    .header-right { gap:4px; }
    .mobile-menu-toggle,.header-message-trigger,.user-avatar-link { box-sizing:border-box; display:flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; }
    .header-user .user-dropdown a,.header-message-dropdown a { display:flex; align-items:center; min-height:44px; }
    .submission-row .submission-action { min-width:44px; min-height:44px; }
    .submissions-header .submission-create-link { min-height:44px; padding-top:12px; padding-bottom:12px; }
}
@media (prefers-reduced-motion:reduce) {
    .store-card,.lottery-wheel { animation:none; transition:none; }
}

/* Compact resource form: shared by new submissions and frontend edits. */
.submit-resource-layout .submit-sidebar { display:none; }
.submit-resource-layout .submit-content { min-width:0; box-shadow:none; }
.submit-resource-layout .submit-content-heading { align-items:center; }
.submit-resource-layout .submit-content-heading h2 { margin:0; padding:0; border:0; font-size:18px; }
.submit-resource-layout .submit-section-heading { margin:20px 0 18px; font-size:15px; font-weight:600; }
.submit-resource-layout #bilitop-submit-form > .submit-info-row { display:grid; grid-template-columns:120px minmax(0,1fr); align-items:center; gap:20px; margin:0 0 20px; }
.submit-resource-layout #bilitop-submit-form > .submit-info-row > label { margin:0; padding:0; text-align:right; font-size:14px; font-weight:400; }
.submit-resource-layout .submit-info-row input:not([type="checkbox"]):not([type="file"]),.submit-resource-layout .submit-info-row select { min-height:36px; height:36px; padding:7px 12px; border-radius:4px; background-color:var(--bg-card); font-size:13px; }
.submit-resource-layout .submit-info-row select { padding-right:38px; }
.submit-resource-layout .submit-required { color:var(--pink); }
.submit-resource-layout .submit-info-row > div { min-width:0; }
.submit-resource-layout .submit-title-field { position:relative; }
.submit-resource-layout .submit-title-field input { padding-right:82px !important; }
.submit-resource-layout .submit-title-count { position:absolute; top:50%; right:12px; transform:translateY(-50%); color:var(--text-muted); font-size:12px; pointer-events:none; }
.submit-resource-layout .submit-cover-field { display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.submit-resource-layout .submit-cover-picker { position:relative; display:block; flex:0 0 168px; width:168px; height:126px; margin:0; overflow:hidden; border:1px solid var(--border); border-radius:4px; background:var(--bg); cursor:pointer; }
.submit-resource-layout .submit-cover-picker input { position:absolute; z-index:2; inset:0; width:100%; height:100%; padding:0; opacity:0; cursor:pointer; }
.submit-resource-layout .submit-cover-picker:focus-within { outline:2px solid var(--primary); outline-offset:3px; }
.submit-resource-layout .submit-cover-picker img { display:block; width:100%; height:100%; object-fit:cover; }
.submit-resource-layout .submit-cover-placeholder { display:flex; height:100%; align-items:center; justify-content:center; flex-direction:column; gap:10px; color:var(--text-muted); font-size:13px; font-weight:400; }
.submit-resource-layout .submit-cover-change { position:absolute; right:0; bottom:0; left:0; padding:5px; background:rgba(0,0,0,.55); color:#fff; text-align:center; font-size:12px; font-weight:400; }
.submit-resource-layout .submit-cover-picker img[hidden] ~ .submit-cover-change { display:none; }
.submit-resource-layout .submit-price-line,.submit-resource-layout .submit-category-levels { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.submit-resource-layout .submit-price-line > select,.submit-resource-layout .submit-category-controls select { width:180px; max-width:100%; }
.submit-resource-layout .submit-credit-amount { display:flex; align-items:center; gap:10px; color:var(--text-secondary); font-size:13px; }
.submit-resource-layout .conditional-field { margin-bottom:0; }
.submit-resource-layout .submit-credit-amount input { width:130px; }
.submit-resource-layout .form-hint { margin:7px 0 0; font-size:12px; color:var(--text-muted); }
.submit-resource-layout .submit-cover-field .form-hint { margin:0; }
.submit-resource-layout .member-tier-options { margin-top:8px; }
.submit-resource-layout .member-tier-options label { position:relative; }
.submit-resource-layout .member-tier-options input { top:0; left:0; width:1px; height:1px; padding:0; margin:0; }
.submit-resource-layout .member-tier-options label:focus-within { outline:2px solid var(--primary); outline-offset:3px; border-radius:6px; }
.submit-resource-layout #member-field { margin-top:10px; }
.submit-resource-layout .submit-editor-card { margin:24px 0; padding:0; background:var(--bg-card); border:1px solid var(--border); border-radius:4px; }
.submit-resource-layout .submit-editor-heading { padding:10px 14px; }
.submit-resource-layout .submit-editor-media-tools { padding:8px 14px; }
.submit-resource-layout .submit-resources { margin:0 0 24px; }
.submit-resource-layout .form-section-title { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:16px 0; font-size:14px; }
.submit-resource-layout .form-section-title small { color:var(--text-muted); font-size:12px; font-weight:400; }
.submit-resource-layout .download-node { padding:16px; border:1px solid var(--border); border-radius:4px; background:var(--bg-card); }
.submit-resource-layout .download-node .form-group { margin-bottom:14px; }
.submit-resource-layout .download-node .form-group:last-child { margin-bottom:0; }
.submit-resource-layout .download-node label { font-size:13px; font-weight:400; }
.submit-resource-layout .download-node-add { width:auto; min-height:36px; border:1px solid var(--border); border-radius:4px; background:var(--bg-card); color:var(--primary); }
.submit-resource-layout .form-actions { justify-content:flex-end; gap:12px; }
.submit-resource-layout .submission-quota { display:flex; flex-wrap:wrap; gap:6px 20px; margin-top:10px; color:var(--text-muted); font-size:13px; line-height:1.8; }
.submit-resource-layout .submission-quota > span { display:inline-flex; flex-wrap:wrap; align-items:baseline; gap:4px; }
.submit-resource-layout .submission-quota strong { color:var(--primary); font-weight:600; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.submit-resource-layout .submission-quota small { font-size:inherit; }
.submit-resource-layout .submission-quota-note { margin:4px 0 0; color:var(--text-muted); font-size:12px; line-height:1.8; }
.submit-resource-layout .form-actions .btn-primary,.submit-resource-layout .form-actions .btn-secondary { flex:0 1 auto; width:auto; min-width:120px; min-height:40px; padding:8px 24px; border-radius:4px; }
.submit-resource-layout [hidden] { display:none !important; }
@media (max-width:768px) {
    .submit-resource-layout .submit-inner { display:block; padding:0 12px; }
    .submit-resource-layout .submit-content { padding:16px; border-radius:6px; }
    .submit-resource-layout #bilitop-submit-form > .submit-info-row { grid-template-columns:minmax(0,1fr); gap:8px; margin-bottom:20px; }
    .submit-resource-layout #bilitop-submit-form > .submit-info-row > label { text-align:left; }
    .submit-resource-layout .submit-info-row input:not([type="checkbox"]):not([type="file"]),.submit-resource-layout .submit-info-row select { min-height:44px; height:44px; font-size:16px; }
    .submit-resource-layout .submit-price-line > select { width:126px; }
    .submit-resource-layout .submit-credit-amount { flex:1; }
    .submit-resource-layout .submit-credit-amount input { width:90px; max-width:100%; }
    .submit-resource-layout .submit-category-levels select { flex:1 1 140px; width:auto; }
    .submit-resource-layout .submit-editor-heading { align-items:flex-start; flex-direction:column; gap:5px; }
    .submit-resource-layout .form-actions { flex-direction:row; flex-wrap:wrap; }
    .submit-resource-layout .form-actions .btn-primary,.submit-resource-layout .form-actions .btn-secondary { min-height:44px; padding:10px 16px; }
}

/* Card counters stay together; a long author name must not push them apart. */
.submission-preview-notice { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:20px; padding:16px 20px; border:1px solid var(--border); border-left:3px solid var(--primary); border-radius:8px; background:var(--bg-card); font-size:14px; }
.submission-preview-notice p { margin:6px 0 0; color:var(--text-muted); line-height:1.7; }
.submission-preview-notice > a { flex-shrink:0; color:var(--primary); }
.submission-preview-urls { margin-top:12px; color:var(--text-muted); font-size:13px; overflow-wrap:anywhere; }
.submission-preview-urls p { margin:6px 0; }
.submission-preview-urls code { white-space:normal; }
.submission-success-panel { padding:24px; border:1px solid var(--border); border-radius:8px; background:var(--bg-card); }
.submission-success-panel h3 { margin:0 0 12px; }
.submission-success-panel p { color:var(--text-muted); line-height:1.8; }
.submission-success-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:20px; }
.submission-success-actions .submission-success-button { display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; flex:0 0 auto; width:auto; min-width:120px; min-height:40px; margin:0; padding:9px 20px; border:1px solid transparent; border-radius:4px; font-size:14px; font-weight:500; line-height:20px; text-decoration:none; white-space:nowrap; }
.submission-success-actions .btn-secondary { border-color:var(--border); background:var(--bg-card); color:var(--text-secondary); }
.submission-success-actions .btn-secondary:hover { border-color:var(--primary); background:var(--bg); color:var(--primary); }
@media (max-width:480px) { .submission-success-actions .submission-success-button { flex:1 1 120px; min-height:44px; } }
.submission-success-panel[hidden], .submission-success-actions [hidden], #bilitop-submit-form[hidden] { display:none !important; }
@media (max-width:768px) { .submission-preview-notice { align-items:flex-start; flex-direction:column; gap:12px; padding:14px; } .submission-success-panel { padding:18px; } }
.sidebar-author-card .author-stat-link { display:block; border-radius:4px; text-decoration:none; transition:background .15s; }
.sidebar-author-card .author-stat-link:hover { background:var(--bg); }
.sidebar-author-card .author-stat-link:hover .author-stat-label { color:var(--primary); }
.content-card .card-meta { flex-wrap:nowrap; gap:10px; }
.content-card .card-author { min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.content-card .card-author img { flex-shrink:0; }
.content-card .card-stats { display:inline-flex; align-items:center; gap:12px; margin-left:auto; flex-shrink:0; }
.content-card .card-stats > span { display:inline-flex; align-items:center; gap:4px; white-space:nowrap; }
.message-tabs { display:flex; gap:26px; border-bottom:1px solid var(--border); margin:0 0 20px; }
.message-tabs a { padding:10px 0 12px; border-bottom:2px solid transparent; color:var(--text-secondary); font-size:14px; white-space:nowrap; }
.message-tabs a.active { border-bottom-color:var(--primary); color:var(--primary); font-weight:500; }
.inbox-note,.inbox-empty { color:var(--text-secondary); font-size:13px; line-height:1.7; }
.inbox-empty { padding:40px 0; text-align:center; }
.notification-item { display:flex; align-items:flex-start; gap:12px; padding:20px 0; border-bottom:1px solid var(--border); }
.notification-avatar { flex:0 0 36px; }
.notification-avatar img,.notification-avatar > span { display:grid; place-items:center; width:36px; height:36px; border-radius:50%; background:var(--bg); color:var(--primary); }
.notification-main { flex:1; min-width:0; }
.notification-meta { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:12px; color:var(--text-secondary); }
.notification-meta strong { color:var(--text); font-size:14px; overflow-wrap:anywhere; }
.notification-meta time { margin-left:auto; font-size:12px; }
.notification-unread { font-size:11px; font-style:normal; color:var(--pink); }
.notification-content { margin:9px 0; font-size:14px; line-height:1.75; color:var(--text); white-space:pre-wrap; overflow-wrap:anywhere; }
.notification-source { display:block; padding:8px 12px; background:var(--bg); color:var(--text-secondary); border-radius:4px; font-size:12px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.notification-source:hover { color:var(--primary); }
.notification-actions { display:flex; gap:18px; margin-top:8px; }
.notification-actions button { padding:4px 0; background:none; border:0; font-size:12px; color:var(--text-secondary); cursor:pointer; }
.notification-actions button:hover { color:var(--primary); }
.notification-reply-form { margin-top:12px; }
.notification-reply-form[hidden] { display:none; }
.notification-reply-form label { display:block; margin-bottom:6px; font-size:12px; color:var(--text-secondary); }
.notification-reply-form textarea { display:block; box-sizing:border-box; width:100%; min-height:76px; padding:10px 12px; resize:vertical; border:1px solid var(--border); border-radius:5px; background:var(--bg); color:var(--text); font:inherit; font-size:14px; }
.notification-reply-form textarea:focus { outline:1px solid var(--primary); }
.notification-reply-footer { display:flex; align-items:center; gap:12px; margin-top:8px; }
.notification-reply-status { flex:1; color:var(--text-secondary); font-size:12px; }
.notification-reply-footer button { flex-shrink:0; padding:7px 14px; border:0; border-radius:4px; background:var(--primary); color:#fff; cursor:pointer; }
.notification-reply-footer button:disabled { opacity:.6; cursor:wait; }
.notification-pagination { display:flex; justify-content:flex-end; gap:16px; margin-top:20px; font-size:13px; }
.notification-pagination a { color:var(--primary); }
/* Article prose: restore spacing removed by the global reset, without adding
   fake bullets or changing editor-supplied inline styles / component lists. */
.bilitop-article-card .single-body { overflow-wrap:break-word; word-break:normal; }
.bilitop-article-card .single-body .bilitop-password-card { box-sizing:border-box; display:grid; grid-template-columns:auto minmax(0,1fr); gap:0 18px; width:100%; max-width:660px; margin:30px auto; padding:28px 30px; border:1px solid color-mix(in srgb,var(--primary) 24%,var(--border)); border-radius:10px; background:linear-gradient(145deg,color-mix(in srgb,var(--primary) 6%,var(--bg-card)),var(--bg-card)); box-shadow:0 10px 28px rgba(20,35,55,.08); }
.bilitop-password-icon { display:grid; grid-row:1 / span 2; place-items:center; width:48px; height:48px; border-radius:50%; background:color-mix(in srgb,var(--primary) 12%,var(--bg)); color:var(--primary); }
.bilitop-password-icon svg { width:25px; height:25px; }
.bilitop-password-copy h2 { margin:0 0 6px; padding:0; border:0; font-size:20px; line-height:1.45; }
.bilitop-article-card .single-body .bilitop-password-copy p { margin:0; color:var(--text-secondary); font-size:13px; line-height:1.75; }
.bilitop-password-field { grid-column:1 / -1; margin-top:22px; }
.bilitop-password-field > label { display:block; margin-bottom:8px; color:var(--text); font-size:13px; font-weight:600; }
.bilitop-password-controls { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; }
.bilitop-password-controls input { box-sizing:border-box; width:100%; min-width:0; height:42px; padding:0 13px; border:1px solid var(--border); border-radius:6px; background:var(--bg); color:var(--text); font:inherit; }
.bilitop-password-controls input:focus { border-color:var(--primary); outline:2px solid color-mix(in srgb,var(--primary) 18%,transparent); outline-offset:1px; }
.bilitop-password-controls button { min-width:108px; height:42px; padding:0 18px; border:0; border-radius:6px; background:var(--primary); color:#fff; font:inherit; font-weight:600; cursor:pointer; }
.bilitop-password-controls button:hover { background:var(--primary-light); }
@media(max-width:600px) { .bilitop-article-card .single-body .bilitop-password-card { grid-template-columns:1fr; padding:22px 18px; text-align:center; } .bilitop-password-icon { grid-row:auto; margin:0 auto 12px; } .bilitop-password-field { margin-top:18px; text-align:left; } .bilitop-password-controls { grid-template-columns:1fr; } .bilitop-password-controls button { width:100%; } }
.bilitop-article-card .single-body :where(ul:not([class]),ol:not([class]),ul.wp-block-list,ol.wp-block-list) {
    margin:0 0 1.25em;
    padding:0 0 0 2em;
    list-style:revert;
    list-style-position:outside;
    line-height:1.8;
}
.bilitop-article-card .single-body :where(ul:not([class]),ol:not([class]),ul.wp-block-list,ol.wp-block-list) > li {
    padding-left:.15em;
}
.bilitop-article-card .single-body :where(ul:not([class]),ol:not([class]),ul.wp-block-list,ol.wp-block-list) > li + li {
    margin-top:.55em;
}
.bilitop-article-card .single-body :where(ul:not([class]),ol:not([class]),ul.wp-block-list,ol.wp-block-list) > li::marker {
    color:var(--text-muted);
    font-family:Arial,sans-serif;
    font-weight:400;
}
.bilitop-article-card .single-body :where(li) > :where(ul:not([class]),ol:not([class]),ul.wp-block-list,ol.wp-block-list) { margin:.55em 0 0; }
.bilitop-article-card .single-body :where(li) > p { margin:0 0 .45em; }
.bilitop-article-card .single-body :where(li) > p:last-child { margin-bottom:0; }
/* CSS reset/revert must not discard an author's HTML numbering type. */
.bilitop-article-card .single-body ol[type="a"] { list-style-type:lower-alpha; }
.bilitop-article-card .single-body ol[type="A"] { list-style-type:upper-alpha; }
.bilitop-article-card .single-body ol[type="i"] { list-style-type:lower-roman; }
.bilitop-article-card .single-body ol[type="I"] { list-style-type:upper-roman; }
.bilitop-article-card .single-body ol[type="1"] { list-style-type:decimal; }
.bilitop-article-card .single-body :is(h1,h2,h3,h4,h5,h6) { margin:1.5em 0 .7em; font-weight:600; line-height:1.4; }
.bilitop-article-card .single-body h1 { font-size:28px; }
.bilitop-article-card .single-body h2 { padding-left:0; border-left:0; font-size:24px; }
.bilitop-article-card .single-body h3 { font-size:20px; }
.bilitop-article-card .single-body h4 { font-size:18px; }
.bilitop-article-card .single-body :where(h5,h6) { font-size:16px; }
.bilitop-article-card .single-body > :where(h1,h2,h3,h4,h5,h6):first-child { margin-top:0; }
.bilitop-article-card .single-body blockquote { margin:1.25em 0; padding:16px 20px; border-left:3px solid var(--border); line-height:1.8; }
.bilitop-article-card .single-body blockquote > :last-child { margin-bottom:0; }
.bilitop-article-card .single-body hr { height:0; margin:1.75em 0; border:0; border-top:1px solid var(--border); }
@media(max-width:600px) {
    .bilitop-article-card .single-body :where(ul:not([class]),ol:not([class]),ul.wp-block-list,ol.wp-block-list) { padding-left:1.65em; }
    .bilitop-article-card .single-body h1 { font-size:24px; }
    .bilitop-article-card .single-body h2 { font-size:22px; }
    .bilitop-article-card .single-body blockquote { padding:12px 14px; }
}
.single-body pre.bilitop-code-block {
    margin:20px 0;
    padding:17px 20px;
    overflow:auto;
    border:1px solid #28364d;
    border-left:4px solid var(--primary);
    border-radius:8px;
    background:#172033;
    box-shadow:0 6px 18px rgba(15,23,42,.12);
    color:#e6edf3;
    font:13px/1.75 Consolas,Monaco,"Courier New",monospace;
    white-space:pre;
    tab-size:4;
}
.single-body pre.bilitop-code-block code {
    display:block;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    color:inherit;
    font:inherit;
    white-space:inherit;
}
@media(max-width:600px) {
    .single-body pre.bilitop-code-block { margin:16px 0; padding:14px 15px; font-size:12px; }
}
.bilitop-video-embed { margin:22px 0; overflow:hidden; border:1px solid var(--border); border-radius:6px; background:var(--bg-card); }
.bilitop-video-frame { position:relative; aspect-ratio:16 / 9; background:#18191c; }
.bilitop-video-frame > video,.bilitop-video-frame > iframe { display:block; width:100%; height:100%; border:0; }
.bilitop-video-load { position:absolute; inset:0; display:grid; place-items:center; padding:0; width:100%; height:100%; overflow:hidden; background:#18191c; border:0; color:#fff; cursor:pointer; }
.single-body .bilitop-video-load > img,.bilitop-video-load > img { position:absolute; inset:0; width:100%; height:100%; margin:0; object-fit:cover; border-radius:0; opacity:.65; }
.bilitop-video-load > span { position:relative; display:flex; align-items:center; gap:12px; padding:10px 16px; background:rgba(0,0,0,.45); border-radius:5px; font-size:14px; }
.bilitop-video-load b { font-size:20px; font-weight:normal; }
.bilitop-video-load:focus-visible { outline:3px solid var(--primary); outline-offset:-3px; }
.bilitop-hls-error { position:absolute; right:12px; bottom:12px; left:12px; z-index:2; margin:0; padding:9px 12px; border-radius:6px; background:rgba(0,0,0,.72); color:#fff; font-size:12px; line-height:1.6; text-align:center; }
.bilitop-video-caption { display:flex; justify-content:space-between; gap:12px; padding:9px 12px; font-size:12px; line-height:1.6; color:var(--text-secondary); }
.bilitop-video-link,.bilitop-embed-unavailable { margin:16px 0; padding:12px 16px; border:1px solid var(--border); border-radius:5px; color:var(--text-secondary); font-size:13px; overflow-wrap:anywhere; }
.bilitop-insert-post,.single-body .bilitop-insert-post { display:flex; align-items:center; gap:16px; margin:20px 0; padding:12px; border:1px solid var(--border); border-radius:6px; background:var(--bg-card); color:var(--text); text-decoration:none; }
.bilitop-insert-post:hover { border-color:var(--primary); }
.bilitop-insert-post-cover { display:grid; place-items:center; flex:0 0 104px; width:104px; height:70px; overflow:hidden; border-radius:4px; background:var(--bg); color:var(--text-muted); font-size:24px; }
.bilitop-article-card .single-body .bilitop-insert-post-cover img,.single-body .bilitop-insert-post-cover img,.bilitop-insert-post-cover img { width:100%; height:100%; margin:0; object-fit:cover; border-radius:0; }
.bilitop-insert-post-info { display:flex; flex:1; flex-direction:column; min-width:0; gap:3px; line-height:1.5; }
.bilitop-insert-post-info small,.bilitop-insert-post-info > span { color:var(--text-secondary); font-size:12px; }
.bilitop-insert-post-info strong { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; font-size:15px; font-weight:500; color:var(--text); }
.bilitop-insert-post-arrow { color:var(--text-muted); }
.submit-embed-dialog { position:fixed; inset:0; width:min(520px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); margin:auto; padding:0; overflow:auto; border:1px solid var(--border); border-radius:8px; background:var(--bg-card); color:var(--text); box-shadow:var(--shadow-hover); }
.submit-embed-dialog:not([open]) { display:none; }
.submit-embed-dialog::backdrop { background:rgba(0,0,0,.45); }
.submit-embed-dialog header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 20px; border-bottom:1px solid var(--border); }
.submit-embed-dialog h2 { margin:0; font-size:18px; }
.submit-embed-close { width:32px; height:32px; border:0; border-radius:4px; background:var(--bg); color:var(--text-secondary); font-size:24px; cursor:pointer; }
.submit-embed-fields { padding:20px; }
.submit-embed-fields label { display:block; margin-bottom:8px; font-size:14px; }
.submit-embed-fields input { box-sizing:border-box; width:100%; min-height:40px; padding:9px 12px; border:1px solid var(--border); border-radius:4px; background:var(--bg); color:var(--text); font-size:14px; }
.submit-embed-fields input:focus { outline:1px solid var(--primary); }
.submit-embed-fields p { margin:8px 0 16px; color:var(--text-secondary); font-size:12px; line-height:1.6; }
.submit-embed-fields .submit-embed-status { min-height:20px; margin-bottom:0; color:var(--primary); }
.submit-embed-dialog footer { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 20px; border-top:1px solid var(--border); }
.submit-embed-dialog footer > span { flex:1; min-width:0; color:var(--text-secondary); font-size:12px; line-height:1.6; }
.submit-embed-dialog footer .btn-primary { flex:0 0 auto; width:auto; min-width:96px; margin:0; padding:9px 16px; }
.submit-code-dialog { width:min(780px,calc(100vw - 32px)); }
.submit-code-fields { display:grid; grid-template-columns:1fr; gap:8px; }
.submit-code-fields label:not(:first-child) { margin-top:4px; }
.submit-code-fields select,.submit-code-fields textarea { box-sizing:border-box; width:100%; border:1px solid var(--border); border-radius:5px; background:var(--bg); color:var(--text); font-size:14px; }
.submit-code-fields select { min-height:42px; padding:8px 11px; }
.submit-code-fields textarea { min-height:340px; padding:13px 14px; resize:vertical; color:#e6edf3; background:#172033; caret-color:#fff; font:13px/1.7 Consolas,Monaco,Courier New,monospace; white-space:pre; tab-size:4; }
.submit-code-fields :is(select,textarea):focus { outline:2px solid var(--primary); outline-offset:1px; }
.submit-code-actions { display:flex; align-items:center; gap:9px; }
.submit-code-actions .submit-code-cancel { min-height:38px; padding:0 16px; border:1px solid var(--border); border-radius:5px; background:var(--bg); color:var(--text-secondary); cursor:pointer; }
@media(max-width:600px) { .submit-code-fields textarea { min-height:260px; } .submit-code-dialog footer { align-items:stretch; flex-direction:column; } .submit-code-actions { justify-content:flex-end; } }
.submit-editor-media-tools > .submit-editor-media-button { display:inline-flex; align-items:center; }
.submit-editor-card.is-editor-ready .submit-editor-media-tools > .submit-editor-media-button { display:none; }
@media(max-width:600px) {
    .bilitop-insert-post,.single-body .bilitop-insert-post { gap:10px; padding:10px; }
    .bilitop-insert-post-cover { flex-basis:80px; width:80px; height:60px; }
    .bilitop-insert-post-info strong { font-size:14px; }
}

/* Administrator-only moderation surfaces inside a user space. */
.author-space-hero .btn-admin-message-audit { border-color:rgba(255,214,102,.72); background:rgba(150,92,0,.42); }
.author-moderation-notice { margin-bottom:14px; padding:10px 13px; border:1px solid color-mix(in srgb,#249453 32%,var(--border)); border-radius:7px; background:color-mix(in srgb,#249453 7%,var(--bg-card)); color:#249453; font-size:13px; }
.author-comment-audit-list { display:grid; gap:12px; }
.author-comment-audit-item { overflow:hidden; border:1px solid var(--border); border-radius:9px; background:var(--bg); }
.author-comment-audit-item > header,.author-comment-audit-item > footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 13px; color:var(--text-muted); font-size:12px; }
.author-comment-audit-item > header { border-bottom:1px solid var(--border); }
.author-comment-audit-item > header a { color:var(--primary); font-weight:600; }
.author-comment-audit-content { padding:14px 15px; color:var(--text); line-height:1.75; overflow-wrap:anywhere; }
.author-comment-audit-item > footer { border-top:1px solid var(--border); }
.author-comment-audit-item > footer form { margin:0; }
.author-audit-status { flex:none; padding:2px 7px; border-radius:999px; background:var(--bg-card); color:var(--text-secondary); }
.author-comment-trash { min-height:32px; padding:0 12px; border:1px solid #e96c77; border-radius:6px; background:transparent; color:#d34b5c; cursor:pointer; }
.author-comment-trash:hover { background:#d34b5c; color:#fff; }
.author-audit-pagination { display:flex; justify-content:center; flex-wrap:wrap; gap:7px; margin-top:18px; }
.author-audit-pagination a { display:grid; min-width:34px; height:34px; padding:0 9px; place-items:center; border:1px solid var(--border); border-radius:6px; background:var(--bg); color:var(--text-secondary); }
.author-audit-pagination a.active { border-color:var(--primary); background:var(--primary); color:#fff; }
.author-message-audit { min-height:620px; }
.author-message-audit-account { display:flex; align-items:center; flex-wrap:wrap; gap:7px 10px; margin-bottom:12px; padding:11px 14px; border:1px solid var(--border); border-radius:7px; background:var(--bg); font-size:13px; }
.author-message-audit-account > span,.author-message-audit-account > small { color:var(--text-muted); }
.author-message-audit-account code,.message-audit-login { color:#b35f00; font-family:Consolas,Monaco,Courier New,monospace; font-size:12px; }
.author-message-audit .message-peer-copy > small { display:flex; align-items:center; justify-content:space-between; gap:8px; min-width:0; }
.author-message-audit .message-peer-copy > small time { overflow:hidden; color:var(--text-muted); text-overflow:ellipsis; white-space:nowrap; }
.author-message-audit .message-thread > header { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.author-message-audit .message-thread > header small { color:#b35f00; font-family:Consolas,Monaco,Courier New,monospace; font-size:11px; font-weight:400; }
.author-message-audit .message-sidebar { min-width:0; border-right:1px solid var(--border); background:var(--bg); }
.author-message-audit .message-peer-list { border-right:0; }
.author-message-audit .message-bubble > b { display:block; margin:0 0 4px; color:var(--text-muted); font-size:10px; font-weight:500; }
.dark .author-message-audit-account code,.dark .message-audit-login,.dark .author-message-audit .message-thread > header small { color:#ffbd73; }
.author-message-audit .message-history-search { border-bottom:1px solid var(--border); }
@media(max-width:700px) {
    .author-comment-audit-item > header { align-items:flex-start; }
    .author-comment-audit-item > footer { flex-wrap:wrap; }
    .author-message-audit { grid-template-columns:1fr; }
    .author-message-audit .message-sidebar { border-right:0; border-bottom:1px solid var(--border); }
}
@media(max-width:600px) {
    .content-card .card-stats { gap:8px; }
    .message-tabs { gap:22px; }
    .notification-item { gap:10px; padding:16px 0; }
    .notification-meta time { margin-left:0; }
    .notification-actions button { min-height:36px; }
}

/* Keep sidebar counters in separate columns even at extreme integer sizes. */
.user-sidebar .user-stats-compact { position:relative; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; }
.user-sidebar .user-stats-compact .stat-item { display:grid; grid-template-rows:1fr auto; min-width:0; padding:0 2px; }
.user-sidebar .user-stats-compact .stat-item + .stat-item { border-left:1px solid var(--border); }
.user-sidebar .user-stats-compact .stat-number-button { display:block; align-self:center; width:100%; min-width:0; min-height:32px; margin:0; padding:3px 0; border:0; border-radius:4px; background:transparent; color:var(--primary); font-family:inherit; font-size:18px; font-weight:700; font-variant-numeric:tabular-nums; line-height:1.4; text-align:center; white-space:normal; overflow-wrap:anywhere; cursor:pointer; }
.user-sidebar .user-stats-compact .stat-number-button.is-compact { font-size:13px; }
.user-sidebar .user-stats-compact .stat-number-button:hover { background:var(--bg); }
.user-sidebar .user-stats-compact .stat-number-button:focus-visible { outline:2px solid var(--primary); outline-offset:1px; }
.user-sidebar .user-stats-compact .stat-label { display:block; margin-top:4px; font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
.user-sidebar .stat-number-tooltip { position:absolute; z-index:4; left:0; right:0; bottom:calc(100% + 6px); visibility:hidden; padding:8px 10px; border:1px solid var(--border); border-radius:6px; background:var(--bg-card); box-shadow:var(--shadow); color:var(--text); font-size:13px; font-weight:400; line-height:1.7; text-align:center; overflow-wrap:anywhere; pointer-events:none; }
.user-sidebar .stat-number-button:focus-visible .stat-number-tooltip { visibility:visible; }
@media(hover:hover) { .user-sidebar .stat-number-button:hover .stat-number-tooltip { visibility:visible; } }
@media(max-width:768px) { .user-sidebar .user-stats-compact .stat-number-button { min-height:44px; } }

/* Local check-in environment verification (not a third-party CAPTCHA). */
.checkin-browser-check { margin:14px 0 8px; padding:10px; border:1px solid var(--border); border-radius:7px; background:var(--bg); text-align:left; }
#btn-checkin-verify { display:flex; align-items:center; justify-content:center; gap:7px; width:100%; min-height:38px; padding:8px 10px; border:1px solid var(--border); border-radius:5px; background:var(--bg-card); color:var(--text); font-size:13px; cursor:pointer; }
#btn-checkin-verify:hover:not(:disabled) { color:var(--primary); border-color:var(--primary); }
#btn-checkin-verify:focus-visible { outline:2px solid var(--primary); outline-offset:2px; }
#btn-checkin-verify:disabled { opacity:.55; cursor:default; }
.checkin-browser-status { margin:7px 0 0; font-size:12px; line-height:1.6; color:var(--text-muted); overflow-wrap:anywhere; }
.checkin-browser-status[data-state="success"] { color:#238636; }
.checkin-browser-status[data-state="error"] { color:#d34b5c; }
.dark .checkin-browser-status[data-state="success"] { color:#7acb8a; }
.dark .checkin-browser-status[data-state="error"] { color:#ff8c99; }
#checkin-captcha-modal .captcha-modal-inner { max-height:calc(100dvh - 32px); overflow-y:auto; }
#checkin-captcha-modal .btn-captcha-confirm:disabled { opacity:.55; cursor:default; }

/* Author counters keep four independent tracks; no extra database counts. */
.author-stats-compact { position:relative; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; }
.author-stats-compact .author-stat { display:block; min-width:0; padding:0 3px; }
.author-stats-compact .author-stat + .author-stat { border-left:1px solid var(--border); }
.author-stats-compact .author-stat-number { display:block; align-self:center; width:100%; min-width:0; min-height:32px; margin:0; padding:3px 0; border:0; border-radius:4px; background:transparent; font:inherit; text-align:center; cursor:pointer; }
.author-stats-compact .author-stat-value { font-size:17px; font-variant-numeric:tabular-nums; line-height:1.5; white-space:normal; overflow-wrap:anywhere; }
.author-stats-compact .is-compact .author-stat-value { font-size:12px; }
.author-stats-compact .author-stat-label { display:block; margin:0 0 1px; line-height:1.5; overflow-wrap:anywhere; }
.author-stats-compact .author-stat-number:hover { background:var(--bg); text-decoration:none; }
.author-stats-compact .author-stat-number:focus-visible { outline:2px solid var(--primary); outline-offset:1px; }
.author-stats-compact .stat-number-tooltip { position:absolute; z-index:4; left:0; right:0; bottom:calc(100% + 6px); visibility:hidden; padding:8px 10px; border:1px solid var(--border); border-radius:6px; background:var(--bg-card); color:var(--text); box-shadow:var(--shadow); font-size:13px; line-height:1.7; overflow-wrap:anywhere; pointer-events:none; }
.author-stats-compact .author-stat-number:focus-visible .stat-number-tooltip { visibility:visible; }
@media(hover:hover) { .author-stats-compact .author-stat-number:hover .stat-number-tooltip { visibility:visible; } }
@media(max-width:768px) { .author-stats-compact .author-stat-number { min-height:44px; } }

/* Independent identities wrap as a group instead of replacing each other. */
.identity-badges { display:inline-flex; align-items:center; flex-wrap:wrap; gap:4px; min-width:0; max-width:100%; vertical-align:middle; text-shadow:none; }
.identity-badges .identity-badge { flex:0 1 auto; min-width:0; max-width:100%; white-space:normal; overflow-wrap:anywhere; text-align:center; }
.identity-verified-icon { flex:none; margin-right:3px; }
.identity-badge-verified { box-shadow:none; border-radius:5px; }
.author-name-row,.author-profile-main h1,.single-meta .meta-author { min-width:0; overflow-wrap:anywhere; }
.author-name-row > .identity-badges { flex-basis:100%; }
.sidebar-author-profile .author-name-row > .identity-badges { flex-basis:auto; }
.author-profile-main h1 > .identity-badges { font-size:12px; }
.user-level .identity-badges { justify-content:center; }
.single-meta .identity-badges { max-width:100%; }
.article-identity-badge { font-size:10px; }
.message-peer-name > .identity-badges,.social-user-name > .identity-badges { flex-basis:100%; }
.message-thread > header { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.bilitop-comments .comment-item.comment-identity-dual > .comment-inner { position:relative; box-shadow:none; background:linear-gradient(110deg,color-mix(in srgb,var(--identity-color) 7%,transparent) 0 50%,color-mix(in srgb,var(--identity-secondary) 7%,transparent) 50% 100%); }
.bilitop-comments .comment-item.comment-identity-dual > .comment-inner::before { content:""; position:absolute; inset:0 auto 0 0; width:3px; border-radius:3px; background:linear-gradient(to bottom,var(--identity-color) 0 50%,var(--identity-secondary) 50% 100%); pointer-events:none; }
.dark .bilitop-comments .comment-item.comment-identity-dual > .comment-inner,body.dark-mode .bilitop-comments .comment-item.comment-identity-dual > .comment-inner { background:linear-gradient(110deg,color-mix(in srgb,var(--identity-color) 13%,transparent) 0 50%,color-mix(in srgb,var(--identity-secondary) 13%,transparent) 50% 100%); }

/* Profile covers belong to identity headers, not to counters or check-in controls. */
@media(max-width:768px) {
    .user-sidebar .user-card { padding:0; }
    .user-sidebar .user-card-profile { padding:14px 16px 11px; }
    .user-sidebar .user-stats { margin:0 14px; }
    .user-sidebar .user-card > .btn-checkin { width:calc(100% - 28px); margin:10px 14px 14px; }
}

/* Questions: compact Bilibili-like list, native answers and transactional bounty states. */
.qa-page { width:min(var(--max-w),calc(100% - 32px)); margin:0 auto 40px; padding-top:32px; }
.qa-page-header { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:14px; }
.qa-page-header h1 { margin:0; font-size:25px; }
.qa-page-header > div > a { display:inline-block; margin-bottom:8px; color:var(--text-secondary); font-size:13px; }
.qa-ask-button { display:inline-flex; align-items:center; gap:5px; min-height:38px; padding:0 16px; border:1px solid var(--primary); border-radius:7px; color:var(--primary); font-weight:600; }
.qa-ask-button:hover { background:color-mix(in srgb,var(--primary) 9%,transparent); color:var(--primary); }
.qa-publish-denied { max-width:65%; color:var(--text-secondary); font-size:13px; line-height:1.6; text-align:right; overflow-wrap:anywhere; }
.qa-search { display:flex; overflow:hidden; margin-bottom:18px; border:1px solid var(--border); border-radius:8px; background:var(--bg-card); }
.qa-search input { flex:1; min-width:0; height:46px; padding:0 14px; border:0; outline:0; background:transparent; color:var(--text); font-size:15px; }
.qa-search button { flex:none; width:76px; border:0; background:transparent; color:var(--primary); cursor:pointer; }
.qa-search-login { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:48px; margin-bottom:18px; padding:8px 10px 8px 14px; border:1px solid var(--border); border-radius:8px; background:var(--bg-card); color:var(--text-secondary); font-size:14px; }
.qa-search-login a { display:inline-flex; align-items:center; justify-content:center; min-height:32px; padding:0 14px; border-radius:6px; background:var(--primary); color:#fff; font-weight:600; }
.qa-tabs { display:flex; gap:12px; padding:0 14px; border-bottom:1px solid var(--border); background:var(--bg-card); }
.qa-tabs a { position:relative; padding:14px 10px; color:var(--text); font-weight:600; }
.qa-tabs a.active { color:var(--primary); }
.qa-tabs a.active::after { position:absolute; right:8px; bottom:-1px; left:8px; height:3px; border-radius:3px 3px 0 0; background:var(--primary); content:""; }
.qa-list { overflow:hidden; border:1px solid var(--border); border-top:0; border-radius:0 0 var(--radius-lg) var(--radius-lg); background:var(--bg-card); }
.qa-list-item { display:flex; gap:14px; padding:18px; }
.qa-list-item + .qa-list-item { border-top:1px solid var(--border); }
.qa-list-avatar,.qa-list-avatar img { flex:none; width:46px; height:46px; border-radius:50%; }
.qa-list-main { min-width:0; flex:1; }
.qa-list-title-row { display:flex; align-items:flex-start; gap:10px; }
.qa-list-title-row h2 { flex:1; min-width:0; margin:0; font-size:17px; line-height:1.5; }
.qa-list-title-row h2 a { color:var(--text); }
.qa-list-title-row h2 a:hover { color:var(--primary); }
.qa-list-main > p { display:-webkit-box; margin:7px 0 10px; overflow:hidden; color:var(--text-secondary); font-size:13px; line-height:1.65; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.qa-list-main footer { display:flex; flex-wrap:wrap; gap:5px 14px; color:var(--text-muted); font-size:12px; }
.qa-list-main footer strong { color:#f59e0b; font-weight:600; }
.qa-list-cover { display:block; flex:0 0 132px; width:132px; height:82px; padding:0; overflow:hidden; border:1px solid var(--border); border-radius:8px; background:var(--bg); cursor:zoom-in; }
.qa-list-cover img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .2s ease; }
.qa-list-cover:hover img { transform:scale(1.04); }
.qa-state { flex:none; padding:3px 8px; border-radius:999px; font-size:12px; line-height:1.45; }
.qa-state.waiting { background:#fff5dc; color:#b77900; }
.qa-state.solved { background:#e9f9ef; color:#249453; }
.qa-state.closed { background:var(--bg); color:var(--text-muted); }
.dark .qa-state.waiting { background:#4b3c1d; color:#f6c767; }
.dark .qa-state.solved { background:#193f2b; color:#6ddb9a; }
.qa-pagination { display:flex; justify-content:center; flex-wrap:wrap; gap:7px; margin-top:22px; }
.qa-pagination .page-numbers { display:grid; min-width:36px; height:36px; padding:0 10px; place-items:center; border:1px solid var(--border); border-radius:6px; background:var(--bg-card); color:var(--text-secondary); }
.qa-pagination .current { border-color:var(--primary); background:var(--primary); color:#fff; }
.qa-empty,.qa-disabled { min-height:400px; padding:80px 24px; border-radius:0 0 var(--radius-lg) var(--radius-lg); background:var(--bg-card); text-align:center; }
.qa-empty h2,.qa-disabled h2 { margin:18px 0 6px; font-size:18px; }
.qa-empty p,.qa-disabled p { margin:0; color:var(--text-muted); }
.qa-empty-art { position:relative; width:170px; height:128px; margin:auto; border-radius:50% 50% 40% 40%; background:linear-gradient(145deg,#e6faf4,#f4fff9); }
.qa-empty-art::before,.qa-empty-art::after,.qa-empty-art i { position:absolute; bottom:20px; width:24px; border-radius:18px 18px 4px 4px; background:#9fd9c1; content:""; }
.qa-empty-art::before { left:55px; height:84px; }.qa-empty-art::after { left:86px; height:105px; }.qa-empty-art i { left:112px; height:61px; }
.qa-empty-art b { position:absolute; top:38px; left:16px; color:#70c4df; font-size:42px; transform:rotate(-12deg); }
.qa-disabled > span { display:grid; width:76px; height:76px; margin:auto; place-items:center; border-radius:50%; background:color-mix(in srgb,var(--primary) 12%,var(--bg-card)); color:var(--primary); font-size:42px; }
.qa-breadcrumb { display:flex; gap:7px; margin-bottom:12px; color:var(--text-muted); font-size:13px; }
.qa-breadcrumb a { color:var(--primary); }
.qa-question-card,.qa-answer-section,.qa-submit-form { border:1px solid var(--border); border-radius:var(--radius-lg); background:var(--bg-card); box-shadow:0 8px 24px rgba(0,0,0,.035); }
.qa-question-card { padding:22px; }
.qa-question-card > header { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; }
.qa-question-card > header .qa-state { align-self:flex-start; white-space:nowrap; }
.qa-question-author { display:flex; align-items:center; gap:10px; }
.qa-question-author img { width:44px; height:44px; border-radius:50%; }
.qa-question-author div { display:grid; gap:3px; }.qa-question-author a { color:var(--text); font-weight:600; }.qa-question-author time { color:var(--text-muted); font-size:12px; }
.qa-question-card h1 { margin:22px 0 14px; font-size:25px; line-height:1.45; }
.qa-question-content { min-height:110px; color:var(--text); line-height:1.8; }
.qa-question-card > footer { display:flex; align-items:center; flex-wrap:wrap; gap:12px 18px; margin-top:20px; padding-top:14px; border-top:1px solid var(--border); color:var(--text-muted); font-size:13px; }
.qa-question-card > footer strong { padding:6px 11px; border-radius:6px; background:#fff5dc; color:#b77900; }.dark .qa-question-card > footer strong { background:#4b3c1d;color:#f6c767; }
.qa-answer-section { margin-top:18px; padding:20px; }
.qa-answer-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; }.qa-answer-heading h2 { margin:0; font-size:19px; }.qa-answer-heading span { color:var(--text-muted); font-size:12px; }
.qa-answer-notice { display:flex; align-items:flex-start; gap:9px; margin-top:14px; padding:10px 12px; border:1px solid color-mix(in srgb,#f59e0b 30%,var(--border)); border-radius:8px; background:color-mix(in srgb,#f59e0b 7%,var(--bg-card)); color:var(--text-secondary); font-size:12px; line-height:1.7; }
.qa-answer-notice > span { display:grid; flex:0 0 18px; width:18px; height:18px; margin-top:1px; place-items:center; border-radius:50%; background:#f59e0b; color:#fff; font-size:11px; font-weight:700; }
.qa-answer-notice p { margin:0; }
.qa-answer-section .bilitop-comments { margin-top:14px; padding:0; border:0; border-radius:0; background:transparent; }
.qa-answer-section .comments-header { display:none; }
.qa-answer-section .comment-compose { margin:0; padding:12px; border:1px solid var(--border); border-radius:9px; background:var(--bg); }
.qa-answer-section .comment-list { margin-top:12px; padding:0 12px; border:1px solid var(--border); border-radius:9px; background:var(--bg-card); }
.qa-best-answer-badge { padding:2px 7px; border-radius:4px; background:#e9f9ef; color:#249453; font-size:11px; font-weight:600; }
.qa-accept-answer { border:0; background:transparent; color:#249453; font-size:12px; cursor:pointer; }.qa-accept-answer:hover { text-decoration:underline; }
.comment-item:has(.qa-best-answer-badge) > .comment-inner { outline:1px solid color-mix(in srgb,#249453 42%,transparent); background:color-mix(in srgb,#249453 5%,var(--bg-card)); }
.qa-submit-page { max-width:1000px; }
.qa-submit-quota { color:var(--text-secondary); font-size:13px; }.qa-submit-quota strong { color:var(--primary); }
.qa-submit-notice { display:flex; align-items:flex-start; gap:11px; margin-bottom:14px; padding:13px 15px; border:1px solid color-mix(in srgb,var(--primary) 26%,var(--border)); border-radius:8px; background:color-mix(in srgb,var(--primary) 7%,var(--bg-card)); color:var(--text-secondary); font-size:13px; line-height:1.75; }
.qa-submit-notice > span { display:grid; flex:0 0 22px; width:22px; height:22px; margin-top:1px; place-items:center; border-radius:50%; background:var(--primary); color:#fff; font-size:12px; font-weight:700; }
.qa-submit-notice p { margin:0; }.qa-submit-notice p + p { margin-top:5px; }
.qa-form-message { margin-bottom:14px; padding:12px 14px; border:1px solid #ffc8c8; border-radius:7px; background:#fff1f1; color:#d33; }
.dark .qa-form-message { border-color:#6f3434;background:#3d2323;color:#ff9f9f; }
.qa-submit-form { padding:22px; }
.qa-field { display:grid; gap:8px; margin-bottom:18px; }.qa-field > span { font-weight:600; }.qa-field > input { width:100%; height:44px; padding:0 12px; border:1px solid var(--border); border-radius:7px; outline:0; background:var(--bg); color:var(--text); }.qa-field > input:focus { border-color:var(--primary); box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 13%,transparent); }
.qa-editor-card { margin-bottom:20px; }
.qa-bounty-picker { display:grid; grid-template-columns:minmax(180px,.65fr) minmax(280px,1fr); gap:20px; padding:18px; border:1px solid var(--border); border-radius:9px; background:var(--bg); }
.qa-bounty-picker h2 { margin:0 0 6px; font-size:18px; }.qa-bounty-picker p { margin:0; color:var(--text-muted); font-size:12px; line-height:1.7; }
.qa-reward-types { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.qa-reward-types label { display:block; cursor:pointer; }.qa-reward-types input { position:absolute; opacity:0; }.qa-reward-types span { display:grid; gap:4px; min-height:66px; padding:12px; border:1px solid var(--border); border-radius:8px; background:var(--bg-card); font-weight:600; }.qa-reward-types small { color:var(--text-muted); font-weight:400; }.qa-reward-types input:checked + span { border-color:var(--primary); box-shadow:0 0 0 2px color-mix(in srgb,var(--primary) 12%,transparent); color:var(--primary); }.qa-reward-types input:disabled + span { opacity:.5; cursor:not-allowed; }
.qa-bounty-picker .qa-field { grid-column:2; margin:0; }.qa-reward-range { color:var(--text-muted); }
.qa-submit-actions { display:flex; align-items:center; justify-content:flex-end; gap:12px; margin-top:22px; }.qa-submit-actions > a { display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; min-width:88px; min-height:44px; padding:0 20px; border:1px solid var(--border); border-radius:7px; background:var(--bg-card); color:var(--text-secondary); font-weight:500; line-height:1; text-decoration:none; white-space:nowrap; word-break:keep-all; }.qa-submit-actions > a:hover { border-color:var(--primary); background:var(--bg); color:var(--primary); }.qa-submit-actions button { min-width:230px; min-height:44px; }
@media(max-width:700px) {
    .qa-page { width:calc(100% - 20px); padding-top:24px; }.qa-page-header { align-items:flex-start; }.qa-page-header h1 { font-size:22px; }
    .qa-ask-button { min-height:36px; padding:0 11px; font-size:13px; }.qa-list-item { gap:10px; padding:14px 12px; }.qa-list-avatar,.qa-list-avatar img { width:38px;height:38px; }.qa-list-cover { flex-basis:96px; width:96px; height:68px; }
    .qa-list-main footer { gap:4px 9px; }.qa-question-card,.qa-answer-section,.qa-submit-form { padding:14px; }.qa-question-card h1 { font-size:21px; }
    .qa-answer-heading { align-items:flex-start; flex-direction:column; }.qa-answer-notice { padding:9px 10px; }.qa-answer-section .comment-compose { padding:10px; }.qa-answer-section .comment-list { padding:0 10px; }.qa-bounty-picker { grid-template-columns:1fr; }.qa-bounty-picker .qa-field { grid-column:1; }.qa-reward-types { grid-template-columns:1fr 1fr; }
    .qa-submit-actions { align-items:stretch; flex-direction:column-reverse; }.qa-submit-actions > a { text-align:center; }.qa-submit-actions button { width:100%; }
}

/* Membership center: calm surfaces, readable prices and compact tier comparison. */
.bilitop-vip { padding:20px 0 42px; }
.bilitop-vip .vip-inner { max-width:1160px; }
.bilitop-vip .vip-hero { display:flex; align-items:center; gap:16px; margin:18px 0; padding:24px; border:1px solid var(--border); border-radius:12px; background:var(--bg-card); text-align:left; }
.bilitop-vip .vip-hero-icon { display:flex; align-items:center; justify-content:center; flex:0 0 54px; width:54px; height:54px; border:1px solid var(--border); border-radius:12px; background:var(--bg); color:var(--pink); }
.bilitop-vip .vip-title { margin:0 0 7px; font-size:26px; line-height:1.4; font-weight:600; color:var(--text); background:none; -webkit-text-fill-color:currentColor; }
.bilitop-vip .vip-subtitle { margin:0; font-size:14px; line-height:1.7; color:var(--text-secondary); }
.bilitop-vip .current-vip-card { margin:0 0 26px; padding:14px 18px; border:1px solid var(--border); border-radius:8px; background:var(--bg-card); color:var(--text); }
.bilitop-vip .current-vip-info { min-width:0; flex-wrap:wrap; gap:8px 12px; }
.bilitop-vip .vip-status-label,.bilitop-vip .vip-expire { color:var(--text-secondary); font-size:13px; line-height:1.7; opacity:1; overflow-wrap:anywhere; }
.bilitop-vip .vip-badge-lg { padding:3px 9px; border:1px solid var(--border); border-left:3px solid var(--member-color,var(--pink)); background:var(--bg); color:var(--text); font-size:13px; font-weight:500; overflow-wrap:anywhere; }
.bilitop-vip .vip-selection-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; margin:26px 0 18px; }
.bilitop-vip .vip-selection-heading h2 { margin:0 0 6px; font-size:19px; font-weight:600; }
.bilitop-vip .vip-selection-heading p { margin:0; font-size:13px; color:var(--text-secondary); line-height:1.7; }
.bilitop-vip .period-toggle { margin:0; padding:4px; border:1px solid var(--border); border-radius:8px; background:var(--bg-card); }
.bilitop-vip .period-toggle[hidden] { display:none; }
.bilitop-vip .period-btn { padding:8px 20px; min-height:38px; border-radius:5px; font-weight:500; }
.bilitop-vip .period-btn.active { box-shadow:none; background:var(--primary); color:#fff; }
.bilitop-vip .vip-plans { grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); align-items:stretch; gap:16px; margin-bottom:28px; }
.bilitop-vip .vip-plan-card { min-width:0; border:1px solid var(--border); border-radius:10px; box-shadow:none; transition:border-color .2s; }
.bilitop-vip .vip-plan-card[hidden] { display:none; }
.bilitop-vip .vip-plan-card:hover { transform:none; border-color:var(--member-color,var(--primary)); box-shadow:none; }
.bilitop-vip .vip-plan-card.is-current { border-color:var(--primary); }
.bilitop-vip .plan-header { padding:22px 22px 18px; border:0; background:var(--bg); text-align:left; }
.bilitop-vip .plan-name-row { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px; margin-bottom:20px; }
.bilitop-vip .plan-name { min-width:0; margin:0; padding-left:9px; border-left:3px solid var(--member-color,var(--pink)); color:var(--text); font-size:18px; font-weight:600; line-height:1.4; overflow-wrap:anywhere; }
.bilitop-vip .plan-badge { position:static; padding:2px 6px; border:1px solid var(--border); background:var(--bg-card); color:var(--primary); font-size:11px; font-weight:400; }
.bilitop-vip .plan-price { justify-content:flex-start; flex-wrap:wrap; gap:4px; margin:0; color:var(--text); }
.bilitop-vip .price-symbol { font-size:18px; font-weight:500; }
.bilitop-vip .price-amount { min-width:0; font-size:36px; line-height:1.1; font-weight:600; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.bilitop-vip .price-period { font-size:13px; color:var(--text-secondary); }
.bilitop-vip .plan-features { padding:16px 22px; }
.bilitop-vip .plan-features li { align-items:flex-start; gap:8px; padding:6px 0; font-size:13px; line-height:1.7; overflow-wrap:anywhere; }
.bilitop-vip .plan-features li svg { margin-top:3px; }
.bilitop-vip .plan-features li[hidden] { display:none; }
.bilitop-vip .btn-plan-purchase { width:calc(100% - 44px); min-height:42px; margin:0 22px 20px; padding:10px 14px; border:1px solid var(--primary); border-radius:6px; background:var(--primary); color:#fff; font-size:14px; font-weight:500; }
.bilitop-vip .btn-plan-purchase:hover { transform:none; }
.bilitop-vip .period-btn:focus-visible,.bilitop-vip .btn-plan-purchase:focus-visible { outline:2px solid var(--primary); outline-offset:3px; }
.bilitop-vip .vip-privileges { padding:22px; border:1px solid var(--border); border-radius:10px; background:var(--bg-card); text-align:left; }
.bilitop-vip .vip-privileges h2 { margin:0 0 20px; font-size:18px; font-weight:600; }
.bilitop-vip .privileges-grid { max-width:none; gap:22px; }
.bilitop-vip .privilege-item { display:grid; grid-template-columns:36px minmax(0,1fr); align-content:start; align-items:start; gap:6px 10px; padding:0; border-radius:0; background:none; box-shadow:none; text-align:left; }
.bilitop-vip .privilege-icon { grid-row:1/3; width:36px; height:36px; margin:0; border-radius:8px; background:var(--bg); color:var(--primary); }
.bilitop-vip .privilege-item h4 { margin:0; font-size:14px; font-weight:500; }
.bilitop-vip .privilege-item p { margin:0; color:var(--text-secondary); font-size:12px; line-height:1.8; }
.bilitop-vip .vip-plans>.empty-state { grid-column:1/-1; padding:38px 20px; border:1px dashed var(--border); border-radius:10px; background:var(--bg-card); }
@media(max-width:768px) {
    .bilitop-vip .vip-inner { padding:0 14px; }
    .bilitop-vip .vip-hero { gap:12px; padding:20px 16px; }
    .bilitop-vip .vip-title { font-size:23px; }
    .bilitop-vip .vip-hero-icon { flex-basis:46px; width:46px; height:46px; }
    .bilitop-vip .vip-selection-heading { align-items:stretch; }
    .bilitop-vip .period-toggle { width:100%; }
    .bilitop-vip .period-btn { flex:1; min-width:0; padding:9px 8px; min-height:42px; }
    .bilitop-vip .privileges-grid { grid-template-columns:1fr; gap:18px; }
    .bilitop-vip .vip-privileges { padding:18px 16px; }
    .bilitop-vip .btn-plan-purchase { min-height:44px; }
}
/* Membership grant previews share the site's muted card typography. */
.vip-plan-card .plan-activation-note { margin: 12px 22px; color: var(--text-secondary, #7b818c); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.vip-inner .membership-schedule-panel { margin-bottom: 24px; }
/* Progressive AJAX list navigation: normal links remain the no-JS fallback. */
.bilitop-ajax-progress {
    position: fixed;
    z-index: 10050;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    pointer-events: none;
    background: var(--primary, #15b6cb);
    box-shadow: 0 0 10px color-mix(in srgb, var(--primary, #15b6cb) 55%, transparent);
    transition: width .22s ease, opacity .18s ease;
}

.bilitop-ajax-progress.is-active {
    width: 72%;
    opacity: 1;
    animation: bilitop-ajax-progress 1.1s ease-in-out infinite alternate;
}

[data-bilitop-ajax-region].is-ajax-loading {
    opacity: .58;
    pointer-events: none;
    transition: opacity .16s ease;
}

@keyframes bilitop-ajax-progress {
    from { width: 24%; }
    to { width: 82%; }
}

@media (prefers-reduced-motion: reduce) {
    .bilitop-ajax-progress,
    [data-bilitop-ajax-region].is-ajax-loading { transition: none; animation: none; }
}
