/* attachment_upload */
.attachment-uploader{display:grid;gap:8px}.attachment-input{position:absolute;width:1px;height:1px;padding:0;border:0;opacity:0;pointer-events:none}.attachment-drop{display:grid;justify-items:start;gap:2px;padding:0;border:0;background:transparent;color:var(--text-muted);text-align:left;cursor:pointer}.attachment-drop strong{color:var(--text);font-size:var(--font-size-md);line-height:1.4}.attachment-drop span{font-size:var(--font-size-sm);line-height:1.45}.attachment-uploader:focus-within .attachment-drop,.attachment-drop:hover{background:transparent;color:var(--brand)}.attachment-field-muted>span{color:var(--text-subtle)}.attachment-field-muted .attachment-uploader{gap:6px}.attachment-field-muted .attachment-drop{display:flex;align-items:center;justify-content:flex-start;gap:8px;padding:0;border:0;background:transparent;color:var(--text-subtle)}.attachment-field-muted .attachment-drop strong{flex:0 0 auto;color:var(--text-muted);font-size:var(--font-size-sm);font-weight:500}.attachment-field-muted .attachment-drop span{min-width:0;font-size:11px}.attachment-field-muted .attachment-uploader:focus-within .attachment-drop,.attachment-field-muted .attachment-drop:hover{background:transparent;color:var(--text-muted)}.attachment-upload-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 10px;color:var(--text-subtle);font-size:11px}.attachment-upload-toolbar[hidden],.attachment-upload-list[hidden]{display:none}.attachment-upload-insert{min-height:28px;padding:4px 9px;font-size:var(--font-size-sm);white-space:nowrap}.attachment-upload-list{display:grid;gap:6px;margin-top:2px}.attachment-upload-item{display:grid;gap:6px;min-width:0;padding:8px 10px;border:1px solid var(--line-soft);border-radius:var(--radius-sm);background:var(--bg)}.attachment-upload-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-width:0}.attachment-upload-name{min-width:0;overflow:hidden;color:var(--text);font-size:var(--font-size-sm);font-weight:500;text-overflow:ellipsis;white-space:nowrap}.attachment-upload-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0}.attachment-upload-status{max-width:220px;color:var(--text-subtle);font-size:11px;line-height:1.4;text-align:right;overflow-wrap:anywhere}.attachment-upload-head-actions .attachment-upload-remove{display:grid;place-items:center;justify-self:auto;width:20px;min-width:20px;min-height:20px;padding:0;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--text-subtle);font-size:18px;line-height:1;box-shadow:none}.attachment-upload-remove:hover{background:var(--line-soft);color:var(--danger)}.attachment-upload-remove:focus-visible{outline:2px solid var(--focus-ring);outline-offset:1px}.attachment-upload-progress{display:block;width:100%;height:4px;overflow:hidden;border-radius:4px;background:var(--line)}.attachment-upload-progress>span{display:block;width:0;height:100%;border-radius:inherit;background:var(--brand);transition:width .15s ease}.attachment-upload-item[data-state="success"] .attachment-upload-status{color:var(--success)}.attachment-upload-item[data-state="success"] .attachment-upload-progress{display:none}.attachment-upload-item[data-state="success"][data-markdown]{cursor:pointer;transition:border-color .15s,background .15s}.attachment-upload-item[data-state="success"][data-markdown]:hover{border-color:var(--brand);background:var(--brand-soft)}.attachment-upload-item[data-state="success"][data-markdown]:focus-visible{border-color:var(--brand);outline:2px solid var(--focus-ring);outline-offset:1px}.attachment-upload-item[data-state="error"] .attachment-upload-status{color:var(--danger)}.attachment-upload-item[data-state="error"] .attachment-upload-progress>span{background:var(--danger)}
.attachment-upload-settings{max-width:none;gap:12px}.attachment-upload-settings-section{display:grid;gap:10px;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--bg)}.attachment-upload-settings-section>strong{font-size:12px}.attachment-upload-settings-section .grid{margin:0}.attachment-upload-settings-groups{display:grid;grid-template-columns:1fr;gap:10px}.attachment-upload-settings-groups .grid{grid-template-columns:minmax(90px,140px) minmax(0,1fr)}
@media(max-width:600px){.attachment-upload-settings-groups .grid{grid-template-columns:1fr}}
/* back_to_top */
.back-to-top-button{position:fixed;right:max(20px,calc((100vw - 1100px)/2 - 48px));bottom:calc(20px + env(safe-area-inset-bottom));z-index:30;display:grid;width:36px;min-width:36px;height:36px;min-height:36px;padding:0;place-items:center;border:1px solid var(--line);border-radius:50%;background:var(--panel);color:var(--text-muted);box-shadow:0 4px 14px var(--shadow-medium);transition:background var(--transition-normal),border-color var(--transition-normal),color var(--transition-normal),transform var(--transition-normal)}.back-to-top-button:hover{border-color:var(--brand);background:var(--brand-soft);color:var(--brand)}.back-to-top-button:focus-visible{outline:0;border-color:var(--brand);box-shadow:0 0 0 3px var(--focus-ring)}.back-to-top-button:active{transform:translateY(1px)}.back-to-top-button[hidden]{display:none}body:has([data-back-to-top-layout][data-top-fixed="1"]) .top{position:sticky;top:0;z-index:35;box-shadow:0 3px 10px var(--shadow-base)}@media(min-width:721px){body:has([data-back-to-top-layout][data-sidebar-fixed="1"]) .sidebar{position:sticky;top:12px}body:has([data-back-to-top-layout][data-top-fixed="1"][data-sidebar-fixed="1"]) .sidebar{top:60px}html.back-to-top-sidebar-tall body:has([data-back-to-top-layout][data-sidebar-fixed="1"]) .sidebar{position:static;top:auto}}@media(max-width:720px){.back-to-top-button{right:12px;bottom:calc(12px + env(safe-area-inset-bottom))}}
/* bank */
.bank-page,.bank-admin{display:grid;gap:16px}.bank-page .bank-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.bank-page .bank-page-head h1{margin:0}.bank-page .bank-page-head p,.bank-page .bank-action-card p,.bank-page .bank-action-card small,.bank-page .bank-summary-item small,.bank-page .bank-summary-item>span,.bank-page .bank-section-head>span,.bank-page .bank-fixed-item span,.bank-page .bank-fixed-item small,.bank-page .bank-record-item span,.bank-admin .bank-admin-section-head>span,.bank-admin .bank-admin-stats span{color:var(--text-muted)}.bank-page .bank-page-head p{margin:6px 0 0}.bank-page .bank-tabs,.bank-admin .bank-admin-tabs{margin:0}.bank-page .bank-alert{padding:12px 14px;border:1px solid var(--warning);border-radius:10px;background:var(--warning-soft);color:var(--text)}.bank-page .bank-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.bank-page .bank-summary-item,.bank-page .bank-action-card,.bank-page .bank-product-card,.bank-page .bank-section,.bank-admin .bank-admin-stats>div,.bank-admin .bank-admin-list,.bank-admin .bank-admin-products{border:1px solid var(--line);border-radius:12px;background:var(--panel)}.bank-page .bank-summary-item{display:grid;gap:5px;padding:16px}.bank-page .bank-summary-item strong{overflow-wrap:anywhere;font-size:var(--font-size-lg)}.bank-page .bank-actions,.bank-page .bank-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.bank-page .bank-action-card,.bank-page .bank-product-card{display:grid;gap:12px;padding:18px}.bank-page .bank-action-card h2,.bank-page .bank-product-card h2,.bank-page .bank-section-head h2,.bank-admin .bank-admin-section-head h2{margin:0;font-size:var(--font-size-lg)}.bank-page .bank-action-card p,.bank-page .bank-product-card p{margin:0}.bank-page .bank-action-card form,.bank-page .bank-product-card form{display:grid;gap:10px}.bank-page .bank-action-card label,.bank-page .bank-product-card label{display:grid;gap:6px}.bank-page .bank-action-card label>span,.bank-page .bank-product-card label>span{font-size:var(--font-size-sm)}.bank-page .bank-action-card input,.bank-page .bank-product-card input{width:100%;box-sizing:border-box}.bank-page .bank-term-button{background:var(--info);border-color:var(--info)}.bank-page .bank-withdraw-button{background:var(--warning);border-color:var(--warning)}.bank-page .bank-early-button{background:var(--danger);border-color:var(--danger)}.bank-page .bank-section{overflow:hidden}.bank-page .bank-section-head,.bank-admin .bank-admin-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:16px;border-bottom:1px solid var(--line-soft)}.bank-page .bank-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px}.bank-page .bank-fixed-list,.bank-page .bank-record-list{display:grid}.bank-page .bank-fixed-item,.bank-page .bank-record-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border-bottom:1px solid var(--line-soft)}.bank-page .bank-fixed-item:last-child,.bank-page .bank-record-item:last-child{border-bottom:0}.bank-page .bank-fixed-main{display:grid;gap:6px;min-width:0;flex:1}.bank-page .bank-fixed-main>div{display:grid;gap:4px}.bank-page .bank-fixed-progress{width:100%;height:8px;accent-color:var(--brand)}.bank-page .bank-fixed-side{display:grid;gap:8px;justify-items:end;text-align:right}.bank-page .bank-inline-form{margin:0}.bank-page .bank-inline-form button{margin:0}.bank-page .bank-record-item>div{display:grid;gap:4px;min-width:0}.bank-page .bank-record-amount{color:var(--success);white-space:nowrap}.bank-page .bank-record-negative{color:var(--danger)}.bank-page .bank-empty{padding:20px 16px;color:var(--text-muted);text-align:center}.bank-page .bank-rank-list{display:grid;margin:0;padding:0;list-style:none}.bank-page .bank-rank-list li{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line-soft)}.bank-page .bank-rank-list li:last-child{border-bottom:0}.bank-page .bank-rank-list a{display:flex;align-items:center;gap:9px;min-width:0;color:var(--text);text-decoration:none}.bank-page .bank-rank-list a:hover{color:var(--brand)}.bank-page .bank-rank-list a>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bank-page .bank-rank-list strong{white-space:nowrap;font-size:var(--font-size-sm)}.bank-page .bank-rank-number{color:var(--text-subtle);font-variant-numeric:tabular-nums}.bank-page .bank-rank-avatar{width:28px;height:28px;flex:0 0 28px}.bank-page .bank-settings-section{padding-bottom:16px}.bank-page .bank-settings-form{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px}.bank-page .bank-settings-form label{display:flex;align-items:center;gap:8px}.bank-admin .bank-admin-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.bank-admin .bank-admin-stats>div{display:grid;gap:5px;padding:16px}.bank-admin .bank-admin-stats strong{font-size:var(--font-size-lg)}.bank-admin .bank-admin-form{max-width:760px}.bank-admin .bank-admin-form>p{margin:0 0 16px;color:var(--text-muted)}.bank-admin .bank-admin-products{overflow:hidden}.bank-admin .bank-admin-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:16px}.bank-admin .bank-admin-product-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px;border:1px solid var(--line-soft);border-radius:10px}.bank-admin .bank-admin-product-form h3,.bank-admin .bank-admin-product-form button,.bank-admin .bank-admin-product-form .bank-admin-check{grid-column:1/-1}.bank-admin .bank-admin-product-form h3{margin:0;font-size:var(--font-size-md)}.bank-admin .bank-admin-product-form label,.bank-admin .bank-admin-adjust label{display:grid;gap:5px;font-size:var(--font-size-sm)}.bank-admin .bank-admin-check{display:flex!important;align-items:center;gap:8px}.bank-admin .bank-admin-list{overflow:hidden}.bank-admin .bank-admin-search{display:flex;flex-wrap:wrap;gap:8px;padding:16px;border-bottom:1px solid var(--line-soft)}.bank-admin .bank-admin-search input{max-width:220px}.bank-admin .bank-admin-table-wrap{overflow-x:auto}.bank-admin .bank-admin-table-wrap small{display:block;color:var(--text-muted);font-size:var(--font-size-xs)}.bank-admin .bank-admin-table-wrap td{vertical-align:middle}.bank-admin .bank-admin-adjust{display:grid;gap:12px}.bank-admin .bank-admin-adjust h2{margin:0;font-size:var(--font-size-lg)}.bank-admin .bank-admin-adjust form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.bank-admin .bank-admin-adjust button{align-self:end}.bank-admin .bank-admin-amount{color:var(--success);white-space:nowrap}.bank-admin .bank-admin-negative{color:var(--danger)}
@media (max-width:760px){.bank-page .bank-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.bank-page .bank-actions,.bank-page .bank-grid,.bank-page .bank-product-grid,.bank-admin .bank-admin-product-grid{grid-template-columns:1fr}.bank-page .bank-page-head,.bank-page .bank-section-head,.bank-admin .bank-admin-section-head{align-items:flex-start;flex-direction:column}.bank-page .bank-fixed-item,.bank-page .bank-settings-form{align-items:flex-start;flex-direction:column}.bank-page .bank-fixed-side{justify-items:start;text-align:left}.bank-admin .bank-admin-stats,.bank-admin .bank-admin-adjust form{grid-template-columns:1fr}.bank-admin .bank-admin-product-form{grid-template-columns:1fr}}
/* conversation */
.conversation-view{display:inline-flex;align-items:center;margin-left:8px;color:var(--text-subtle);font-size:var(--font-size-sm);cursor:pointer;text-decoration:none;line-height:1}
.conversation-view:hover{color:var(--brand)}
.conversation-modal{position:fixed;inset:0;z-index:1000;display:none;align-items:flex-end;justify-content:center;background:var(--backdrop);overscroll-behavior:contain}
.conversation-modal.is-open{display:flex}
.conversation-panel{width:min(100%,420px);max-height:min(75vh,600px);display:flex;flex-direction:column;background:var(--panel);color:var(--text);border-radius:12px 12px 0 0;box-shadow:var(--shadow-medium);animation:conversation-slide-up .18s ease-out}
@keyframes conversation-slide-up{from{transform:translateY(16px);opacity:.6}to{transform:translateY(0);opacity:1}}
.conversation-headbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 16px;border-bottom:1px solid var(--line-soft);font-size:var(--font-size-md);font-weight:600}
.conversation-close{background:none;border:none;color:var(--text-muted);cursor:pointer;font-size:var(--font-size-lg);line-height:1;padding:2px 6px}
.conversation-close:hover{color:var(--text)}
.conversation-list{flex:1;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;padding:4px 16px calc(16px + env(safe-area-inset-bottom,0px))}
.conversation-list::-webkit-scrollbar{width:6px;height:6px}
.conversation-list::-webkit-scrollbar-button{display:none;width:0;height:0}
.conversation-list::-webkit-scrollbar-thumb{background:var(--line);border-radius:3px}
.conversation-list::-webkit-scrollbar-thumb:hover{background:var(--text-muted)}
.conversation-list::-webkit-scrollbar-track{background:transparent}
.conversation-list.is-dragging{cursor:grabbing}
.conversation-list.is-dragging,.conversation-list.is-dragging *{user-select:none;-webkit-user-select:none}
.conversation-item{padding:12px 0;border-bottom:1px solid var(--line-soft)}
.conversation-item.is-anchor{background:var(--brand-soft);margin:4px -8px;padding:12px 8px;border-radius:8px;border-bottom:none}
.conversation-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px;min-width:0}
.conversation-author{display:flex;align-items:center;gap:8px;min-width:0}
.conversation-author .avatar-profile-link{display:block;flex-shrink:0;width:28px;height:28px;border-radius:4px;overflow:hidden}
.conversation-author .avatar-img{width:100%;height:100%;object-fit:cover}
.conversation-username{color:var(--text);font-size:var(--font-size-sm);font-weight:600;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.conversation-username:hover{color:var(--brand)}
.conversation-meta{display:flex;align-items:center;gap:8px;font-size:var(--font-size-xs);color:var(--text-muted)}
.conversation-floor{color:var(--text-subtle);text-decoration:none}
.conversation-floor:hover{color:var(--brand)}
.conversation-content{font-size:var(--font-size-md);color:var(--text);word-break:break-word}
.conversation-loading,.conversation-empty,.conversation-error{padding:16px 0;color:var(--text-muted);font-size:var(--font-size-sm)}
/* cookie-consent */
/* Cookie consent banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    background: var(--panel, #fff);
    border-top: 1px solid var(--line-soft);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    padding: 12px 20px;
    display: none;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: var(--font-size-sm);
    color: var(--text);
}
.cookie-consent-banner.visible {
    display: flex;
}
.cookie-consent-banner .cookie-message {
    flex: 1 1 60%;
    min-width: 200px;
    line-height: 1.5;
}
.cookie-consent-banner .cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.cookie-consent-banner .cookie-btn {
    padding: 6px 18px;
    border: 1px solid var(--brand);
    border-radius: 6px;
    background: var(--brand);
    color: var(--inverse-text);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.cookie-consent-banner .cookie-btn:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
}
.cookie-consent-banner .cookie-btn.secondary {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--line-soft);
}
.cookie-consent-banner .cookie-btn.secondary:hover {
    background: var(--bg);
    color: var(--text);
}
@media (max-width: 640px) {
    .cookie-consent-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .cookie-consent-banner .cookie-actions {
        justify-content: center;
    }
}
/* daily_hot_topics */
.daily-hot-topics-card .daily-hot-topics-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.daily-hot-topics-card .daily-hot-topics-head>span{color:var(--text-subtle);font-size:10px;white-space:nowrap}
.daily-hot-topics-card .daily-hot-topics-list a{align-items:flex-start;padding:7px 0}.daily-hot-topics-card .daily-hot-topics-list a:before{flex:0 0 6px;margin-top:7px}.daily-hot-topics-card .daily-hot-topics-content{display:block;min-width:0;flex:1}.daily-hot-topics-card .daily-hot-topics-title{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.45;text-align:left;white-space:normal}.daily-hot-topics-card .daily-hot-topics-count{display:block;margin-top:2px;color:var(--text-subtle);font-size:10px;line-height:1.3;white-space:nowrap}.daily-hot-topics-card .daily-hot-topics-empty{padding:9px 0;color:var(--text-subtle);font-size:12px}
/* danmaku_react */
.danmaku-react-content-body{position:relative;isolation:isolate;min-height:48px}.danmaku-react-float{position:absolute;z-index:10;top:0;right:0;bottom:0;left:0;overflow:hidden;pointer-events:none}.danmaku-react-float-track{position:absolute;top:12px;display:inline-flex;align-items:center;gap:32px;white-space:nowrap;width:max-content;will-change:transform}.danmaku-react-float-item{display:inline-flex;align-items:center;min-height:28px;padding:3px 14px;border:1px solid var(--line-soft);border-radius:999px;background:var(--panel);box-shadow:0 2px 8px var(--shadow-base);color:var(--text-muted);font-size:var(--font-size-sm);line-height:1.4}.danmaku-react-float-item.danmaku-react-style-color,.danmaku-react-card.danmaku-react-style-color{border-color:var(--brand);background:var(--brand-soft);color:var(--brand-hover)}.danmaku-react-float-item.danmaku-react-style-large,.danmaku-react-card.danmaku-react-style-large .danmaku-react-card-content{font-size:var(--font-size-lg);font-weight:700}.danmaku-react-float-rtl .danmaku-react-float-track{left:100%;animation:danmaku-react-marquee-rtl var(--danmaku-react-float-duration,20s) linear 1 forwards}.danmaku-react-float-ltr .danmaku-react-float-track{right:100%;animation:danmaku-react-marquee-ltr var(--danmaku-react-float-duration,20s) linear 1 forwards}@keyframes danmaku-react-marquee-rtl{to{transform:translateX(-100%)}}@keyframes danmaku-react-marquee-ltr{to{transform:translateX(100%)}}.danmaku-react-cards{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 0}.danmaku-react-card{display:flex;align-items:flex-start;gap:10px;min-width:0;width:fit-content;max-width:100%;padding:12px 14px;border:1px solid var(--line-soft);border-radius:var(--radius);background:var(--panel);color:var(--text)}.danmaku-react-card-avatar{flex:0 0 36px;width:36px;height:36px;border-radius:50%;overflow:hidden;background:var(--bg)}.danmaku-react-card-avatar .avatar-img{width:100%;height:100%;border-radius:inherit}.danmaku-react-card-content{min-width:0;padding-top:7px;overflow-wrap:anywhere;font-size:var(--font-size-sm);line-height:1.5}.danmaku-react-reply-controls{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:8px}.danmaku-react-reply-check{display:inline-flex;align-items:center;gap:6px;margin:0;color:var(--text);font-size:var(--font-size-sm);cursor:pointer}.danmaku-react-quota-tip{color:var(--danger);font-size:var(--font-size-sm);font-weight:600}.danmaku-react-quota-tip[hidden]{display:none}.danmaku-react-reply-style{margin:0;max-width:140px}.danmaku-react-check-list{display:flex;flex-wrap:wrap;gap:8px 14px}.danmaku-react-check{display:inline-flex;align-items:center;gap:5px;color:var(--text);font-size:var(--font-size-sm)}.danmaku-react-admin-row{grid-template-columns:minmax(0,1fr) auto}.danmaku-react-bulk-form{margin:0}.danmaku-react-bulk-toolbar{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--line-soft);background:var(--panel)}.danmaku-react-bulk-selection{display:flex;align-items:center;gap:8px;min-width:0;color:var(--text-muted);font-size:var(--font-size-sm)}.danmaku-react-bulk-select-all{display:inline-flex;align-items:center;gap:6px;color:var(--text);cursor:pointer}.danmaku-react-bulk-form input.danmaku-react-bulk-checkbox,.danmaku-react-bulk-form input[data-danmaku-react-select-all]{box-sizing:border-box;flex:0 0 auto;width:16px;height:16px;margin:0;padding:0;border:1px solid var(--line);border-radius:3px;background:var(--panel);background-image:none;cursor:pointer;appearance:auto;-webkit-appearance:auto;accent-color:var(--brand)}.danmaku-react-bulk-line>input.danmaku-react-bulk-checkbox{box-sizing:border-box;flex:0 0 auto;width:16px;height:16px;margin-top:4px;padding:0;border:1px solid var(--line);border-radius:3px;background:var(--panel);background-image:none;cursor:pointer;appearance:auto;-webkit-appearance:auto;accent-color:var(--brand)}.danmaku-react-bulk-form input.danmaku-react-bulk-checkbox:hover,.danmaku-react-bulk-form input[data-danmaku-react-select-all]:hover,.danmaku-react-bulk-line>input.danmaku-react-bulk-checkbox:hover{border-color:var(--brand)}.danmaku-react-bulk-form input.danmaku-react-bulk-checkbox:focus-visible,.danmaku-react-bulk-form input[data-danmaku-react-select-all]:focus-visible,.danmaku-react-bulk-line>input.danmaku-react-bulk-checkbox:focus-visible{outline:0;box-shadow:0 0 0 3px var(--focus-ring)}.danmaku-react-bulk-count{color:var(--text-subtle);font-size:var(--font-size-xs)}.danmaku-react-bulk-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto;white-space:nowrap}.danmaku-react-bulk-actions button{min-height:30px;padding:0 10px;font-size:var(--font-size-sm)}.danmaku-react-bulk-actions button.danger{border-color:var(--danger);background:var(--danger-soft);color:var(--danger)}.danmaku-react-bulk-actions button:disabled{cursor:not-allowed;opacity:.55}.danmaku-react-bulk-line{align-items:flex-start}@media(max-width:600px){.danmaku-react-admin-row{grid-template-columns:minmax(0,1fr)}.danmaku-react-admin-row .admin-inline-ops{justify-content:flex-start;margin-left:0}.danmaku-react-bulk-toolbar{align-items:stretch;flex-wrap:wrap}.danmaku-react-bulk-actions{width:100%;margin-left:0}.danmaku-react-bulk-actions button{flex:1 1 150px}}@media(prefers-reduced-motion:reduce){.danmaku-react-float-track{animation:none!important}}
.danmaku-react-float-rtl .danmaku-react-float-track{animation:danmaku-react-marquee-rtl-exit var(--danmaku-react-float-duration,20s) linear 1 forwards}.danmaku-react-float-ltr .danmaku-react-float-track{animation:danmaku-react-marquee-ltr-exit var(--danmaku-react-float-duration,20s) linear 1 forwards}@keyframes danmaku-react-marquee-rtl-exit{to{transform:translateX(calc(-100% - 100vw));visibility:hidden}}@keyframes danmaku-react-marquee-ltr-exit{to{transform:translateX(calc(100% + 100vw));visibility:hidden}}.danmaku-react-float[hidden]{display:none}.danmaku-react-card{align-items:center;flex:0 1 auto;gap:6px;width:fit-content;max-width:100%;padding:3px 10px 3px 3px;border-radius:999px}.danmaku-react-card-avatar{display:block;flex:0 0 28px;width:28px;height:28px;min-width:28px;aspect-ratio:1/1;border-radius:50%;overflow:hidden;line-height:0}.danmaku-react-card-avatar>.avatar-profile-link{display:block;width:100%;height:100%;border-radius:50%;overflow:hidden;line-height:0}.danmaku-react-card-avatar .danmaku-react-card-avatar-image{display:block;width:100%;height:100%;max-width:none;margin:0;object-fit:cover;border-radius:50%;vertical-align:top}.danmaku-react-card-content{padding-top:0;font-size:var(--font-size-xs);line-height:1.35}.danmaku-react-reply-styles{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px}.danmaku-react-reply-styles[hidden]{display:none}.danmaku-react-reply-style{display:inline-flex;align-items:center;gap:5px;min-height:30px;margin:0;padding:0 9px;border:1px solid var(--line-soft);border-radius:var(--radius-sm);background:var(--panel);color:var(--text-muted);font-size:var(--font-size-sm);cursor:pointer}.danmaku-react-reply-style input[type=checkbox]{box-sizing:border-box;flex:0 0 15px;width:15px;height:15px;margin:0;padding:0;border:1px solid var(--line);border-radius:3px;background:var(--panel);background-image:none;appearance:auto;-webkit-appearance:auto;accent-color:var(--brand);cursor:pointer}.danmaku-react-reply-style input[type=checkbox]:checked{border-color:var(--brand)}.danmaku-react-reply-style input[type=checkbox]:focus-visible{outline:0;box-shadow:0 0 0 3px var(--focus-ring)}.danmaku-react-reply-style input[type=checkbox]:disabled{cursor:default}.danmaku-react-reply-style:focus-within{border-color:var(--brand)}
/* 仅在实际显示浮动弹幕时为单行正文预留完整的裁切区域。 */
.danmaku-react-content-body:not(.danmaku-react-content-has-float){min-height:0}
/* 后台设置按功能分区，并在窄屏下收束为单列以保证表单可读性。 */
.danmaku-react-admin>form{display:grid;gap:14px}.danmaku-react-settings-section{display:grid;gap:12px;padding:14px;border:1px solid var(--line-soft);border-radius:var(--radius);background:var(--bg)}.danmaku-react-settings-section h3{margin:0;color:var(--text);font-size:var(--font-size-md)}.danmaku-react-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.danmaku-react-settings-field{display:grid;gap:5px;min-width:0}.danmaku-react-settings-field>span{color:var(--text-muted);font-size:var(--font-size-sm)}.danmaku-react-settings-field>input,.danmaku-react-settings-field>select{box-sizing:border-box;width:100%;max-width:none}.danmaku-react-settings-wide{grid-column:1/-1}.danmaku-react-settings-toggle{display:flex;align-items:flex-start;gap:8px;min-width:0;padding:9px 10px;border:1px solid var(--line-soft);border-radius:var(--radius-sm);background:var(--panel);cursor:pointer}.danmaku-react-settings-toggle input{flex:0 0 auto;margin-top:3px}.danmaku-react-settings-toggle span{display:grid;gap:2px;min-width:0}.danmaku-react-settings-toggle strong{font-size:var(--font-size-sm)}.danmaku-react-settings-toggle small{color:var(--text-muted);font-size:var(--font-size-xs);line-height:1.4}.danmaku-react-admin .settings-actions{margin:0}@media(max-width:600px){.danmaku-react-settings-grid{grid-template-columns:1fr}}
/* decoration_center */
/* 装饰中心 */
.dc-page{max-width:760px}
.dc-tabs{display:flex;gap:0;margin-bottom:16px;border-bottom:2px solid var(--line,#dfe6ee)}
.dc-tabs a{padding:8px 16px;font-size:13px;font-weight:500;color:var(--muted,#6b7280);text-decoration:none;border-bottom:2px solid transparent;margin-bottom:-2px;transition:all .15s}
.dc-tabs a:hover{color:var(--text,#1f2937)}
.dc-tabs a.active{color:var(--brand,#2563eb);border-bottom-color:var(--brand,#2563eb)}
.dc-tabs-sub{border-bottom-width:1px;margin-top:-8px}
.dc-tabs-sub a{font-size:12px;padding:6px 12px}
.dc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;margin-bottom:24px}
.dc-card{padding:12px;border:1px solid var(--line,#dfe6ee);border-radius:8px;text-align:center;background:var(--panel,#fff);transition:box-shadow .15s}
.dc-card:hover{box-shadow:0 2px 8px rgba(0,0,0,.06)}
.dc-card img{width:48px;height:48px;object-fit:contain;margin-bottom:6px}
.dc-card .dc-card-name{font-size:12px;font-weight:600;margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dc-card .dc-card-price{font-size:11px;color:var(--muted,#6b7280)}
.dc-card .dc-card-owned{font-size:10px;color:#059669;font-weight:500}
.dc-card-effect-preview{font-size:14px;font-weight:700;padding:8px 4px;margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dc-card-actions{margin-top:8px}
.dc-btn{display:inline-flex;align-items:center;justify-content:center;padding:5px 12px;font-size:12px;border-radius:6px;border:1px solid var(--line,#dfe6ee);background:var(--panel,#fff);color:var(--text,#1f2937);cursor:pointer;font-weight:500;text-decoration:none;transition:all .15s}
.dc-btn:hover{border-color:var(--brand,#2563eb);color:var(--brand,#2563eb)}
.dc-btn-primary{background:var(--brand,#2563eb);color:#fff;border-color:var(--brand,#2563eb)}
.dc-btn-primary:hover{background:var(--brand2,#1d4ed8)}
.dc-btn-sm{padding:3px 8px;font-size:11px}
.dc-equipped-badge{display:inline-block;padding:1px 6px;border-radius:3px;font-size:10px;background:#ecfdf5;color:#059669}

/* 我的装饰 */
.dc-my-list{display:grid;gap:10px}
.dc-my-item{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line2,#edf1f5);border-radius:8px;background:var(--panel,#fff)}
.dc-my-item img{width:36px;height:36px;object-fit:contain}
.dc-my-item .dc-my-info{flex:1;min-width:0}
.dc-my-item .dc-my-name{font-size:13px;font-weight:600}
.dc-my-item .dc-my-meta{font-size:11px;color:var(--muted,#6b7280)}

/* 抽奖 */
.dc-lottery-pools{display:grid;gap:12px;margin-bottom:20px}
.dc-pool-card{padding:16px;border:1px solid var(--line,#dfe6ee);border-radius:10px;background:var(--panel,#fff)}
.dc-pool-card h3{margin:0 0 6px;font-size:15px}
.dc-pool-card p{margin:0 0 10px;font-size:12px;color:var(--muted,#6b7280)}
.dc-pool-actions{display:flex;gap:8px}

/* 抽奖格子 */
.dc-lottery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:8px;margin-bottom:16px}
.dc-lottery-cell{padding:12px 8px;border:2px solid var(--line,#dfe6ee);border-radius:10px;text-align:center;background:var(--panel,#fff);transition:all .15s;cursor:default}
.dc-lottery-cell img{width:40px;height:40px;object-fit:contain;margin-bottom:4px}
.dc-lottery-cell .dc-lg-icon{font-size:24px;margin-bottom:4px}
.dc-lottery-cell .dc-lc-name{font-size:11px;font-weight:600;margin-bottom:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dc-lottery-cell .dc-lc-pct{font-size:10px;color:var(--muted,#6b7280)}
.dc-lottery-cell.dc-lc-active{border-color:var(--brand,#2563eb);background:#eff6ff;box-shadow:0 0 12px rgba(37,99,235,.3);transform:scale(1.05)}

/* 头像框 */
.dc-avatar-frame{position:absolute;top:-35%;left:-35%;width:170%;height:170%;pointer-events:none;z-index:1}
.dc-avatar-frame img{width:100%;height:100%;object-fit:contain}
.avatar-profile-link{overflow:visible!important}
.post-list,.topic-post-list{padding-left:14px!important}

/* 勋章 */
.dc-badge-icon{display:inline-flex;align-items:center;width:16px;height:16px;margin-left:3px;vertical-align:middle}
.dc-badge-icon img{width:100%;height:100%;object-fit:contain}
.nu-item .dc-badge-icon{display:none}

/* 卡片背景 */
.dc-card-bg{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:cover;opacity:.18;pointer-events:none;z-index:0;border-radius:inherit}
.post-item>.post-avatar,.post-item>.post-item-main,.post-item>a,.post-item>div:not(.dc-card-bg){position:relative;z-index:1}

/* 后台 */
.dc-admin-nav{display:flex;gap:8px;margin-bottom:18px;padding-bottom:12px;border-bottom:1px solid var(--line2,#edf1f5)}
.dc-admin-nav a,.dc-admin-nav span{padding:6px 14px;border-radius:6px;font-size:13px;font-weight:500;text-decoration:none;color:var(--muted,#6b7280)}
.dc-admin-nav a:hover{background:#eff6ff;color:var(--brand,#2563eb)}
.dc-admin-nav span{background:var(--brand,#2563eb);color:#fff}
.dc-form{display:grid;gap:12px;max-width:480px}
.dc-form label{display:grid;gap:4px;font-size:13px;font-weight:500}
.dc-form label small{font-weight:400;color:var(--muted,#6b7280)}
.dc-form input,.dc-form select,.dc-form textarea{width:100%;padding:8px 12px;border:1px solid #d6dbe3;border-radius:6px;font:inherit}
.dc-form textarea{min-height:60px;resize:vertical}
.dc-form-submit{display:inline-flex;padding:9px 18px;background:var(--brand,#2563eb);color:#fff;border:0;border-radius:6px;cursor:pointer;font-weight:600}
.dc-form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.dc-item-list{display:grid;gap:8px;margin-bottom:20px}
.dc-item-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line2,#edf1f5);border-radius:6px}
.dc-item-row img{width:32px;height:32px;object-fit:contain}
.dc-item-row .dc-ir-info{flex:1;min-width:0}
.dc-item-row .dc-ir-name{font-size:13px;font-weight:600}
.dc-item-row .dc-ir-meta{font-size:11px;color:var(--muted,#6b7280)}

/* 弹窗 */
.dc-modal-mask{display:none;position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.45);align-items:center;justify-content:center}
.dc-modal-mask.active{display:flex}
.dc-modal{background:#fff;border-radius:12px;padding:24px;width:90%;max-width:460px;max-height:80vh;overflow-y:auto;box-shadow:0 8px 32px rgba(0,0,0,.18)}
.dc-modal h3{margin:0 0 16px;font-size:16px}
.dc-modal-close{position:absolute;top:12px;right:16px;background:none;border:none;font-size:20px;cursor:pointer;color:var(--muted)}

@media(max-width:600px){
.dc-grid{grid-template-columns:repeat(auto-fill,minmax(110px,1fr))}
.dc-form-row{grid-template-columns:1fr}
.dc-lottery-card{width:80px;height:100px}
.dc-modal{width:95%;padding:16px}
}
/* direct_message_limit */
.direct-message-limit-panel .plugin-panel-body{padding:16px}.direct-message-limit-form{display:grid;gap:14px;max-width:520px}.direct-message-limit-form .grid{grid-template-columns:1fr;gap:6px;margin:0}.direct-message-limit-form .grid>span{padding:0;color:var(--text-muted);font-size:13px}.direct-message-limit-form .grid small{display:block;margin-top:3px;color:var(--text-subtle);font-size:12px;line-height:1.5}.direct-message-limit-form input[type=number]{width:180px;max-width:100%}.direct-message-limit-form button{justify-self:start;min-width:112px;margin:0}@media(max-width:600px){.direct-message-limit-panel .plugin-panel-body{padding:12px}.direct-message-limit-form{max-width:none}.direct-message-limit-form input[type=number]{width:100%}.direct-message-limit-form button{width:100%}}
/* direct_messages */
.direct-messages-layout{display:grid;grid-template-columns:280px minmax(0,1fr);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--panel)}.direct-messages-list{min-width:0;border-right:1px solid var(--line);background:var(--bg)}.direct-messages-list-head{display:flex;align-items:baseline;justify-content:space-between;padding:14px 13px 8px}.direct-messages-list-head strong{font-size:var(--font-size-lg)}.direct-messages-list-head span{color:var(--text-muted);font-size:var(--font-size-xs)}.direct-messages-user-search{display:flex;gap:6px;padding:0 10px 10px}.direct-messages-user-search input{min-width:0;width:100%;height:32px}.direct-messages-user-search button{min-height:32px;padding:4px 9px;white-space:nowrap}.direct-messages-conversations{display:grid}.direct-messages-conversation{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px;border-top:1px solid var(--line-soft);color:var(--text)}.direct-messages-conversation:hover,.direct-messages-conversation.is-active{background:var(--brand-soft)}.direct-messages-list-avatar,.direct-messages-list-avatar img,.direct-messages-list-avatar .avatar{display:block;width:38px;height:38px;border-radius:50%}.direct-messages-list-main{display:grid;gap:3px;min-width:0}.direct-messages-list-main>span{display:flex;justify-content:space-between;gap:6px}.direct-messages-list-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.direct-messages-list-main time,.direct-messages-list-main small{color:var(--text-muted);font-size:var(--font-size-xs)}.direct-messages-list-main small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.direct-messages-conversation em{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--danger);color:#fff;font-size:var(--font-size-xs);font-style:normal}.direct-messages-list-empty{padding:22px 12px;color:var(--text-muted);font-size:var(--font-size-sm);text-align:center}.direct-messages-main{display:flex;min-width:0;flex-direction:column;background:var(--panel)}.direct-messages-thread-head{padding:10px 14px;border-bottom:1px solid var(--line)}.direct-messages-thread-head>a:last-child{display:flex;align-items:center;gap:9px;color:var(--text)}.direct-messages-thread-head img,.direct-messages-thread-head .avatar{width:36px;height:36px;border-radius:50%}.direct-messages-thread-head span{display:grid}.direct-messages-thread-head small{color:var(--text-muted);font-size:var(--font-size-xs)}.direct-messages-mobile-back{display:none}.direct-messages-thread{display:block;height:min(62vh,680px);min-height:400px;padding:0 16px;overflow:auto;overscroll-behavior:contain}.direct-messages-message{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;padding:14px 0;border-bottom:1px solid var(--line-soft)}.direct-messages-message:last-child{border-bottom:0}.direct-messages-message.is-mine{border-left:3px solid var(--brand);padding-left:10px}.direct-messages-avatar img,.direct-messages-avatar .avatar{display:block;width:36px;height:36px;border-radius:var(--radius-sm)}.direct-messages-body{min-width:0}.direct-messages-meta{display:flex;align-items:baseline;gap:9px;margin-bottom:5px}.direct-messages-meta strong{font-size:var(--font-size-sm)}.direct-messages-meta time{color:var(--text-subtle);font-size:var(--font-size-xs)}.direct-messages-content{color:var(--text);font-size:var(--font-size-md);line-height:1.75;white-space:normal;overflow-wrap:anywhere}.direct-messages-thread-empty,.direct-messages-welcome{margin:auto;padding:30px;color:var(--text-muted);text-align:center}.direct-messages-thread-empty{display:flex;min-height:400px;align-items:center;justify-content:center}.direct-messages-welcome strong{color:var(--text);font-size:var(--font-size-lg)}.direct-messages-welcome{max-width:420px}.direct-messages-welcome p{line-height:1.7}.direct-messages-paging{display:flex;justify-content:space-between;padding:8px 16px;font-size:var(--font-size-sm);border-top:1px solid var(--line-soft)}.direct-messages-compose{display:grid;gap:7px;padding:12px;border-top:1px solid var(--line);background:var(--bg)}.direct-messages-compose textarea{width:100%;max-width:none;min-height:88px;resize:vertical}.direct-messages-compose>div{display:flex;align-items:center;justify-content:space-between}.direct-messages-compose span{color:var(--text-muted);font-size:var(--font-size-xs)}.direct-messages-compose button{min-width:78px}@media(max-width:720px){.direct-messages-layout{display:block}.direct-messages-list{border-right:0}.direct-messages-layout.has-thread .direct-messages-list{display:none}.direct-messages-layout:not(.has-thread) .direct-messages-main{display:none}.direct-messages-mobile-back{display:inline-flex!important;margin-bottom:8px;color:var(--text-muted)!important;font-size:var(--font-size-sm)}.direct-messages-thread{height:52vh;min-height:320px;padding:0 12px}.direct-messages-message{grid-template-columns:32px minmax(0,1fr);padding:12px 0}.direct-messages-avatar img,.direct-messages-avatar .avatar{width:32px;height:32px}.direct-messages-compose{position:sticky;bottom:0}.direct-messages-user-search input{font-size:16px}}
/* friend_links */
.friend-links-sidebar{display:grid;gap:12px;padding:16px}.friend-links-sidebar .friend-links-sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--text-muted);font-size:var(--font-size-sm)}.friend-links-sidebar .friend-links-sidebar-head a{color:var(--brand);text-decoration:none}.friend-links-sidebar .friend-links-sidebar-head a:hover{text-decoration:underline}.friend-links-sidebar .friend-links-sidebar-empty{color:var(--text-muted);font-size:var(--font-size-sm)}.friend-links-sidebar .friend-links-sidebar-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.friend-links-sidebar .friend-links-sidebar-link{display:block;min-width:0;padding:7px;overflow:hidden;border:1px solid var(--line-soft);border-radius:8px;color:var(--text);font-size:var(--font-size-xs);text-align:center;text-decoration:none;text-overflow:ellipsis;white-space:nowrap}.friend-links-sidebar .friend-links-sidebar-link:hover{border-color:var(--brand);color:var(--brand);background:var(--brand-soft)}.friend-links-gallery-logo,.friend-links-admin-logo{flex:0 0 auto;overflow:hidden;border:1px solid var(--line-soft);border-radius:10px;background:var(--bg);color:var(--text-muted);font-size:var(--font-size-sm);font-weight:700}.friend-links-gallery-logo.friend-links-logo-placeholder,.friend-links-admin-logo.friend-links-logo-placeholder{display:grid;place-items:center;width:48px;height:48px}.friend-links-gallery-card>img.friend-links-gallery-logo{display:block;width:auto;height:auto;max-width:112px;max-height:64px;object-fit:contain}.friend-links-admin-logo{display:block;width:48px;height:48px;object-fit:cover}.friend-links-page,.friend-links-admin{display:grid;gap:16px}.friend-links-page .friend-links-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.friend-links-page .friend-links-page-head h1,.friend-links-apply h2,.friend-links-gallery-section h2,.friend-links-admin-form h2{margin:0}.friend-links-page .friend-links-page-head p,.friend-links-section-head p,.friend-links-apply>p,.friend-links-admin-form>p{margin:6px 0 0;color:var(--text-muted)}.friend-links-gallery-section,.friend-links-admin-section{overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.friend-links-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:16px;border-bottom:1px solid var(--line-soft)}.friend-links-section-head h2{font-size:var(--font-size-lg)}.friend-links-section-head p{font-size:var(--font-size-sm)}.friend-links-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px;padding:16px}.friend-links-gallery-card{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:8px;min-width:0;padding:12px;border:1px solid var(--line-soft);border-radius:10px;color:var(--text);text-decoration:none}.friend-links-gallery-card:hover{border-color:var(--brand);background:var(--brand-soft);box-shadow:var(--shadow-base)}.friend-links-gallery-card>img.friend-links-gallery-logo{grid-column:1;grid-row:1;justify-self:start;max-width:100%;max-height:80px}.friend-links-gallery-logo.friend-links-logo-placeholder{grid-column:1;grid-row:1;justify-self:start}.friend-links-gallery-copy{display:grid;grid-column:1;grid-row:2;gap:3px;min-width:0}.friend-links-gallery-copy strong,.friend-links-gallery-copy small{overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere}.friend-links-gallery-copy small{color:var(--text-muted);font-size:var(--font-size-xs)}.friend-links-gallery-arrow{grid-column:2;grid-row:1 / span 2;align-self:center;margin-left:0;color:var(--text-subtle)}.friend-links-apply{display:grid;gap:16px;max-width:760px}.friend-links-apply form,.friend-links-admin-form form{display:grid;gap:14px}.friend-links-our-url{display:grid;gap:6px;padding:12px;border:1px solid var(--line-soft);border-radius:9px;background:var(--bg)}.friend-links-our-url>span{color:var(--text-muted);font-size:var(--font-size-sm)}.friend-links-our-url code{overflow-wrap:anywhere;color:var(--brand);font-size:var(--font-size-sm)}.friend-links-admin .friend-links-admin-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.friend-links-admin .friend-links-admin-stats>div{display:grid;gap:5px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.friend-links-admin .friend-links-admin-stats span{color:var(--text-muted);font-size:var(--font-size-sm)}.friend-links-admin .friend-links-admin-stats strong{font-size:var(--font-size-xl)}.friend-links-admin .friend-links-admin-form{display:grid;gap:16px;max-width:760px}.friend-links-admin-list{display:grid}.friend-links-admin-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border-bottom:1px solid var(--line-soft)}.friend-links-admin-row:last-child{border-bottom:0}.friend-links-admin-main{display:flex;align-items:center;gap:11px;min-width:0}.friend-links-admin-main>div{display:grid;gap:3px;min-width:0}.friend-links-admin-main strong,.friend-links-admin-main a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.friend-links-admin-main span{color:var(--text-muted);font-size:var(--font-size-sm)}.friend-links-admin-main a{color:var(--brand);font-size:var(--font-size-sm)}.friend-links-admin-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.friend-links-admin-actions form{margin:0}.friend-links-admin-actions button{margin:0;font-size:var(--font-size-sm)}.friend-links-empty{padding:20px 16px;color:var(--text-muted);text-align:center}
.friend-links-page .friend-links-apply-action{flex:0 0 auto;padding:8px 12px;border-radius:8px;background:var(--brand);color:var(--inverse-text);font-size:var(--font-size-sm);text-decoration:none}.friend-links-page .friend-links-apply-action:hover{filter:brightness(.96)}.friend-links-gallery-filter{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.friend-links-gallery-filter label{display:grid;flex:1 1 190px;gap:6px;min-width:0}.friend-links-gallery-filter label>span{color:var(--text-muted);font-size:var(--font-size-sm)}.friend-links-gallery-filter button{margin:0}.friend-links-gallery-badges{display:flex;flex-wrap:wrap;gap:5px;margin-top:3px}.friend-links-gallery-badges>span,.friend-links-application-result-status{display:inline-flex;align-items:center;width:max-content;padding:2px 6px;border-radius:99px;background:var(--bg);color:var(--text-muted);font-size:var(--font-size-xs);line-height:1.3}.friend-links-gallery-badges .friend-links-gallery-featured{background:var(--brand-soft);color:var(--brand)}.friend-links-gallery-badges .friend-links-gallery-new{background:var(--warning-soft);color:var(--warning)}.friend-links-our-url>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.friend-links-our-url>div>span,.friend-links-copy-status{color:var(--text-muted);font-size:var(--font-size-sm)}.friend-links-copy-button{margin:0;padding:4px 8px;font-size:var(--font-size-xs)}.friend-links-honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.friend-links-application-result{display:grid;gap:12px;max-width:620px}.friend-links-application-result h1,.friend-links-application-result p{margin:0}.friend-links-application-result p{font-size:var(--font-size-lg)}.friend-links-application-result small{color:var(--text-muted)}.friend-links-application-result .friend-links-application-result-success{background:var(--success-soft);color:var(--success)}.friend-links-application-result .friend-links-application-result-failed{background:var(--warning-soft);color:var(--warning)}.friend-links-application-result-actions{display:flex;gap:8px;margin-top:4px}.friend-links-application-result-actions a{display:inline-flex;padding:8px 12px;border-radius:8px;background:var(--brand);color:var(--inverse-text);font-size:var(--font-size-sm);text-decoration:none}.friend-links-admin-main small{color:var(--text-muted);font-size:var(--font-size-xs);overflow-wrap:anywhere}.friend-links-admin .friend-links-admin-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:760px){.friend-links-sidebar .friend-links-sidebar-grid{grid-template-columns:1fr}.friend-links-gallery{grid-template-columns:1fr}.friend-links-page .friend-links-page-head,.friend-links-section-head{align-items:flex-start;flex-direction:column}.friend-links-admin-row{align-items:flex-start;flex-direction:column}.friend-links-admin-actions{justify-content:flex-start}.friend-links-gallery-filter{align-items:stretch;flex-direction:column}.friend-links-gallery-filter label{width:100%}.friend-links-gallery-filter button{width:100%}.friend-links-page .friend-links-apply-action{width:100%;text-align:center}.friend-links-admin .friend-links-admin-stats{grid-template-columns:1fr}}
/* gacha */
/* ====== 称号徽章 ====== */
.gacha-title-badge{display:inline-flex;align-items:center;gap:3px;padding:1px 6px;border:1px solid var(--gacha-border);border-radius:var(--radius-sm);background:var(--gacha-bg);color:var(--gacha-color);font-size:10px;line-height:1.5;vertical-align:middle;white-space:nowrap;pointer-events:none}
.gacha-sidebar-title{display:flex;margin-top:4px}
.gacha-sidebar-title .gacha-title-badge{font-size:10px;padding:2px 6px}
.post-list>.post-item:not(.post-entry) .gacha-title-badge,.topic-post-list .gacha-title-badge{border:1px solid var(--gacha-border);background:var(--gacha-bg);color:var(--gacha-color)}
.topic-post-list .gacha-title-badge{justify-content:flex-start}
.gacha-title-icon{font-size:11px;line-height:1}
.gacha-title-name{font-weight:600}
.gacha-title-rarity{margin-left:1px;padding:0 3px;border-radius:2px;background:var(--gacha-color);color:#fff;font-size:9px;font-weight:700;line-height:1.4}
.gacha-title-ur{box-shadow:0 2px 8px rgba(139,92,246,.3)}
.gacha-title-ur .gacha-title-rarity{background:rgba(255,255,255,.24);color:#fff}

/* ====== 称号系统主页 ====== */
.gacha-breadcrumb{display:inline-flex;align-items:center;gap:7px;min-height:30px;margin:0 0 10px;padding:0 10px;border:1px solid var(--line-soft);border-radius:var(--radius-sm);background:var(--bg);color:var(--text-muted);font-size:var(--font-size-sm);line-height:1}
.gacha-breadcrumb a{color:var(--text-muted);text-decoration:none;transition:color .15s ease}
.gacha-breadcrumb a:hover{color:var(--brand)}
.gacha-breadcrumb-separator{color:var(--text-subtle);font-size:17px;font-weight:400}
.gacha-breadcrumb-current{color:var(--text);font-weight:650}
.gacha-header{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 4px;flex-wrap:wrap;gap:10px}
.gacha-header-title{font-size:var(--font-size-xl);font-weight:700;color:var(--text)}
.gacha-header-actions{display:flex;align-items:center;gap:10px;color:var(--text-muted);font-size:var(--font-size-xs)}
.gacha-history-link{padding:5px 10px;border:1px solid var(--line);border-radius:20px;background:var(--bg);color:var(--text-muted);font-size:var(--font-size-xs);font-weight:600;text-decoration:none;transition:all .12s ease}
.gacha-history-link:hover{border-color:var(--brand);background:var(--brand-soft);color:var(--brand)}
.gacha-actions{display:flex;justify-content:center;align-items:center;gap:10px;padding:10px 16px 4px;flex-wrap:wrap}
.gacha-sub-stats{text-align:center;font-size:var(--font-size-xs);color:var(--text-muted);padding:2px 16px 10px}
.gacha-sub-stats strong{color:var(--text);font-weight:600}
.gacha-sub-stats-sep{padding:0 8px;color:var(--line-soft)}
.gacha-pity-progress{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;padding:0 16px 14px;color:var(--text-muted);font-size:var(--font-size-xs)}
.gacha-pity-progress b{color:var(--brand);font-weight:700}
.gacha-pity-progress i{color:var(--line);font-style:normal}

.gacha-pull-btn{min-height:44px;padding:0 24px;border:2px solid var(--brand);border-radius:10px;background:linear-gradient(135deg,var(--brand),var(--info));color:var(--inverse-text);font-size:var(--font-size-md);font-weight:700;cursor:pointer;transition:all .15s ease}
.gacha-pull-btn:hover{filter:brightness(1.1);box-shadow:0 4px 14px rgba(37,99,235,.25)}
.gacha-pull-btn:disabled{border-color:var(--line-soft);background:var(--line-soft);color:var(--text-disabled);cursor:not-allowed;filter:none;box-shadow:none}
.gacha-pull-10{background:linear-gradient(135deg,#f59e0b,#ef4444);border-color:#f59e0b}
.gacha-pull-free{background:linear-gradient(135deg,#10b981,#06b6d4);border-color:#10b981}

/* ====== 称号池 ====== */
.gacha-pool-section,.gacha-all-titles{padding:0 16px 16px}
.gacha-pool-section h3,.gacha-all-titles h3{margin:0 0 10px;font-size:var(--font-size-md);color:var(--text)}
.gacha-pool-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(95px,1fr));gap:8px}
.gacha-pool-rarity{padding:12px;border:1px solid var(--gacha-border);border-radius:var(--radius-sm);background:var(--gacha-bg);text-align:center}
.gacha-pool-rarity-label{font-size:var(--font-size-md);font-weight:700;color:var(--gacha-color)}
.gacha-pool-rarity-count{margin-top:2px;font-size:var(--font-size-xs);color:var(--text-muted)}
.gacha-pool-rarity-rate{margin-top:4px;font-size:var(--font-size-lg);font-weight:700;color:var(--gacha-color)}
.gacha-pool-rarity-ur{box-shadow:0 4px 14px rgba(139,92,246,.25)}
.gacha-pool-rarity-ur .gacha-pool-rarity-label,.gacha-pool-rarity-ur .gacha-pool-rarity-rate{color:#fff}
.gacha-pool-rarity-ur .gacha-pool-rarity-count{color:rgba(255,255,255,.84)}
.gacha-rules{margin:0 16px 16px;padding:10px 12px;border:1px solid var(--line-soft);border-radius:var(--radius-sm);background:var(--bg);color:var(--text-muted);font-size:var(--font-size-xs)}
.gacha-rules summary{cursor:pointer;color:var(--text);font-weight:700}
.gacha-rules ul{margin:8px 0 0;padding-left:18px;line-height:1.7}

/* ====== 全部称号 ====== */
.gacha-all-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:6px}
.gacha-all-item{display:flex;flex-direction:column;align-items:center;gap:5px;padding:8px}
.gacha-all-item .gacha-title-badge{font-size:var(--font-size-xs);padding:3px 10px}
.gacha-all-item small{color:var(--text-subtle);font-size:10px}

/* ====== 抽卡结果 ====== */
.gacha-result{padding:16px;text-align:center}
.gacha-result h2{margin:0 0 20px;font-size:var(--font-size-xl);color:var(--text)}
.gacha-result-card{display:inline-flex;flex-direction:column;align-items:center;gap:8px;padding:30px 40px;border:2px solid var(--gacha-border);border-radius:16px;background:var(--gacha-bg);animation:gacha-card-pop .3s ease both}
@keyframes gacha-card-pop{from{transform:scale(.8);opacity:0}to{transform:scale(1);opacity:1}}
.gacha-result-ssr{animation:gacha-card-glow 1s ease infinite alternate}
@keyframes gacha-card-glow{from{box-shadow:0 0 20px rgba(245,158,11,.3)}to{box-shadow:0 0 40px rgba(245,158,11,.6)}}
.gacha-result-ur{animation:gacha-card-pop .3s ease both,gacha-ur-glow 1.2s ease-in-out .3s infinite alternate}
@keyframes gacha-ur-glow{from{box-shadow:0 0 18px rgba(236,72,153,.45),0 0 30px rgba(6,182,212,.25)}to{box-shadow:0 0 34px rgba(236,72,153,.7),0 0 52px rgba(139,92,246,.5)}}
.gacha-result-rarity{font-size:var(--font-size-lg);font-weight:700;color:var(--gacha-color)}
.gacha-result-icon{font-size:48px;line-height:1}
.gacha-result-name{font-size:var(--font-size-xl);font-weight:700;color:var(--text)}
.gacha-result-ur .gacha-result-rarity,.gacha-result-ur .gacha-result-name{color:#fff}
.gacha-result-ur .gacha-result-desc{color:rgba(255,255,255,.88)}
.gacha-result-ur .gacha-result-duration{background:rgba(255,255,255,.2);color:#fff}
.gacha-result-new{display:inline-block;padding:2px 12px;border-radius:20px;background:linear-gradient(135deg,#ef4444,#f59e0b);color:#fff;font-size:var(--font-size-xs);font-weight:700;animation:gacha-new-pulse 1s ease infinite alternate}
.gacha-result-pity{padding:3px 10px;border-radius:20px;background:var(--brand-soft);color:var(--brand);font-size:var(--font-size-xs);font-weight:700}
@keyframes gacha-new-pulse{from{transform:scale(1)}to{transform:scale(1.1)}}
.gacha-result-desc{margin-top:4px;color:var(--text-muted);font-size:var(--font-size-sm)}
.gacha-result-actions{display:flex;gap:10px;justify-content:center;margin-top:20px}

/* ====== 十连抽 ====== */
.gacha-pull-10-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;max-width:600px;margin:0 auto}
.gacha-pull-10-item{display:flex;flex-direction:column;align-items:center;gap:4px;padding:14px 8px;border:1px solid var(--gacha-border);border-radius:10px;background:var(--gacha-bg);position:relative;animation:gacha-card-pop .3s ease both}
.gacha-pull-10-item:nth-child(1){animation-delay:0s}
.gacha-pull-10-item:nth-child(2){animation-delay:.1s}
.gacha-pull-10-item:nth-child(3){animation-delay:.2s}
.gacha-pull-10-item:nth-child(4){animation-delay:.3s}
.gacha-pull-10-item:nth-child(5){animation-delay:.4s}
.gacha-pull-10-item:nth-child(6){animation-delay:.5s}
.gacha-pull-10-item:nth-child(7){animation-delay:.6s}
.gacha-pull-10-item:nth-child(8){animation-delay:.7s}
.gacha-pull-10-item:nth-child(9){animation-delay:.8s}
.gacha-pull-10-item:nth-child(10){animation-delay:.9s}
.gacha-pull-10-icon{font-size:28px;line-height:1}
.gacha-pull-10-name{font-size:var(--font-size-xs);font-weight:600;color:var(--text);text-align:center}
.gacha-pull-10-rarity{font-size:10px;font-weight:700;color:var(--gacha-color)}
.gacha-pull-10-pity{padding:1px 5px;border-radius:8px;background:var(--brand-soft);color:var(--brand);font-size:9px;font-weight:700}
.gacha-pull-10-new{position:absolute;top:-6px;right:-6px;padding:1px 6px;border-radius:10px;background:linear-gradient(135deg,#ef4444,#f59e0b);color:#fff;font-size:9px;font-weight:700;animation:gacha-new-pulse 1s ease infinite alternate}
.gacha-pull-10-ur{box-shadow:0 3px 10px rgba(139,92,246,.32)}
.gacha-pull-10-ur .gacha-pull-10-name,.gacha-pull-10-ur .gacha-pull-10-rarity,.gacha-pull-10-ur .gacha-pull-10-expiry{color:#fff}

/* ====== 个人主页称号 ====== */
.gacha-profile-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:10px 16px}
.gacha-profile-item{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 10px;border:1px solid var(--line-soft);border-radius:var(--radius-md);background:var(--panel);text-align:center;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;min-width:0}
.gacha-profile-item.is-equipped{border-color:var(--brand-soft);background:var(--brand-soft)}
.gacha-profile-item.is-expired{opacity:.62;background:var(--line-soft)}
.gacha-profile-item.is-expired .gacha-title-badge{filter:grayscale(.6)}
.gacha-profile-badge{display:flex;justify-content:center;min-height:30px;align-items:center}
.gacha-profile-badge .gacha-title-badge{font-size:var(--font-size-sm);padding:4px 12px;pointer-events:auto;font-size:12px;transition:transform .18s ease,box-shadow .18s ease}
.gacha-profile-info{display:flex;flex-direction:column;gap:4px;min-width:0;width:100%}
.gacha-profile-desc{font-size:var(--font-size-xs);color:var(--text-muted);line-height:1.5;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.gacha-profile-meta{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;align-items:center;font-size:10px;color:var(--text-subtle)}
.gacha-status-tag{padding:1px 8px;border-radius:10px;font-size:10px;font-weight:600;line-height:1.6}
.gacha-status-permanent{background:var(--success-soft);color:var(--success)}
.gacha-status-active{background:var(--brand-soft);color:var(--brand)}
.gacha-status-expired{background:var(--danger-soft);color:var(--danger)}
.gacha-status-retired{background:var(--line-soft);color:var(--text-muted)}
.gacha-profile-action{display:flex;align-items:center;justify-content:center;gap:8px;min-height:28px}
.gacha-expired-label{color:var(--danger);font-size:var(--font-size-xs);font-weight:600}
.gacha-equip-btn{padding:5px 18px;border:1px solid var(--brand);border-radius:var(--radius-sm);background:var(--brand);color:var(--inverse-text);font-size:var(--font-size-xs);cursor:pointer;transition:all .12s ease}
.gacha-equip-btn:hover{background:var(--brand-hover)}
.gacha-equipped-label{color:var(--success);font-size:var(--font-size-xs);font-weight:600}
.gacha-gift-btn{min-height:28px;padding:5px 12px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--bg);color:var(--text-muted);font-size:var(--font-size-xs);font-weight:600;cursor:pointer}
.gacha-gift-btn:hover{border-color:var(--brand);background:var(--brand-soft);color:var(--brand)}
/* ====== 抽卡记录 ====== */
.gacha-history{padding:0 16px 16px}
.gacha-history .gacha-header{padding-left:0;padding-right:0}
.gacha-history-list{border:1px solid var(--line-soft);border-radius:var(--radius-sm);overflow:hidden;background:var(--panel)}
.gacha-history-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border-bottom:1px solid var(--line-soft)}
.gacha-history-item:last-child{border-bottom:0}
.gacha-history-item>div{display:flex;align-items:center;gap:7px;min-width:0}
.gacha-history-item small{color:var(--text-subtle);font-size:var(--font-size-xs)}
.gacha-history-item time{flex:0 0 auto;color:var(--text-subtle);font-size:var(--font-size-xs)}
.gacha-history-empty{color:var(--text-muted);font-size:var(--font-size-sm)}

/* ====== 管理后台 ====== */
.gacha-settings{max-width:none}
.gacha-settings-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));align-items:stretch;gap:12px}
.gacha-settings-field{display:flex;flex-direction:column;justify-content:flex-start;gap:10px;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--bg)}
.gacha-settings-field-title{color:var(--text);font-size:var(--font-size-xs);font-weight:700}
.gacha-settings-field .grid{display:grid;align-content:start;gap:5px;min-width:0}
.gacha-settings-field input:not([type=checkbox]),.gacha-settings-field select{width:100%;max-width:none}
.gacha-settings-field input[type=checkbox]{width:38px;max-width:38px;height:22px}
.gacha-settings-actions{display:flex;gap:8px;margin-top:14px}
.gacha-settings .gacha-settings-actions button{margin:0}
.gacha-admin-form{max-width:400px}
.gacha-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
.gacha-modal-actions .button{min-height:36px;padding:0 18px;border:1px solid var(--line-soft);border-radius:8px;background:var(--bg);color:var(--text-muted);font-size:var(--font-size-sm);font-weight:600;cursor:pointer;transition:all .12s ease}
.gacha-modal-actions .button:hover{border-color:var(--brand-soft);color:var(--brand)}
.gacha-modal-actions #gachaModalSubmit{min-height:36px;padding:0 20px;border:1px solid var(--brand);border-radius:8px;background:var(--brand);color:var(--inverse-text);font-size:var(--font-size-sm);font-weight:600;cursor:pointer;transition:all .12s ease}
.gacha-modal-actions #gachaModalSubmit:hover{background:var(--brand-hover);border-color:var(--brand-hover)}
.gacha-modal-actions #gachaGiftSubmit,.gacha-modal-actions #gachaAdminGiftSubmit{min-height:36px;padding:0 20px;border:1px solid var(--brand);border-radius:8px;background:var(--brand);color:var(--inverse-text);font-size:var(--font-size-sm);font-weight:600;cursor:pointer}
.gacha-gift-title{margin-bottom:12px;color:var(--text-muted);font-size:var(--font-size-sm)}
.gacha-gift-title strong{color:var(--text)}
.gacha-admin-retired{opacity:.65}
.gacha-admin-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}
.gacha-admin-stat-grid>div{display:flex;flex-direction:column;gap:3px;padding:11px;border:1px solid var(--line-soft);border-radius:var(--radius-sm);background:var(--bg)}
.gacha-admin-stat-grid small{color:var(--text-muted);font-size:var(--font-size-xs)}
.gacha-admin-stat-grid b{color:var(--text);font-size:var(--font-size-xl)}
.gacha-admin-recent{margin-top:14px}
.gacha-admin-recent>strong{display:block;margin-bottom:6px;font-size:var(--font-size-sm)}
.gacha-admin-recent ul{margin:0;padding:0;list-style:none}
.gacha-admin-recent li{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;padding:7px 0;border-top:1px solid var(--line-soft);font-size:var(--font-size-xs)}
.gacha-admin-recent em{font-style:normal;color:var(--text-muted)}
.gacha-admin-recent time{color:var(--text-subtle)}

/* ====== 个人主页称号 Tab ====== */
.post-list > .empty-state:first-child:last-child{display:none}

/* ====== 称号时效 ====== */
.gacha-result-duration{margin-top:14px;padding:6px 14px;border-radius:20px;background:var(--line-soft);color:var(--text-muted);font-size:var(--font-size-sm)}
.gacha-expired-label{color:var(--danger);font-size:var(--font-size-xs);font-weight:600}
.gacha-pull-10-expiry{margin-top:2px;font-size:9px;color:var(--text-subtle)}

/* ====== 喜报（参考游戏中心样式） ====== */
.gacha-good-news{display:flex;align-items:center;gap:8px;margin:0 16px 12px;padding:8px 12px;border:1px solid var(--line-soft);border-radius:8px;background:var(--bg);overflow:hidden}
.gacha-good-news-label{flex:0 0 auto;padding:2px 8px;border-radius:4px;background:var(--danger-soft);color:var(--danger);font-size:var(--font-size-xs);font-weight:700;white-space:nowrap}
.gacha-good-news-viewport{flex:1;overflow:hidden;min-width:0}
.gacha-good-news-track{display:flex;gap:48px;width:max-content;animation:gacha-news-scroll 40s linear infinite}
.gacha-good-news:hover .gacha-good-news-track{animation-play-state:paused}
.gacha-good-news-item{display:inline-flex;align-items:center;gap:0;font-size:var(--font-size-sm);color:var(--text-muted);white-space:nowrap}
.gacha-good-news-item b{color:var(--text);font-weight:600}
.gacha-good-news-item em{font-style:normal;color:var(--danger);font-weight:600}
@keyframes gacha-news-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ====== 横幅广告 ====== */
.gacha-profile-toolbar{padding:10px 16px 0}
.gacha-banner{display:flex;flex-direction:row;align-items:center;gap:0;padding:0 14px;height:70px;border:1px solid rgba(251,191,36,.35);border-radius:var(--radius-sm);background:linear-gradient(135deg,#fff7ed,#fef3c7 50%,#fde68a);box-shadow:0 2px 10px rgba(251,191,36,.12);text-decoration:none;transition:all .2s ease;cursor:pointer;box-sizing:border-box}
.gacha-banner-icon{flex:0 0 auto;font-size:28px;line-height:1;margin-right:12px}
.gacha-banner .gacha-profile-info{flex:1 1 auto;min-width:0;align-items:flex-start;gap:2px;width:auto}
.gacha-banner-title{font-size:var(--font-size-sm);font-weight:600;color:var(--text)}
.gacha-banner-sub{font-size:var(--font-size-xs);color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.gacha-banner .gacha-profile-action{flex:0 0 auto;margin-left:12px}
.gacha-banner-cta{display:inline-block;padding:5px 18px;border:1px solid var(--brand);border-radius:20px;background:var(--brand);color:var(--inverse-text);font-size:var(--font-size-xs);font-weight:600;white-space:nowrap;transition:all .12s ease}
.gacha-banner:hover .gacha-banner-cta{background:var(--brand-hover);border-color:var(--brand-hover);box-shadow:0 2px 8px rgba(37,99,235,.2)}

/* ====== 响应式 ====== */
@media(hover:hover){
    .gacha-profile-item:not(.is-expired):hover{transform:translateY(-4px);border-color:var(--brand);box-shadow:0 10px 22px rgba(15,23,42,.12)}
    .gacha-profile-item.is-equipped:hover{background:linear-gradient(135deg,var(--brand-soft),var(--panel))}
    .gacha-profile-item:not(.is-expired):hover .gacha-profile-badge .gacha-title-badge{transform:scale(1.04);box-shadow:0 3px 9px rgba(15,23,42,.12)}
}
@media(max-width:600px){

    .gacha-profile-grid{grid-template-columns:repeat(2,1fr)}
    .gacha-pull-btn{padding:0 15px;font-size:var(--font-size-sm)}
    .gacha-admin-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .gacha-history-item{align-items:flex-start;flex-direction:column;gap:4px}
    .gacha-admin-recent li{grid-template-columns:1fr auto}
    .gacha-admin-recent em{grid-column:1/2}
}
@media(max-width:720px){
    .gacha-settings-fields{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
    .gacha-result-card,.gacha-pull-10-item,.gacha-result-ssr,.gacha-result-ur,.gacha-result-new,.gacha-pull-10-new,.gacha-good-news-track{animation:none!important}
    .gacha-profile-item,.gacha-profile-badge .gacha-title-badge{transition:none!important}
    .gacha-profile-item:hover,.gacha-profile-item:hover .gacha-profile-badge .gacha-title-badge{transform:none!important}
}
/* guest_notice */
.guest-notice-bar{background:var(--brand-soft);color:var(--brand);font-size:var(--font-size-sm);text-align:center;padding:8px 16px;line-height:1.5}.guest-notice-bar .guest-notice-link{color:inherit;font-weight:600;margin-left:10px;text-decoration:underline}
/* ip_history */
.ip-history-search{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ip-history-search input{min-width:min(360px,70vw)}
.ip-history-rule-row{grid-template-columns:minmax(0,1fr) auto}
.ip-history-rule-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ip-history-rule-pattern,.ip-history-ip{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}
.ip-history-ip-list{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}
.ip-history-ip{padding:2px 7px;border:1px solid var(--line);border-radius:999px;background:var(--bg);color:var(--text-muted);font-size:11px}
.ip-history-user-row,.ip-history-detail-row{grid-template-columns:minmax(0,1fr)}
.ip-history-detail-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ip-history-help{margin:0;color:var(--text-muted);font-size:12px;line-height:1.7}
@media (max-width:760px){.ip-history-rule-row{grid-template-columns:minmax(0,1fr)}.ip-history-rule-row>.admin-inline-ops{justify-content:flex-start}}
.post-meta.ip-history-location-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.ip-history-location-separator{color:var(--text-subtle);font-size:11px}.ip-history-location-subtitle{display:inline-flex;min-width:0;max-width:100%;overflow:hidden;color:var(--text-subtle);font-size:11px;font-weight:400;line-height:1.25;overflow-wrap:anywhere;text-overflow:ellipsis}.topic-post-list .post-meta.ip-history-location-meta{display:flex}.ip-history-recent-card .quick-wrap{display:grid;gap:7px}.ip-history-recent-list{display:grid;gap:0;margin:0;padding:0;list-style:none}.ip-history-recent-item{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:10px;padding:6px 0}.ip-history-recent-ip{min-width:0;overflow:hidden;color:var(--text);font-family:var(--font-mono);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.ip-history-recent-time{flex:0 0 auto;color:var(--text-muted);font-size:11px}.ip-history-recent-empty{margin:0;color:var(--text-muted);font-size:12px}.ip-history-location-settings{max-width:none}
/* leaderboard */
.leaderboard-header{padding:20px 20px 14px}
.leaderboard-title{margin:0;font-size:var(--font-size-xl);font-weight:700;color:var(--text);line-height:1.3}
.leaderboard-subtitle{margin:4px 0 0;font-size:var(--font-size-sm);color:var(--text-subtle)}
.leaderboard-tabs{display:inline-flex;align-items:center;gap:4px;padding:4px;margin:0 20px 16px;background:var(--bg);border:1px solid var(--line-soft);border-radius:10px}
.leaderboard-tab{padding:7px 16px;border-radius:7px;font-size:var(--font-size-sm);font-weight:600;color:var(--text-muted);text-decoration:none;transition:all .2s ease;white-space:nowrap}
.leaderboard-tab:hover{color:var(--brand)}
.leaderboard-tab.active{background:var(--brand);color:var(--inverse-text);box-shadow:var(--shadow-base)}
.leaderboard-podium{display:flex;justify-content:center;align-items:flex-end;gap:12px;padding:0 20px 20px}
.leaderboard-podium-col{display:flex;flex-direction:column;align-items:center;flex:0 1 200px;min-width:0;text-decoration:none}
.leaderboard-podium-col-1{flex-basis:220px}
.leaderboard-podium-col-2{flex-basis:190px}
.leaderboard-podium-col-3{flex-basis:170px}
.leaderboard-podium-profile{display:flex;flex-direction:column;align-items:center;gap:6px;padding:16px 12px 12px;border-radius:16px 16px 0 0;width:100%;text-decoration:none;transition:all .2s ease;position:relative}
.leaderboard-podium-col-1 .leaderboard-podium-profile{background:linear-gradient(180deg,#fffbeb,#fef3c7);padding-top:24px}
.leaderboard-podium-col-2 .leaderboard-podium-profile{background:linear-gradient(180deg,#f8fafc,#f1f5f9);padding-top:16px}
.leaderboard-podium-col-3 .leaderboard-podium-profile{background:linear-gradient(180deg,#fff7ed,#fed7aa);padding-top:12px}
.leaderboard-podium-profile:hover{filter:brightness(.97)}
.leaderboard-podium-avatar{flex:0 0 56px;width:56px;height:56px;border-radius:50%;overflow:hidden;border:3px solid var(--line);display:block}
.leaderboard-podium-col-1 .leaderboard-podium-avatar{border-color:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.2);flex:0 0 64px;width:64px;height:64px}
.leaderboard-podium-col-2 .leaderboard-podium-avatar{border-color:#94a3b8;box-shadow:0 0 0 4px rgba(148,163,184,.2);flex:0 0 52px;width:52px;height:52px}
.leaderboard-podium-col-3 .leaderboard-podium-avatar{border-color:#d97706;box-shadow:0 0 0 4px rgba(217,119,6,.15);flex:0 0 48px;width:48px;height:48px}
.leaderboard-podium-avatar .avatar-img{width:100%;height:100%}
.leaderboard-podium-name{font-size:var(--font-size-sm);font-weight:700;color:var(--text);line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;display:block;text-align:center}
.leaderboard-podium-col-1 .leaderboard-podium-name{font-size:var(--font-size-lg);color:#92400e}
.leaderboard-podium-col-2 .leaderboard-podium-name{color:#334155}
.leaderboard-podium-col-3 .leaderboard-podium-name{color:#78350f}
.leaderboard-podium-group{color:var(--text-subtle);font-size:10px;line-height:1.2;display:block;text-align:center}
.leaderboard-podium-count{font-size:var(--font-size-sm);font-weight:700;white-space:nowrap;line-height:1;padding:5px 14px;border-radius:999px;display:inline-block}
.leaderboard-podium-col-1 .leaderboard-podium-count{background:linear-gradient(135deg,#f59e0b,#ef4444);color:#fff;box-shadow:0 2px 8px rgba(245,158,11,.35);font-size:var(--font-size-md)}
.leaderboard-podium-col-2 .leaderboard-podium-count{background:linear-gradient(135deg,#94a3b8,#64748b);color:#fff;box-shadow:0 2px 8px rgba(100,116,139,.25)}
.leaderboard-podium-col-3 .leaderboard-podium-count{background:linear-gradient(135deg,#d97706,#b45309);color:#fff;box-shadow:0 2px 8px rgba(180,83,9,.25)}
.leaderboard-podium-step{display:flex;align-items:center;justify-content:center;width:100%;font-size:var(--font-size-sm);font-weight:800;color:rgba(255,255,255,.8)}
.leaderboard-podium-col-1 .leaderboard-podium-step{height:60px;background:linear-gradient(135deg,#f59e0b,#ef4444);font-size:var(--font-size-lg)}
.leaderboard-podium-col-2 .leaderboard-podium-step{height:44px;background:linear-gradient(135deg,#94a3b8,#64748b)}
.leaderboard-podium-col-3 .leaderboard-podium-step{height:32px;background:linear-gradient(135deg,#d97706,#b45309)}
.leaderboard-list{display:grid;gap:6px;padding:0 20px 20px}
.leaderboard-item{display:flex;align-items:center;gap:12px;padding:11px 14px;border:1px solid transparent;border-radius:10px;background:var(--bg);text-decoration:none;transition:all .2s ease}
.leaderboard-item:hover{background:var(--panel);border-color:var(--brand-soft);box-shadow:var(--shadow-medium)}
.leaderboard-rank-badge{flex:0 0 30px;width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:8px;font-size:var(--font-size-sm);font-weight:700;line-height:1;transition:all .2s ease}
.leaderboard-rank-1{background:linear-gradient(135deg,#f59e0b,#ef4444);color:#fff;box-shadow:0 2px 8px rgba(245,158,11,.35)}
.leaderboard-rank-2{background:linear-gradient(135deg,#94a3b8,#64748b);color:#fff;box-shadow:0 2px 8px rgba(100,116,139,.25)}
.leaderboard-rank-3{background:linear-gradient(135deg,#d97706,#b45309);color:#fff;box-shadow:0 2px 8px rgba(180,83,9,.25)}
.leaderboard-rank-other{background:var(--bg);color:var(--text-muted);font-size:var(--font-size-xs)}
.leaderboard-avatar{flex:0 0 36px;width:36px;height:36px;border-radius:50%;overflow:hidden}
.leaderboard-avatar .avatar-img{width:36px;height:36px}
.leaderboard-body{min-width:0;flex:1;display:grid;gap:2px}
.leaderboard-name{font-size:var(--font-size-md);font-weight:600;color:var(--text);line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.leaderboard-item:hover .leaderboard-name{color:var(--brand)}
.leaderboard-group{color:var(--text-subtle);font-size:10px;line-height:1.3}
.leaderboard-count{flex:0 0 auto;padding:6px 12px;border-radius:8px;font-size:var(--font-size-sm);font-weight:700;white-space:nowrap;line-height:1;min-height:32px;background:var(--brand-soft);color:var(--brand)}
.leaderboard-empty{padding:40px 20px;text-align:center;color:var(--text-subtle);font-size:var(--font-size-sm)}
.leaderboard-card .leaderboard-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.leaderboard-card .leaderboard-card-more{color:var(--text-subtle);font-size:var(--font-size-xs);white-space:nowrap;text-decoration:none}
.leaderboard-card .leaderboard-card-more:hover{color:var(--brand)}
.leaderboard-card .leaderboard-card-list .leaderboard-item{padding:6px 0;border:0;border-radius:0;background:transparent;gap:8px;min-height:44px}
.leaderboard-card .leaderboard-card-list .leaderboard-item:before{display:none}
.leaderboard-card .leaderboard-card-list .leaderboard-item:hover{background:transparent}
.leaderboard-card .leaderboard-card-list .leaderboard-rank-badge{flex:0 0 18px;width:18px;height:18px;border-radius:5px;font-size:11px}
.leaderboard-card .leaderboard-card-list .leaderboard-rank-1,.leaderboard-card .leaderboard-card-list .leaderboard-rank-2,.leaderboard-card .leaderboard-card-list .leaderboard-rank-3{background:var(--brand-soft);color:var(--brand);box-shadow:none}
.leaderboard-card .leaderboard-card-list .leaderboard-avatar{flex:0 0 28px;width:28px;height:28px}
.leaderboard-card .leaderboard-card-list .leaderboard-avatar .avatar-img{width:28px;height:28px}
.leaderboard-card .leaderboard-card-list .leaderboard-name{font-size:var(--font-size-sm)}
.leaderboard-card .leaderboard-card-list .leaderboard-count{padding:3px 8px;font-size:11px;min-height:auto;border-radius:5px}
.leaderboard-card .leaderboard-card-list .leaderboard-group{display:none}
@media(max-width:600px){
.leaderboard-header{padding:14px 14px 12px}
.leaderboard-title{font-size:var(--font-size-lg)}
.leaderboard-tabs{padding:4px;margin:0 14px 12px}
.leaderboard-tab{padding:6px 12px;font-size:12px}
.leaderboard-podium{gap:8px;padding:0 10px 14px}
.leaderboard-podium-col{flex-basis:1px;flex:1}
.leaderboard-podium-col-1 .leaderboard-podium-profile{padding-top:16px}
.leaderboard-podium-col-2 .leaderboard-podium-profile{padding-top:10px}
.leaderboard-podium-col-3 .leaderboard-podium-profile{padding-top:8px}
.leaderboard-podium-avatar{flex:0 0 40px;width:40px;height:40px;border-width:2px}
.leaderboard-podium-col-1 .leaderboard-podium-avatar{flex:0 0 48px;width:48px;height:48px;border-width:3px}
.leaderboard-podium-col-2 .leaderboard-podium-avatar{flex:0 0 38px;width:38px;height:38px}
.leaderboard-podium-col-3 .leaderboard-podium-avatar{flex:0 0 34px;width:34px;height:34px}
.leaderboard-podium-name{font-size:12px}
.leaderboard-podium-col-1 .leaderboard-podium-name{font-size:var(--font-size-sm)}
.leaderboard-podium-count{font-size:11px;padding:3px 10px}
.leaderboard-podium-col-1 .leaderboard-podium-count{font-size:12px}
.leaderboard-podium-col-1 .leaderboard-podium-step{height:44px;font-size:var(--font-size-md)}
.leaderboard-podium-col-2 .leaderboard-podium-step{height:34px}
.leaderboard-podium-col-3 .leaderboard-podium-step{height:26px}
.leaderboard-list{gap:5px;padding:0 10px 16px}
.leaderboard-item{padding:10px 12px;gap:10px}
.leaderboard-rank-badge{flex:0 0 26px;width:26px;height:26px;font-size:12px}
.leaderboard-name{font-size:var(--font-size-sm)}
.leaderboard-count{padding:5px 10px;font-size:12px;min-height:28px}
}
/* like_coin */
.like-coin-form{display:inline-flex}.like-coin-form .like-coin-action{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:2px;width:auto;min-width:24px;height:24px;min-height:24px;margin:0;padding:0 3px;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--text-muted);font-size:11px;font-weight:500;line-height:1;opacity:.55}.like-coin-form .like-coin-action:hover{background:var(--line-soft);color:var(--brand);opacity:1}.like-coin-form .like-coin-action.active{color:var(--brand);opacity:1}.like-coin-icon{width:14px;height:14px;flex:0 0 14px}.like-coin-icon path{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}.like-coin-action.active .like-coin-icon path{fill:currentColor}.like-coin-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.post-head:has(.like-coin-form){padding-right:104px}.topic-post-list .post-head.has-floor:has(.like-coin-form){padding-right:140px}.like-coin-gate-unlocked-note{display:flex;align-items:center;gap:6px;margin:0 0 8px;color:var(--text-subtle);font-size:var(--font-size-sm);line-height:1.45}.like-coin-gate-unlocked-note:before{content:"点赞投币";padding:2px 5px;border:1px solid var(--line-soft);border-radius:3px;background:var(--bg);color:var(--brand);font-size:10px;font-weight:700;line-height:1.25}.like-coin-dialog{display:grid;gap:14px}.like-coin-dialog p{margin:0;color:var(--text);font-size:var(--font-size-lg);line-height:1.65}.like-coin-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.like-coin-option{display:flex;align-items:center;gap:8px;min-width:0;padding:10px 12px;border:1px solid var(--line-soft);border-radius:var(--radius-sm);background:var(--bg);color:var(--text);font-size:var(--font-size-md)}.like-coin-option input{width:18px;height:18px;flex:0 0 18px;margin:0;accent-color:var(--brand)}.like-coin-option span{min-width:0;overflow-wrap:anywhere}.like-coin-dialog-actions{display:flex;justify-content:flex-end;gap:8px}.like-coin-dialog-actions button{margin:0}@media(max-width:560px){.post-head:has(.like-coin-form){padding-right:110px}.topic-post-list .post-head.has-floor:has(.like-coin-form){padding-right:146px}.like-coin-options{grid-template-columns:1fr}}
/* mint_theme */
:root{--mint-theme-brand:#2980b9;--mint-theme-brand-hover:#1f6f9e;--mint-theme-brand-soft:#e5f2f9;--mint-theme-focus-ring:rgba(41,128,185,.28);--mint-theme-canvas:#f6f2ea;--mint-theme-panel:#ffffff;--mint-theme-line:#d9d5cd;--mint-theme-line-soft:#ebe7df;--mint-theme-text:#15191c;--mint-theme-muted:#687078;--mint-theme-subtle:#92979c;--mint-theme-disabled:#b7babd;--mint-theme-inverse:#14191d;--mint-theme-inverse-border:#2980b9;--mint-theme-inverse-text:#ffffff;--mint-theme-shadow-base:rgba(30,45,58,.05);--mint-theme-shadow-medium:rgba(30,45,58,.12);--bg:var(--mint-theme-canvas);--panel:var(--mint-theme-panel);--line:var(--mint-theme-line);--line-soft:var(--mint-theme-line-soft);--text:var(--mint-theme-text);--text-muted:var(--mint-theme-muted);--text-subtle:var(--mint-theme-subtle);--text-disabled:var(--mint-theme-disabled);--brand:var(--mint-theme-brand);--brand-hover:var(--mint-theme-brand-hover);--brand-soft:var(--mint-theme-brand-soft);--success:var(--mint-theme-brand-hover);--success-soft:var(--mint-theme-brand-soft);--focus-ring:var(--mint-theme-focus-ring);--inverse:var(--mint-theme-inverse);--inverse-border:var(--mint-theme-inverse-border);--inverse-text:var(--mint-theme-inverse-text);--shadow-base:var(--mint-theme-shadow-base);--shadow-medium:var(--mint-theme-shadow-medium);--radius:8px;--radius-sm:5px}
html[data-mint-theme-mode="dark"]{color-scheme:dark;--mint-theme-brand:#2980b9;--mint-theme-brand-hover:#5aa9d6;--mint-theme-brand-soft:#163a52;--mint-theme-focus-ring:rgba(41,128,185,.34);--mint-theme-canvas:#1e1e1e;--mint-theme-panel:#272727;--mint-theme-line:#3d3d3d;--mint-theme-line-soft:#323232;--mint-theme-text:#f2f2f2;--mint-theme-muted:#b8b8b8;--mint-theme-subtle:#898989;--mint-theme-disabled:#5f5f5f;--mint-theme-inverse:#f4f4f4;--mint-theme-inverse-border:#dadada;--mint-theme-inverse-text:#ffffff;--mint-theme-shadow-base:rgba(0,0,0,.16);--mint-theme-shadow-medium:rgba(0,0,0,.3)}
@media (prefers-color-scheme:dark){html:not([data-mint-theme-mode]){color-scheme:dark;--mint-theme-brand:#2980b9;--mint-theme-brand-hover:#5aa9d6;--mint-theme-brand-soft:#163a52;--mint-theme-focus-ring:rgba(41,128,185,.34);--mint-theme-canvas:#1e1e1e;--mint-theme-panel:#272727;--mint-theme-line:#3d3d3d;--mint-theme-line-soft:#323232;--mint-theme-text:#f2f2f2;--mint-theme-muted:#b8b8b8;--mint-theme-subtle:#898989;--mint-theme-disabled:#5f5f5f;--mint-theme-inverse:#f4f4f4;--mint-theme-inverse-border:#dadada;--mint-theme-inverse-text:#ffffff;--mint-theme-shadow-base:rgba(0,0,0,.16);--mint-theme-shadow-medium:rgba(0,0,0,.3)}}
.mint-theme-root{position:relative;z-index:90;grid-column:4;grid-row:1;justify-self:end}.mint-theme-root .mint-theme-controls{position:relative;right:auto;bottom:auto;display:block}.mint-theme-root .mint-theme-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:1}.mint-theme-root .mint-theme-menu[hidden]{display:none}.mint-theme-root .mint-theme-mode-option{display:flex;align-items:center;gap:8px;min-height:34px;padding:0 9px;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--text);font:inherit;font-size:var(--font-size-sm);font-weight:600;line-height:1;cursor:pointer;text-align:left}.mint-theme-root .mint-theme-mode-option:hover{background:var(--brand-soft);color:var(--brand)}.mint-theme-root .mint-theme-mode-option[aria-pressed="true"]{background:var(--brand);color:var(--inverse-text)}.mint-theme-root .mint-theme-mode-option span{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;font-size:var(--font-size-md)}.mint-theme-root .mint-theme-toggle{display:inline-flex;align-items:center;gap:7px;min-height:30px;padding:0 10px;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);color:var(--text);font:inherit;font-size:var(--font-size-sm);font-weight:650;line-height:1;box-shadow:0 2px 8px var(--shadow-base);cursor:pointer;transition:transform var(--transition-normal),border-color var(--transition-normal),background var(--transition-normal),color var(--transition-normal),box-shadow var(--transition-normal)}.mint-theme-root .mint-theme-toggle:hover{border-color:var(--brand);background:var(--brand-soft);color:var(--brand);box-shadow:0 6px 16px var(--shadow-medium);transform:none}.mint-theme-root .mint-theme-toggle:focus-visible,.mint-theme-root .mint-theme-mode-option:focus-visible{outline:0;box-shadow:0 0 0 3px var(--focus-ring)}.mint-theme-root .mint-theme-toggle-sun,.mint-theme-root .mint-theme-toggle-moon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;font-size:var(--font-size-lg);line-height:1}.mint-theme-root .mint-theme-toggle-moon{display:none}.mint-theme-root .mint-theme-toggle[data-mint-theme-mode="dark"] .mint-theme-toggle-sun{display:none}.mint-theme-root .mint-theme-toggle[data-mint-theme-mode="dark"] .mint-theme-toggle-moon{display:inline-flex}.mint-theme-admin{display:grid;gap:16px;max-width:720px}.mint-theme-admin .mint-theme-admin-intro{display:flex;align-items:flex-start;gap:14px;padding:18px;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);box-shadow:0 8px 22px var(--shadow-base)}.mint-theme-admin .mint-theme-admin-intro h2{margin:0;color:var(--text);font-size:var(--font-size-xl)}.mint-theme-admin .mint-theme-admin-intro p{margin:5px 0 0;color:var(--text-muted);line-height:1.65}.mint-theme-admin .mint-theme-admin-swatch{display:block;flex:0 0 38px;width:38px;height:38px;border:7px solid var(--panel);border-radius:var(--radius);background:var(--brand);outline:1px solid var(--line)}.mint-theme-admin .mint-theme-admin-form{display:grid;gap:16px;margin:0}.mint-theme-admin .mint-theme-admin-check{display:flex;align-items:center;gap:8px;color:var(--text);font-size:var(--font-size-md)}.mint-theme-admin .mint-theme-admin-check input{width:38px;height:22px}@media (max-width:720px){.mint-theme-root{flex:0 0 auto;grid-column:auto;grid-row:auto}.mint-theme-root .mint-theme-toggle{width:30px;min-height:30px;padding:0;justify-content:center;box-shadow:0 1px 4px var(--shadow-base)}.mint-theme-root .mint-theme-toggle-label{display:none}.mint-theme-root .mint-theme-toggle-sun,.mint-theme-root .mint-theme-toggle-moon{width:16px;height:16px;font-size:var(--font-size-md)}.mint-theme-root .mint-theme-menu{top:calc(100% + 6px)}.mint-theme-admin .mint-theme-admin-intro{padding:15px}}@media (prefers-reduced-motion:reduce){.mint-theme-root .mint-theme-toggle{transition:none}}
.mint-theme-root .mint-theme-menu{display:grid;min-width:132px;padding:4px;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);box-shadow:0 12px 30px var(--shadow-medium)}
@media (max-width:720px){.mint-theme-root .mint-theme-menu{grid-template-columns:repeat(3,30px);min-width:0;padding:3px;gap:2px}.mint-theme-root .mint-theme-mode-option{justify-content:center;width:30px;min-height:30px;padding:0;font-size:0}.mint-theme-root .mint-theme-mode-option span{width:16px;height:16px;font-size:var(--font-size-md)}}
/* nb_editor */
.nb-editor-field{position:relative;display:grid;row-gap:0;margin:8px 0}
.reply-panel .nb-editor-field{margin:0}
.nb-editor-field>.grid{display:contents}
.nb-editor-field>.grid>span{order:1;margin-bottom:6px;padding-top:0}
.nb-editor-field>.nb-editor{order:2}
/* 正文框固定白底，和主题色工具栏拉开层次；高度仍交给核心按场景决定。 */
.nb-editor-field>.grid>textarea[name=body]{order:3;border-top:0;border-radius:0 0 var(--radius-sm) var(--radius-sm);background:var(--panel);resize:vertical}
/* 分栏预览：左边写 Markdown，右边常驻渲染结果，随输入更新。 */
.nb-editor-field.nb-editor-live{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.nb-editor-field.nb-editor-live>.grid>span,.nb-editor-field.nb-editor-live>.nb-editor{grid-column:1/-1}
.nb-editor-field.nb-editor-live>.grid>textarea[name=body]{grid-column:1;border-bottom-right-radius:0}
.nb-editor-field.nb-editor-live>.nb-editor-preview{grid-column:2;max-height:60vh;overflow:auto;border-left:0;border-bottom-left-radius:0}
.nb-editor{min-width:0}
/* 工具栏跟随站点主题色，不写死中性灰。 */
.nb-editor-bar{display:flex;align-items:center;flex-wrap:wrap;gap:2px;padding:4px 6px;border:1px solid var(--line);border-bottom:0;border-radius:var(--radius-sm) var(--radius-sm) 0 0;background:var(--brand-soft)}
.nb-editor-field:focus-within>.nb-editor>.nb-editor-bar{border-color:var(--brand)}
/* 选择器带上根容器，避免被 .reply-panel button 之类的核心规则按特异性压过。 */
.nb-editor .nb-editor-btn{display:inline-flex;align-items:center;justify-content:center;width:30px;min-width:30px;min-height:28px;height:28px;padding:0;border:1px solid transparent;border-radius:var(--radius-sm);background:transparent;color:var(--brand-hover);cursor:pointer}
.nb-editor .nb-editor-btn svg{width:16px;height:16px}
.nb-editor .nb-editor-btn:hover{border-color:var(--line);background:var(--panel);color:var(--brand-hover)}
.nb-editor .nb-editor-btn:focus-visible{outline:2px solid var(--focus-ring);outline-offset:1px}
.nb-editor .nb-editor-btn.nb-editor-btn-active{border-color:var(--brand);background:var(--panel);color:var(--brand-hover)}
.nb-editor-split{width:1px;height:16px;margin:0 4px;background:var(--line)}
.nb-editor-space{flex:1 1 auto;min-width:0}
/* 面板用 fixed 浮层：既不挤占正文框空间，也不会被祖先的 overflow:hidden 裁掉。位置由 JS 计算，优先向上弹。 */
.nb-editor-panel{position:fixed;z-index:60;display:flex;flex-direction:column;width:min(360px,100%);max-height:min(60vh,340px);border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);box-shadow:0 12px 32px var(--shadow-medium);overflow:hidden}
.nb-editor-panel[hidden]{display:none}
.nb-editor-panel-title{flex:0 0 auto;padding:8px 12px 0;color:var(--text-subtle);font-size:var(--font-size-xs);line-height:1.4}
.nb-editor-items{flex:1 1 auto;min-height:0;display:flex;align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:3px;margin:0;padding:8px 10px;overflow-y:auto;list-style:none}
.nb-editor-items[hidden]{display:none}
.nb-editor-items li{padding:4px 7px;border-radius:var(--radius-sm);color:var(--text);font-size:var(--font-size-sm);line-height:1.4;cursor:pointer;user-select:none}
.nb-editor-items li:hover{background:var(--bg)}
.nb-editor-items-emoji li{padding:2px 5px;font-size:var(--font-size-xl)}
.nb-editor-tabs{flex:0 0 auto;display:flex;align-items:stretch;flex-wrap:wrap;border-top:1px solid var(--line);background:var(--brand-soft)}
.nb-editor .nb-editor-tab{min-width:0;min-height:34px;padding:0 12px;border:0;border-radius:0;background:transparent;color:var(--text-muted);font-size:var(--font-size-sm);font-weight:400;cursor:pointer}
.nb-editor .nb-editor-tab:hover{background:var(--panel);color:var(--text)}
.nb-editor .nb-editor-tab.nb-editor-tab-active{background:var(--panel);color:var(--brand-hover);font-weight:500}
/* 预览框借用核心 .post-content 的排版，但要去掉它的 margin-top，否则与正文框差 2px。 */
.nb-editor-preview{order:4;margin-top:0;min-height:120px;padding:12px 14px;border:1px solid var(--line);border-top:0;border-radius:0 0 var(--radius-sm) var(--radius-sm);background:var(--panel)}
.nb-editor-preview[hidden]{display:none}
.nb-editor-preview-empty{color:var(--text-subtle);font-size:var(--font-size-sm)}
.nb-editor-draft{order:2;display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:7px 10px;border:1px solid var(--line);border-top:0;background:var(--info-soft);color:var(--text-muted);font-size:var(--font-size-sm);line-height:1.5}
.nb-editor-draft[hidden]{display:none}
.nb-editor-draft-text{flex:1 1 auto;min-width:0}
.nb-editor-status{order:2;padding:6px 10px;border:1px solid var(--line);border-top:0;background:var(--brand-soft);color:var(--text-muted);font-size:var(--font-size-sm);line-height:1.5;overflow-wrap:anywhere}
.nb-editor-status[hidden]{display:none}
.nb-editor-draft .nb-editor-draft-action{min-width:0;min-height:26px;padding:0 10px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel);color:var(--text);font-size:var(--font-size-sm);font-weight:500;cursor:pointer}
.nb-editor-draft .nb-editor-draft-action:hover{border-color:var(--brand);color:var(--brand-hover)}
/* 与核心 .post-content ul 的缩进保持一致，否则有序列表会多缩进一截。 */
.nb-editor-ol{margin:4px 0 8px 18px;padding:0}
.nb-editor-field.nb-editor-full{position:fixed;inset:0;z-index:60;align-content:start;margin:0;padding:14px;background:var(--panel);overflow:auto}
.nb-editor-field.nb-editor-full>.grid>textarea[name=body]{min-height:calc(100vh - 120px)}
.nb-editor-field.nb-editor-full>.nb-editor-preview{min-height:calc(100vh - 120px)}
.nb-editor-field.nb-editor-full.nb-editor-live>.nb-editor-preview{max-height:none}
.nb-editor-dialog-field{display:grid;gap:5px;color:var(--text-muted);font-size:var(--font-size-sm)}
.nb-editor-dialog-field .prompt-input{box-sizing:border-box}
.nb-editor-upload{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:-4px 0 0}
.nb-editor-upload .nb-editor-upload-pick{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:0 12px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel);color:var(--text);font-size:var(--font-size-sm);font-weight:500;white-space:normal;cursor:pointer}
.nb-editor-upload .nb-editor-upload-pick:hover{border-color:var(--brand);color:var(--brand-hover)}
.nb-editor-upload .nb-editor-upload-pick.is-busy{opacity:.6;pointer-events:none}
.nb-editor-upload-status{flex:1 1 auto;min-width:0;color:var(--text-muted);font-size:var(--font-size-sm);overflow-wrap:anywhere}
/* 窄屏放不下两栏，预览改到正文框下方，仍然实时更新。 */
@media(max-width:820px){
.nb-editor-field.nb-editor-live{grid-template-columns:minmax(0,1fr)}
.nb-editor-field.nb-editor-live>.grid>textarea[name=body]{grid-column:1;border-radius:0}
.nb-editor-field.nb-editor-live>.nb-editor-preview{grid-column:1;max-height:50vh;border-left:1px solid var(--line);border-radius:0 0 var(--radius-sm) var(--radius-sm)}
}
@media(max-width:480px){
.nb-editor-bar{gap:1px;padding:4px}
.nb-editor .nb-editor-btn{width:28px;min-width:28px}
.nb-editor-split{margin:0 2px}
}
/* neo_premium */
.neo-premium-badge {
    display: inline-block;
    margin-left: 6px;
    font-weight: 700;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #a29bfe, #ff6b6b);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: neoPremiumShine 3s linear infinite;
font-size: var(--font-size-sm);
}
.neo-super-badge {
    display: inline-block;
    margin-left: 6px;
    font-weight: 700;
    background: linear-gradient(90deg, #ffd700, #ffaa00, #ffd700, #ffcc00, #ffd700);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: neoSuperShine 3s linear infinite;
    font-size: var(--font-size-sm);
}
@keyframes neoPremiumShine {
0% { background-position: 0% 50%; }
100% { background-position: 300% 50%; }
}
@keyframes neoSuperShine {
0% { background-position: 0% 50%; }
100% { background-position: 300% 50%; }
}
.neo-status-bar {
    display: flex;
    gap: 16px;
    margin: 12px 0 20px;
    flex-wrap: wrap;
}
.neo-status-item {
    background: var(--panel, );
    border: 1px solid var(--line-soft, );
    border-radius: var(--radius, 6px);
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    min-width: 120px;
}
.neo-status-label {
    font-size: var(--font-size-xs);
    color: var(--text-muted, );
    margin-bottom: 2px;
}
.neo-status-value {
    font-weight: 600;
    font-size: var(--font-size-md);
    color: var(--text, );
}
.neo-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 12px;
}
.neo-product-card {
    border: 1px solid var(--line-soft, );
    border-radius: var(--radius, 6px);
    padding: 16px;
    background: var(--panel, );
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: box-shadow var(--transition-normal, .2s ease), transform var(--transition-normal, .2s ease);
}
.neo-product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.neo-product-header {
    font-weight: 600;
    font-size: var(--font-size-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.neo-product-desc {
    font-size: var(--font-size-sm);
    color: var(--text-muted, );
    line-height: 1.4;
}
.neo-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}
.neo-product-price {
    font-weight: 700;
    color: var(--brand, );
    font-size: var(--font-size-md);
}
.neo-product-duration {
    font-size: var(--font-size-xs);
    color: var(--text-muted, );
    background: var(--bg, );
    padding: 2px 8px;
    border-radius: 12px;
}
.neo-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: var(--font-size-xxs);
    font-weight: 600;
    vertical-align: middle;
    white-space: nowrap;
}
.neo-tag-premium {
    background: var(--text-muted, );
    color: ;
}
.neo-tag-super {
    background: var(--warning, );
    color: ;
}
.neo-btn {
    width: 100%;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius, 6px);
    background: var(--brand, );
    color: ;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--transition-normal, .2s ease);
}
.neo-btn:hover:not(:disabled) {
    opacity: 0.9;
}
.neo-btn:disabled, .neo-btn-disabled {
    background: var(--line-soft, );
    color: var(--text-muted, );
    cursor: not-allowed;
}
.neo-btn-sm {
    padding: 4px 10px;
    border: none;
    border-radius: var(--radius, 6px);
    background: var(--brand, );
    color: ;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: opacity var(--transition-normal, .2s ease);
}
.neo-btn-sm:hover:not(:disabled) {
    opacity: 0.9;
}
.neo-btn-danger {
    background: var(--danger, );
}
.neo-btn-link {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius, 6px);
    background: var(--bg, );
    color: var(--text, );
    font-size: var(--font-size-sm);
    text-decoration: none;
    transition: background var(--transition-normal, .2s ease);
}
.neo-btn-link:hover {
    background: var(--line-soft, );
}
.neo-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}
.neo-search-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.neo-search-input {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid var(--line-soft, );
    border-radius: var(--radius, 6px);
    font-size: var(--font-size-md);
}
.neo-input-sm {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid var(--line-soft, );
    border-radius: var(--radius, 6px);
    font-size: var(--font-size-sm);
}
.neo-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius, 6px);
    border: 1px solid var(--line-soft, );
}
.neo-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}
.neo-table thead {
    background: var(--bg, );
}
.neo-table th, .neo-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line-soft, );
    font-size: var(--font-size-md);
}
.neo-table th {
    font-weight: 600;
    color: var(--text-muted, );
    white-space: nowrap;
}
.neo-table tbody tr:hover {
    background: var(--panel, );
}
.neo-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: var(--font-size-xs);
    font-weight: 500;
    background: var(--bg, );
    color: var(--text-muted, );
    white-space: nowrap;
}
.neo-badge-perm {
    background: var(--brand-soft, );
    color: var(--brand, );
}
.neo-badge-none {
    background: var(--danger-soft, );
    color: var(--danger, );
}
.neo-badge-premium {
    background: var(--info-soft, );
    color: var(--info, );
}
.neo-badge-super {
    background: var(--warning-soft, );
    color: var(--warning, );
}
.neo-actions {
    white-space: nowrap;
}
.neo-empty {
    color: var(--text-muted, );
    text-align: center;
    padding: 24px;
    font-size: var(--font-size-md);
}
.neo-product-form .neo-form-grid {
    margin-bottom: 16px;
}
.neo-membership-page,
.neo-shop-page {
    display: grid;
    gap: 16px;
}
.neo-membership-head,
.neo-shop-head,
.neo-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.neo-membership-head h1,
.neo-shop-head h1,
.neo-section-head h2 {
    margin: 0;
}
.neo-membership-head p,
.neo-shop-head p,
.neo-section-head > span {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}
.neo-membership-summary,
.neo-admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.neo-admin-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.neo-summary-card,
.neo-admin-stats > div,
.neo-membership-section {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}
.neo-summary-card,
.neo-admin-stats > div {
    display: grid;
    gap: 6px;
    padding: 16px;
}
.neo-summary-card > span,
.neo-admin-stats span {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}
.neo-summary-card strong,
.neo-admin-stats strong {
    overflow-wrap: anywhere;
    font-size: var(--font-size-lg);
}
.neo-summary-premium {
    border-color: var(--info);
}
.neo-summary-super {
    border-color: var(--warning);
}
.neo-membership-section {
    overflow: hidden;
}
.neo-membership-section > .neo-empty,
.neo-membership-section > .neo-table-wrap,
.neo-membership-section > .neo-activity-list {
    margin: 0 16px 16px;
}
.neo-section-head {
    align-items: baseline;
    padding: 16px;
    border-bottom: 1px solid var(--line-soft);
}
.neo-section-head > span {
    margin: 0;
}
.neo-benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
}
.neo-benefit-grid article {
    padding: 16px;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: var(--bg);
}
.neo-benefit-grid h3 {
    margin: 0;
    font-size: var(--font-size-lg);
}
.neo-benefit-grid p {
    margin: 8px 0;
    color: var(--text-muted);
}
.neo-benefit-grid ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 20px;
    font-size: var(--font-size-sm);
}
.neo-benefit-grid .neo-benefit-super {
    border-color: var(--warning);
}
.neo-activity-list {
    display: grid;
}
.neo-activity-item {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
}
.neo-activity-item:last-child {
    border-bottom: 0;
}
.neo-activity-item > div {
    display: grid;
    gap: 4px;
}
.neo-activity-item span,
.neo-activity-item time {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}
.neo-product-shortfall {
    color: var(--warning);
    font-size: var(--font-size-sm);
}
@media (prefers-reduced-motion: reduce) {
    .neo-premium-badge,
    .neo-super-badge,
    .neo-product-card {
        animation: none;
        transition: none;
    }
}
@media (max-width: 768px) {
    .neo-search-form {
        flex-direction: column;
        align-items: stretch;
    }
    .neo-search-form button,
    .neo-search-form .neo-btn-link {
        width: 100%;
        text-align: center;
    }
    .neo-search-input {
        min-width: auto;
        width: 100%;
    }
    .neo-table {
        min-width: 0;
        display: block;
    }
    .neo-table thead {
        display: none;
    }
    .neo-table tbody,
    .neo-table tr,
    .neo-table td {
        display: block;
        width: 100%;
    }
    .neo-table tr {
        margin-bottom: 12px;
        border: 1px solid var(--line-soft, #ddd);
        border-radius: var(--radius, 6px);
        padding: 10px;
        background: var(--panel, #fff);
    }
    .neo-table td {
        border: none;
        padding: 6px 0;
        text-align: left;
        position: relative;
        padding-left: 5.5em;
    }
    .neo-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        top: 6px;
        font-weight: 600;
        color: var(--text-muted, #888);
        font-size: var(--font-size-xs);
        white-space: nowrap;
    }
    .neo-actions {
        white-space: normal;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .neo-actions form,
    .neo-actions .neo-btn-link {
        display: inline-flex;
        flex: 1 1 auto;
    }
    .neo-actions button,
    .neo-actions .neo-btn-link {
        flex: 1 1 auto;
        justify-content: center;
    }
    .neo-form-grid {
        grid-template-columns: 1fr;
    }
    .neo-membership-summary,
    .neo-admin-stats,
    .neo-benefit-grid {
        grid-template-columns: 1fr;
    }
    .neo-membership-head,
    .neo-shop-head,
    .neo-section-head,
    .neo-activity-item {
        align-items: flex-start;
        flex-direction: column;
    }
    .neo-status-bar {
        flex-direction: column;
        gap: 8px;
    }
    .neo-status-item {
        min-width: auto;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .neo-input-sm {
        width: 80px;
    }
}
/* online_users */
.online-users-boot{display:none}.online-users-host{position:relative;overflow:visible}.online-users-dot{position:absolute;right:-1px;bottom:-1px;width:10px;height:10px;border:2px solid var(--panel);border-radius:50%;background:var(--success);pointer-events:none}.user-avatar-big.online-users-host .online-users-dot{width:12px;height:12px}.online-users-wrap{padding:10px 14px 12px}.online-users-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.online-users-title{color:var(--text);font-size:var(--font-size-sm);font-weight:600}.online-users-count{flex:0 0 auto;padding:1px 8px;border-radius:999px;background:var(--success-soft);color:var(--success);font-size:var(--font-size-xs);font-weight:600;line-height:1.6;white-space:nowrap}.online-users-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 6px}.online-users-item{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0}.online-users-item:hover .online-users-name{color:var(--brand)}.online-users-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:36px;height:36px;border-radius:50%;background:var(--bg)}.online-users-name{max-width:44px;overflow:hidden;color:var(--text-muted);font-size:var(--font-size-xs);text-align:center;text-overflow:ellipsis;white-space:nowrap}.online-users-more{margin-top:8px;color:var(--text-subtle);font-size:var(--font-size-xs)}.online-users-empty{color:var(--text-subtle);font-size:var(--font-size-xs)}
/* performance */
.performance-panel .performance-status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}
.performance-panel .performance-status-card{display:grid;gap:4px;padding:11px 12px;border:1px solid var(--line-soft);border-radius:7px;background:var(--bg)}
.performance-panel .performance-status-card span{color:var(--text-subtle);font-size:11px}
.performance-panel .performance-status-card strong{overflow-wrap:anywhere;font-size:15px}
.performance-panel .performance-status-card strong.is-ok{color:var(--success)}
.performance-panel .performance-status-card strong.is-off{color:var(--text-muted)}
@supports(content-visibility:auto){.performance-render-root .topic-post-list>.post-entry:nth-child(n+4){content-visibility:auto;contain-intrinsic-size:auto 280px}}
/* points_rewards */
.points-rewards-settings{max-width:none;gap:18px}.points-rewards-settings-section{display:grid;gap:10px}.points-rewards-settings-section-head{display:grid;gap:3px}.points-rewards-settings-section-head strong{color:var(--text);font-size:var(--font-size-md)}.points-rewards-settings-section-head span{color:var(--text-subtle);font-size:var(--font-size-sm);line-height:1.4}.points-rewards-settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));align-items:stretch;gap:12px}.points-rewards-setting-card{display:flex;flex-direction:column;justify-content:flex-start;gap:10px;min-width:0;padding:14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--bg)}.points-rewards-setting-card-wide{grid-column:span 2}.points-rewards-setting-card-title{color:var(--text);font-size:var(--font-size-sm);font-weight:700}.points-rewards-setting-card .grid{display:grid;align-content:start;gap:5px;min-width:0;margin:0}.points-rewards-setting-card input:not([type=checkbox]),.points-rewards-setting-card textarea{width:100%;max-width:none}.points-rewards-notifications{display:grid;gap:10px;padding:14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--bg)}.points-rewards-notification-options{display:flex;flex-wrap:wrap;gap:8px 16px}.points-rewards-notification-option{display:inline-flex;align-items:center;gap:6px;color:var(--text);font-size:var(--font-size-sm);cursor:pointer}.points-rewards-notification-option input{flex:0 0 38px;width:38px;height:22px;margin:0}.points-rewards-actions{display:flex;gap:8px}.points-rewards-actions button{margin:0}.points-rewards-detail{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:66px;padding:11px 4px}.points-rewards-detail-icon{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:6px;background:var(--success-soft);color:var(--success)}.points-rewards-detail.negative .points-rewards-detail-icon{background:var(--danger-soft);color:var(--danger)}.points-rewards-detail-icon .meta-icon{width:20px;height:20px}.points-rewards-detail-main{display:grid;gap:4px;min-width:0}.points-rewards-reason{min-width:0;overflow:hidden;color:var(--text);font-size:var(--font-size-md);text-overflow:ellipsis;white-space:nowrap}.points-rewards-topic{min-width:0;overflow:hidden;color:var(--text-muted);font-size:var(--font-size-sm);text-overflow:ellipsis;white-space:nowrap}.points-rewards-topic:hover{color:var(--brand)}.points-rewards-detail-side{display:grid;justify-items:end;gap:5px;padding-left:4px}.points-rewards-change-value{display:inline-flex;box-sizing:border-box;align-items:baseline;justify-content:center;gap:4px;width:96px;min-height:29px;padding:0 8px;border:1px solid transparent;border-radius:999px;font-variant-numeric:tabular-nums;white-space:nowrap}.points-rewards-change-value b{font-size:var(--font-size-md);font-weight:700}.points-rewards-change-value small{font-size:var(--font-size-xs);font-weight:600}.points-rewards-change-value.positive{border-color:var(--success);background:var(--success-soft);color:var(--success)}.points-rewards-change-value.negative{border-color:var(--danger);background:var(--danger-soft);color:var(--danger)}.points-rewards-time{color:var(--text-subtle);font-size:var(--font-size-xs);font-variant-numeric:tabular-nums;white-space:nowrap}.points-rewards-rule-value.positive{color:var(--success)}.points-rewards-rule-value.negative{color:var(--danger)}.points-rewards-rule-value.disabled{color:var(--text-subtle)}.points-rewards-profile-rules{margin-top:12px}.points-rewards-rules{overflow:hidden}.points-rewards-rules-head{padding:20px 22px 14px;border-bottom:1px solid var(--line)}.points-rewards-rules-head h2{margin:0;font-size:var(--font-size-xl)}.points-rewards-rules-head p{margin:7px 0 0;color:var(--text-subtle);font-size:var(--font-size-sm)}.points-rewards-rules-body{padding:18px 22px 22px}.points-rewards-rule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.points-rewards-rule-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--line);border-radius:6px;background:var(--bg)}.points-rewards-rule-card>span{color:var(--text-muted);font-size:var(--font-size-sm)}.points-rewards-rule-value{font-weight:600;white-space:nowrap}.points-rewards-rule-notes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 0}.points-rewards-rule-notes>div{padding:12px;border:1px solid var(--line);border-radius:6px;background:var(--bg)}.points-rewards-rule-notes dt{color:var(--text-subtle);font-size:var(--font-size-sm)}.points-rewards-rule-notes dd{margin:5px 0 0;font-weight:600}.points-rewards-rule-hint{margin:16px 0 0;color:var(--text-subtle);font-size:var(--font-size-sm);line-height:1.7}.points-rewards-extra-note{margin-top:12px;padding:11px 12px;border:1px solid var(--line);border-radius:6px;background:var(--bg);color:var(--text-muted);font-size:var(--font-size-sm);line-height:1.65;overflow-wrap:anywhere}@media(max-width:720px){.points-rewards-settings-grid{grid-template-columns:1fr}.points-rewards-setting-card-wide{grid-column:auto}.points-rewards-detail{grid-template-columns:36px minmax(0,1fr);align-items:start;gap:10px;min-height:0;padding:11px 2px}.points-rewards-detail-side{grid-column:2;display:flex;align-items:center;justify-content:space-between;width:100%;padding:3px 0 0}.points-rewards-rules-head{padding:16px 14px 12px}.points-rewards-rules-body{padding:14px}.points-rewards-rule-grid{grid-template-columns:1fr;gap:8px}.points-rewards-rule-notes{grid-template-columns:1fr;gap:8px}}.points-rewards-detail{grid-template-columns:36px minmax(0,1fr) 96px;align-items:center;gap:12px;min-height:58px;padding:11px 2px}.points-rewards-detail-main{gap:5px}.points-rewards-detail-meta{display:flex;align-items:center;gap:7px;min-width:0}.points-rewards-topic{flex:0 1 auto;max-width:100%;font-size:var(--font-size-xs)}.points-rewards-detail-meta .points-rewards-time{flex:0 0 auto;font-size:var(--font-size-xs)}.points-rewards-detail-side{grid-column:auto;display:flex;align-items:center;justify-content:flex-end;width:auto;padding:0}.points-rewards-change-value{align-items:center;width:96px;min-height:28px}@media(max-width:720px){.points-rewards-detail{grid-template-columns:36px minmax(0,1fr) 96px;align-items:center;gap:9px;min-height:58px;padding:11px 2px}.points-rewards-detail-side{grid-column:auto;width:auto;padding:0}.points-rewards-detail-meta{gap:6px}.points-rewards-topic{max-width:calc(100% - 110px)}}.points-rewards-action-notice{margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius);font-size:var(--font-size-sm);line-height:1.5}.points-rewards-action-notice.positive{border-color:var(--success);background:var(--success-soft);color:var(--text)}.points-rewards-action-notice.negative{border-color:var(--warning);background:var(--warning-soft);color:var(--text)}.points-rewards-profile-overview{display:grid;gap:12px;margin:0 0 12px}.points-rewards-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.points-rewards-summary-card{display:grid;gap:6px;min-width:0;padding:14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel)}.points-rewards-summary-card span{color:var(--text-subtle);font-size:var(--font-size-sm);line-height:1.4}.points-rewards-summary-card strong{overflow-wrap:anywhere;color:var(--text);font-size:var(--font-size-lg);font-variant-numeric:tabular-nums}.points-rewards-profile-filter{display:flex;flex-wrap:wrap;align-items:end;gap:8px;padding:12px;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel)}.points-rewards-profile-filter label{display:grid;gap:4px;min-width:120px;color:var(--text-muted);font-size:var(--font-size-xs)}.points-rewards-profile-filter select,.points-rewards-profile-filter input{width:100%;box-sizing:border-box}.points-rewards-profile-filter button{margin:0}.points-rewards-profile-filter a{padding:8px 4px;color:var(--text-muted);font-size:var(--font-size-sm);text-decoration:none}.points-rewards-profile-filter a:hover{color:var(--brand)}.points-rewards-profile-pagination{margin-top:12px}.points-rewards-admin .points-rewards-admin-tabs{margin:0 0 16px}.points-rewards-admin-adjust,.points-rewards-admin-records{overflow:hidden;margin-top:16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel)}.points-rewards-admin-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:16px;border-bottom:1px solid var(--line-soft)}.points-rewards-admin-section-head h2{margin:0;color:var(--text);font-size:var(--font-size-lg)}.points-rewards-admin-section-head span{color:var(--text-subtle);font-size:var(--font-size-sm);line-height:1.4}.points-rewards-admin-adjust form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:16px}.points-rewards-admin-adjust label{display:grid;gap:5px;color:var(--text-muted);font-size:var(--font-size-sm)}.points-rewards-admin-adjust input,.points-rewards-admin-adjust select{width:100%;box-sizing:border-box}.points-rewards-admin-adjust-wide{grid-column:span 2}.points-rewards-admin-notify{display:flex;align-items:center;gap:7px}.points-rewards-admin-adjust button{align-self:end;margin:0}.points-rewards-admin-filter{display:flex;flex-wrap:wrap;gap:8px;padding:14px 16px;border-bottom:1px solid var(--line-soft)}.points-rewards-admin-filter input,.points-rewards-admin-filter select{min-width:120px;max-width:220px}.points-rewards-admin-filter button{margin:0}.points-rewards-admin-table-wrap{overflow-x:auto}.points-rewards-admin-table-wrap .list{margin:0}.points-rewards-admin-table-wrap td{vertical-align:middle}.points-rewards-admin-table-wrap small{display:block;color:var(--text-subtle);font-size:var(--font-size-xs)}.points-rewards-admin-amount{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}.points-rewards-admin-amount.positive{color:var(--success)}.points-rewards-admin-amount.negative{color:var(--danger)}.points-rewards-admin-empty{padding:20px;color:var(--text-muted);text-align:center}.points-rewards-admin-pagination{margin-top:12px}@media(max-width:720px){.points-rewards-detail-meta{display:grid;gap:3px}.points-rewards-topic{max-width:100%}.points-rewards-detail-meta .points-rewards-time{display:block}.points-rewards-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.points-rewards-profile-filter{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.points-rewards-profile-filter label{min-width:0}.points-rewards-profile-filter button,.points-rewards-profile-filter a{align-self:end}.points-rewards-admin-section-head{align-items:flex-start;flex-direction:column}.points-rewards-admin-adjust form{grid-template-columns:1fr}.points-rewards-admin-adjust-wide{grid-column:auto}.points-rewards-admin-filter input,.points-rewards-admin-filter select{min-width:0;max-width:none;flex:1 1 140px}}
/* poll */
.poll-create-box,.poll-card{border:1px solid var(--line);background:var(--bg);border-radius:6px;margin:10px 0}
.poll-create-box{padding:10px 12px}
.poll-create-details{display:grid}
.poll-create-details summary{display:inline-flex;align-items:center;width:max-content;max-width:100%;color:var(--text);font-size:var(--font-size-md);font-weight:600;line-height:1.4;cursor:pointer;list-style:none}
.poll-create-details summary::-webkit-details-marker{display:none}
.poll-create-details summary:before{content:"";width:0;height:0;margin-right:8px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:6px solid currentColor;transition:transform .15s ease}
.poll-create-details[open] summary{color:var(--text)}
.poll-create-details[open] summary:before{transform:rotate(90deg)}
.poll-create-inner{display:grid;gap:10px;margin-top:8px}
.poll-create-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 8px}
.poll-more-options{display:grid;grid-column:1/-1;gap:6px;margin-top:3px}
.poll-more-options summary{width:max-content;max-width:100%;color:var(--brand);font-size:12px;cursor:pointer;list-style:none}
.poll-more-options summary::-webkit-details-marker{display:none}
.poll-more-options summary:hover{color:var(--brand-hover)}
.poll-more-options-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 8px;margin-top:6px}
.poll-create-question,.poll-option-input{height:34px;padding:0 9px;border-color:var(--line);background:var(--panel);font-size:12px}
.poll-create-question:focus,.poll-option-input:focus{border-color:var(--brand);box-shadow:0 0 0 2px var(--focus-ring)}
.poll-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.poll-control-card{display:grid;align-content:center;gap:5px;min-width:0;min-height:48px;padding:7px 9px;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--text-muted);font-size:11px;line-height:1.3}
.poll-control-card:focus-within{border-color:var(--brand-soft);background:var(--success-soft)}
.poll-control-toggle{grid-template-columns:14px minmax(0,1fr);align-items:center;cursor:pointer}
.poll-control-toggle input{width:14px;height:14px;margin:0;padding:0;accent-color:var(--brand)}
.poll-control-toggle span{color:var(--text);font-size:12px}
.poll-control-number input[type=number]{width:100%;height:26px;padding:0 6px;border-color:var(--line);font-size:12px}
.poll-note{color:var(--text-muted);font-size:12px}
.poll-card{grid-column:1/-1;width:100%;box-sizing:border-box;overflow:hidden;box-shadow:0 4px 14px var(--shadow-medium)}
.poll-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:10px 12px 8px}
.poll-kicker{margin-bottom:1px;color:var(--brand);font-size:11px;font-weight:700;line-height:1.3}
.poll-status{display:inline-flex;align-items:center;min-height:20px;padding:0 7px;border-radius:999px;background:var(--brand-soft);color:var(--brand);font-size:11px;font-weight:700;white-space:nowrap}
.poll-body{display:grid;gap:6px;padding:0 12px 10px}
.poll-form{display:grid;gap:6px}
.poll-choice{position:relative;display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:8px;min-height:32px;padding:6px 0;color:var(--text);cursor:pointer}
.poll-choice+.poll-choice{border-top:1px solid var(--line-soft)}
.poll-choice:hover{background:transparent;color:var(--text)}
.poll-choice input{position:absolute;opacity:0;pointer-events:none}
.poll-choice-mark{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border:1px solid var(--line);border-radius:999px;background:var(--panel);box-shadow:inset 0 0 0 3px var(--panel)}
.poll-choice.multi .poll-choice-mark{border-radius:4px}
.poll-choice input:checked+.poll-choice-mark{border-color:var(--brand);background:var(--brand)}
.poll-choice:has(input:checked){color:var(--text)}
.poll-choice.disabled{cursor:default;color:var(--text)}
.poll-choice.disabled:hover{background:transparent}
.poll-choice-text{min-width:0;word-break:break-word;overflow-wrap:anywhere}
.poll-result-row{display:grid;gap:5px;padding:6px 0}
.poll-result-row+.poll-result-row{border-top:1px solid var(--line-soft)}
.poll-result-row.selected{background:transparent}
.poll-result-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.poll-result-title{display:flex;align-items:center;gap:6px;min-width:0;color:var(--text);font-weight:400;word-break:break-word;overflow-wrap:anywhere}
.poll-picked{display:inline-flex;align-items:center;min-height:18px;padding:0 6px;border-radius:999px;background:var(--brand-soft);color:var(--brand);font-size:10px;font-weight:700;white-space:nowrap}
.poll-result-count{flex:0 0 auto;color:var(--text-muted);font-size:12px;white-space:nowrap}
.poll-bar{height:6px;background:var(--line);border-radius:999px;overflow:hidden}
.poll-bar span{display:block;height:100%;border-radius:999px;background:var(--brand)}
.poll-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;padding:0 12px 10px;color:var(--text-muted);font-size:12px}
.poll-foot-main{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.poll-submit-row{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-top:2px}
.poll-submit-row button,.poll-login-link,.poll-admin-action button{width:auto}
.poll-login-link{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:0 10px;border-radius:var(--radius-sm,4px);background:var(--brand);color:var(--inverse-text);font-weight:600}
.poll-login-link:hover{background:var(--brand-hover);color:var(--inverse-text)}
.poll-closed{color:var(--warning)}
.poll-admin-row{grid-template-columns:minmax(0,1fr) auto}.poll-admin-row .admin-row-meta span{min-width:0;overflow-wrap:anywhere}
@media(max-width:720px){.poll-admin-row{grid-template-columns:minmax(0,1fr)}.poll-admin-row .admin-inline-ops{grid-column:1;justify-content:flex-start;margin-left:0}}
@media (max-width:640px){.poll-create-box{margin:8px 0;padding:8px 10px}.poll-create-details summary,.poll-more-options summary{min-height:28px;display:inline-flex;align-items:center}.poll-create-details summary:before{flex:0 0 auto}.poll-create-options,.poll-more-options-body{grid-template-columns:1fr}.poll-create-question,.poll-option-input{width:100%;max-width:none;height:34px;font-size:13px}.poll-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.poll-control-card{min-height:46px;padding:6px 8px}.poll-card{margin:8px 0;box-shadow:0 3px 10px var(--shadow-medium)}.poll-head{display:grid;gap:4px;padding:9px 10px 7px}.poll-status{justify-self:start;min-height:0;padding:0;background:transparent;color:var(--text-subtle);font-size:11px;font-weight:400}.poll-body{padding:0 10px 9px}.poll-choice{grid-template-columns:16px minmax(0,1fr);gap:7px;min-height:34px}.poll-result-row{gap:4px}.poll-result-top{display:grid;gap:3px}.poll-result-title{display:block}.poll-picked{margin-left:0;margin-top:4px}.poll-result-count{justify-self:start;font-size:11px}.poll-foot{display:grid;gap:7px;padding:0 10px 9px}.poll-login-link{width:100%}.poll-submit-row{display:grid;gap:7px}.poll-submit-row button{width:100%;justify-self:stretch}}
    .poll-control-toggle{grid-template-columns:38px minmax(0,1fr)}
    .poll-control-toggle input[type=checkbox]{width:38px;height:22px;margin:0;padding:0}
/* red_packet */
.red-packet-badge{display:inline-flex;align-items:center;min-height:20px;margin-left:6px;padding:0 8px;border-radius:999px;font-size:var(--font-size-xs);font-weight:600;white-space:nowrap}.red-packet-badge.badge-active{background:var(--danger-soft);color:var(--danger)}.red-packet-badge.badge-finished{background:var(--line-soft);color:var(--text-muted)}.red-packet-compose{margin-bottom:12px}.red-packet-compose-details{border:1px solid var(--line);border-radius:var(--radius)}.red-packet-compose-details>summary{padding:10px 16px;cursor:pointer;font-weight:600;font-size:var(--font-size-sm);color:var(--text);background:var(--panel);user-select:none}.red-packet-compose-body{padding:14px 16px;display:grid;gap:12px}.red-packet-compose-toggle{display:flex;align-items:center;gap:8px;font-size:var(--font-size-sm);cursor:pointer}.red-packet-compose-grid{display:grid;gap:12px}.red-packet-compose-grid .grid{display:grid;gap:4px}.red-packet-compose-grid .grid span{font-size:var(--font-size-xs);color:var(--text-muted);font-weight:600}.red-packet-compose-grid input,.red-packet-compose-grid select{min-height:36px;padding:0 10px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--panel);color:var(--text);font-size:var(--font-size-sm);box-sizing:border-box}.red-packet-compose-grid input:disabled,.red-packet-compose-grid select:disabled{opacity:.55;cursor:not-allowed}.red-packet-compose-note{margin:0;padding:8px 12px;border-radius:var(--radius-sm);background:var(--line-soft);color:var(--text-muted);font-size:var(--font-size-xs)}.red-packet-card-wrapper{list-style:none!important;padding:0!important;margin:0!important;border:none!important;background:transparent!important}.red-packet-env{--red-packet-title-size:22px;--red-packet-amount-size:24px;--red-packet-unit-size:10px;width:280px;max-width:calc(100% - 12px);margin:16px auto;border-radius:14px;overflow:hidden;border:1px solid var(--line);background:var(--panel);box-shadow:0 10px 28px rgba(0,0,0,.13);animation:red-packet-card-in .35s ease}@keyframes red-packet-card-in{from{opacity:0;transform:translateY(-8px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}.red-packet-env-main{position:relative;display:flex;flex-direction:column;align-items:center;gap:10px;padding:20px 24px 18px;background:linear-gradient(170deg,#ef4d63 0%,#d93a50 52%,#b93045 100%)}.red-packet-env.is-done .red-packet-env-main{background:linear-gradient(170deg,#aab3bb 0%,#939aa1 52%,#7c838a 100%)}.red-packet-env-main::before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 18% -20%,rgba(255,255,255,.35),transparent 55%)}.red-packet-env-icon{position:relative;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;background:linear-gradient(145deg,rgba(255,255,255,.34),rgba(255,255,255,.12));box-shadow:inset 0 0 0 1px rgba(255,255,255,.3);font-size:24px}.red-packet-env-sender{position:relative;max-width:100%;color:#fff;font-size:var(--font-size-lg);font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 2px rgba(0,0,0,.18)}.red-packet-env-core{position:relative;display:flex;align-items:center;justify-content:center;padding:2px 0}.red-packet-env-seal{display:flex;flex-direction:column;align-items:center;justify-content:center;width:74px;height:74px;border-radius:50%;background:radial-gradient(circle at 32% 28%,#ffe9a8,#f5d25e 45%,#d9a51f);color:#a0522d;cursor:pointer;user-select:none;box-shadow:0 4px 12px rgba(0,0,0,.32),inset 0 2px 3px rgba(255,255,255,.65),inset 0 -2px 4px rgba(0,0,0,.16);transition:transform .2s,opacity .2s;animation:red-packet-glow 2s ease-in-out infinite}@keyframes red-packet-glow{0%,100%{box-shadow:0 4px 12px rgba(0,0,0,.32),inset 0 2px 3px rgba(255,255,255,.65),inset 0 -2px 4px rgba(0,0,0,.16),0 0 0 0 rgba(245,210,94,.55)}50%{box-shadow:0 4px 12px rgba(0,0,0,.32),inset 0 2px 3px rgba(255,255,255,.65),inset 0 -2px 4px rgba(0,0,0,.16),0 0 0 8px rgba(245,210,94,0)}}.red-packet-env-seal:hover{transform:scale(1.06)}.red-packet-env-seal:active{transform:scale(.94)}.red-packet-env-seal.is-loading{opacity:.7;pointer-events:none;transform:scale(.95);animation:none}.red-packet-env-seal.is-done{cursor:default;animation:none}.red-packet-env-seal-text{font-size:var(--red-packet-title-size);font-weight:900;letter-spacing:2px;line-height:1}.red-packet-env-seal-amount{font-size:var(--red-packet-amount-size);font-weight:900;line-height:1}.red-packet-env-seal-unit{font-size:var(--red-packet-unit-size);font-weight:400;opacity:.75;margin-top:1px}.red-packet-env-seal-got{background:radial-gradient(circle at 32% 28%,#ffe9a8,#f0b842 48%,#d39518);cursor:default;width:82px;height:82px;animation:none}.red-packet-env-seal-done,.red-packet-env-seal-login{background:rgba(255,255,255,.2);color:rgba(255,255,255,.78);cursor:default;width:64px;height:64px;animation:none}.red-packet-env-seal-done .red-packet-env-seal-text,.red-packet-env-seal-login .red-packet-env-seal-text{font-size:var(--font-size-md);letter-spacing:0}.red-packet-env-meta{position:relative;display:grid;gap:8px;width:100%;max-width:230px}.red-packet-env-desc{color:rgba(255,255,255,.85);font-size:var(--font-size-sm);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.red-packet-env-desc a{color:#fff;text-decoration:underline}.red-packet-env-progress{display:flex;align-items:center;gap:8px}.red-packet-env-progress-track{flex:1;height:7px;border-radius:4px;background:rgba(0,0,0,.3);overflow:hidden}.red-packet-env-progress-fill{display:block;height:100%;border-radius:4px;background:linear-gradient(90deg,#ffd166,#f0a92f);box-shadow:0 0 8px rgba(255,209,102,.7)}.red-packet-env-progress-text{color:rgba(255,255,255,.9);font-size:var(--font-size-xs);white-space:nowrap}.red-packet-env-info{display:flex;justify-content:space-between;align-items:center;padding:9px 16px;font-size:var(--font-size-xs);color:var(--text-muted);background:var(--panel);border-top:1px solid var(--line-soft);animation:red-packet-info-in .3s ease}@keyframes red-packet-info-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.red-packet-env-info-right{display:flex;align-items:center;gap:2px}.red-packet-env-info-dim{color:var(--text-disabled)}.red-packet-env-refund{padding:2px 16px 12px;display:flex;justify-content:center}.red-packet-env-refund-btn{min-height:26px;padding:0 14px;border:1px solid var(--line);border-radius:13px;background:var(--bg);color:var(--text-muted);font-size:var(--font-size-xs);cursor:pointer;transition:all .15s}.red-packet-env-refund-btn:hover{border-color:var(--danger);color:var(--danger)}.red-packet-env-refund-btn:disabled{opacity:.5;cursor:not-allowed}.red-packet-env-records{list-style:none!important;margin:0!important;padding:0!important;max-height:200px;overflow-y:auto;border-top:1px solid var(--line-soft);background:var(--panel)}.red-packet-env-records li{display:flex;align-items:center;justify-content:space-between;padding:7px 16px!important;font-size:var(--font-size-xs);list-style:none!important;margin:0!important;border-bottom:1px solid var(--line-soft);color:var(--text)}.red-packet-env-records li:last-child{border-bottom:none}.red-packet-env-rec-amt{color:var(--danger);font-weight:700}@media(max-width:720px){.red-packet-env{width:260px}}.red-packet-admin-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}.red-packet-admin-card{display:grid;gap:4px;padding:16px;border-radius:var(--radius);background:var(--panel);text-align:center}.red-packet-admin-card span{font-size:var(--font-size-xs);color:var(--text-muted)}.red-packet-admin-card strong{font-size:var(--font-size-xl);font-weight:700}.red-packet-group-checks{display:flex;flex-wrap:wrap;gap:10px;padding-top:4px}.red-packet-group-check{display:flex;align-items:center;gap:5px;font-size:var(--font-size-sm);cursor:pointer}.red-packet-group-check input[type="checkbox"]{accent-color:var(--danger)}.red-packet-form{display:grid;gap:16px}.red-packet-form .grid{display:grid;gap:6px}.red-packet-form .grid>span{font-weight:600;font-size:var(--font-size-sm)}.red-packet-form .grid>span small{display:block;margin-top:2px;font-weight:400;color:var(--text-muted)}.red-packet-form button{justify-self:start;min-width:120px;min-height:38px;padding:0 20px;border:none;border-radius:var(--radius-sm);background:var(--brand);color:var(--inverse-text);font-size:var(--font-size-sm);font-weight:600;cursor:pointer}.red-packet-note{color:var(--text-muted);font-size:var(--font-size-sm)}
/* reg_agreement */
.reg-agreement-page{max-width:720px;margin:auto}.reg-agreement-line{display:inline-flex;align-items:center;gap:6px;color:var(--text-muted);font-size:var(--font-size-sm)}.reg-agreement-line a{color:var(--brand)}
/* sb_limit_edit_time */
.sb-limit-edit-time-note{margin-top:14px;color:var(--text-subtle);font-size:12px;line-height:1.5}.sb-limit-edit-time-note a{color:inherit;text-decoration:underline;text-underline-offset:2px}.sb-limit-edit-time-note a:hover{color:var(--brand)}
/* self_ad_bar */
.self-ad-bar-sidebar{display:grid;gap:10px;padding:16px}.self-ad-bar-sidebar .self-ad-bar-sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--text-muted);font-size:var(--font-size-sm)}.self-ad-bar-sidebar .self-ad-bar-sidebar-head a{color:var(--brand);text-decoration:none}.self-ad-bar-sidebar .self-ad-bar-sidebar-head a:hover{text-decoration:underline}.self-ad-bar-sidebar .self-ad-bar-image-list{display:grid;gap:10px}.self-ad-bar-sidebar .self-ad-bar-image-link{display:block;width:100%;overflow:hidden;border-radius:8px;background:var(--bg)}.self-ad-bar-sidebar .self-ad-bar-image-link img{display:block;width:100%;height:auto;aspect-ratio:25 / 6;object-fit:cover}.self-ad-bar-sidebar .self-ad-bar-text-list{display:grid;gap:10px}.self-ad-bar-sidebar .self-ad-bar-text-link{display:flex;align-items:center;justify-content:center;min-height:58px;padding:12px;border-radius:8px;background:var(--self-ad-bar-background-color);color:var(--self-ad-bar-text-color);font-size:var(--font-size-lg);font-weight:600;line-height:1.45;text-align:center;text-decoration:none;overflow-wrap:anywhere}.self-ad-bar-page,.self-ad-bar-admin{display:grid;gap:16px}.self-ad-bar-page .self-ad-bar-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.self-ad-bar-page .self-ad-bar-page-head h1{margin:0}.self-ad-bar-page .self-ad-bar-page-head p,.self-ad-bar-purchase-form>p,.self-ad-bar-admin-form>p{margin:6px 0 0;color:var(--text-muted)}.self-ad-bar-page .self-ad-bar-summary,.self-ad-bar-admin .self-ad-bar-admin-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.self-ad-bar-page .self-ad-bar-summary>div,.self-ad-bar-admin .self-ad-bar-admin-stats>div,.self-ad-bar-page .self-ad-bar-section,.self-ad-bar-admin .self-ad-bar-section{border:1px solid var(--line);border-radius:12px;background:var(--panel)}.self-ad-bar-page .self-ad-bar-summary>div,.self-ad-bar-admin .self-ad-bar-admin-stats>div{display:grid;gap:5px;padding:16px}.self-ad-bar-page .self-ad-bar-summary span,.self-ad-bar-page .self-ad-bar-summary small,.self-ad-bar-admin .self-ad-bar-admin-stats span,.self-ad-bar-admin .self-ad-bar-admin-stats small{color:var(--text-muted);font-size:var(--font-size-sm)}.self-ad-bar-page .self-ad-bar-summary strong,.self-ad-bar-admin .self-ad-bar-admin-stats strong{font-size:var(--font-size-xl)}.self-ad-bar-purchase-form{display:grid;gap:16px}.self-ad-bar-purchase-form form{display:grid;gap:14px}.self-ad-bar-purchase-form .self-ad-bar-conditional{display:grid;gap:14px;padding:14px;border:1px solid var(--line-soft);border-radius:10px;background:var(--bg)}.self-ad-bar-purchase-form .self-ad-bar-color-grid,.self-ad-bar-admin .self-ad-bar-admin-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.self-ad-bar-purchase-form .self-ad-bar-preview-wrap{display:grid;gap:7px;color:var(--text-muted);font-size:var(--font-size-sm)}.self-ad-bar-purchase-form .self-ad-bar-text-preview{display:flex;align-items:center;justify-content:center;min-height:70px;padding:12px;border-radius:8px;background:var(--self-ad-bar-background-color);color:var(--self-ad-bar-text-color);font-size:var(--font-size-lg);font-weight:600;overflow-wrap:anywhere}.self-ad-bar-page .self-ad-bar-section,.self-ad-bar-admin .self-ad-bar-section{overflow:hidden}.self-ad-bar-page .self-ad-bar-section-head,.self-ad-bar-admin .self-ad-bar-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:16px;border-bottom:1px solid var(--line-soft)}.self-ad-bar-page .self-ad-bar-section-head h2,.self-ad-bar-admin .self-ad-bar-section-head h2{margin:0;font-size:var(--font-size-lg)}.self-ad-bar-page .self-ad-bar-section-head>span,.self-ad-bar-admin .self-ad-bar-section-head>span{color:var(--text-muted);font-size:var(--font-size-sm)}.self-ad-bar-page .self-ad-bar-record-list,.self-ad-bar-admin .self-ad-bar-admin-record-list{display:grid}.self-ad-bar-page .self-ad-bar-record,.self-ad-bar-admin .self-ad-bar-admin-record{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border-bottom:1px solid var(--line-soft)}.self-ad-bar-page .self-ad-bar-record:last-child,.self-ad-bar-admin .self-ad-bar-admin-record:last-child{border-bottom:0}.self-ad-bar-page .self-ad-bar-record>div:first-child,.self-ad-bar-admin .self-ad-bar-admin-record-main{display:grid;gap:4px;min-width:0}.self-ad-bar-page .self-ad-bar-record span,.self-ad-bar-page .self-ad-bar-record small,.self-ad-bar-admin .self-ad-bar-admin-record span,.self-ad-bar-admin .self-ad-bar-admin-record small{color:var(--text-muted);overflow-wrap:anywhere}.self-ad-bar-page .self-ad-bar-record-actions,.self-ad-bar-admin .self-ad-bar-record-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:8px}.self-ad-bar-page .self-ad-bar-record-actions>a,.self-ad-bar-admin .self-ad-bar-record-actions>a{color:var(--brand);font-size:var(--font-size-sm);text-decoration:none}.self-ad-bar-page .self-ad-bar-record-actions>a:hover,.self-ad-bar-admin .self-ad-bar-record-actions>a:hover{text-decoration:underline}.self-ad-bar-page .self-ad-bar-inline-form,.self-ad-bar-admin .self-ad-bar-inline-form{margin:0}.self-ad-bar-page .self-ad-bar-inline-form button,.self-ad-bar-admin .self-ad-bar-inline-form button{margin:0;font-size:var(--font-size-sm)}.self-ad-bar-page .self-ad-bar-empty,.self-ad-bar-admin .self-ad-bar-empty{padding:20px 16px;color:var(--text-muted);text-align:center}.self-ad-bar-admin .self-ad-bar-admin-form{max-width:760px}.self-ad-bar-admin .self-ad-bar-admin-form form{display:grid;gap:16px}
.self-ad-bar-sidebar .self-ad-bar-image-link,.self-ad-bar-sidebar .self-ad-bar-text-link{outline:1px solid transparent;transition:transform .18s ease,box-shadow .18s ease,outline-color .18s ease}.self-ad-bar-sidebar .self-ad-bar-image-link img{transition:transform .18s ease}.self-ad-bar-sidebar .self-ad-bar-image-link:focus-visible,.self-ad-bar-sidebar .self-ad-bar-text-link:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}@media (hover:hover){.self-ad-bar-sidebar .self-ad-bar-image-link:hover,.self-ad-bar-sidebar .self-ad-bar-text-link:hover{outline-color:var(--brand);box-shadow:var(--shadow-medium);transform:translateY(-2px)}.self-ad-bar-sidebar .self-ad-bar-image-link:hover img{transform:scale(1.02)}}@media (prefers-reduced-motion:reduce){.self-ad-bar-sidebar .self-ad-bar-image-link,.self-ad-bar-sidebar .self-ad-bar-text-link,.self-ad-bar-sidebar .self-ad-bar-image-link img{transition-duration:.01ms}}
.self-ad-bar-purchase-form .self-ad-bar-image-preview{display:grid;gap:8px;padding:10px;border:1px solid var(--line-soft);border-radius:8px;background:var(--panel);color:var(--text-muted);font-size:var(--font-size-sm)}.self-ad-bar-purchase-form .self-ad-bar-image-preview img{display:block;width:100%;max-width:500px;height:auto;aspect-ratio:25 / 6;object-fit:contain;border-radius:6px;background:var(--bg)}.self-ad-bar-purchase-form .self-ad-bar-price-card{display:grid;gap:4px;padding:14px;border:1px solid var(--brand);border-radius:10px;background:var(--brand-soft)}.self-ad-bar-purchase-form .self-ad-bar-price-card strong{font-size:var(--font-size-lg)}.self-ad-bar-purchase-form .self-ad-bar-price-card span{color:var(--text-muted);font-size:var(--font-size-sm)}.self-ad-bar-purchase-form .self-ad-bar-price-card-muted{border-color:var(--line);background:var(--panel)}.self-ad-bar-purchase-form .self-ad-bar-terms,.self-ad-bar-admin .self-ad-bar-check{display:flex;align-items:flex-start;gap:8px;color:var(--text-muted);font-size:var(--font-size-sm)}.self-ad-bar-purchase-form .self-ad-bar-terms input,.self-ad-bar-admin .self-ad-bar-check input{margin-top:3px}.self-ad-bar-purchase-form [data-self-ad-bar-contrast]{color:var(--text-muted)}.self-ad-bar-purchase-form .self-ad-bar-contrast-low{color:var(--warning)}.self-ad-bar-page .self-ad-bar-record-actions input[type=number]{width:72px}.self-ad-bar-admin .self-ad-bar-admin-stats{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.self-ad-bar-admin .self-ad-bar-placement{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.self-ad-bar-admin .self-ad-bar-placement>span{font-size:var(--font-size-sm)}.self-ad-bar-admin .self-ad-bar-admin-filter{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 16px;border-bottom:1px solid var(--line-soft)}.self-ad-bar-admin .self-ad-bar-admin-filter select,.self-ad-bar-admin .self-ad-bar-admin-filter input{max-width:190px}.self-ad-bar-admin .self-ad-bar-record-actions input[type=text]{width:150px;max-width:100%;font-size:var(--font-size-sm)}
@media (max-width:760px){.self-ad-bar-page .self-ad-bar-summary,.self-ad-bar-admin .self-ad-bar-admin-stats,.self-ad-bar-purchase-form .self-ad-bar-color-grid,.self-ad-bar-admin .self-ad-bar-admin-form-grid{grid-template-columns:1fr}.self-ad-bar-page .self-ad-bar-page-head,.self-ad-bar-page .self-ad-bar-section-head,.self-ad-bar-admin .self-ad-bar-section-head{align-items:flex-start;flex-direction:column}.self-ad-bar-page .self-ad-bar-record,.self-ad-bar-admin .self-ad-bar-admin-record{align-items:flex-start;flex-direction:column}.self-ad-bar-page .self-ad-bar-record-actions,.self-ad-bar-admin .self-ad-bar-record-actions{justify-content:flex-start}}
/* topic_favorites */
.topic-favorites-action .fav-btn{margin:0;padding:0;border:0;background:transparent;font:inherit;cursor:pointer}.topic-favorites-action .fav-btn:hover{background:transparent}.topic-favorites-action .fav-btn:disabled{opacity:.55}
/* topic_quick_actions */
.topic-quick-actions-toggle{display:inline-flex;align-items:center;flex-shrink:0;gap:5px;color:var(--text-muted);font-size:var(--font-size-sm);white-space:nowrap;cursor:pointer}.topic-quick-actions-pick{display:inline-flex;align-items:center;flex-shrink:0;order:9;margin:10px 0 0 auto;cursor:pointer}.topic-quick-actions-toggle input[type=checkbox],.topic-quick-actions-pick input[type=checkbox]{position:absolute;width:1px;height:1px;margin:0;padding:0;border:0;opacity:0;pointer-events:none}.topic-quick-actions-box{position:relative;box-sizing:border-box;display:block;flex-shrink:0;width:16px;height:16px;border:1px solid var(--line);border-radius:4px;background:var(--panel);transition:border-color var(--transition-normal),background-color var(--transition-normal)}.topic-quick-actions-toggle:hover .topic-quick-actions-box,.topic-quick-actions-pick:hover .topic-quick-actions-box{border-color:var(--brand)}.topic-quick-actions-toggle input[type=checkbox]:checked+.topic-quick-actions-box,.topic-quick-actions-pick input[type=checkbox]:checked+.topic-quick-actions-box,.topic-quick-actions-toggle input[type=checkbox]:indeterminate+.topic-quick-actions-box{border-color:var(--brand);background:var(--brand)}.topic-quick-actions-toggle input[type=checkbox]:checked+.topic-quick-actions-box::after,.topic-quick-actions-pick input[type=checkbox]:checked+.topic-quick-actions-box::after{content:"";position:absolute;left:5px;top:1px;width:4px;height:8px;border:solid var(--inverse-text);border-width:0 2px 2px 0;transform:rotate(45deg)}.topic-quick-actions-toggle input[type=checkbox]:indeterminate+.topic-quick-actions-box::after{content:"";position:absolute;left:3px;top:6px;width:8px;height:2px;background:var(--inverse-text)}.topic-quick-actions-toggle input[type=checkbox]:focus-visible+.topic-quick-actions-box,.topic-quick-actions-pick input[type=checkbox]:focus-visible+.topic-quick-actions-box{outline:2px solid var(--focus-ring);outline-offset:2px}.topic-quick-actions-bar{position:fixed;left:0;right:0;bottom:0;z-index:30;display:none;padding:10px 14px;border-top:1px solid var(--line);background:var(--panel);box-shadow:0 -6px 24px var(--shadow-medium)}.topic-quick-actions-bar.topic-quick-actions-open{display:block}.topic-quick-actions-inner{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;max-width:1120px;margin:0 auto}.topic-quick-actions-head{display:flex;align-items:center;gap:10px;min-width:0}.topic-quick-actions-count{color:var(--text);font-size:var(--font-size-sm);font-weight:600;white-space:nowrap}.topic-quick-actions-plain{min-height:0;padding:0;border:0;background:transparent;color:var(--text-muted);font-size:var(--font-size-sm);white-space:nowrap;cursor:pointer}.topic-quick-actions-plain:hover{background:transparent;color:var(--brand)}.topic-quick-actions-ops{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}.topic-quick-actions-op{min-height:28px;padding:4px 10px;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);color:var(--text);font-size:var(--font-size-sm);line-height:1.4;white-space:nowrap;cursor:pointer;transition:border-color var(--transition-normal),color var(--transition-normal)}.topic-quick-actions-op:hover{border-color:var(--brand);background:var(--panel);color:var(--brand)}.topic-quick-actions-op.topic-quick-actions-danger:hover{border-color:var(--danger);color:var(--danger)}.topic-quick-actions-highlight{display:inline-flex;align-items:center;gap:6px;padding:3px 7px;border:1px solid var(--line-soft);border-radius:var(--radius)}.topic-quick-actions-swatch{width:18px;height:18px;min-height:18px;padding:0;border:2px solid transparent;border-radius:4px;box-shadow:none;cursor:pointer}.topic-quick-actions-swatch.active{border-color:var(--text)}.topic-quick-actions-swatch:hover{filter:brightness(.95)}@media(max-width:720px){.topic-quick-actions-bar{padding:8px 10px}.topic-quick-actions-inner{gap:6px 8px}.topic-quick-actions-op{padding:4px 8px}}@media(prefers-reduced-motion:reduce){.topic-quick-actions-op,.topic-quick-actions-box{transition:none}}
/* uid_beauty */
.uid-beauty-page,.uid-beauty-admin{display:grid;gap:16px}.uid-beauty-page .uid-beauty-page-head,.uid-beauty-page .uid-beauty-section-head,.uid-beauty-admin .uid-beauty-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.uid-beauty-page .uid-beauty-page-head h1,.uid-beauty-page .uid-beauty-section-head h2,.uid-beauty-admin .uid-beauty-section-head h2,.uid-beauty-admin .uid-beauty-admin-form h2,.uid-beauty-admin .uid-beauty-admin-dual-form h3{margin:0}.uid-beauty-page .uid-beauty-page-head p,.uid-beauty-page .uid-beauty-section-head>span,.uid-beauty-admin .uid-beauty-section-head>span,.uid-beauty-admin .uid-beauty-admin-form>p{margin:6px 0 0;color:var(--text-muted);font-size:var(--font-size-sm)}.uid-beauty-page .uid-beauty-page-head>a,.uid-beauty-admin .uid-beauty-section-head>a{white-space:nowrap}.uid-beauty-badge{display:inline-flex;align-items:center;gap:5px;color:var(--text-muted);font-size:var(--font-size-xs);font-variant-numeric:tabular-nums;white-space:nowrap}.uid-beauty-badge b{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:var(--brand-soft);color:var(--brand);font-size:var(--font-size-xxs);line-height:1}.uid-beauty-author-badge{margin-left:7px;vertical-align:middle}.uid-beauty-author-fallback{display:inline-flex;align-items:center;margin:0 0 4px}.uid-beauty-profile-card,.uid-beauty-settings-card{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}.uid-beauty-profile-card>span,.uid-beauty-settings-card span{color:var(--text-muted);font-size:var(--font-size-sm)}.uid-beauty-profile-badge,.uid-beauty-summary-badge{font-size:var(--font-size-md)}.uid-beauty-settings-card>div{display:grid;gap:4px}.uid-beauty-settings-card>a,.uid-beauty-login-tip{font-size:var(--font-size-sm)}.uid-beauty-login-tip{margin:0 0 12px;color:var(--text-muted)}.uid-beauty-page .uid-beauty-summary,.uid-beauty-admin .uid-beauty-admin-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.uid-beauty-admin .uid-beauty-admin-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.uid-beauty-page .uid-beauty-summary>div,.uid-beauty-admin .uid-beauty-admin-stats>div{display:grid;gap:6px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.uid-beauty-page .uid-beauty-summary span,.uid-beauty-admin .uid-beauty-admin-stats span,.uid-beauty-admin .uid-beauty-admin-stats small{color:var(--text-muted);font-size:var(--font-size-sm)}.uid-beauty-page .uid-beauty-summary strong,.uid-beauty-admin .uid-beauty-admin-stats strong{font-size:var(--font-size-xl);font-variant-numeric:tabular-nums}.uid-beauty-page .uid-beauty-section,.uid-beauty-admin .uid-beauty-admin-section{overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.uid-beauty-page .uid-beauty-section-head,.uid-beauty-admin .uid-beauty-section-head{padding:16px;border-bottom:1px solid var(--line-soft)}.uid-beauty-page .uid-beauty-section-head h2,.uid-beauty-admin .uid-beauty-section-head h2{font-size:var(--font-size-lg)}.uid-beauty-filter-form,.uid-beauty-admin .uid-beauty-admin-filter{display:flex;align-items:end;flex-wrap:wrap;gap:10px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.uid-beauty-filter-form label,.uid-beauty-admin .uid-beauty-admin-filter label,.uid-beauty-admin .uid-beauty-admin-inline-form label,.uid-beauty-admin .uid-beauty-admin-form-grid label{display:grid;gap:6px;min-width:0;color:var(--text-muted);font-size:var(--font-size-sm)}.uid-beauty-filter-form label:first-child{flex:1 1 250px}.uid-beauty-filter-form label>div{display:flex;align-items:center;gap:7px}.uid-beauty-filter-form input,.uid-beauty-filter-form select,.uid-beauty-admin input,.uid-beauty-admin select{min-width:0;box-sizing:border-box}.uid-beauty-filter-form input{width:100%}.uid-beauty-filter-form i{font-style:normal;color:var(--text-subtle)}.uid-beauty-filter-form button,.uid-beauty-admin button{margin:0;white-space:nowrap}.uid-beauty-page .uid-beauty-number-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--line-soft)}.uid-beauty-page .uid-beauty-number-card{display:grid;gap:12px;padding:16px;background:var(--panel)}.uid-beauty-page .uid-beauty-number-card>div{display:grid;gap:4px}.uid-beauty-page .uid-beauty-number-card span,.uid-beauty-page .uid-beauty-number-card>b{color:var(--text-muted);font-size:var(--font-size-sm)}.uid-beauty-page .uid-beauty-number-card strong{font-size:var(--font-size-xl);font-variant-numeric:tabular-nums}.uid-beauty-page .uid-beauty-number-card>b{color:var(--brand);font-variant-numeric:tabular-nums}.uid-beauty-page .uid-beauty-buy-link{display:grid;place-items:center;margin-top:auto;min-height:38px;border-radius:8px;background:var(--brand);color:var(--inverse-text);font-size:var(--font-size-sm);font-weight:600;text-decoration:none}.uid-beauty-page .uid-beauty-buy-link:hover{background:var(--brand-hover)}.uid-beauty-page .uid-beauty-order-list,.uid-beauty-admin .uid-beauty-admin-list,.uid-beauty-admin .uid-beauty-audit-list{display:grid}.uid-beauty-page .uid-beauty-order-list>article,.uid-beauty-admin .uid-beauty-admin-list>article,.uid-beauty-admin .uid-beauty-audit-list>article{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border-bottom:1px solid var(--line-soft)}.uid-beauty-page .uid-beauty-order-list>article:last-child,.uid-beauty-admin .uid-beauty-admin-list>article:last-child,.uid-beauty-admin .uid-beauty-audit-list>article:last-child{border-bottom:0}.uid-beauty-page .uid-beauty-order-list>article>div,.uid-beauty-admin .uid-beauty-admin-list>article>div,.uid-beauty-admin .uid-beauty-audit-list>article>div{display:grid;gap:4px;min-width:0}.uid-beauty-page .uid-beauty-order-list span,.uid-beauty-admin .uid-beauty-admin-list span,.uid-beauty-admin .uid-beauty-audit-list span{color:var(--text-muted);font-size:var(--font-size-sm);overflow-wrap:anywhere}.uid-beauty-page .uid-beauty-order-list>b,.uid-beauty-admin .uid-beauty-audit-list>b{color:var(--text-muted);font-size:var(--font-size-sm);font-variant-numeric:tabular-nums;white-space:nowrap}.uid-beauty-page .uid-beauty-empty,.uid-beauty-admin .uid-beauty-empty{padding:24px 16px;color:var(--text-muted);text-align:center}.uid-beauty-confirm-page{max-width:760px;margin:0 auto}.uid-beauty-confirm-card{display:grid;gap:18px;padding:22px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}.uid-beauty-confirm-number{display:grid;gap:5px;text-align:center}.uid-beauty-confirm-number span,.uid-beauty-confirm-note{color:var(--text-muted);font-size:var(--font-size-sm)}.uid-beauty-confirm-number strong{font-size:var(--font-size-xl);font-variant-numeric:tabular-nums}.uid-beauty-confirm-card dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0}.uid-beauty-confirm-card dl>div{display:grid;gap:5px;padding:12px;border-radius:9px;background:var(--bg)}.uid-beauty-confirm-card dt{color:var(--text-muted);font-size:var(--font-size-sm)}.uid-beauty-confirm-card dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums}.uid-beauty-confirm-note{margin:0;padding:12px;border-left:3px solid var(--warning);background:var(--warning-soft)}.uid-beauty-confirm-card form{display:flex;justify-content:flex-end}.uid-beauty-admin .uid-beauty-admin-form{display:grid;gap:16px;max-width:860px}.uid-beauty-admin .uid-beauty-admin-form form{display:grid;gap:16px}.uid-beauty-admin .uid-beauty-admin-checkbox{display:flex;align-items:flex-start;gap:8px;color:var(--text);font-size:var(--font-size-sm)}.uid-beauty-admin .uid-beauty-admin-checkbox input{margin:3px 0 0}.uid-beauty-admin .uid-beauty-admin-dual-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.uid-beauty-admin .uid-beauty-admin-dual-form form{display:grid;gap:12px;padding:14px;border:1px solid var(--line-soft);border-radius:10px}.uid-beauty-admin .uid-beauty-admin-dual-form h3{font-size:var(--font-size-md)}.uid-beauty-admin .uid-beauty-admin-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.uid-beauty-admin .uid-beauty-admin-inline-form{display:flex;align-items:end;flex-wrap:wrap;gap:10px}.uid-beauty-admin .uid-beauty-admin-list>article>form,.uid-beauty-admin .uid-beauty-audit-list>article>form{display:flex;align-items:center;gap:8px;margin:0}.uid-beauty-admin .uid-beauty-admin-list input{width:128px}.uid-beauty-admin .uid-beauty-remove-button,.uid-beauty-admin .uid-beauty-revoke-button{background:var(--danger);border-color:var(--danger)}
@media (max-width:760px){.uid-beauty-page .uid-beauty-page-head,.uid-beauty-page .uid-beauty-section-head,.uid-beauty-admin .uid-beauty-section-head{align-items:flex-start;flex-direction:column}.uid-beauty-page .uid-beauty-summary,.uid-beauty-admin .uid-beauty-admin-stats,.uid-beauty-page .uid-beauty-number-grid,.uid-beauty-confirm-card dl,.uid-beauty-admin .uid-beauty-admin-dual-form,.uid-beauty-admin .uid-beauty-admin-form-grid{grid-template-columns:1fr}.uid-beauty-filter-form,.uid-beauty-admin .uid-beauty-admin-filter{align-items:stretch;flex-direction:column}.uid-beauty-page .uid-beauty-order-list>article,.uid-beauty-admin .uid-beauty-admin-list>article,.uid-beauty-admin .uid-beauty-audit-list>article{align-items:flex-start;flex-direction:column}.uid-beauty-admin .uid-beauty-admin-list>article>form,.uid-beauty-admin .uid-beauty-audit-list>article>form{width:100%;flex-wrap:wrap}.uid-beauty-admin .uid-beauty-admin-list input{flex:1;width:auto}.uid-beauty-profile-card,.uid-beauty-settings-card{align-items:flex-start;flex-direction:column}.uid-beauty-settings-card>a{white-space:normal}.uid-beauty-confirm-card form{justify-content:stretch}.uid-beauty-confirm-card form button{width:100%}}
.uid-beauty-admin .uid-beauty-admin-filter label>div{display:flex;align-items:center;gap:7px}.uid-beauty-admin .uid-beauty-admin-filter label>div input{width:100%}.uid-beauty-admin .uid-beauty-admin-filter label>div i{font-style:normal;color:var(--text-subtle)}.uid-beauty-page .uid-beauty-number-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.uid-beauty-confirm-balance{margin:0;color:var(--text-muted);font-size:var(--font-size-sm);text-align:center}.uid-beauty-confirm-card form{display:grid}.uid-beauty-confirm-card form button{width:100%}@media (max-width:760px){.uid-beauty-page .uid-beauty-number-grid{grid-template-columns:1fr}}
/* unread_topic_notice */
.unread-topic-notice{display:inline-flex;align-items:center;gap:4px;margin-left:6px;color:var(--brand);font-size:11px;font-weight:600;line-height:1;vertical-align:1px;white-space:nowrap}
.unread-topic-notice:hover{color:var(--brand-hover)}
.unread-topic-notice:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}
.topic-toolbar .post-action-form{flex:0 0 auto!important}
.topic-toolbar button.unread-topic-read-all{min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--text-disabled)!important;font-size:12px!important;font-weight:400!important;line-height:1.4!important;white-space:nowrap!important}
.topic-toolbar button.unread-topic-read-all:hover{background:transparent!important;color:var(--text-muted)!important}
/* update_diary */
.update-diary-sidebar{overflow:hidden}.update-diary-sidebar .update-diary-empty-head,.update-diary-sidebar .update-diary-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px}.update-diary-sidebar .update-diary-empty-head,.update-diary-sidebar .update-diary-summary-meta{color:var(--text-muted);font-size:var(--font-size-sm)}.update-diary-sidebar .update-diary-details{display:grid}.update-diary-sidebar .update-diary-summary{cursor:pointer;list-style:none}.update-diary-sidebar .update-diary-summary::-webkit-details-marker{display:none}.update-diary-sidebar .update-diary-summary:focus-visible{outline:2px solid var(--focus-ring);outline-offset:-2px}.update-diary-sidebar .update-diary-summary-title{color:var(--text);font-weight:600}.update-diary-sidebar .update-diary-summary-meta{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.update-diary-sidebar .update-diary-summary-close{display:none}.update-diary-sidebar .update-diary-details[open] .update-diary-summary-open{display:none}.update-diary-sidebar .update-diary-details[open] .update-diary-summary-close{display:inline}.update-diary-sidebar .update-diary-records{display:grid;max-height:min(640px,calc(100vh - 180px));overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border-top:1px solid var(--line-soft)}.update-diary-sidebar .update-diary-record{display:grid;gap:5px;padding:12px 16px;border-bottom:1px solid var(--line-soft)}.update-diary-sidebar .update-diary-record:last-child{border-bottom:0}.update-diary-sidebar .update-diary-record time,.update-diary-admin .update-diary-admin-record time{color:var(--text-subtle);font-size:var(--font-size-xs);font-variant-numeric:tabular-nums}.update-diary-sidebar .update-diary-record-content,.update-diary-admin .update-diary-admin-record-main>div{overflow-wrap:anywhere;white-space:normal}.update-diary-admin{display:grid;gap:16px}.update-diary-admin .update-diary-admin-form{display:grid;gap:16px;max-width:760px}.update-diary-admin .update-diary-admin-form>p{margin:0;color:var(--text-muted)}.update-diary-admin .update-diary-admin-form form{display:grid;gap:16px}.update-diary-admin .update-diary-admin-form textarea,.update-diary-admin .update-diary-edit-form textarea{width:100%;box-sizing:border-box;resize:vertical}.update-diary-admin .update-diary-admin-section{overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.update-diary-admin .update-diary-admin-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:16px;border-bottom:1px solid var(--line-soft)}.update-diary-admin .update-diary-admin-section-head h2{margin:0;font-size:var(--font-size-lg)}.update-diary-admin .update-diary-admin-section-head>span{color:var(--text-muted);font-size:var(--font-size-sm)}.update-diary-admin .update-diary-admin-records{display:grid}.update-diary-admin .update-diary-admin-record{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:14px 16px;border-bottom:1px solid var(--line-soft)}.update-diary-admin .update-diary-admin-record:last-child{border-bottom:0}.update-diary-admin .update-diary-admin-editor{flex:1;min-width:0}.update-diary-admin .update-diary-admin-editor>summary{cursor:pointer;list-style:none}.update-diary-admin .update-diary-admin-editor>summary::-webkit-details-marker{display:none}.update-diary-admin .update-diary-admin-editor>summary:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}.update-diary-admin .update-diary-admin-record-main{display:grid;gap:5px;min-width:0}.update-diary-admin .update-diary-admin-record-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:var(--text-muted);font-size:var(--font-size-xs)}.update-diary-admin .update-diary-record-status{display:inline-flex;align-items:center;padding:2px 6px;border-radius:999px;background:var(--brand-soft);color:var(--brand);font-size:var(--font-size-xs)}.update-diary-admin .update-diary-record-status-draft{background:var(--bg);color:var(--text-muted)}.update-diary-admin .update-diary-edit-hint{color:var(--brand)}.update-diary-admin .update-diary-admin-editor[open] .update-diary-edit-hint{display:none}.update-diary-admin .update-diary-edit-form{display:grid;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line-soft)}.update-diary-admin .update-diary-add-grid,.update-diary-admin .update-diary-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.update-diary-admin .update-diary-edit-label{display:grid;gap:6px;color:var(--text-muted);font-size:var(--font-size-sm)}.update-diary-admin .update-diary-edit-label input,.update-diary-admin .update-diary-edit-label select{width:100%;box-sizing:border-box}.update-diary-admin .update-diary-edit-actions{display:flex;justify-content:flex-end}.update-diary-admin .update-diary-edit-actions button{margin:0;font-size:var(--font-size-sm)}.update-diary-admin .update-diary-delete-form{margin:0}.update-diary-admin .update-diary-delete-form button{margin:0;font-size:var(--font-size-sm)}.update-diary-admin .update-diary-admin-empty{padding:20px 16px;color:var(--text-muted);text-align:center}
@media (max-width:760px){.update-diary-sidebar .update-diary-records{max-height:min(560px,calc(100vh - 160px))}.update-diary-admin .update-diary-admin-section-head{align-items:flex-start;flex-direction:column}.update-diary-admin .update-diary-admin-record{flex-direction:column}.update-diary-admin .update-diary-add-grid,.update-diary-admin .update-diary-edit-grid{grid-template-columns:1fr}.update-diary-admin .update-diary-delete-form{align-self:flex-end}}
/* user_uid_badge */
.post-head .post-user-group.user-uid-badge{font-variant-numeric:tabular-nums;white-space:nowrap}
/* viewed_topic_dim */
ul.post-list:not(.topic-post-list) > li.post-item[data-viewed-topic-dim-id].is-viewed-topic-dim{
  opacity:var(--viewed-topic-dim-opacity,.55);
  transition:opacity var(--transition-normal,.2s ease)
}
ul.post-list:not(.topic-post-list) > li.post-item[data-viewed-topic-dim-id].is-viewed-topic-dim:hover{
  opacity:1
}
