/* Studio56 site themes — applied via <html data-site-theme="..."> (value saved from admin → Εμφάνιση → Θέμα ιστοσελίδας).
   "current" = no overrides (original look). */
html[data-site-theme="light"]{--t-bg:#eef3fa;--t-surface:#ffffff;--t-surface2:#f3f7fc;--t-line:#d3dfee;--t-text:#17324d;--t-muted:#5b7088;--t-accent:#2879ee;--t-accent-text:#ffffff}
html[data-site-theme="dark"]{--t-bg:#12151b;--t-surface:#1b1f27;--t-surface2:#252b36;--t-line:#414957;--t-text:#e8edf5;--t-muted:#9aa6b8;--t-accent:#3289ed;--t-accent-text:#ffffff}
html[data-site-theme="blue"]{--t-bg:#0c1a30;--t-surface:#10213b;--t-surface2:#18325a;--t-line:#304d75;--t-text:#e6f0ff;--t-muted:#9db6d6;--t-accent:#3289ed;--t-accent-text:#ffffff}
html[data-site-theme="purple"]{--t-bg:#170f22;--t-surface:#20152d;--t-surface2:#2e1d40;--t-line:#573b70;--t-text:#f0e8fa;--t-muted:#b9a5d1;--t-accent:#a56bfa;--t-accent-text:#ffffff}

/* shared rules for all non-"current" themes */
html:is([data-site-theme="light"],[data-site-theme="dark"],[data-site-theme="blue"],[data-site-theme="purple"]){color-scheme:dark}
html[data-site-theme="light"]{color-scheme:light}
html[data-site-theme]:not([data-site-theme="current"]) body:not([style*="background-image"]){background:var(--t-bg)!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.panel,.chat.panel,.left nav,.box,.cols form,.studio56-header,.radio-bottom-bar,.studio-modal-window,.studio56-admin-menu,.emoji-picker,.auth-card,.profile-card,.user-card-body):not([style*="background-image"]){background:var(--t-surface)!important;border-color:var(--t-line)!important;color:var(--t-text)!important;box-shadow:none!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(#messages .chat-message,#messages p,.left nav a,.left nav button,.user-list-button,.app>.right #on p,.app>.right #off.list p,.pm-bubble,.studio56-admin-menu-item,.pm-chat-compose,.field){background:var(--t-surface2)!important;border-color:var(--t-line)!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(input,textarea,select,#body){background:var(--t-surface2)!important;color:var(--t-text)!important;border-color:var(--t-line)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(input,textarea)::placeholder{color:var(--t-muted)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(button.send-btn,.send-btn,.tab.active,.radio-play,button[type=submit]){background:var(--t-accent)!important;color:var(--t-accent-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(h1,h2,h3,.nav-label,.user-list-name,.chat-message-main,.chat-message-body,.radio-track-name,.studio56-header-username){color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.chat-message-meta,small,.hint,.user-list-last-seen,.radio-track-line,.form-heading p){color:var(--t-muted)!important}
html[data-site-theme]:not([data-site-theme="current"]) a:not(.send-btn){color:var(--t-accent)}
html[data-site-theme]:not([data-site-theme="current"]) :is(.online-nav-count,.user-count-pill){border-color:var(--t-accent)!important}
html[data-site-theme]:not([data-site-theme="current"]) .studio-modal-backdrop{background:rgba(0,0,0,.55)!important}

/* light only: darker text for pieces that were bright-on-dark by default */
html[data-site-theme="light"] :is(.nav-label,.user-list-name,#messages p,#messages .chat-message *:not(img):not(.avatar-online-dot):not(b),.studio56-header-username,.radio-bottom-brand){color:var(--t-text)!important}
html[data-site-theme="light"] #messages .avatar-online-dot{border-color:#fff!important}


/* ===== v2: leftover dark areas / unreadable text found in the light theme screenshot ===== */
html[data-site-theme]:not([data-site-theme="current"]) :is(.app,.left,.right,.app>.left,.app>.right,main.chat-wrap,.camera-panel){background:transparent!important;box-shadow:none!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.camera-frame,.left iframe){background:var(--t-surface2)!important;border-color:var(--t-line)!important}
html[data-site-theme]:not([data-site-theme="current"]) .presence-system-message{background:var(--t-surface2)!important;border-color:var(--t-line)!important;box-shadow:none!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) .presence-system-message :is(b,.presence-event-copy,.presence-event-verb,span){color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) .presence-system-message .presence-system-icon{background:var(--t-surface)!important;border-color:var(--t-line)!important}
html[data-site-theme]:not([data-site-theme="current"]) .app>.right :is(#on,#off,#pmusers).list p :is(button,.user-list-button,.user-list-row){background:var(--t-surface2)!important;border-color:var(--t-line)!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) .app>.right :is(#on,#off,#pmusers).list p :is(button,.user-list-button):hover{border-color:var(--t-accent)!important;background:var(--t-surface)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.user-list-name,.user-list-details){color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.user-list-last-seen,.user-list-age){color:var(--t-muted)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.user-list-heading,.online-heading,.offline-heading,.app>.right>.panel>h3){color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) .app>.right>.panel>h3{border-bottom-color:var(--t-line)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(#send,#psend){background:var(--t-surface2)!important;border-color:var(--t-line)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(#send,#psend) input{color:var(--t-text)!important;background:var(--t-surface)!important;border-radius:9px!important}
html[data-site-theme]:not([data-site-theme="current"]) #send>button.emoji-toggle{background:var(--t-surface)!important;color:var(--t-accent)!important;border-color:var(--t-line)!important}
html[data-site-theme]:not([data-site-theme="current"]) .radio-bottom-bar{background:var(--t-surface)!important;border-top-color:var(--t-line)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.radio-controls,.radio-track-info,.radio-volume){background:var(--t-surface2)!important;border-color:var(--t-line)!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) .radio-bottom-brand b{color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) .radio-bottom-brand small{color:var(--t-accent)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.radio-track-name,.radio-track-line,.radio-live-label){color:var(--t-text)!important}

/* pills (“1 online”, counts) — readable on every theme */
html[data-site-theme="light"] :is(.online-nav-count,.user-count-pill,.online-count-pill,.app>.right>.panel>h3 span,#onc,#offc){background:#e6f7ef!important;border:1px solid #9bd9bb!important;color:#0a7a4b!important}
html[data-site-theme="light"] :is(.offline-count-pill,#offc){background:#eef2f7!important;border-color:#cbd5e1!important;color:#51657d!important}
html[data-site-theme="light"] :is(.user-list-status){color:var(--t-muted)!important}


/* ===== v3: offline row (the <p> itself is .user-list-row), scrollbars, username shine, volume ===== */
html[data-site-theme]:not([data-site-theme="current"]) .app>.right .list p.user-list-row,html[data-site-theme]:not([data-site-theme="current"]) .app>.right #off.list p{background:var(--t-surface2)!important;border:1px solid var(--t-line)!important;color:var(--t-text)!important;box-shadow:none!important}
html[data-site-theme]:not([data-site-theme="current"]) .app>.right #off.list p.user-list-row .user-list-button{background:transparent!important;border-color:transparent!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(#messages,.list,.app>.right .list,.user-card-body,.pm-chat-messages,.pm-modal-users){scrollbar-color:var(--t-line) transparent!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.radio-volume-slider,.radio-volume input){background:var(--t-line)!important;accent-color:var(--t-accent)}
html[data-site-theme="light"]{--username-shine-color:#1f2937}


/* ===== v4: profile / moderation modal ===== */
html[data-site-theme]:not([data-site-theme="current"]) :is(.studio-modal-head,.pm-chat-head){background:var(--t-surface2)!important;border-bottom:1px solid var(--t-line)!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) .studio-modal-close{background:var(--t-surface)!important;border-color:var(--t-line)!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) .studio-modal-window{border-color:var(--t-accent)!important;box-shadow:0 18px 50px rgba(0,0,0,.28)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.user-card-name,.profile-card-name){color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.profile-card-status,.moderation-panel){background:var(--t-surface2)!important;border:1px solid var(--t-line)!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) .moderation-panel>label{color:var(--t-muted)!important}
html[data-site-theme]:not([data-site-theme="current"]) .moderation-panel>select{background:var(--t-surface)!important;color:var(--t-text)!important;border-color:var(--t-line)!important}
html[data-site-theme]:not([data-site-theme="current"]) .moderation-grid button{background:var(--t-accent)!important;color:var(--t-accent-text)!important}


/* ===== v5: all remaining popups — PM list/chat, emoji picker, account menu, settings & blocked iframes, legal pages ===== */
/* windows & iframes */
html[data-site-theme]:not([data-site-theme="current"]) :is(.studio-modal-frame,#studioModal .studio-modal-frame){background:var(--t-surface)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.pm-chat-window,.pm-list-window,.user-card-window){background:var(--t-surface)!important;color:var(--t-text)!important}
/* private-message list */
html[data-site-theme]:not([data-site-theme="current"]) .pm-modal-user{background:var(--t-surface2)!important;border-color:var(--t-line)!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) .pm-modal-user:hover,html[data-site-theme]:not([data-site-theme="current"]) .pm-modal-user:focus-visible{background:var(--t-surface)!important;border-color:var(--t-accent)!important}
html[data-site-theme]:not([data-site-theme="current"]) .pm-modal-user-text small{color:var(--t-muted)!important}
/* private-message chat */
html[data-site-theme]:not([data-site-theme="current"]) :is(.pm-chat-messages,#pmChatModal .pm-chat-messages){background:var(--t-surface)!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) .pm-chat-messages p{background:var(--t-surface2)!important;border-color:var(--t-line)!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) .pm-chat-messages small,html[data-site-theme]:not([data-site-theme="current"]) .pm-empty,html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal .pm-chat-messages .pm-empty{color:var(--t-muted)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.pm-bubble.received,#pmChatModal .pm-bubble.received){background:var(--t-surface2)!important;color:var(--t-text)!important;border:1px solid var(--t-line)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.pm-bubble.sent,#pmChatModal .pm-bubble.sent){background:var(--t-accent)!important;color:var(--t-accent-text)!important;border:1px solid var(--t-accent)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.pm-bubble small,.pm-bubble time){color:inherit!important;opacity:.75}
html[data-site-theme]:not([data-site-theme="current"]) :is(#pmChatModal .pm-chat-profile-action,#pmChatModal #pmChatClose){background:var(--t-surface)!important;border-color:var(--t-line)!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.pm-chat-compose,#pmChatModal #psend){background:var(--t-surface2)!important;border-color:var(--t-line)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.pm-chat-compose input,#pmChatModal #psend>input){background:var(--t-surface)!important;color:var(--t-text)!important;border-color:var(--t-line)!important}
html[data-site-theme]:not([data-site-theme="current"]) .pm-voice-status{background:var(--t-surface2)!important;color:var(--t-text)!important;border-color:var(--t-line)!important}
html[data-site-theme]:not([data-site-theme="current"]) .pm-ignore-notice{background:var(--t-surface2)!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) .pm-ignore-notice p{color:var(--t-muted)!important}
/* emoji / smiley picker */
html[data-site-theme]:not([data-site-theme="current"]) .emoji-picker{background:var(--t-surface)!important;border-color:var(--t-line)!important;box-shadow:0 12px 28px rgba(0,0,0,.2)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.s56-smiley-head,.s56-smiley-grid,#emojiPicker){color:var(--t-text)!important}
/* account dropdown & small action menus */
html[data-site-theme]:not([data-site-theme="current"]) :is(.studio56-admin-menu,.pm-actions-menu){background:var(--t-surface)!important;border-color:var(--t-line)!important;box-shadow:0 12px 30px rgba(0,0,0,.22)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.studio56-admin-menu-item,.studio56-menu-logout,.pm-actions-menu button){background:transparent!important;color:var(--t-text)!important;border-color:var(--t-line)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.studio56-admin-menu-item,.studio56-menu-logout,.pm-actions-menu button):hover{background:var(--t-surface2)!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) .studio56-admin-menu-heading{color:var(--t-muted)!important;border-bottom-color:var(--t-line)!important}
html[data-site-theme]:not([data-site-theme="current"]) .studio56-menu-divider{background:var(--t-line)!important}
/* profile card details */
html[data-site-theme]:not([data-site-theme="current"]) :is(.profile-card-copy>b,.profile-card-fallback){color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.profile-card-copy>small,.profile-card-age){color:var(--t-muted)!important}
html[data-site-theme]:not([data-site-theme="current"]) .profile-card-top{border-bottom-color:var(--t-line)!important}
/* settings page (profile.php inside the popup) */
html[data-site-theme]:not([data-site-theme="current"]) :is(.profile-wrap,.profile-section,.profile-preview-card,.profile-head,.profile-footer){background:var(--t-surface)!important;border-color:var(--t-line)!important;color:var(--t-text)!important;box-shadow:none!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.profile-section h2,.profile-section h3,.profile-heading-copy,.profile-heading-copy *,.field-block label,.section-title-row,.save-copy){color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.profile-eyebrow,.profile-head-pill,.field-block small,.save-copy small){color:var(--t-muted)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.profile-section input,.profile-section select,.profile-section textarea){background:var(--t-surface2)!important;color:var(--t-text)!important;border-color:var(--t-line)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.profile-actions button,.profile-form button[type=submit]){background:var(--t-accent)!important;color:var(--t-accent-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) .profile-notice.success{background:rgba(34,160,100,.14)!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) .profile-notice.error{background:rgba(220,60,70,.14)!important;color:var(--t-text)!important}
/* blocked users page + legal pages */
html[data-site-theme]:not([data-site-theme="current"]) :is(.blocked-intro,.blocked-user,.blocked-empty,.legal-wrap){background:var(--t-surface)!important;border-color:var(--t-line)!important;color:var(--t-text)!important;box-shadow:none!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.blocked-avatar,.blocked-symbol){background:var(--t-surface)!important;border-color:var(--t-line)!important;color:var(--t-accent)!important}
html[data-site-theme]:not([data-site-theme="current"]) .legal-wrap :is(h1,h2,h3,p,li,small,span){color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(body.profile-page,body.blocked-page,body.legal-page){background:var(--t-bg)!important}


/* ===== v6: popups opened from the left menu (Προσωπικά, Αποκλεισμένοι, Ρυθμίσεις Προφίλ) — iframe pages ===== */
html[data-site-theme]:not([data-site-theme="current"]){background:var(--t-bg)!important;--p-bg:var(--t-bg);--p-text:var(--t-text);--p-muted:var(--t-muted);--p-line:var(--t-line)}
html[data-site-theme]:not([data-site-theme="current"]) body:not([style*="background-image"]){background:var(--t-bg)!important}
html[data-site-theme]:not([data-site-theme="current"]) body{color:var(--t-text)!important}

/* Ρυθμίσεις Προφίλ */
html[data-site-theme]:not([data-site-theme="current"]) :is(.profile-head,.profile-preview-card,.profile-section,.profile-actions){background:var(--t-surface)!important;border:1px solid var(--t-line)!important;box-shadow:none!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) .profile-head:after{display:none!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.profile-head h1,.section-title-row h2,.save-copy strong,.field-block label,.preview-user-copy>strong:not(.preview-rainbow)){color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.profile-head p,.section-title-row p,.field-block small,.save-copy small,.preview-topline,.preview-live,.preview-presence,.preview-footnote,.profile-footer,.profile-footer span,.section-number,.color-control span){color:var(--t-muted)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.profile-eyebrow,.preview-footnote span,.preview-sparkle){color:var(--t-accent)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.profile-icon,.section-icon,.preview-sparkle,.save-copy>span,.profile-head-pill){background:var(--t-surface2)!important;border-color:var(--t-line)!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) .section-title-row,html[data-site-theme]:not([data-site-theme="current"]) .preview-footnote{border-color:var(--t-line)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.field-block input:not([type=color]):not([type=file]),.field-block select,.color-control,.avatar-upload){background:var(--t-surface2)!important;border-color:var(--t-line)!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) .field-block input:not([type=color]):not([type=file]):focus,html[data-site-theme]:not([data-site-theme="current"]) .field-block select:focus{border-color:var(--t-accent)!important;background:var(--t-surface)!important}
html[data-site-theme]:not([data-site-theme="current"]) .field-block input[type=file]{color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) .field-block input[type=file]::file-selector-button{background:var(--t-surface)!important;border-color:var(--t-line)!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) .preview-avatar{background:var(--t-surface2)!important}
html[data-site-theme]:not([data-site-theme="current"]) .profile-actions button{background:var(--t-accent)!important;border-color:var(--t-accent)!important;color:var(--t-accent-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) .profile-notice.success{background:rgba(34,160,100,.14)!important;border-color:rgba(34,160,100,.4)!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) .profile-notice.error{background:rgba(220,60,70,.14)!important;border-color:rgba(220,60,70,.4)!important;color:var(--t-text)!important}

/* Αποκλεισμένοι χρήστες */
html[data-site-theme]:not([data-site-theme="current"]) :is(.blocked-intro,.blocked-user,.blocked-empty){background:var(--t-surface)!important;border-color:var(--t-line)!important;box-shadow:none!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.blocked-user,.blocked-empty){background:var(--t-surface2)!important}
html[data-site-theme]:not([data-site-theme="current"]) .blocked-intro h1{color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.blocked-intro p,.blocked-role,.blocked-empty p,.blocked-note){color:var(--t-muted)!important}
html[data-site-theme]:not([data-site-theme="current"]) .blocked-empty h2{color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) :is(.blocked-symbol,.blocked-avatar){background:var(--t-surface)!important;border-color:var(--t-line)!important;color:var(--t-accent)!important}
html[data-site-theme]:not([data-site-theme="current"]) .blocked-count{background:var(--t-surface2)!important;border-color:var(--t-line)!important;color:var(--t-muted)!important}
html[data-site-theme]:not([data-site-theme="current"]) .unblock-btn{background:var(--t-accent)!important;border-color:var(--t-accent)!important;color:var(--t-accent-text)!important}


/* ===== v7: Προσωπικές συνομιλίες (#pmChatModal) — real class names + ID specificity ===== */
html[data-site-theme="light"] #pmChatModal{background:rgba(30,41,59,.45)!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal .pm-chat-window{background:var(--t-surface)!important;border-color:var(--t-accent)!important;box-shadow:0 18px 52px rgba(0,0,0,.28)!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal .pm-chat-head{background:var(--t-surface2)!important;border-bottom:1px solid var(--t-line)!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal #ptitle{color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal #pmChatPresence{color:var(--t-muted)!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal .pm-chat-avatar{background:var(--t-surface)!important;border-color:var(--t-accent)!important;color:var(--t-accent)!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal :is(.pm-chat-profile-action,#pmChatClose){background:var(--t-surface)!important;border:1px solid var(--t-line)!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal :is(.pm-chat-profile-action,#pmChatClose):hover{border-color:var(--t-accent)!important;background:var(--t-surface2)!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal .pm-chat-messages{background:var(--t-surface)!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal .pm-chat-messages .pm-empty{color:var(--t-muted)!important}
/* bubbles: theirs / mine */
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal .pm-bubble{background:var(--t-surface2)!important;border:1px solid var(--t-line)!important;color:var(--t-text)!important;box-shadow:none!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal .pm-bubble-row.mine .pm-bubble{background:var(--t-accent)!important;border-color:var(--t-accent)!important;color:var(--t-accent-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal .pm-bubble small{color:var(--t-muted)!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal .pm-bubble-row.mine .pm-bubble small{color:var(--t-accent-text)!important;opacity:.8}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal .pm-message-avatar{border-color:var(--t-line)!important}
/* voice messages */
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal .pm-bubble-voice :is(.pm-audio-label,.pm-audio-meta,.pm-audio-time){color:inherit!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal .pm-bubble-voice .pm-audio-play{background:var(--t-surface)!important;border:1px solid var(--t-accent)!important;color:var(--t-accent)!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal .pm-bubble-voice .pm-audio-play:hover{background:var(--t-surface2)!important;border-color:var(--t-accent)!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal .pm-bubble-voice .pm-audio-trackline{background:var(--t-line)!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal .pm-bubble-voice .pm-audio-seek::-webkit-slider-runnable-track{background:linear-gradient(90deg,var(--t-accent) var(--pm-progress,0%),var(--t-line) var(--pm-progress,0%))!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal .pm-bubble-voice .pm-audio-seek::-moz-range-track{background:var(--t-line)!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal .pm-bubble-voice .pm-audio-seek::-moz-range-progress{background:var(--t-accent)!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal .pm-bubble-voice .pm-audio-seek::-webkit-slider-thumb{border-color:var(--t-accent)!important;background:var(--t-surface)!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal .pm-bubble-voice .pm-audio-seek::-moz-range-thumb{border-color:var(--t-accent)!important;background:var(--t-surface)!important}
/* notices, status, emoji */
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal .pm-ignore-notice{background:var(--t-surface2)!important;border:1px solid var(--t-line)!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal .pm-ignore-notice p{color:var(--t-muted)!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal .pm-voice-status{background:var(--t-surface2)!important;border-color:var(--t-line)!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal .pm-voice-status.error{color:#dc2626!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal #pmEmojiPicker{background:var(--t-surface)!important;border:1px solid var(--t-line)!important}
/* compose bar */
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal #psend{background:var(--t-surface2)!important;border-top:1px solid var(--t-line)!important;box-shadow:none!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal #psend>input{background:var(--t-surface)!important;border:1px solid var(--t-line)!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal #psend>input::placeholder{color:var(--t-muted)!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal #psend>button{background:var(--t-surface)!important;border:1px solid var(--t-line)!important;color:var(--t-text)!important;box-shadow:none!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal #psend>button:hover{background:var(--t-surface2)!important;border-color:var(--t-accent)!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal #psend>button.send-btn{background:var(--t-accent)!important;border-color:var(--t-accent)!important;color:var(--t-accent-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal #psend .pm-voice-btn.recording{background:#dc2626!important;border-color:#dc2626!important;color:#fff!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal .pm-voice-cancel-icon{background:var(--t-surface)!important;border-color:var(--t-line)!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmChatModal :is(.pm-chat-messages)::-webkit-scrollbar-thumb{background:var(--t-line)!important}


/* ===== v8: windows are styled with ID selectors + !important gradient in style.css (line ~1771) — match that specificity ===== */
html[data-site-theme]:not([data-site-theme="current"]) :is(#studioModal .studio-modal-window,#pmChatModal .pm-chat-window,#pmListModal .pm-list-window,#userCardModal .user-card-window){background:var(--t-surface)!important;border:1px solid var(--t-accent)!important;box-shadow:0 18px 52px rgba(0,0,0,.28)!important;color:var(--t-text)!important}
html[data-site-theme="light"] :is(.studio-modal-backdrop,.pm-list-backdrop,#pmListModal,#studioModal,#pmChatModal,#userCardModal){background:rgba(30,41,59,.45)!important}
/* Προσωπικές συνομιλίες (list) */
html[data-site-theme]:not([data-site-theme="current"]) #pmListModal :is(.studio-modal-head,#pmListTitle){color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmListModal .pm-modal-users{background:var(--t-surface)!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmListModal .pm-modal-user-text b{color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) #pmListModal .pm-modal-user-text small{color:var(--t-muted)!important}
html[data-site-theme]:not([data-site-theme="current"]) .pm-user-actions-toggle{background:var(--t-surface2)!important;border:1px solid var(--t-line)!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) .pm-user-actions-toggle:hover,html[data-site-theme]:not([data-site-theme="current"]) .pm-user-actions-toggle[aria-expanded="true"]{background:var(--t-surface)!important;border-color:var(--t-accent)!important}
html[data-site-theme]:not([data-site-theme="current"]) .pm-actions-menu .pm-delete-action{color:#dc2626!important}
html[data-site-theme]:not([data-site-theme="current"]) .pm-unignore-btn{background:var(--t-surface2)!important;color:var(--t-text)!important;border:1px solid var(--t-line)!important}
html[data-site-theme]:not([data-site-theme="current"]) .pm-unread-badge{color:#fff!important}


/* ===== v9: login / register page ===== */
/* Chrome autofill: style.css paints a dark inset shadow (#071b32) + white text */
html[data-site-theme]:not([data-site-theme="current"]) .auth-card input:-webkit-autofill,html[data-site-theme]:not([data-site-theme="current"]) .auth-card input:-webkit-autofill:hover,html[data-site-theme]:not([data-site-theme="current"]) .auth-card input:-webkit-autofill:focus{-webkit-box-shadow:0 0 0 1000px var(--t-surface2) inset!important;-webkit-text-fill-color:var(--t-text)!important;caret-color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) .auth-card .field,html[data-site-theme]:not([data-site-theme="current"]) .auth-card:not(.register-mode) .field,html[data-site-theme]:not([data-site-theme="current"]) .auth-card.register-mode #registerForm .field{background:var(--t-surface2)!important;border:1px solid var(--t-line)!important;box-shadow:none!important}
html[data-site-theme]:not([data-site-theme="current"]) .auth-card .field:focus-within{border-color:var(--t-accent)!important}
html[data-site-theme]:not([data-site-theme="current"]) .auth-card .field input,html[data-site-theme]:not([data-site-theme="current"]) .auth-card:not(.register-mode) .field input,html[data-site-theme]:not([data-site-theme="current"]) .auth-card.register-mode #registerForm .field input{background:transparent!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) .auth-card .field input::placeholder{color:var(--t-muted)!important}
html[data-site-theme]:not([data-site-theme="current"]) .auth-card :is(.field>span,.eye,.form-heading>span,#registerForm .form-heading>span){color:var(--t-accent)!important}
html[data-site-theme]:not([data-site-theme="current"]) .auth-card :is(.form-heading>span,#registerForm .form-heading>span){background:var(--t-surface2)!important;border-color:var(--t-line)!important}
/* tabs */
html[data-site-theme]:not([data-site-theme="current"]) .auth-tabs,html[data-site-theme]:not([data-site-theme="current"]) .auth-card.register-mode .auth-tabs{background:var(--t-surface2)!important;border:1px solid var(--t-line)!important}
html[data-site-theme]:not([data-site-theme="current"]) .auth-tabs .tab{background:transparent!important;color:var(--t-muted)!important;box-shadow:none!important}
html[data-site-theme]:not([data-site-theme="current"]) .auth-tabs .tab.active{background:var(--t-accent)!important;color:var(--t-accent-text)!important}
/* texts */
html[data-site-theme]:not([data-site-theme="current"]) .auth-card :is(.form-heading h1,#registerForm .form-heading h1){color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) .auth-card :is(.form-heading p,.hint,.switch-copy,.guest-separator,.terms,.terms span,#registerForm .hint,#registerForm .form-heading p){color:var(--t-muted)!important}
html[data-site-theme]:not([data-site-theme="current"]) .auth-card .switch-copy button{color:var(--t-accent)!important}
html[data-site-theme]:not([data-site-theme="current"]) .auth-card .terms{background:var(--t-surface2)!important;border-color:var(--t-line)!important}
html[data-site-theme]:not([data-site-theme="current"]) .auth-card:before{color:var(--t-accent)!important}
html[data-site-theme]:not([data-site-theme="current"]) .auth-error,html[data-site-theme]:not([data-site-theme="current"]) .auth-card .err{background:rgba(220,60,70,.12)!important;border-color:rgba(220,60,70,.4)!important;color:var(--t-text)!important}
/* left brand column: remove the black glow that blurs text on a light page */
html[data-site-theme="light"] body.auth-page:not([style*="background-image"]) .auth-brand{text-shadow:none!important}
html[data-site-theme="light"] body.auth-page:not([style*="background-image"]) .auth-brand :is(.tagline,.features div,.features span,.features strong){color:#0f2438!important}
html[data-site-theme="light"] body.auth-page:not([style*="background-image"]) .auth-brand .features small,html[data-site-theme="light"] body.auth-page:not([style*="background-image"]) .auth-brand .features p{color:#1f3a52!important}


/* ===== v10: smiley / emoji picker (#emojiPicker) ===== */
html[data-site-theme]:not([data-site-theme="current"]) #emojiPicker{background:var(--t-surface)!important;border:1px solid var(--t-line)!important;box-shadow:0 12px 30px rgba(0,0,0,.2)!important}
html[data-site-theme]:not([data-site-theme="current"]) #emojiPicker .s56-smiley-image{background:var(--t-surface2)!important;border:1px solid var(--t-line)!important;box-shadow:none!important}
html[data-site-theme]:not([data-site-theme="current"]) #emojiPicker .s56-smiley-image:hover,html[data-site-theme]:not([data-site-theme="current"]) #emojiPicker .s56-smiley-image:focus-visible{background:var(--t-surface)!important;border-color:var(--t-accent)!important;box-shadow:0 5px 13px rgba(0,0,0,.14)!important}
html[data-site-theme]:not([data-site-theme="current"]) #emojiPicker .s56-smiley-image.smiley-missing{color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) #emojiPicker .s56-smiley-close{background:var(--t-surface2)!important;border:1px solid var(--t-line)!important;color:var(--t-text)!important}
html[data-site-theme]:not([data-site-theme="current"]) #emojiPicker .s56-smiley-close:hover{background:#dc2626!important;border-color:#dc2626!important;color:#fff!important}
html[data-site-theme]:not([data-site-theme="current"]) #emojiPicker .s56-smiley-note{background:var(--t-surface2)!important;border-color:var(--t-line)!important;color:var(--t-muted)!important}
html[data-site-theme]:not([data-site-theme="current"]) #emojiPicker .s56-smiley-grid{scrollbar-color:var(--t-line) transparent!important}
html[data-site-theme]:not([data-site-theme="current"]) #emojiPicker .s56-smiley-grid::-webkit-scrollbar-thumb{background:var(--t-line)!important}
html[data-site-theme]:not([data-site-theme="current"]) #emojiPicker .s56-smiley-grid::-webkit-scrollbar-track{background:var(--t-surface2)!important}
html[data-site-theme]:not([data-site-theme="current"]) #emojiPicker .s56-smiley-tabs{scrollbar-color:var(--t-line) transparent!important}
html[data-site-theme]:not([data-site-theme="current"]) #emojiPicker .s56-smiley-tabs::-webkit-scrollbar-thumb{background:var(--t-line)!important}
html[data-site-theme]:not([data-site-theme="current"]) #emojiPicker .s56-smiley-tabs::-webkit-scrollbar-track{background:var(--t-surface2)!important}


/* ===== v11: keep the custom backgrounds set from admin (login page, page body, chat panel) ===== */
html[data-site-theme]:not([data-site-theme="current"]):has(body[style*="background-image"]){background:transparent!important}
html[data-site-theme]:not([data-site-theme="current"]) main#chat[style*="background-image"]{border-color:var(--t-line)!important}
html[data-site-theme]:not([data-site-theme="current"]) body[style*="background-image"]{background-size:cover!important;background-position:center!important}


/* ===== v12: when a background photo is set, let it show through panels, rows and columns ===== */
html[data-site-theme="light"]:has(body[style*="background-image"]){--t-surface:color-mix(in srgb,#ffffff 72%,transparent);--t-surface2:color-mix(in srgb,#f3f7fc 62%,transparent)}
html[data-site-theme="light"]:has(body[style*="background-image"]) :is(#studioModal,#pmChatModal,#pmListModal,#userCardModal,#emojiPicker,.emoji-picker,.pm-emoji-picker,.studio56-admin-menu,.pm-actions-menu,.studio-modal-window,.pm-chat-window,.pm-list-window,.user-card-window){--t-surface:#ffffff;--t-surface2:#f3f7fc}
html[data-site-theme="dark"]:has(body[style*="background-image"]){--t-surface:color-mix(in srgb,#1b1f27 72%,transparent);--t-surface2:color-mix(in srgb,#252b36 62%,transparent)}
html[data-site-theme="dark"]:has(body[style*="background-image"]) :is(#studioModal,#pmChatModal,#pmListModal,#userCardModal,#emojiPicker,.emoji-picker,.pm-emoji-picker,.studio56-admin-menu,.pm-actions-menu,.studio-modal-window,.pm-chat-window,.pm-list-window,.user-card-window){--t-surface:#1b1f27;--t-surface2:#252b36}
html[data-site-theme="blue"]:has(body[style*="background-image"]){--t-surface:color-mix(in srgb,#10213b 72%,transparent);--t-surface2:color-mix(in srgb,#18325a 62%,transparent)}
html[data-site-theme="blue"]:has(body[style*="background-image"]) :is(#studioModal,#pmChatModal,#pmListModal,#userCardModal,#emojiPicker,.emoji-picker,.pm-emoji-picker,.studio56-admin-menu,.pm-actions-menu,.studio-modal-window,.pm-chat-window,.pm-list-window,.user-card-window){--t-surface:#10213b;--t-surface2:#18325a}
html[data-site-theme="purple"]:has(body[style*="background-image"]){--t-surface:color-mix(in srgb,#20152d 72%,transparent);--t-surface2:color-mix(in srgb,#2e1d40 62%,transparent)}
html[data-site-theme="purple"]:has(body[style*="background-image"]) :is(#studioModal,#pmChatModal,#pmListModal,#userCardModal,#emojiPicker,.emoji-picker,.pm-emoji-picker,.studio56-admin-menu,.pm-actions-menu,.studio-modal-window,.pm-chat-window,.pm-list-window,.user-card-window){--t-surface:#20152d;--t-surface2:#2e1d40}
html[data-site-theme]:not([data-site-theme="current"]):has(body[style*="background-image"]) :is(.app,.left,.right,aside.left,aside.right,.app>.left,.app>.right){background:transparent!important;border-color:transparent!important;box-shadow:none!important}
html[data-site-theme]:not([data-site-theme="current"]):has(body[style*="background-image"]) :is(#messages,.chat-wrap,main#chat>#messages){background:transparent!important}
html[data-site-theme]:not([data-site-theme="current"]):has(body[style*="background-image"]) :is(#messages .chat-message,.presence-system-message){backdrop-filter:blur(6px)}
html[data-site-theme]:not([data-site-theme="current"]):has(body[style*="background-image"]) :is(.panel,.left nav,.studio56-header,.radio-bottom-bar){backdrop-filter:blur(8px)}


/* ===== v13: photo + light theme ===== */
/* chat page: style.css hides the body photo, so the page colour must still follow the theme (was left dark in the light theme) */
html[data-site-theme]:not([data-site-theme="current"]) body[style*="background-image"]:not(.auth-page){background-color:var(--t-bg)!important}
