:root[data-theme=light]{color-scheme:light;--bg:#ededed;--paper:#fff;--ink:#191919;--muted:#737373;--line:#dedede;--green:#07a963;--soft:#e9eeea;--wx-bg:#ededed;--wx-panel:#f7f7f7;--wx-paper:#fff;--wx-text:#191919;--wx-subtle:#888;--wx-divider:#ddd;--wx-selected:#ddd;--wx-own:#95ec69;--wx-peer:#fff}
:root[data-theme=dark]{color-scheme:dark;--bg:#191919;--paper:#252525;--ink:#dedede;--muted:#aaa;--line:#383838;--green:#07a963;--soft:#303830;--wx-bg:#191919;--wx-panel:#242424;--wx-paper:#303030;--wx-text:#dedede;--wx-subtle:#aaa;--wx-divider:#333;--wx-selected:#383838;--wx-own:#95ec69;--wx-peer:#303030}
html[data-theme] .wechat-layout{--wx-bg:var(--bg);--wx-panel:var(--paper);--wx-text:var(--ink);--wx-subtle:var(--muted);--wx-divider:var(--line);--wx-peer:var(--paper);--wx-selected:var(--soft)}
html[data-theme] body{background:var(--bg);color:var(--ink)}html[data-theme] :is(button,input,select,textarea,dialog,.card,.filter-panel,.login-card,.article-reader,.stat,.message,.toolkit-frame){background-color:var(--paper);color:var(--ink);border-color:var(--line)}html[data-theme] .primary{background:#07a963;color:white;border-color:#07a963}html[data-theme] .plain{background:transparent;color:var(--muted)}html[data-theme] :is(.sidebar,.wechat-layout .sidebar,.wechat-layout .filter-panel .search-row input){background:var(--paper)}html[data-theme] .chat-bubble{background:var(--wx-peer);color:var(--ink)}html[data-theme] .chat-bubble.mine{background:#95ec69;color:#15200e}html[data-theme] .sidebar nav button{background:transparent;color:var(--muted)}html[data-theme] .sidebar nav button.active{color:#07c160;background:var(--soft)}html[data-theme] .wechat-layout .thread-scroll{scrollbar-color:var(--muted) transparent}html[data-theme] .message-detail-panel{background:var(--paper);color:var(--ink);border-color:var(--line)}html[data-theme] .attachment-remove{background:var(--paper);color:var(--ink)}html[data-theme] .search-row input{background:var(--paper)}html[data-theme] .message.mine{background:var(--soft)}html[data-theme] .login-wrap{background:var(--bg)}
.own-avatar>.owner-portrait{width:100%;height:100%;object-fit:cover;display:block}.owner-preview{margin:14px 0}#appearance-settings>*{margin-bottom:12px}#appearance-settings input[type=file]{display:block;max-width:100%}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei","Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}.wechat-emoji{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:1.2em;vertical-align:baseline}.image-viewer{padding:44px 8px 8px;background:var(--paper);width:min(95vw,1200px);max-height:94dvh;overflow:auto}.image-viewer img{display:block;max-width:100%;max-height:80dvh;object-fit:contain;margin:auto}.image-viewer-close{position:absolute;right:8px;top:5px;z-index:1}.media-error{font-size:13px;display:block;max-width:220px;white-space:normal}.emoji-picker{width:min(340px,90vw);padding:16px;grid-template-columns:repeat(5,1fr);gap:6px}.emoji-picker[open]{display:grid}.emoji-picker>button:first-child{grid-column:1/-1;justify-self:end}.emoji-picker>button:not(:first-child){font-size:24px;padding:5px}.original-text{white-space:pre-wrap;font-size:12px;overflow-wrap:anywhere}
@media(max-width:650px){.wechat-layout .chat-compose{grid-template-columns:minmax(80px,1fr) auto}}
@media(min-width:651px){.wechat-layout .sidebar nav{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;margin-bottom:12px}.wechat-layout .sidebar .brand,.wechat-layout .sidebar-bottom{flex-shrink:0}}
.wechat-layout .sidebar nav{overflow-x:hidden}
#result-body textarea{width:100%}
.boot-screen{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;text-align:center;background:var(--bg);color:var(--ink);padding:28px}.boot-emblem{width:90px;height:90px;border-radius:22px;margin-bottom:22px}.boot-screen h1{font-size:26px;margin-bottom:12px}.boot-screen p{color:var(--muted)}.boot-orbit{width:38px;height:38px;border:2px solid var(--line);border-top-color:#b38a50;border-radius:50%;margin:22px auto;animation:orbit 1.4s linear infinite}.boot-screen button{margin:12px 4px}.boot-actions{margin-top:16px}.boot-screen small{color:var(--muted)}@keyframes orbit{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.boot-orbit{animation:none}}

@font-face{font-family:NavigatorEmoji;src:url("/static/emoji/Noto-COLRv1.ttf?v=1.0.14") format("truetype");font-display:swap}.wechat-emoji,.emoji-picker button,.compose-actions button[aria-label="插入表情"]{font-family:NavigatorEmoji,"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}

.message-text .wechat-emoji{font-size:1em}.wechat-native-emoji{font-size:inherit;width:1em;height:1em;object-fit:contain;display:inline-block;vertical-align:-.12em}.emoji-picker{max-width:min(560px,94vw);max-height:70vh;overflow:auto}.emoji-picker>input{grid-column:1/-1;min-width:0;width:100%}.emoji-picker button img{width:30px;height:30px;object-fit:contain}.chat-delivery-note{font-size:12px;color:var(--muted);margin:4px 0 0}.chat-delivery-note.error{color:#d9855b}
