/* Global application theme. The media feed itself deliberately remains black. */
body.allo-light-theme{color-scheme:light;--allo-bg:#f5f7fb;--allo-surface:#fff;--allo-surface-2:#eef3f8;--allo-text:#172033;--allo-muted:#667085;--allo-border:#d6deea;--allo-shadow:0 12px 36px rgba(37,51,75,.14)}

/* Search */
body.allo-light-theme .search-page{background:var(--allo-bg);color:var(--allo-text)}
body.allo-light-theme .search-page-header{background:rgba(245,247,251,.96);border-color:var(--allo-border)}
body.allo-light-theme .search-page-header button,body.allo-light-theme .search-page-submit{color:var(--allo-text)}
body.allo-light-theme .search-page-form{background:var(--allo-surface);border:1px solid var(--allo-border);color:var(--allo-muted)}
body.allo-light-theme .search-page-form input{color:var(--allo-text)}
body.allo-light-theme .search-tag-list button{background:var(--allo-surface-2);color:var(--allo-text)}
body.allo-light-theme .search-history-item{color:var(--allo-text);border-bottom:1px solid var(--allo-border)}
body.allo-light-theme .search-result-label,body.allo-light-theme .search-empty-state{color:var(--allo-muted)}
body.allo-light-theme .search-sort-select{background:var(--allo-surface);border-color:var(--allo-border);color:var(--allo-text)}
body.allo-light-theme .allo-nav{background:rgba(255,255,255,.88);box-shadow:0 -8px 28px rgba(37,51,75,.12)}
body.allo-light-theme .allo-nav button{color:var(--allo-text)}
body.allo-light-theme .allo-nav .allo-nav__publish{color:#fff}

/* Profile */
body.allo-light-theme #profileSection{background:var(--allo-bg);color:var(--allo-text)}
body.allo-light-theme .profile-card,body.allo-light-theme .share-promo-card,body.allo-light-theme .finance-card-modern,body.allo-light-theme .topup-panel,body.allo-light-theme .video-promotion-panel{background:var(--allo-surface)!important;border-color:var(--allo-border)!important;box-shadow:var(--allo-shadow)!important}
body.allo-light-theme .profile-main-info h2,body.allo-light-theme .topup-panel__title,body.allo-light-theme .edit-label{color:var(--allo-text)}
body.allo-light-theme .profile-main-info p,body.allo-light-theme .stat-label,body.allo-light-theme .finance-card-modern p,body.allo-light-theme .video-budget-line,body.allo-light-theme .promotion-field label{color:var(--allo-muted)!important}
body.allo-light-theme .stat-item,body.allo-light-theme .topup-preset,body.allo-light-theme .topup-row input,body.allo-light-theme .promotion-field input,body.allo-light-theme .promotion-field select,body.allo-light-theme .referral-box,body.allo-light-theme .btn-copy{background:var(--allo-surface-2);border-color:var(--allo-border);color:var(--allo-text)}
body.allo-light-theme .stat-value,body.allo-light-theme .ref-input,body.allo-light-theme .topup-status,body.allo-light-theme .promotion-status{color:var(--allo-text)!important}
body.allo-light-theme .btn-back{border-color:var(--allo-border);color:var(--allo-text);background:var(--allo-surface)}
body.allo-light-theme #profileSection [style*="background: #161b22"],body.allo-light-theme #profileSection [style*="background:#161b22"]{background:var(--allo-surface)!important;border-color:var(--allo-border)!important}

/* Upload */
body.allo-light-theme .upload-drawer,body.allo-light-theme .drawer-content,body.allo-light-theme .drawer-header{background:var(--allo-bg);color:var(--allo-text);border-color:var(--allo-border);box-shadow:var(--allo-shadow)}
body.allo-light-theme .drawer-header h3,body.allo-light-theme .marketing-label-title,body.allo-light-theme .placeholder-content p{color:var(--allo-text)}
body.allo-light-theme .section-label,body.allo-light-theme .sub-section-label,body.allo-light-theme .marketing-label-desc{color:var(--allo-muted)}
body.allo-light-theme .form-control-modern,body.allo-light-theme .pill-body,body.allo-light-theme .add-photo-placeholder,body.allo-light-theme .media-upload-wrapper,body.allo-light-theme .marketing-panel-box{background:var(--allo-surface);border-color:var(--allo-border);color:var(--allo-text)}
body.allo-light-theme .pill-hashtag{color:var(--allo-text)}
body.allo-light-theme .pill-body:hover{background:var(--allo-surface-2)}
body.allo-light-theme .upload-drawer [style*="background: #161b22"],body.allo-light-theme .upload-drawer [style*="background:#161b22"],body.allo-light-theme .upload-drawer [style*="background: #0d1117"]{background:var(--allo-surface-2)!important;border-color:var(--allo-border)!important;color:var(--allo-text)!important}

/* Auth */
body.allo-light-theme .auth-modern-panel{background:var(--allo-surface);border-color:var(--allo-border);color:var(--allo-text);box-shadow:var(--allo-shadow)}
body.allo-light-theme .auth-modern-panel h2,body.allo-light-theme .auth-modern-panel .text-white{color:var(--allo-text)!important}
body.allo-light-theme .auth-modern-panel .text-gray-300,body.allo-light-theme .auth-modern-panel .text-gray-400,body.allo-light-theme .auth-modern-panel .text-gray-500{color:var(--allo-muted)!important}
body.allo-light-theme .auth-modern-panel input[type="tel"],body.allo-light-theme .auth-modern-panel input[type="text"],body.allo-light-theme .auth-modern-panel input[type="password"]{background:var(--allo-surface-2);border-color:var(--allo-border);color:var(--allo-text)}

/* Contact, gift and share sheets */
body.allo-light-theme .feed-sheet,body.allo-light-theme .share-panel{background:var(--allo-surface)!important;border-color:var(--allo-border)!important;color:var(--allo-text)!important}
body.allo-light-theme .feed-sheet h3,body.allo-light-theme .share-panel h3{color:var(--allo-text)!important}
body.allo-light-theme .feed-sheet-option,body.allo-light-theme .share-copy-button,body.allo-light-theme .share-url{background:var(--allo-surface-2)!important;border-color:var(--allo-border)!important;color:var(--allo-text)!important}
body.allo-light-theme .share-panel>a,body.allo-light-theme .share-panel span{color:inherit}

/* Comment/details panel */
body.allo-light-theme .comment-panel,body.allo-light-theme .comment-panel-header,body.allo-light-theme .comment-panel-footer{background:var(--allo-surface)!important;border-color:var(--allo-border)!important;color:var(--allo-text)}
body.allo-light-theme .comment-panel-header .text-white,body.allo-light-theme .comment-summary h3{color:var(--allo-text)!important}
body.allo-light-theme .comment-summary,body.allo-light-theme .comment-panel [class~="bg-[#161b22]"],body.allo-light-theme .comment-panel [class~="bg-[#0d1117]"],body.allo-light-theme .comment-panel-footer{background:var(--allo-surface-2)!important;border-color:var(--allo-border)!important}
body.allo-light-theme .comment-panel .text-gray-100,body.allo-light-theme .comment-panel [class~="text-[#f0f6fc]"],body.allo-light-theme .comment-panel [class~="text-[#c9d1d9]"]{color:var(--allo-text)!important}
body.allo-light-theme .comment-panel .text-gray-400,body.allo-light-theme .comment-panel [class~="text-[#8b949e]"]{color:var(--allo-muted)!important}
body.allo-light-theme .comment-published-date{color:var(--allo-muted)}
body.allo-light-theme .comment-panel input,body.allo-light-theme .comment-panel textarea{background:var(--allo-surface);border-color:var(--allo-border);color:var(--allo-text)}

/* Report dialog */
.report-overlay{position:fixed;inset:0;z-index:10020;display:grid;place-items:center;padding:16px;background:rgba(0,0,0,.68);backdrop-filter:blur(7px)}
.report-panel{width:min(100%,420px);padding:20px;border:1px solid #30363d;border-radius:18px;background:#161b22;color:#f0f6fc;box-shadow:0 20px 60px rgba(0,0,0,.48)}
.report-panel__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.report-panel__header h2{font-size:18px;font-weight:800}.report-panel__header button{font-size:26px;color:#8b949e}
.report-label{display:block;margin:11px 0 6px;color:#aeb8c7;font-size:13px;font-weight:700}
.report-control{width:100%;padding:11px 12px;border:1px solid #30363d;border-radius:10px;background:#0d1117;color:#f0f6fc;resize:vertical}
.report-status{margin-top:10px;color:#f85149;font-size:13px}.report-submit{width:100%;margin-top:16px;padding:12px;border:0;border-radius:10px;background:#e5484d;color:#fff;font-weight:800}.report-submit:disabled{opacity:.55}
body.allo-light-theme .report-panel{background:var(--allo-surface);border-color:var(--allo-border);color:var(--allo-text);box-shadow:var(--allo-shadow)}
body.allo-light-theme .report-control{background:var(--allo-surface-2);border-color:var(--allo-border);color:var(--allo-text)}
body.allo-light-theme .report-label,body.allo-light-theme .report-panel__header button{color:var(--allo-muted)}

@media(prefers-reduced-motion:reduce){.catalog-page,.upload-drawer{transition:none!important}}
