/* PULZERA 4.0 — Apariencias originales de PULZERA inspiradas en eras 2005 y 2009.
   No incorpora logotipos, sonidos, imágenes ni recursos de Microsoft. */
.theme-switcher{align-self:center;display:flex;align-items:center;gap:8px;margin-left:auto;color:#e7f5ff;font-size:11px;font-weight:750;white-space:nowrap}
.theme-switcher select{max-width:174px;padding:9px 10px;background:#0a56a5;border:1px solid #91d4ff70;color:white;border-radius:9px;font-size:12px;font-weight:650;outline-offset:2px}
.theme-switcher~.top-right{margin-left:1px}
.auth-theme{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 13px;margin:0 0 14px;background:#51a0ff14;border:1px solid #79bcff4f;border-radius:12px}
.auth-theme label{font-size:12px;color:#b8e1ff;font-weight:700}.auth-theme select{max-width:55%;padding:8px;border:1px solid #74a7dd;border-radius:7px;background:#123468;color:#fff;font-size:12px}
.theme-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:13px}
.theme-card{display:flex;align-items:center;flex-direction:column;gap:6px;text-align:center;min-width:0;padding:12px 7px 10px;border:2px solid #d8e4f3;border-radius:13px;background:#f7faff;color:#2d4a6d;transition:border-color .2s,transform .2s}
.theme-card:hover{transform:translateY(-2px)}.theme-card.active{border-color:#1988f6;background:#e8f5ff;box-shadow:0 0 0 2px #81c8ff66}
.theme-card strong{font-size:11px;line-height:1.35}.theme-card small{font-size:9px;color:#63829d}
.theme-illustration{width:85%;height:48px;border:1px solid #8da7c1;border-radius:5px;display:flex;flex-direction:column;gap:5px;padding:6px;background:#d7e9ff;box-shadow:inset 0 7px #4f9fe7}
.theme-illustration i{display:block;background:#fff;border:1px solid #b7d7e8;border-radius:1px;height:7px;width:88%}.theme-illustration i:nth-child(2){width:65%}.theme-illustration i:nth-child(3){width:74%}
.theme-mini-2005{background:#f8fbff;box-shadow:inset 0 7px #0968d9;border-color:#32649f}.theme-mini-2009{background:#c9efff;box-shadow:inset 0 7px #4eb6ed;border-color:#89d2ee}.theme-mini-modern{background:#112b7d;box-shadow:inset 0 7px #0a87ec;border-color:#144cbd}.theme-mini-modern i{background:#3397ff;border-color:#48cbff}

/* Shared retro structure: separate resizable-feeling contact/chat windows, a classic messenger rather than modern bubbles. */
body[data-theme="2005"],body[data-theme="2009"]{--ink:#172e50;background:#b7dcf9;color:#183452;font:13px Tahoma,'Segoe UI',Verdana,sans-serif}
body[data-theme="2005"]:before,body[data-theme="2009"]:before{display:none}
body[data-theme="2005"] .app,body[data-theme="2009"] .app{max-width:1460px;min-height:100dvh;padding:17px 20px 23px;gap:12px}
body[data-theme="2005"] .masthead,body[data-theme="2009"] .masthead{height:52px;min-height:52px;padding:0 8px;color:#235694}
body[data-theme="2005"] .mast-brand strong,body[data-theme="2009"] .mast-brand strong{color:#1b61a6;text-shadow:0 1px #fff;font-size:25px;letter-spacing:-.7px}
body[data-theme="2005"] .mast-brand em,body[data-theme="2009"] .mast-brand em{color:#3485b4;text-shadow:0 1px #fff}
body[data-theme="2005"] .mast-tag,body[data-theme="2009"] .mast-tag{color:#4e7ca7}body[data-theme="2005"] .mast-tag small,body[data-theme="2009"] .mast-tag small{color:#6f91ae}
body[data-theme="2005"] .mast-online,body[data-theme="2009"] .mast-online{border-color:#8bbccf;background:#ffffffad;color:#386a9c}
body[data-theme="2005"] .shell,body[data-theme="2009"] .shell{min-height:545px;height:calc(100dvh - 136px);max-height:970px;overflow:visible;display:grid;grid-template-columns:minmax(235px,30%) minmax(0,1fr);gap:14px;border:0;border-radius:0;background:transparent;box-shadow:none}
body[data-theme="2005"] .sidebar,body[data-theme="2005"] .main-pane,body[data-theme="2009"] .sidebar,body[data-theme="2009"] .main-pane{position:relative;min-width:0;min-height:0;overflow:hidden;box-shadow:0 6px 26px #28609163}
body[data-theme="2005"] .sidebar:before,body[data-theme="2005"] .main-pane:before,body[data-theme="2009"] .sidebar:before,body[data-theme="2009"] .main-pane:before{content:'PULZERA Messenger · Contactos';display:flex;align-items:center;box-sizing:border-box;flex:0 0 30px;min-height:30px;padding:0 82px 0 12px;position:relative;font-weight:bold;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-theme="2005"] .main-pane:before,body[data-theme="2009"] .main-pane:before{content:'PULZERA Messenger · Conversación'}
body[data-theme="2005"] .sidebar:after,body[data-theme="2005"] .main-pane:after,body[data-theme="2009"] .sidebar:after,body[data-theme="2009"] .main-pane:after{content:'—  ▢  ×';position:absolute;top:2px;right:5px;font:700 16px Arial,sans-serif;letter-spacing:5px;z-index:2;pointer-events:none}
body[data-theme="2005"] .sidebar-top,body[data-theme="2009"] .sidebar-top{flex-shrink:0;height:52px;padding:7px 12px}
body[data-theme="2005"] .brand,body[data-theme="2009"] .brand{font-style:normal;font-size:18px;text-shadow:0 1px #fff}
body[data-theme="2005"] .brand span>small,body[data-theme="2009"] .brand span>small{letter-spacing:0;font-size:10px}
body[data-theme="2005"] .my-profile,body[data-theme="2009"] .my-profile{padding:12px 14px 5px;gap:11px}
body[data-theme="2005"] .my-profile-text b,body[data-theme="2009"] .my-profile-text b{font-size:15px;color:#164f8a}
body[data-theme="2005"] .my-profile-text span,body[data-theme="2009"] .my-profile-text span{color:#5685ab}
body[data-theme="2005"] .avatar,body[data-theme="2009"] .avatar{width:42px;height:42px;border-radius:6px;border:3px solid #5bc85d;box-shadow:0 1px 4px #0005;background:linear-gradient(125deg,#f9fcff,#75adf5);color:#2d578d}
body[data-theme="2005"] .avatar img,body[data-theme="2009"] .avatar img{border-radius:2px}
body[data-theme="2005"] .avatar-xl,body[data-theme="2009"] .avatar-xl{width:59px;height:59px;font-size:26px}
body[data-theme="2005"] .status-row,body[data-theme="2009"] .status-row{margin:5px 14px 9px}
body[data-theme="2005"] .status-row select,body[data-theme="2009"] .status-row select{color:#245785}
body[data-theme="2005"] .status-chevron,body[data-theme="2009"] .status-chevron{color:#406e9b}
body[data-theme="2005"] .contacts-filter,body[data-theme="2009"] .contacts-filter{margin:0 12px 9px;height:34px;border-radius:4px;background:#fff;border:1px solid #a0bfdc;box-shadow:inset 0 1px 2px #9dbddd55}
body[data-theme="2005"] .main-nav,body[data-theme="2009"] .main-nav{gap:1px;padding:0 10px 7px}
body[data-theme="2005"] .nav-item,body[data-theme="2009"] .nav-item{color:#1a5c93;font-size:12px;min-height:29px;padding:5px 9px;border-radius:3px}
body[data-theme="2005"] .nav-item:hover,body[data-theme="2005"] .nav-item.active,body[data-theme="2009"] .nav-item:hover,body[data-theme="2009"] .nav-item.active{background:#d8ebfb;color:#164b93}
body[data-theme="2005"] .nav-icon,body[data-theme="2009"] .nav-icon{font-size:16px;color:#3c91cc}
body[data-theme="2005"] .sidebar-section-title,body[data-theme="2009"] .sidebar-section-title{font-size:12px;letter-spacing:0;color:#2c6499;font-weight:bold;padding:10px 13px 7px}
body[data-theme="2005"] .sidebar-section-title button,body[data-theme="2009"] .sidebar-section-title button{border-radius:4px;background:linear-gradient(#e5f7ff,#a0d7fb);border:1px solid #69acd9;color:#1563a0}
body[data-theme="2005"] .contact-list,body[data-theme="2009"] .contact-list{padding:3px 10px 9px;background:#fff}
body[data-theme="2005"] .contact-row,body[data-theme="2009"] .contact-row{border-radius:3px;color:#233e63;padding:6px 7px;gap:9px}
body[data-theme="2005"] .contact-row .avatar,body[data-theme="2009"] .contact-row .avatar{width:37px;height:37px}
body[data-theme="2005"] .contact-row:hover,body[data-theme="2009"] .contact-row:hover{background:#e6f5ff}
body[data-theme="2005"] .contact-row.active,body[data-theme="2009"] .contact-row.active{background:linear-gradient(#e9f8ff,#bee4ff);border:1px solid #84bce7;box-shadow:none}
body[data-theme="2005"] .contact-info b,body[data-theme="2009"] .contact-info b{color:#153f74;font-size:12px}
body[data-theme="2005"] .contact-info small,body[data-theme="2009"] .contact-info small{color:#718cab;font-size:11px}
body[data-theme="2005"] .sidebar-bottom,body[data-theme="2009"] .sidebar-bottom{padding:10px;border-top:1px solid #a2c9e3;background:#e8f3ff}
body[data-theme="2005"] .connection,body[data-theme="2009"] .connection{color:#33719f}
body[data-theme="2005"] .logout-button,body[data-theme="2009"] .logout-button{background:#fff;border:1px solid #a7bfda;color:#2d5c91;border-radius:3px}
body[data-theme="2005"] .top-nav,body[data-theme="2009"] .top-nav{height:49px;gap:1px;padding:0 10px;box-shadow:none}
body[data-theme="2005"] .top-link,body[data-theme="2009"] .top-link{min-width:70px;padding:7px 9px;font-weight:normal;font-size:12px;border-bottom:0}
body[data-theme="2005"] .top-link span,body[data-theme="2009"] .top-link span{font-size:17px;display:inline-block;margin-right:4px}
body[data-theme="2005"] .top-link:hover,body[data-theme="2005"] .top-link.active,body[data-theme="2009"] .top-link:hover,body[data-theme="2009"] .top-link.active{background:#ffffff65;border-bottom:0}
body[data-theme="2005"] .theme-switcher,body[data-theme="2009"] .theme-switcher{font-size:11px;color:#215d89}
body[data-theme="2005"] .theme-switcher select,body[data-theme="2009"] .theme-switcher select{background:#fff;color:#265c8a;border:1px solid #86b6d8;border-radius:3px}
body[data-theme="2005"] .top-secure,body[data-theme="2009"] .top-secure{display:none}
body[data-theme="2005"] .top-plus,body[data-theme="2009"] .top-plus{border-radius:4px;background:#d9f3ff;border:1px solid #8dc7e9;color:#1b609b}
body[data-theme="2005"] .chat-pane,body[data-theme="2009"] .chat-pane{background:#fff;color:#203d60}
body[data-theme="2005"] .chat-header,body[data-theme="2009"] .chat-header{min-height:91px;padding:13px 18px}
body[data-theme="2005"] .chat-peer strong,body[data-theme="2009"] .chat-peer strong{font-size:19px}
body[data-theme="2005"] .chat-peer span,body[data-theme="2009"] .chat-peer span{color:#597ea4}
body[data-theme="2005"] .action-button,body[data-theme="2009"] .action-button{border-radius:4px;font-size:12px;color:#1d5b8d}
body[data-theme="2005"] .chat-feed-container,body[data-theme="2009"] .chat-feed-container{background:#fff;padding:12px 18px}
body[data-theme="2005"] .chat-feed,body[data-theme="2009"] .chat-feed{gap:10px;margin:0;max-width:none}
body[data-theme="2005"] .message-row,body[data-theme="2009"] .message-row{align-self:stretch;flex-direction:row;max-width:100%;gap:10px;align-items:flex-start}
body[data-theme="2005"] .message-row.mine,body[data-theme="2009"] .message-row.mine{align-self:stretch;flex-direction:row}
body[data-theme="2005"] .message-avatar,body[data-theme="2009"] .message-avatar{width:28px;height:28px}
body[data-theme="2005"] .message-body-wrap,body[data-theme="2009"] .message-body-wrap{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
body[data-theme="2005"] .message-bubble,body[data-theme="2005"] .message-row.mine .message-bubble,body[data-theme="2009"] .message-bubble,body[data-theme="2009"] .message-row.mine .message-bubble{background:transparent;color:#2a3b54;box-shadow:none;border:0;border-radius:0;padding:3px 2px;font-size:13px;line-height:1.5}
body[data-theme="2005"] .message-row.mine .message-bubble,body[data-theme="2009"] .message-row.mine .message-bubble{color:#154dcb}
body[data-theme="2005"] .message-row.system .message-bubble,body[data-theme="2009"] .message-row.system .message-bubble{background:#e5f3ff;border:1px solid #acd4ed;border-radius:3px;padding:6px 9px;color:#165d9a}
body[data-theme="2005"] .message-time,body[data-theme="2009"] .message-time{font-size:10px;text-align:left!important;color:#7e93a8}
body[data-theme="2005"] .chat-composer,body[data-theme="2009"] .chat-composer{padding:10px 12px 13px;background:#ecf6ff;border-top:1px solid #b1cfeb}
body[data-theme="2005"] .compose-bottom,body[data-theme="2009"] .compose-bottom{border-radius:3px;background:#fff;border:1px solid #96b7d3;box-shadow:inset 0 1px 2px #00000013}
body[data-theme="2005"] .send-btn,body[data-theme="2009"] .send-btn{border-radius:3px;background:linear-gradient(#faffff,#bbdcfa);border:1px solid #7ba5c8;color:#1b5b91;box-shadow:none}
body[data-theme="2005"] .empty-chat,body[data-theme="2009"] .empty-chat{background:#fff}
body[data-theme="2005"] .welcome-card-main,body[data-theme="2009"] .welcome-card-main{background:#edf6ff;border:1px solid #d4e9f6;border-radius:5px;box-shadow:none}
body[data-theme="2005"] .welcome-card-main h2,body[data-theme="2009"] .welcome-card-main h2{color:#175895}
body[data-theme="2005"] .app-footer,body[data-theme="2009"] .app-footer{color:#4882aa}
body[data-theme="2005"] .app-footer span,body[data-theme="2009"] .app-footer span{color:#4882aa}
body[data-theme="2005"] .auth-page,body[data-theme="2009"] .auth-page{background:transparent}
body[data-theme="2005"] .auth-card,body[data-theme="2009"] .auth-card{border-radius:9px;background:#f4faff;color:#174574;box-shadow:0 8px 40px #15568d6b;padding:26px 30px}
body[data-theme="2005"] .auth-logo strong,body[data-theme="2009"] .auth-logo strong{color:#135bad;text-shadow:0 1px #fff}
body[data-theme="2005"] .auth-logo small,body[data-theme="2009"] .auth-logo small,body[data-theme="2005"] .auth-online,body[data-theme="2009"] .auth-online{color:#4a8ebe}
body[data-theme="2005"] .auth-head p,body[data-theme="2009"] .auth-head p{color:#5a7b9f}
body[data-theme="2005"] .auth-toggle,body[data-theme="2009"] .auth-toggle{background:#e7f2ff;border-color:#abd0e7;border-radius:5px}
body[data-theme="2005"] .auth-toggle button,body[data-theme="2009"] .auth-toggle button{color:#3c6a92}
body[data-theme="2005"] .auth-toggle button.active,body[data-theme="2009"] .auth-toggle button.active{border-radius:4px;background:#c1e0fb;color:#134f95}
body[data-theme="2005"] .auth-theme,body[data-theme="2009"] .auth-theme{background:#e8f4ff;border:1px solid #c1daed;border-radius:4px}
body[data-theme="2005"] .auth-theme label,body[data-theme="2009"] .auth-theme label{color:#3f6387}
body[data-theme="2005"] .auth-theme select,body[data-theme="2009"] .auth-theme select{background:#fff;border:1px solid #a1bdd6;color:#254977;border-radius:3px}
body[data-theme="2005"] .auth-card .field label,body[data-theme="2009"] .auth-card .field label{color:#386188}
body[data-theme="2005"] .auth-card input,body[data-theme="2009"] .auth-card input{background:white;color:#203d61;border:1px solid #b7cce0;border-radius:3px}
body[data-theme="2005"] .auth-card input::placeholder,body[data-theme="2009"] .auth-card input::placeholder{color:#849bb7}
body[data-theme="2005"] .auth-card .password-row button,body[data-theme="2009"] .auth-card .password-row button{color:#386ca6}
body[data-theme="2005"] .auth-card .primary-btn,body[data-theme="2009"] .auth-card .primary-btn{background:linear-gradient(#eefbff,#9ad5fa);border:1px solid #72b2dd;color:#174c93;border-radius:4px;box-shadow:0 2px 0 #fff inset}
body[data-theme="2005"] .auth-note,body[data-theme="2009"] .auth-note,body[data-theme="2005"] .auth-foot,body[data-theme="2009"] .auth-foot{color:#7794b3}
body[data-theme="2005"] .drawer,body[data-theme="2009"] .drawer{background:#f2f9ff;border-left:3px solid #6bb6e6}

/* 2005: Tahoma + Windows XP Luna blue titlebars, dotted contact groups, squared windows. */
body[data-theme="2005"]{background:radial-gradient(ellipse at 18% 90%,#6bb16a90,transparent 28%),linear-gradient(145deg,#d9eafe,#a0c6ec 66%,#84b6e7)}
body[data-theme="2005"] .sidebar,body[data-theme="2005"] .main-pane{border:2px solid #1a5db9;border-radius:9px 9px 5px 5px;background:#f4f9ff}
body[data-theme="2005"] .sidebar:before,body[data-theme="2005"] .main-pane:before{background:linear-gradient(180deg,#418ded 0%,#2468d7 45%,#1055c4 52%,#408afa 100%);color:white;text-shadow:0 1px #06388c;box-shadow:inset 0 1px #91c6ff}
body[data-theme="2005"] .sidebar:after,body[data-theme="2005"] .main-pane:after{color:white;text-shadow:0 1px #125091}
body[data-theme="2005"] .sidebar{background:linear-gradient(#f7fbff,#e3f0fb)}
body[data-theme="2005"] .sidebar-top{background:linear-gradient(180deg,#ebf7ff,#cbe8ff);border-bottom:1px solid #b0d1e9}
body[data-theme="2005"] .main-pane{background:#f2f7fc}
body[data-theme="2005"] .top-nav{background:linear-gradient(#ebf7ff,#acd8fd);border-bottom:1px solid #84aed3;color:#1b5a90}
body[data-theme="2005"] .top-link{color:#21568d}
body[data-theme="2005"] .top-link:hover,body[data-theme="2005"] .top-link.active{background:#fff8}
body[data-theme="2005"] .main-nav{background:#edf5ff}
body[data-theme="2005"] .sidebar-section-title{background:linear-gradient(90deg,#daeafd,#f2f9ff);border-top:1px solid #b9d6ed}
body[data-theme="2005"] .chat-header{background:linear-gradient(180deg,#f2faff,#c4e6ff);border-bottom:1px solid #b1cbe1}
body[data-theme="2005"] .chat-composer{background:linear-gradient(#e7f3ff,#d0e5fa)}
body[data-theme="2005"] .contact-row.active{background:linear-gradient(#d9f2ff,#9dcaf9)}
body[data-theme="2005"] .auth-card{border:2px solid #2673cc;border-top:28px solid #3178dc}

/* 2009: glossy Aero glass, curved blue/cyan transitions, larger avatars, translucent panels. */
body[data-theme="2009"]{font-family:'Segoe UI',Tahoma,Verdana,sans-serif;background:radial-gradient(ellipse 55% 40% at 82% 22%,#f3ffff 6%,transparent 73%),linear-gradient(125deg,#bbddf7,#b9f4ff 58%,#79add8)}
body[data-theme="2009"] .sidebar,body[data-theme="2009"] .main-pane{border:1px solid #4e9dc1;border-radius:10px;background:#f4fbff;box-shadow:0 9px 28px #1d609e55,0 0 0 3px #ffffff69}
body[data-theme="2009"] .sidebar:before,body[data-theme="2009"] .main-pane:before{background:linear-gradient(180deg,#dff8ff,#93d0f1 55%,#6db9e7);color:#144475;text-shadow:0 1px #fff;border-bottom:1px solid #70b0d3}
body[data-theme="2009"] .sidebar:after,body[data-theme="2009"] .main-pane:after{color:#285e91;text-shadow:0 1px #fff}
body[data-theme="2009"] .sidebar{background:linear-gradient(#ecfaff,#cdeafd 65%,#f7fdff)}
body[data-theme="2009"] .sidebar-top{background:linear-gradient(#effaffdb,#ccefffaa);border-bottom:1px solid #b7e3ef}
body[data-theme="2009"] .brand{color:#247ab1}
body[data-theme="2009"] .main-pane{background:linear-gradient(#effbff,#d1eeff)}
body[data-theme="2009"] .top-nav{background:linear-gradient(180deg,#97e6ff,#009fd9 73%,#198cc7);border-bottom:1px solid #4abada;color:white}
body[data-theme="2009"] .top-link{color:white;text-shadow:0 1px #0875b0}
body[data-theme="2009"] .top-link:hover,body[data-theme="2009"] .top-link.active{background:#fff3;color:white}
body[data-theme="2009"] .main-nav{background:#e6f8ff80}
body[data-theme="2009"] .sidebar-section-title{background:linear-gradient(90deg,#cdefff,#f6fcff);border-top:1px solid #b4dced}
body[data-theme="2009"] .contact-list{background:#f6fdff}
body[data-theme="2009"] .chat-header{background:linear-gradient(125deg,#e8fbff,#b3e9ff 52%,#dff7ff);border-bottom:1px solid #93d1e9}
body[data-theme="2009"] .chat-composer{background:linear-gradient(180deg,#e3f8ff,#bedff4)}
body[data-theme="2009"] .contact-row.active{background:linear-gradient(#e4ffff,#a2ddff)}
body[data-theme="2009"] .auth-card{border:1px solid #54addb;border-top:18px solid #96dafa;background:linear-gradient(#faffff,#e2f7ff)}

@keyframes retroBuzz{0%,100%{transform:translate(0,0)}10%,30%,50%,70%,90%{transform:translate(-5px,2px)}20%,40%,60%,80%{transform:translate(5px,-2px)}}
.retro-shake{animation:retroBuzz .58s linear 1!important}

/* Retain functionality on mobile. The retro styling becomes a single-column chat, not desktop windows cropped to phone width. */
@media(max-width:1050px){.theme-switcher span{display:none}.theme-switcher select{max-width:135px}body[data-theme="2005"] .top-link,body[data-theme="2009"] .top-link{min-width:58px;padding:7px 5px}}
@media(max-width:700px){
 .theme-switcher{display:none}
 body[data-theme="2005"],body[data-theme="2009"]{overflow:hidden}
 body[data-theme="2005"] .app,body[data-theme="2009"] .app{padding:0;gap:0;margin:0;height:100dvh;min-height:0}
 body[data-theme="2005"] .masthead,body[data-theme="2009"] .masthead{display:none}
 body[data-theme="2005"] .shell,body[data-theme="2009"] .shell{display:flex;flex-direction:column;gap:0;height:100%;max-height:none;min-height:0;flex:1;overflow:hidden}
 body[data-theme="2005"] .sidebar,body[data-theme="2009"] .sidebar{height:100%;width:100%;flex:1;min-height:0;padding:0 0 72px;border-radius:0;border:0;box-shadow:none}
 body[data-theme="2005"] .main-pane,body[data-theme="2009"] .main-pane{height:100%;flex:1;min-height:0;border:0;border-radius:0;box-shadow:none}
 body[data-theme="2005"] .sidebar:before,body[data-theme="2005"] .main-pane:before,body[data-theme="2009"] .sidebar:before,body[data-theme="2009"] .main-pane:before{display:none}
 body[data-theme="2005"] .sidebar:after,body[data-theme="2005"] .main-pane:after,body[data-theme="2009"] .sidebar:after,body[data-theme="2009"] .main-pane:after{display:none}
 body[data-theme="2005"] .top-nav,body[data-theme="2009"] .top-nav{height:49px;padding:0 13px}
 body[data-theme="2005"] .mobile-wordmark,body[data-theme="2009"] .mobile-wordmark{color:#174f83;text-shadow:0 1px #fff}
 body[data-theme="2005"] .sidebar-top,body[data-theme="2009"] .sidebar-top{height:68px}
 body[data-theme="2005"] .main-nav,body[data-theme="2009"] .main-nav{display:flex;gap:5px}
 body[data-theme="2005"] .nav-item,body[data-theme="2009"] .nav-item{min-height:36px;justify-content:center;padding:6px 7px}
 body[data-theme="2005"] .contact-list,body[data-theme="2009"] .contact-list{padding:8px 12px}
 body[data-theme="2005"] .sidebar-bottom,body[data-theme="2009"] .sidebar-bottom{display:none}
 body[data-theme="2005"] .contact-row,body[data-theme="2009"] .contact-row{padding:10px 9px;gap:10px}
 body[data-theme="2005"] .contact-row .avatar,body[data-theme="2009"] .contact-row .avatar{width:46px;height:46px}
 body[data-theme="2005"] .chat-pane,body[data-theme="2009"] .chat-pane{min-height:0;height:100%}
 body[data-theme="2005"] .chat-header,body[data-theme="2009"] .chat-header{min-height:67px;padding:8px 11px;gap:8px}
 body[data-theme="2005"] .chat-header .avatar,body[data-theme="2009"] .chat-header .avatar{width:44px;height:44px;border-radius:6px}
 body[data-theme="2005"] .chat-peer strong,body[data-theme="2009"] .chat-peer strong{font-size:15px}
 body[data-theme="2005"] .action-button,body[data-theme="2009"] .action-button{font-size:13px!important;padding:7px!important}
 body[data-theme="2005"] .chat-feed-container,body[data-theme="2009"] .chat-feed-container{padding:13px 12px}
 body[data-theme="2005"] .chat-composer,body[data-theme="2009"] .chat-composer{padding:7px 9px calc(env(safe-area-inset-bottom,0px) + 8px)}
 body[data-theme="2005"] .mobile-tabs,body[data-theme="2009"] .mobile-tabs{background:linear-gradient(#dff3ff,#a4d3f3);border-top:1px solid #79add0;box-shadow:0 -5px 18px #0b4b7e30}
 body[data-theme="2005"] .mobile-tabs button,body[data-theme="2009"] .mobile-tabs button{color:#2f6895}
 body[data-theme="2005"] .mobile-tabs button.active,body[data-theme="2009"] .mobile-tabs button.active{color:#0264b0}
 body[data-theme="2005"] .app-footer,body[data-theme="2009"] .app-footer{display:none}
 body[data-theme="2005"] .auth-card,body[data-theme="2009"] .auth-card{padding:22px;max-height:94dvh;overflow:auto}
}
@media(max-width:440px){.theme-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.theme-card{padding:8px 3px}.theme-illustration{width:90%;height:41px}.theme-card strong{font-size:10px}.theme-card small{font-size:9px}}
@media(prefers-reduced-motion:reduce){.retro-shake{animation:none!important}}
