.desktop-device { --d-rail:#eaf2fc; --d-chat:#f5f6f8; --d-list:#fbfbfc; --d-bubble:#fff; --d-bubble-self:#d6edff; --d-soft:#f1f4f8; --d-subtle:#8a929d; --d-success:#21b56d; --d-shadow:0 8px 30px #182b491c; }
.d-shell { width:100%; height:100%; display:flex; position:relative; overflow:hidden; color:var(--ink,#202733); background:var(--surface,#fff); font:14px/1.5 "Microsoft YaHei UI","PingFang SC",sans-serif; text-align:left; }
.d-shell *, .d-shell *::before, .d-shell *::after { box-sizing:border-box; }
.d-shell button,.d-shell input,.d-shell textarea { font:inherit; }
.d-shell button { border:0; background:none; color:inherit; cursor:pointer; padding:0; }
.d-shell button:focus-visible,.d-shell input:focus-visible,.d-shell textarea:focus-visible { outline:2px solid var(--primary-text,#0075ce); outline-offset:3px; }
.d-shell button,.d-shell a,.d-shell input { -webkit-tap-highlight-color:transparent; }
.d-shell button { transition:background-color 150ms,color 150ms,opacity 150ms; }
.d-shell button:active { opacity:.76; }
.d-shell button:disabled { cursor:default; opacity:.45; }
.d-shell [hidden] { display:none!important; }
.d-shell h1,.d-shell h2,.d-shell p { margin:0; }
.d-shell .icon,.d-shell .ico,.d-shell svg.qt-icon { width:21px; height:21px; flex-shrink:0; }
.d-avatar { display:inline-flex; flex-shrink:0; line-height:0; position:relative; vertical-align:middle; }
.d-avatar img { object-fit:cover; }
.d-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; clip:rect(0,0,0,0); overflow:hidden; white-space:nowrap; border:0; }
.d-icon-button { width:34px; height:34px; border-radius:5px; display:inline-flex; align-items:center; justify-content:center; color:var(--muted,#616b79)!important; flex-shrink:0; }
.d-icon-button:hover { background:var(--hover,#e9edf2); color:var(--ink,#202733)!important; }
.d-icon-button.is-active { color:var(--primary-text,#0075ce)!important; background:var(--selected,#dfefff); }
.d-window-controls { position:absolute; top:0; right:0; height:30px; display:flex; z-index:12; }
.d-window-controls .d-icon-button { width:38px; height:30px; border-radius:0; color:#818998!important; }
.d-window-controls .d-icon-button .icon,.d-window-controls .d-icon-button svg { width:14px; height:14px; }
.d-window-controls .d-window-close:hover { background:#e54444; color:#fff!important; }
.d-workspace { min-width:0; height:100%; flex:1; display:flex; position:relative; }
.d-rail { width:64px; height:100%; background:var(--d-rail); flex-shrink:0; display:flex; flex-direction:column; align-items:center; border-right:1px solid #dee8f5; padding-top:41px; }
.d-self { position:relative; display:block; width:40px; height:40px; }
.d-self .d-avatar { border:1px solid #fff; border-radius:12px; overflow:hidden; }
.d-online-dot { position:absolute; bottom:-2px; right:-2px; width:12px; height:12px; border:2px solid var(--d-rail); background:var(--d-success); border-radius:50%; }
.d-rail-nav { margin-top:30px; width:100%; display:flex; flex-direction:column; gap:11px; align-items:center; }
.d-rail-item { display:flex; justify-content:center; align-items:center; width:46px; height:43px; position:relative; border-radius:7px; color:#657b98!important; }
.d-rail-item .icon,.d-rail-item svg { width:26px!important; height:26px!important; }
.d-rail-item.is-active { color:var(--primary-text,#0075ce)!important; background:#d5eaff; }
.d-rail-item.is-active::before { content:""; position:absolute; left:-9px; height:20px; width:3px; border-radius:0 3px 3px 0; background:var(--primary,#0099ff); }
.d-rail-item:hover { background:#dceafa; }
.d-rail-badge { position:absolute; min-width:15px; height:15px; top:3px; right:2px; border:2px solid var(--d-rail); border-radius:9px; padding:0 3px; background:#fa585d; color:#fff; font:10px/11px Arial,sans-serif; text-align:center; }
.d-rail-tip { position:absolute; left:51px; top:11px; padding:3px 9px; background:#293647; color:#fff; border-radius:4px; font-size:11px; white-space:nowrap; opacity:0; pointer-events:none; z-index:15; }
.d-rail-item:hover .d-rail-tip { opacity:1; }
.d-rail-bottom { margin-top:auto; display:flex; flex-direction:column; gap:12px; padding-bottom:16px; }
.d-rail-bottom .d-icon-button { color:#72849d!important; width:38px; height:34px; }
.d-conversations { width:280px; flex-shrink:0; height:100%; background:var(--d-list); border-right:1px solid var(--line,#e8ebef); position:relative; display:flex; flex-direction:column; }
.d-pane-caption { height:35px; padding:9px 18px 0; font-size:12px; color:var(--muted,#6c7480); }
.d-conv-tools { display:flex; gap:8px; padding:3px 14px 0 16px; align-items:center; }
.d-search { background:var(--d-soft); height:30px; min-width:0; flex:1; display:flex; align-items:center; gap:7px; padding:0 9px; border-radius:5px; color:#838c99; }
.d-search .icon,.d-search svg { width:16px!important; height:16px!important; }
.d-search input { border:0; background:none; outline:0; width:100%; min-width:0; color:var(--ink,#202733); font-size:12px; padding:0; }
.d-search input::placeholder { color:#828b98; }
.d-search span { font-size:10px; white-space:nowrap; color:#9aa2ad; }
.d-conv-tools>.d-icon-button { width:29px; height:29px; border-radius:5px; background:var(--d-soft); }
.d-conv-tabs { height:47px; display:flex; align-items:center; gap:24px; padding:0 18px; }
.d-conv-tabs>button:not(.d-icon-button) { height:42px; font-size:13px; color:var(--muted,#68717e); position:relative; }
.d-conv-tabs>button.is-active { color:var(--primary-text,#0075ce); font-weight:600; }
.d-conv-tabs>button.is-active::after { content:""; position:absolute; bottom:5px; left:calc(50% - 6px); width:12px; height:3px; background:var(--primary,#0099ff); border-radius:2px; }
.d-conv-tabs>button span { display:inline-block; font:10px Arial,sans-serif; color:#8e98a5; margin-left:5px; }
.d-conv-tabs .d-icon-button { margin-left:auto; width:25px; height:28px; }
.d-conv-tabs .d-icon-button svg { width:16px; height:16px; }
.d-conv-list { flex:1; overflow:auto; scrollbar-width:thin; scrollbar-color:#d5dbe3 transparent; padding:0 5px; }
.d-conv-row { width:100%; height:74px; display:flex; gap:11px; align-items:center; padding:0 12px!important; border-radius:5px; text-align:left; position:relative; }
.d-conv-row.is-pinned { background:#f0f2f5; }
.d-conv-row.is-selected { background:#dceeff; }
.d-conv-row:hover { background:var(--hover,#eaf0f7); }
.d-conv-row.is-selected:hover { background:#d4eaff; }
.d-conv-avatar { position:relative; display:inline-flex; }
.d-conv-avatar .d-avatar>*,.d-friend-row .d-avatar>* { border-radius:10px; overflow:hidden; }
.d-unread-count { position:absolute; right:-5px; top:-5px; min-width:17px; height:17px; border-radius:9px; background:#f65c63; color:#fff; padding:0 4px; font:10px/17px Arial,sans-serif; text-align:center; }
.d-conv-copy { flex:1; min-width:0; }
.d-conv-line { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.d-conv-line strong { font-size:13px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.d-conv-line time { font:10px/1.5 Arial,sans-serif; color:#929aa6; flex-shrink:0; }
.d-conv-preview { margin-top:4px; color:#8a929e; font-size:11px; }
.d-conv-preview>span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.d-conv-preview .icon,.d-conv-preview svg { width:12px; height:12px; flex-shrink:0; color:#a0a9b6; }
.d-sync { flex-shrink:0; height:32px; display:flex; align-items:center; justify-content:center; gap:5px; color:#9aa2ae; font-size:10px; }
.d-sync .icon,.d-sync svg { width:12px; height:12px; }
.d-search-empty { padding:40px 10px; color:var(--muted,#6c7480); font-size:12px; text-align:center; }
.d-floating-menu { position:absolute; z-index:30; min-width:158px; border:1px solid var(--line,#e9edf2); border-radius:7px; box-shadow:var(--d-shadow); background:var(--surface,#fff); padding:5px; }
.d-floating-menu button { padding:8px 10px; width:100%; display:flex; align-items:center; gap:9px; font-size:12px; border-radius:3px; text-align:left; }
.d-floating-menu button:hover { background:var(--hover,#f1f4f8); }
.d-floating-menu .icon,.d-floating-menu svg { width:17px; height:17px; color:var(--muted,#657080); }
.d-new-chat-menu { right:12px; top:73px; }
.d-chat-area { flex:1; min-width:0; height:100%; display:flex; flex-direction:column; background:var(--d-chat); }
.d-chat-header { flex-shrink:0; height:83px; padding:28px 24px 12px; border-bottom:1px solid var(--line,#e8ebef); display:flex; align-items:center; justify-content:space-between; gap:10px; background:var(--surface,#fff); }
.d-chat-heading { min-width:0; }
.d-chat-heading h1 { font-size:17px; font-weight:500; line-height:25px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.d-chat-heading h1>span { color:var(--muted,#677384); font-size:14px; margin-left:3px; }
.d-chat-status { display:flex; align-items:center; gap:5px; font-size:10px; color:#8b95a2; height:17px; }
.d-chat-status i { display:inline-block; height:5px; width:5px; border-radius:50%; background:var(--d-success); }
.d-chat-actions { display:flex; align-items:center; gap:8px; padding-top:5px; }
.d-chat-actions .icon,.d-chat-actions svg { width:21px; height:21px; }
.d-chat-workspace { min-height:0; display:flex; flex:1; }
.d-chat-main { min-width:0; flex:1; display:flex; flex-direction:column; }
.d-chat-scroll { flex:1; min-height:0; overflow:auto; padding:17px 24px 5px; scrollbar-width:thin; scrollbar-color:#d6dbe2 transparent; }
.d-time-divider { color:#a3aab4; font-size:10px; text-align:center; margin:0 0 16px; }
.d-system-note { font-size:11px; color:#9aa4b2; text-align:center; margin:5px 0 22px; }
.d-message { display:flex; align-items:flex-start; gap:10px; margin-bottom:13px; }
.d-message>.d-avatar>* { border-radius:9px; overflow:hidden; }
.d-message-stack { max-width:calc(100% - 52px); display:flex; flex-direction:column; align-items:flex-start; position:relative; min-width:0; }
.d-message-name { font-size:10px; color:var(--muted,#838d9a); margin:0 0 3px 1px; }
.d-message.is-self { flex-direction:row-reverse; }
.d-message.is-self .d-message-stack { align-items:flex-end; }
.d-bubble { padding:10px 13px; font-size:12px; line-height:1.7; border-radius:8px; background:var(--d-bubble); max-width:100%; white-space:pre-wrap; overflow-wrap:anywhere; box-shadow:0 1px 1px #11182703; position:relative; }
.d-message.is-self .d-bubble { background:var(--d-bubble-self); }
.d-read-state { display:none; position:absolute; left:-29px; bottom:1px; font-size:9px; color:#9ca7b6; white-space:nowrap; }
.d-message.is-self:hover .d-read-state { display:block; }
.d-photo-message { display:block; width:232px; max-width:100%; border-radius:7px; overflow:hidden; line-height:0; position:relative; }
.d-photo-message img { width:100%; object-fit:cover; display:block; }
.d-photo-message>span { position:absolute; bottom:6px; right:6px; border-radius:4px; background:#182c4855; color:#fff; padding:4px; display:flex; opacity:0; }
.d-photo-message:hover>span { opacity:1; }
.d-photo-message>span svg { width:14px; height:14px; }
.d-voice-message { display:flex; align-items:center; gap:11px; min-width:159px; height:38px; padding:8px 12px!important; }
.d-voice-message .icon,.d-voice-message svg { width:17px; height:17px; }
.d-voice-message>span:last-child { margin-left:auto; font-size:11px; }
.d-waveform { display:flex; gap:2px; align-items:center; height:25px; }
.d-waveform i { display:block; width:2px; max-height:19px; border-radius:2px; background:#8e9aa9; }
.d-voice-message.is-playing .d-waveform i { animation:d-wave 650ms ease-in-out infinite alternate; background:var(--primary,#0099ff); }
.d-voice-message.is-playing .d-waveform i:nth-child(2n) { animation-delay:-250ms; }
.d-file-message { display:flex; align-items:center; gap:10px; width:241px; max-width:100%; padding:12px!important; border-radius:8px; background:var(--surface,#fff)!important; text-align:left; border:1px solid #e9edf2!important; }
.d-file-icon { width:39px; height:45px; border-radius:5px; background:#ff785c; color:#fff; flex-shrink:0; position:relative; display:flex; align-items:center; justify-content:center; }
.d-file-icon>.icon,.d-file-icon>svg { width:28px; height:28px; opacity:.4; }
.d-file-icon b { position:absolute; font:bold 9px Arial,sans-serif; bottom:7px; left:10px; }
.d-file-info { display:flex; min-width:0; flex:1; flex-direction:column; gap:7px; }
.d-file-info strong { font-size:12px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.d-file-info small { font-size:10px; color:#9ca4af; }
.d-file-message>.icon,.d-file-message>svg { width:16px; height:16px; color:#9ba6b6; align-self:flex-end; }
.d-composer { height:176px; flex-shrink:0; border-top:1px solid var(--line,#e7eaef); position:relative; display:flex; flex-direction:column; background:var(--surface,#fff); }
.d-compose-toolbar { padding:9px 16px 3px; display:flex; justify-content:space-between; align-items:center; }
.d-compose-toolbar>div { display:flex; gap:5px; }
.d-compose-toolbar .d-icon-button { width:29px; height:28px; color:#7b8797!important; }
.d-compose-toolbar .icon,.d-compose-toolbar svg { width:20px; height:20px; }
.d-compose-toolbar .is-recording { color:#ed5757!important; background:#fff0f1; }
.d-editor-label { display:flex; flex:1; min-height:0; }
.d-editor { width:100%; border:0; resize:none; padding:5px 24px; background:transparent; color:var(--ink,#202733); outline:0; font-size:13px!important; line-height:1.65!important; }
.d-editor:focus-visible { outline-offset:-4px!important; outline:1px solid #9dd4ff!important; }
.d-compose-bottom { padding:0 23px 15px; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.d-compose-bottom>span { font-size:9px; color:#b0b7c1; display:flex; align-items:center; gap:6px; }
.d-send-buttons { display:flex; border-radius:4px; overflow:hidden; background:var(--primary,#0099ff); color:#fff; }
.d-send-buttons button { height:29px; background:transparent; }
.d-send-buttons .d-send { min-width:69px; font-size:12px; color:#fff; }
.d-send-buttons .d-send:hover,.d-send-buttons .d-send-arrow:hover { background:#0089e7; }
.d-send-buttons .d-send-arrow { width:22px; border-left:1px solid #ffffff38; display:flex; align-items:center; justify-content:center; }
.d-send-arrow .icon,.d-send-arrow svg { width:12px; height:12px; }
.d-emoji-panel { position:absolute; left:16px; bottom:170px; width:288px; background:var(--surface,#fff); border:1px solid var(--line,#e5ebf1); border-radius:9px; padding:12px; box-shadow:var(--d-shadow); z-index:25; }
.d-emoji-caption { font-size:10px; color:var(--muted,#818a97); padding:0 4px 8px; }
.d-emoji-panel>div:nth-child(2) { display:grid; grid-template-columns:repeat(6,1fr); }
.d-emoji-panel [data-d-emoji] { height:38px; font-size:23px; border-radius:4px; }
.d-emoji-panel [data-d-emoji]:hover { background:var(--hover,#eff4f9); }
.d-emoji-panel footer { margin-top:8px; border-top:1px solid var(--line,#edf0f4); padding-top:10px; display:flex; gap:24px; color:var(--muted,#7d8795); }
.d-emoji-panel footer svg { width:18px; height:18px; }
.d-send-menu { bottom:48px; right:22px; }
.d-history-search { display:flex; align-items:center; gap:9px; background:var(--surface,#fff); border-bottom:1px solid var(--line,#e5ebf1); height:44px; padding:0 20px; flex-shrink:0; }
.d-history-search>svg { width:17px; height:17px; color:var(--muted,#818a97); }
.d-history-search input { background:none; border:0; outline:0; flex:1; min-width:0; font-size:12px; color:var(--ink,#202733); }
.d-chat-details { flex-shrink:0; width:194px; background:var(--surface,#fff); border-left:1px solid var(--line,#e5e9ee); padding:16px 13px; overflow:auto; font-size:11px; }
.d-detail-title { display:flex; align-items:center; justify-content:space-between; font-weight:600; margin-bottom:17px; }
.d-detail-title .d-icon-button { height:24px; width:24px; }
.d-detail-title .d-icon-button svg { width:16px; height:16px; }
.d-members { display:grid; grid-template-columns:repeat(3,1fr); row-gap:14px; }
.d-members>button { display:flex; flex-direction:column; align-items:center; gap:6px; font-size:9px; color:var(--muted,#8993a0); }
.d-member-plus { border:1px dashed #cbd3dd; border-radius:7px; width:34px; height:34px; display:flex; align-items:center; justify-content:center; }
.d-member-plus svg { width:18px; height:18px; }
.d-detail-row { display:flex; width:100%; align-items:center; justify-content:space-between; min-height:43px; text-align:left; gap:5px; font-size:11px; }
.d-detail-row>span { display:flex; align-items:center; gap:3px; font-size:10px; color:var(--muted,#84909d); }
.d-detail-row svg { width:14px; height:14px; color:#9ba5b2; }
.d-detail-section { border-top:1px solid var(--line,#edf0f3); border-bottom:1px solid var(--line,#edf0f3); padding:13px 0; margin:4px 0; }
.d-detail-section>small { color:var(--muted,#87919e); }
.d-detail-section>p { font-size:10px; line-height:1.8; margin-top:5px; }
.d-chat-details .d-switch-row { min-height:35px; }
.d-chat-details .d-switch-row strong { font-size:11px; }
.d-chat-details .d-switch-track { transform:scale(.8); transform-origin:right center; }
.d-detail-person { display:flex; flex-direction:column; align-items:center; gap:9px; margin:24px 0; }
.d-detail-person>span:last-child { font-size:10px; color:var(--muted,#8b95a3); }
.d-photo-overlay { position:absolute; inset:0; z-index:80; background:#102036e8; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:22px; padding:50px; }
.d-photo-overlay>.d-icon-button { position:absolute; right:20px; top:18px; color:#fff!important; }
.d-photo-overlay>img { max-width:90%; max-height:80%; object-fit:contain; border-radius:5px; }
.d-photo-overlay>p { color:#dce5f1; font-size:12px; }
.d-contact-tabs { display:flex; gap:32px; height:51px; align-items:center; padding:0 22px; border-bottom:1px solid var(--line,#e9edf1); }
.d-contact-tabs>button { position:relative; height:100%; font-size:13px; color:var(--muted,#6d7785); }
.d-contact-tabs .is-active { color:var(--primary-text,#0075ce); font-weight:600; }
.d-contact-tabs .is-active::after { content:""; position:absolute; bottom:8px; left:calc(50% - 7px); width:14px; height:3px; border-radius:2px; background:var(--primary,#0099ff); }
.d-new-friends { display:flex; align-items:center; gap:12px; padding:14px 18px!important; font-size:12px!important; width:100%; }
.d-new-friends>span { width:34px; height:34px; background:#ffb35b; color:#fff; display:flex; align-items:center; justify-content:center; border-radius:9px; }
.d-new-friends>svg { margin-left:auto; color:#a6afbb; width:15px!important; height:15px!important; }
.d-contact-category { display:flex; align-items:center; gap:6px; font-size:11px!important; width:100%; height:39px; padding:0 17px!important; }
.d-contact-category>svg { width:12px!important; height:12px!important; color:#9ca5b3; }
.d-contact-category>span { margin-left:auto; color:#a0a9b6; font:10px Arial,sans-serif; }
.d-contact-category.is-collapsed>svg { transform:rotate(-90deg); }
.d-friend-list { padding:0 5px; }
.d-friend-row { height:65px; display:flex; align-items:center; gap:11px; width:100%; padding:0 13px!important; text-align:left; border-radius:5px; }
.d-friend-row.is-selected { background:#dfedfc; }
.d-friend-row:hover { background:var(--hover,#ebf0f6); }
.d-friend-row>span:last-child { flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.d-friend-row strong { font-size:12px; font-weight:500; }
.d-friend-row small { font-size:10px; color:#9099a6; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.d-contact-detail { flex:1; min-width:0; position:relative; background:var(--surface,#fff); overflow:auto; padding-top:30px; }
.d-contact-cover { height:183px; width:100%; overflow:hidden; position:relative; }
.d-contact-cover img { width:100%; height:100%; object-fit:cover; opacity:.79; }
.d-contact-cover>span { position:absolute; inset:0; background:linear-gradient(0deg,var(--surface,#fff) 0%,#ffffff00 85%); }
.d-contact-card { width:530px; max-width:calc(100% - 70px); margin:-42px auto 0; position:relative; }
.d-contact-intro { display:flex; align-items:center; gap:20px; }
.d-contact-intro>.d-avatar { border:3px solid var(--surface,#fff); border-radius:19px; overflow:hidden; }
.d-contact-intro>div { min-width:0; }
.d-contact-intro h1 { font-size:23px; font-weight:600; display:flex; align-items:center; gap:9px; }
.d-gender { color:#52a8e8; display:flex; }
.d-gender svg { width:15px!important; height:15px!important; }
.d-contact-intro p { font-size:12px; margin:4px 0 7px; color:var(--muted,#798492); }
.d-contact-intro>div>span { display:flex; align-items:center; gap:4px; color:#9da5af; font-size:10px; }
.d-contact-intro>div>span>svg { width:12px!important; height:12px!important; }
.d-contact-intro b { font-weight:400; padding-left:10px; margin-left:6px; border-left:1px solid var(--line,#e3e9ef); }
.d-contact-intro>.d-icon-button { margin-left:auto; align-self:flex-start; margin-top:30px; }
.d-contact-fields { margin:33px 0 25px; font-size:12px; }
.d-contact-fields>div { display:flex; align-items:center; min-height:36px; }
.d-contact-fields>div>span { width:92px; color:#98a1ae; }
.d-contact-fields button { display:flex; align-items:center; gap:12px; }
.d-contact-fields svg { width:12px!important; height:12px!important; color:#a2adbc; }
.d-contact-fields p { font-size:11px; color:var(--muted,#7e8895); }
.d-contact-album { padding-top:20px; border-top:1px solid var(--line,#edf0f4); }
.d-contact-album>div:first-child { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.d-contact-album h2 { font-size:12px; font-weight:500; }
.d-contact-album>div:first-child>button { font-size:10px; color:var(--muted,#8994a1); display:flex; align-items:center; gap:3px; }
.d-contact-album>div:first-child svg { width:12px!important; height:12px!important; }
.d-album-photos { display:flex; gap:9px; align-items:center; }
.d-album-photos>button { width:112px; height:84px; border-radius:5px; overflow:hidden; }
.d-album-photos img { object-fit:cover; width:100%; height:100%; }
.d-album-photos>span { font-size:10px; line-height:1.8; color:#a2aab5; margin-left:8px; }
.d-contact-buttons { display:flex; justify-content:center; gap:14px; padding:31px 0 26px; }
.d-primary-button,.d-secondary-button { display:inline-flex; justify-content:center; align-items:center; gap:7px; min-height:33px; padding:0 20px!important; border-radius:5px; font-size:12px!important; white-space:nowrap; }
.d-primary-button { background:var(--primary,#0099ff)!important; color:#fff!important; }
.d-primary-button:hover { background:#008ae8!important; }
.d-secondary-button { border:1px solid var(--line,#dfe4eb)!important; background:var(--surface,#fff)!important; }
.d-secondary-button:hover { background:var(--hover,#f4f6f9)!important; }
.d-primary-button>.icon,.d-primary-button>svg,.d-secondary-button>.icon,.d-secondary-button>svg { width:16px; height:16px; }
.d-contact-buttons .d-primary-button { min-width:143px; }
.d-profile-page { width:100%; height:100%; overflow:auto; background:var(--surface,#fff); }
.d-page-top { height:49px; display:flex; align-items:center; padding:8px 27px 0; }
.d-back-button { display:flex; gap:8px; align-items:center; font-size:13px!important; }
.d-back-button>svg { width:15px!important; height:15px!important; color:#7f8997; }
.d-my-cover { height:176px; position:relative; overflow:hidden; }
.d-my-cover img { object-fit:cover; width:100%; height:100%; object-position:center 45%; }
.d-my-cover::after { content:""; position:absolute; inset:0; background:linear-gradient(0deg,#172d421f,transparent); pointer-events:none; }
.d-my-cover>button { position:absolute; bottom:14px; right:27px; z-index:1; color:#fff; background:#162d4a5c; padding:6px 10px; border-radius:4px; display:flex; align-items:center; gap:5px; font-size:11px; }
.d-my-cover>button svg { width:15px!important; height:15px!important; }
.d-my-profile { width:744px; max-width:calc(100% - 70px); margin:0 auto; }
.d-my-profile-head { display:flex; align-items:center; gap:22px; height:112px; position:relative; }
.d-edit-avatar { border:4px solid var(--surface,#fff)!important; border-radius:22px; overflow:hidden; margin-top:-31px; position:relative; }
.d-edit-avatar>span:last-child { position:absolute; bottom:0; left:0; right:0; height:23px; background:#172d4c70; display:flex; align-items:center; justify-content:center; color:#fff; opacity:0; }
.d-edit-avatar:hover>span:last-child { opacity:1; }
.d-edit-avatar>span:last-child>svg { width:15px!important; height:15px!important; }
.d-my-profile-head>div h1 { font-size:22px; display:flex; align-items:center; gap:8px; font-weight:600; }
.d-my-profile-head h1 svg { width:19px!important; height:19px!important; color:var(--primary,#0099ff); }
.d-my-profile-head p { font-size:11px; color:var(--muted,#8b94a0); margin:4px 0; }
.d-profile-online { display:flex; align-items:center; gap:5px; font-size:10px; color:#8b96a4; }
.d-profile-online>i { width:5px; height:5px; background:var(--d-success); border-radius:50%; }
.d-my-profile-head>.d-secondary-button { margin-left:auto; }
.d-profile-columns { display:flex; border-top:1px solid var(--line,#e8edf2); padding-top:23px; gap:50px; }
.d-profile-columns>section { flex:1; }
.d-profile-columns h2 { font-size:12px; font-weight:500; margin-bottom:15px; }
.d-profile-columns dl { margin:0; font-size:12px; }
.d-profile-columns dl>div { display:flex; align-items:center; min-height:39px; }
.d-profile-columns dt { width:95px; flex-shrink:0; color:#98a1ae; }
.d-profile-columns dd { margin:0; display:flex; align-items:center; gap:8px; }
.d-profile-columns dd>button { color:#9aa6b5; display:flex; padding:4px; }
.d-profile-columns dd>button>svg { width:12px!important; height:12px!important; }
.d-profile-qr { width:162px; text-align:center; }
.d-profile-qr .d-qr { border:1px solid #edf0f4; padding:6px; border-radius:6px; }
.d-profile-qr>p { font-size:10px; margin-top:8px; color:#98a2af; }
.d-profile-footer { border-top:1px solid var(--line,#e8edf2); margin-top:23px; padding-top:15px; color:#97a2b1; display:flex; align-items:center; gap:6px; font-size:10px; }
.d-profile-footer>svg { width:14px!important; height:14px!important; color:#8db0ca; }
.d-profile-footer>span { margin-left:auto; color:#b2b9c3; }
.d-inline-input { height:29px; border:1px solid #9ed6ff; border-radius:4px; padding:0 8px; width:180px; background:var(--surface,#fff); color:var(--ink,#202733); }
.d-settings { display:flex; width:100%; height:100%; }
.d-settings-nav { width:216px; flex-shrink:0; background:var(--d-list); border-right:1px solid var(--line,#e5eaf0); padding:38px 13px 18px; position:relative; }
.d-settings-nav>h1 { font-size:20px; font-weight:500; padding:0 16px 25px; }
.d-settings-nav nav { display:flex; flex-direction:column; gap:6px; }
.d-settings-nav nav>button { display:flex; align-items:center; gap:13px; padding:12px 17px; font-size:12px; border-radius:5px; text-align:left; }
.d-settings-nav nav>button>svg { width:19px!important; height:19px!important; color:#788697; }
.d-settings-nav nav>button:hover { background:var(--hover,#eef2f6); }
.d-settings-nav nav>button.is-selected { background:var(--selected,#dfeeff); color:var(--primary-text,#0075ce); }
.d-settings-nav nav>button.is-selected>svg { color:var(--primary-text,#0075ce); }
.d-settings-version { position:absolute; bottom:24px; left:29px; font-size:10px; color:#a5aeba; }
.d-settings-content { flex:1; min-width:0; overflow:auto; padding:45px 60px 30px; background:var(--surface,#fff); scrollbar-width:thin; }
.d-settings-content>h1 { font-size:20px; font-weight:500; margin-bottom:29px; }
.d-settings-account { display:flex; align-items:center; gap:16px; margin-bottom:30px; }
.d-settings-account h2 { font-size:17px; font-weight:500; }
.d-settings-account p { font-size:11px; color:#8b96a4; margin-top:5px; }
.d-settings-account>span:last-child { margin-left:auto; color:#739b87; background:#eff8f3; padding:5px 8px; display:flex; align-items:center; gap:5px; border-radius:4px; font-size:10px; }
.d-settings-account>span:last-child svg { width:13px!important; height:13px!important; }
.d-settings-section { margin-bottom:28px; }
.d-settings-section>h2 { font-size:12px; font-weight:600; margin-bottom:8px; display:flex; align-items:center; gap:15px; }
.d-settings-section>h2>span { font-size:10px; font-weight:400; color:#9aa4b2; }
.d-settings-row { min-height:48px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line,#edf0f4); font-size:12px; gap:12px; }
.d-settings-row>button { display:flex; align-items:center; gap:11px; font-size:11px; color:var(--muted,#8893a2); }
.d-settings-row>button>svg { width:13px!important; height:13px!important; color:#a1adba; }
.d-device-row { display:flex; align-items:center; gap:13px; min-height:77px; border-bottom:1px solid var(--line,#edf0f4); }
.d-device-icon { display:flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:8px; background:var(--d-soft); color:#91a6bd; }
.d-device-icon>svg { width:25px!important; height:25px!important; }
.d-device-row strong { display:flex; align-items:center; gap:9px; font-size:12px; font-weight:500; }
.d-device-row strong>span { font-size:9px; color:var(--primary-text,#0075ce); background:#e9f5ff; border-radius:3px; padding:2px 5px; font-weight:400; }
.d-device-row p { font-size:10px; color:#99a3b0; margin-top:5px; }
.d-device-row>button { margin-left:auto; font-size:11px; color:#8694a6; }
.d-account-actions { display:flex; gap:12px; padding-top:0; }
.d-danger-text { color:#df6a6f!important; }
.d-switch-row { display:flex; align-items:center; min-height:58px; position:relative; justify-content:space-between; gap:20px; cursor:pointer; }
.d-switch-row>span:first-child { display:flex; flex-direction:column; gap:5px; }
.d-switch-row strong { font-size:12px; font-weight:400; }
.d-switch-row small { font-size:10px; color:#9aa4b1; }
.d-switch-row>input { position:absolute; right:0; width:36px; height:23px; opacity:0; cursor:pointer; z-index:1; margin:0; }
.d-switch-track { width:33px; height:19px; border-radius:11px; background:#cdd4dd; position:relative; flex-shrink:0; transition:background 180ms; }
.d-switch-track::before { content:""; position:absolute; left:3px; top:3px; width:13px; height:13px; border-radius:50%; background:#fff; box-shadow:0 1px 2px #182b4920; transition:transform 180ms; }
.d-switch-row>input:checked+.d-switch-track { background:var(--primary,#0099ff); }
.d-switch-row>input:checked+.d-switch-track::before { transform:translateX(14px); }
.d-switch-row>input:focus-visible+.d-switch-track { outline:2px solid var(--primary-text,#0075ce); outline-offset:3px; }
.d-theme-options { display:flex; gap:14px; padding:10px 0; }
.d-theme-options>button { border:1px solid var(--line,#e1e7ef); border-radius:7px; width:137px; padding:10px 10px 8px; display:flex; align-items:center; gap:6px; flex-wrap:wrap; font-size:11px; }
.d-theme-options>button>svg { width:14px!important; height:14px!important; color:#8b98a9; }
.d-theme-options>button>svg:last-child { margin-left:auto; }
.d-theme-options>button.is-selected { border-color:var(--primary,#0099ff); color:var(--primary-text,#0075ce); background:#f6fbff; }
.d-theme-preview { width:100%; height:61px; display:flex; background:#f6f7f9; border-radius:4px; overflow:hidden; margin-bottom:2px; border:1px solid #e9edf3; position:relative; }
.d-theme-preview>i:first-child { width:15px; height:100%; background:#e7eef9; }
.d-theme-preview>i:nth-child(2) { width:35px; height:100%; background:#f3f5f8; border-right:1px solid #e4e9f0; }
.d-theme-preview>i:nth-child(3) { position:absolute; width:39px; height:14px; background:#fff; border-radius:4px; left:56px; top:17px; }
.d-theme-dark { background:#292d35; border-color:#343a45; }
.d-theme-dark>i:first-child { background:#202936; }
.d-theme-dark>i:nth-child(2) { background:#232831; border-color:#343b47; }
.d-theme-dark>i:nth-child(3) { background:#3a4553; }
.d-theme-system { background:linear-gradient(110deg,#f6f7f9 50%,#292d35 50%); }
.d-font-size { display:flex; align-items:center; gap:17px; padding:17px 0; }
.d-font-size>span:first-child { font-size:12px; }
.d-font-size>span:nth-last-child(2) { font-size:20px; }
.d-font-size input { flex:1; accent-color:var(--primary,#0099ff); height:3px; }
.d-font-size output { font-size:10px; width:35px; color:#96a1ae; }
.d-font-preview { background:var(--d-soft); border-radius:6px; padding:16px 20px; color:#6d7a8a; }
.d-section-note { color:#9ca7b5; font-size:10px; margin-top:10px!important; }
.d-privacy-card { padding:20px 16px; display:flex; align-items:center; gap:15px; background:#f2f8fd; border-radius:7px; margin:16px 0 10px; }
.d-privacy-card>svg { color:#5a9ac8; width:34px!important; height:34px!important; }
.d-privacy-card strong { font-size:13px; font-weight:500; }
.d-privacy-card p { font-size:10px; color:#92a0b0; margin-top:5px; }
.d-storage-usage { padding:16px 0 23px; }
.d-storage-usage>strong { font-size:30px; font-weight:400; }
.d-storage-usage>strong>span { font-size:14px; }
.d-storage-usage>p { margin-top:4px; font-size:11px; color:#95a0ae; }
.d-storage-usage>div { height:7px; display:flex; border-radius:4px; background:#eef2f7; overflow:hidden; margin:22px 0 13px; }
.d-storage-usage>div>i { width:39%; background:#49b0fb; }
.d-storage-usage>div>b { width:13%; background:#9dd7ff; }
.d-storage-usage footer { display:flex; gap:24px; font-size:10px; color:#8b98a8; }
.d-storage-usage footer>span { display:flex; align-items:center; gap:5px; }
.d-storage-usage footer i { width:5px; height:5px; background:#49b0fb; border-radius:2px; }
.d-storage-usage footer>span:last-child>i { background:#9dd7ff; }
.d-path-control { display:flex; gap:15px; font-size:11px; padding:17px 0; align-items:center; }
.d-path-control>span { background:var(--d-soft); border-radius:4px; padding:9px 13px; flex:1; color:#8b99aa; }
.d-path-control>button { color:var(--primary-text,#0075ce); }
.d-settings-row .d-keycap { border:1px solid var(--line,#e3e8ef); border-radius:4px; padding:4px 10px; background:var(--d-list); font-size:10px; color:#7d8b9d; }
.d-about { display:flex; flex-direction:column; align-items:center; padding:32px 0 0; }
.d-brand-symbol { width:76px; height:76px; background:var(--primary,#0099ff); border-radius:22px; display:flex; align-items:center; justify-content:center; color:#fff; box-shadow:0 8px 20px #0099ff21; }
.d-brand-symbol>svg { width:44px!important; height:44px!important; }
.d-about>h2 { font-size:25px; font-weight:500; margin:20px 0 5px; }
.d-about>p { font-size:12px; color:#8c99aa; }
.d-about>span { font-size:10px; color:#a1adbc; margin:17px 0 27px; }
.d-about>.d-primary-button { min-width:137px; }
.d-about>div:nth-last-child(2) { display:flex; align-items:center; gap:15px; font-size:10px; color:#89a4bc; margin-top:73px; }
.d-about>div:nth-last-child(2)>i { height:10px; width:1px; background:#dce4ed; }
.d-about>small { font-size:9px; color:#b1bbc7; margin-top:13px; }
.d-login-shell { background:#f5faff; }
.d-login { flex:1; height:100%; position:relative; overflow:hidden; background:linear-gradient(140deg,#f6fbff 5%,#f8fbff 44%,#eff8ff); }
.d-login-brand { position:absolute; top:30px; left:36px; display:flex; align-items:center; gap:10px; color:var(--primary-text,#0075ce); z-index:1; }
.d-login-brand>svg { width:30px!important; height:30px!important; color:var(--primary,#0099ff); }
.d-login-brand>span { font-size:21px; font-weight:600; letter-spacing:2px; }
.d-login-wash { position:absolute; border-radius:50%; filter:blur(1px); pointer-events:none; }
.d-login-wash-one { width:680px; height:680px; left:-290px; bottom:-380px; background:radial-gradient(circle at 65% 35%,#d4edff8c,transparent 67%); }
.d-login-wash-two { width:700px; height:700px; right:-260px; top:-340px; background:radial-gradient(circle at 30% 70%,#cde9ff80,transparent 66%); }
.d-login-card { width:356px; min-height:454px; background:#ffffffb8; border:1px solid #ffffffd9; border-radius:13px; position:relative; margin:103px auto 0; padding:36px 36px 25px; text-align:center; box-shadow:0 16px 70px #2972a609; overflow:hidden; }
.d-login-corner { position:absolute; right:0; top:0; width:48px; height:48px; background:linear-gradient(225deg,#e7f4ff 48%,transparent 49%)!important; display:flex; justify-content:flex-end; align-items:flex-start; padding:7px!important; color:var(--primary,#0099ff)!important; }
.d-login-corner>svg { width:23px!important; height:23px!important; }
.d-login-card>h1 { font-size:23px; font-weight:500; }
.d-login-subtitle { font-size:11px; color:#a2acb9; margin-top:9px!important; }
.d-login-qr { display:flex; align-items:center; justify-content:center; width:192px; height:192px; border:1px solid #e6edf4; border-radius:8px; margin:25px auto 17px; background:#fff; position:relative; }
.d-login-qr>.d-qr { display:block; }
.d-qr-hover { position:absolute; inset:0; background:#fffffff0; display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity 180ms; border-radius:7px; }
.d-login-qr:hover .d-qr-hover,.d-login-qr:focus-within .d-qr-hover { opacity:1; }
.d-qr-hover>button { font-size:11px; color:var(--primary-text,#0075ce); display:flex; align-items:center; gap:5px; padding:12px; border:1px solid #d9edfc; border-radius:5px; }
.d-qr-hover>button>svg { width:14px!important; height:14px!important; }
.d-scan-guide { font-size:12px; }
.d-scan-guide>span { color:var(--primary-text,#0075ce); margin:0 3px; }
.d-login-security { margin:11px 0 19px; font-size:10px; color:#a1adbb; display:flex; align-items:center; gap:4px; justify-content:center; }
.d-login-security>svg { width:12px!important; height:12px!important; color:#87a7bd; }
.d-login-switch { display:inline-flex; align-items:center; gap:5px; color:var(--primary-text,#0075ce)!important; font-size:11px!important; padding:3px!important; }
.d-login-switch>svg { width:14px!important; height:14px!important; }
.d-login-bottom-links { display:flex; align-items:center; justify-content:center; gap:16px; margin-top:25px; color:#a2adba; font-size:10px; }
.d-login-bottom-links>i { width:1px; height:8px; background:#d7e0e9; }
.d-login-bottom-links>button:hover { color:var(--primary-text,#0075ce); }
.d-login-copyright { position:absolute; width:100%; bottom:36px; text-align:center; font-size:10px; color:#acb9c9; letter-spacing:.5px; }
.d-login-avatar { position:relative; display:inline-flex; margin:-3px 0 13px; }
.d-login-avatar>.d-avatar { border:3px solid #fff; border-radius:22px; overflow:hidden; box-shadow:0 5px 17px #1e58891a; }
.d-login-avatar>span:last-child { width:13px; height:13px; background:var(--d-success); border:3px solid #fff; border-radius:50%; position:absolute; bottom:1px; right:0; }
.d-login-avatar~h1 { font-size:21px; }
.d-login-form { margin:23px 0 17px; text-align:left; }
.d-login-field { display:flex; align-items:center; gap:10px; border-bottom:1px solid #e3ebf3; height:43px; padding:0 3px; }
.d-login-field>svg { width:17px!important; height:17px!important; color:#a0b0c1; }
.d-login-field>input { flex:1; min-width:0; border:0; outline:0; color:#3c4a5e; background:none; font-size:12px; }
.d-login-field>button { width:25px; height:30px; display:flex; align-items:center; justify-content:center; color:#9baebe; }
.d-login-field>button>svg { width:16px!important; height:16px!important; }
.d-login-options { display:flex; align-items:center; justify-content:space-between; color:#98a6b8; margin:13px 0 22px; font-size:10px; }
.d-login-options>label { display:flex; align-items:center; gap:5px; cursor:pointer; }
.d-login-form input[type=checkbox] { width:11px; height:11px; margin:0; accent-color:var(--primary,#0099ff); }
.d-login-submit { width:100%; height:37px; border-radius:5px; background:var(--primary,#0099ff)!important; color:#fff!important; font-size:13px!important; letter-spacing:2px; }
.d-login-submit:hover { background:#008ce9!important; }
.d-login-agreement { display:flex; justify-content:center; align-items:center; gap:4px; font-size:8px; color:#b0bbc8; margin-top:13px; white-space:nowrap; cursor:pointer; }
.d-login-agreement>button { font-size:8px; color:#7b9db9; }
.d-login-error { font-size:9px; color:#d56969; margin-top:9px!important; }
.d-recording-dot { width:5px; height:5px; background:#ee6f76; border-radius:50%; animation:d-record 1s infinite; }
@keyframes d-wave { from{ transform:scaleY(.5); } to{ transform:scaleY(1); } }
@keyframes d-record { 50%{ opacity:.35; } }
[data-theme="dark"] .desktop-device,.desktop-device[data-theme="dark"] { --d-rail:#202a37; --d-chat:#252a32; --d-list:#282e37; --d-bubble:#353d49; --d-bubble-self:#224b6b; --d-soft:#343b46; --d-subtle:#93a1b3; }
.d-shell[data-theme="dark"] { --primary:#0099ff; --primary-text:#6fc6ff; --surface:#2b323d; --panel:#282f39; --bg:#252b34; --ink:#e3e9f1; --muted:#a0acbc; --line:#3b4553; --hover:#394757; --selected:#294c6a; --d-rail:#202a37; --d-chat:#252a32; --d-list:#282e37; --d-bubble:#353d49; --d-bubble-self:#224b6b; --d-soft:#343b46; --d-subtle:#a6b3c4; }
[data-theme="dark"] .d-rail { border-color:#303e50; }
[data-theme="dark"] .d-conv-row.is-selected,[data-theme="dark"] .d-friend-row.is-selected { background:#254765; }
[data-theme="dark"] .d-conv-row.is-pinned { background:#2c3440; }
[data-theme="dark"] .d-rail-item.is-active { background:#244667; }
[data-theme="dark"] .d-rail-item:hover { background:#2c3d53; }
[data-theme="dark"] .d-contact-cover>span { background:linear-gradient(0deg,var(--surface,#252c36) 0%,transparent 85%); }
.d-shell[data-theme="dark"] .d-theme-options>button.is-selected { background:#2b4258; }
.d-shell[data-theme="dark"] .d-settings-account>span:last-child { background:#2d443c; color:#95c9ae; }
.d-shell[data-theme="dark"] .d-device-row strong>span { background:#294966; }
.d-shell[data-theme="dark"] .d-privacy-card { background:#2c4053; }
.d-shell[data-theme="dark"] .d-file-message { border-color:var(--line)!important; }
@media (prefers-reduced-motion:reduce) { .d-shell *,.d-shell *::before,.d-shell *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }

/* Separate native windows: the friend panel never becomes part of a chat. */
.desktop-device { background:transparent; }
.d-split-desktop { display:block; background:transparent; overflow:visible; }
.d-floating-window { position:absolute; border:1px solid #d2dce8; border-radius:9px; background:var(--surface,#fff); display:flex; flex-direction:column; overflow:hidden; box-shadow:0 13px 37px #253a561c,0 2px 6px #253a560b; }
.d-main-window { width:310px; height:658px; left:20px; top:25px; z-index:2; }
.d-chat-window,.d-utility-window { width:726px; height:620px; left:354px; top:59px; z-index:3; }
.d-window-titlebar { position:relative; height:30px; flex-shrink:0; background:var(--surface,#fff); user-select:none; touch-action:none; }
.d-titlebar-brand { display:flex; align-items:center; gap:5px; height:30px; padding-left:11px; color:#8a98aa; font-size:10px; letter-spacing:.15px; }
.d-titlebar-brand>.ico,.d-titlebar-brand>svg { width:14px!important; height:14px!important; color:#37a9f8; }
.d-floating-window .d-window-controls { height:29px; }
.d-floating-window .d-window-controls>.d-icon-button { width:29px; height:29px; }
.d-floating-window .d-window-controls>.d-icon-button>.ico,.d-floating-window .d-window-controls>.d-icon-button>svg { width:12px; height:12px; }
.d-main-window>.d-window-titlebar { background:#f1f7ff; }
.d-main-profile { height:86px; flex-shrink:0; display:flex; align-items:center; gap:12px; padding:5px 17px 12px; background:linear-gradient(180deg,#f1f7ff,#f9fcff); }
.d-main-avatar { position:relative; flex-shrink:0; }
.d-main-avatar .avatar { border-radius:50%; box-shadow:0 1px 4px #3157811a; border:2px solid #fff; }
.d-main-avatar>i { position:absolute; right:-1px; bottom:1px; background:var(--d-success); border:2px solid #f5faff; width:11px; height:11px; border-radius:50%; }
.d-main-profile>div { flex:1; min-width:0; position:relative; padding-top:2px; }
.d-main-name { display:inline-flex; gap:5px; align-items:center; font-size:15px!important; font-weight:600!important; }
.d-main-name>.ico,.d-main-name>svg { width:10px!important; height:10px!important; color:#a0adbe; }
.d-main-status { display:inline-flex; align-items:center; gap:2px; color:#6b9b83!important; font-size:9px!important; margin-left:7px; }
.d-main-status>.ico,.d-main-status>svg { width:8px!important; height:8px!important; color:#9cabbc; }
.d-main-profile p { color:#98a5b6; margin-top:6px; font-size:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.d-main-profile>.d-icon-button { width:23px; height:25px; align-self:flex-start; margin-top:16px; color:#93aac2!important; }
.d-main-profile>.d-icon-button>.ico,.d-main-profile>.d-icon-button>svg { width:17px; height:17px; }
.d-main-search-row { height:42px; flex-shrink:0; padding:1px 14px 8px; display:flex; align-items:center; gap:8px; background:linear-gradient(180deg,#f9fcff,#fff); }
.d-main-search-row>.d-search { height:29px; background:#f0f4f9; }
.d-main-search-row>.d-icon-button { width:28px; height:28px; background:#f0f4f9; }
.d-main-search-row>.d-icon-button>svg { width:16px; height:16px; }
.d-main-tabs { height:45px; flex-shrink:0; display:flex; align-items:stretch; border-bottom:1px solid var(--line,#e9edf2); padding:0 9px; gap:3px; }
.d-main-tabs>button { flex:1; display:flex; align-items:center; justify-content:center; gap:5px; position:relative; font-size:12px; color:#8794a5; }
.d-main-tabs>button>.ico,.d-main-tabs>button>svg { width:17px!important; height:17px!important; }
.d-main-tabs>button.is-active { color:var(--primary-text,#0075ce); font-weight:500; }
.d-main-tabs>button.is-active::after { content:""; position:absolute; bottom:0; height:2px; width:27px; border-radius:2px; background:var(--primary,#0099ff); left:calc(50% - 13px); }
.d-main-tabs>button>span { position:absolute; right:2px; top:7px; min-width:13px; height:13px; padding:0 3px; background:#f65c63; color:#fff; border-radius:7px; font:9px/13px Arial,sans-serif; text-align:center; }
.d-main-tabs>button:hover { background:var(--hover,#f5f8fb); }
.d-main-body { min-height:0; flex:1; overflow:auto; background:var(--surface,#fff); scrollbar-width:thin; scrollbar-color:#d9e1eb transparent; }
.d-main-body .d-conv-list { overflow:visible; padding:4px 5px; }
.d-main-body .d-conv-row { height:69px; padding:0 12px!important; gap:11px; }
.d-main-body .d-conv-row.is-pinned:not(.is-selected) { background:#f7f9fc; }
.d-main-body .d-conv-line strong { font-size:12px; }
.d-main-body .d-conv-preview { font-size:10px; }
.d-main-body .d-conv-line time { font-size:9px; }
.d-main-body .d-conv-row.is-selected { background:#e3f2ff; }
.d-main-body .d-new-friends { height:55px; padding:8px 17px!important; }
.d-main-body .d-contact-category { height:32px; font-size:11px!important; }
.d-main-body .d-friend-row { height:61px; padding:0 14px!important; }
.d-main-body .d-friend-row.is-selected { background:#e5f3ff; }
.d-main-body .d-friend-list { padding:0 5px; }
.d-main-body .d-friend-row .avatar { border-radius:50%; }
.d-main-body .d-friend-row small { font-size:9px; }
.d-main-footer { display:flex; align-items:center; flex-shrink:0; height:40px; padding:0 13px; gap:10px; border-top:1px solid var(--line,#edf0f3); background:#fbfcfe; }
.d-main-footer>button:first-child { display:flex; align-items:center; gap:5px; color:#7d8d9f; font-size:10px; padding:7px 1px; }
.d-main-footer>button:first-child>.ico,.d-main-footer>button:first-child>svg { width:17px; height:17px; }
.d-main-footer>.d-icon-button { width:27px; height:27px; margin-left:auto; color:#95a4b7!important; }
.d-main-footer>.d-icon-button>svg { width:17px; height:17px; }
.d-main-sync { color:#b1bcc9; font-size:8px; display:flex; align-items:center; gap:4px; margin-left:auto; }
.d-main-sync>.ico,.d-main-sync>svg { width:10px!important; height:10px!important; }
.d-main-window .d-new-chat-menu { top:157px; right:12px; }
.d-create-group { display:flex; align-items:center; gap:7px; color:#8c9aac!important; font-size:11px!important; padding:20px!important; }
.d-create-group>svg { width:17px!important; height:17px!important; }
.d-chat-window>.d-chat-area { width:100%; min-height:0; flex:1; height:auto; }
.d-chat-window .d-chat-header { height:59px; padding:5px 20px 12px; }
.d-chat-window .d-chat-heading h1 { font-size:16px; }
.d-chat-window .d-chat-status { height:15px; font-size:9px; }
.d-chat-window .d-chat-actions { gap:4px; padding-top:0; }
.d-chat-window .d-chat-actions>.d-icon-button { width:30px; height:30px; }
.d-chat-window .d-chat-actions .ico,.d-chat-window .d-chat-actions svg { width:19px; height:19px; }
.d-chat-window .d-chat-scroll { padding:13px 20px 0; }
.d-chat-window .d-time-divider { margin-bottom:11px; font-size:9px; }
.d-chat-window .d-message { margin-bottom:10px; gap:9px; }
.d-chat-window .d-bubble { padding:9px 12px; font-size:12px; }
.d-chat-window .d-photo-message { width:225px; }
.d-chat-window .d-photo-message>img { height:108px; object-fit:cover; }
.d-chat-window .d-file-message { padding:10px!important; }
.d-chat-window .d-composer { height:148px; }
.d-chat-window .d-compose-toolbar { padding:7px 13px 0; }
.d-chat-window .d-editor { padding:5px 20px; }
.d-chat-window .d-compose-bottom { padding:0 20px 12px; }
.d-chat-window .d-emoji-panel { bottom:143px; }
.d-chat-window .d-chat-details { width:180px; padding:12px 11px; }
.d-chat-window .d-detail-section p { font-size:9px; }
.d-independent-content { flex:1; min-height:0; position:relative; }
.d-utility-window .d-settings-nav { width:165px; padding:23px 10px 18px; }
.d-utility-window .d-settings-nav>h1 { font-size:17px; padding:0 12px 22px; }
.d-utility-window .d-settings-nav nav>button { padding:11px 12px; gap:10px; font-size:11px; }
.d-utility-window .d-settings-nav nav>button>svg { width:18px!important; height:18px!important; }
.d-utility-window .d-settings-content { padding:29px 34px 24px; }
.d-utility-window .d-settings-content>h1 { font-size:18px; margin-bottom:24px; }
.d-utility-window .d-settings-account { margin-bottom:24px; gap:12px; }
.d-utility-window .d-settings-account h2 { font-size:15px; }
.d-utility-window .d-settings-account>span:last-child { font-size:9px; padding:4px 6px; }
.d-utility-window .d-settings-account>span:last-child>svg { width:12px!important; height:12px!important; }
.d-utility-window .d-settings-section { margin-bottom:23px; }
.d-utility-window .d-settings-row { min-height:43px; }
.d-utility-window .d-device-row { min-height:69px; }
.d-utility-window .d-device-row p { font-size:9px; }
.d-utility-window .d-device-row strong { font-size:11px; }
.d-utility-window .d-account-actions>.d-secondary-button { font-size:11px!important; }
.d-utility-window .d-page-top { display:none; }
.d-utility-window .d-my-cover { height:147px; }
.d-utility-window .d-my-profile { width:650px; max-width:calc(100% - 64px); }
.d-utility-window .d-my-profile-head { height:107px; }
.d-utility-window .d-my-profile-head>div h1 { font-size:20px; }
.d-utility-window .d-profile-columns { padding-top:18px; gap:25px; }
.d-utility-window .d-profile-columns dl>div { min-height:35px; }
.d-utility-window .d-profile-columns h2 { margin-bottom:12px; }
.d-utility-window .d-profile-footer { margin-top:16px; padding-top:14px; }
.d-utility-window .d-theme-options { gap:10px; }
.d-utility-window .d-theme-options>button { flex:1; width:auto; min-width:0; font-size:10px; }
.d-utility-window .d-about { padding-top:12px; }
.d-utility-window .d-about>div:nth-last-child(2) { margin-top:52px; }
.d-login-window { width:430px; height:620px; left:335px; top:48px; }
.d-login-window>.d-login { min-height:0; }
.d-login-window .d-login-brand { display:none; }
.d-login-window .d-login-card { margin:28px auto 0; background:#ffffffbb; width:350px; box-shadow:none; border-color:#ffffffc9; }
.d-login-window .d-login-copyright { bottom:18px; font-size:9px; }
.d-desktop-idle { position:absolute; left:542px; top:286px; width:350px; display:flex; flex-direction:column; align-items:center; gap:12px; color:#b3bdca; font-size:12px; }
.d-desktop-idle>.ico,.d-desktop-idle>svg { width:41px!important; height:41px!important; color:#bfccd9; }
.d-window-dock { display:flex; gap:9px; position:absolute; left:22px; bottom:8px; z-index:25; }
.d-window-dock>button { display:flex; align-items:center; gap:7px; padding:6px 12px; font-size:11px; border:1px solid #d4dfe9; border-radius:6px; background:#ffffffc7; color:#7b90a7; box-shadow:0 2px 5px #30547b08; }
.d-window-dock>button>svg { width:16px!important; height:16px!important; }
.d-window-dock .avatar { border-radius:6px; }
.d-split-desktop[data-theme="dark"] .d-floating-window { border-color:#405165; box-shadow:0 15px 40px #101c2b2b; }
.d-split-desktop[data-theme="dark"] .d-main-window>.d-window-titlebar,.d-split-desktop[data-theme="dark"] .d-main-profile { background:#29384a; }
.d-split-desktop[data-theme="dark"] .d-main-search-row { background:var(--surface); }
.d-split-desktop[data-theme="dark"] .d-main-search-row>.d-search,.d-split-desktop[data-theme="dark"] .d-main-search-row>.d-icon-button { background:var(--d-soft); }
.d-split-desktop[data-theme="dark"] .d-main-footer { background:#29323e; }
.d-split-desktop[data-theme="dark"] .d-main-body .d-conv-row.is-selected,.d-split-desktop[data-theme="dark"] .d-main-body .d-friend-row.is-selected { background:#2a4c68; }
.d-split-desktop[data-theme="dark"] .d-main-body .d-conv-row.is-pinned:not(.is-selected) { background:#2d3744; }
