:root[data-theme=light]{color-scheme:light!important}
:root[data-theme=dark]{color-scheme:dark!important;background:#191d24}
.kj-appearance{padding:12px;color:light-dark(#42474e,#e6e8ed);font:14px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif}
.kj-appearance-title{display:block;margin-bottom:9px;font-weight:500}
.kj-appearance-choices{display:flex;gap:4px;background:light-dark(#f2f1f1,#191d24);padding:4px;border-radius:10px}
.kj-appearance-choices button{flex:1;border:0;border-radius:7px;min-height:36px;padding:7px 6px;box-shadow:none;background:transparent;color:light-dark(#6c737c,#acb4c0);font:inherit;font-size:13px;line-height:1.4;white-space:nowrap}
.kj-appearance-choices button[aria-pressed=true]{background:light-dark(#fff,#343b47);color:light-dark(#824e61,#f1bacb);box-shadow:0 1px 4px #00000012}
.kj-appearance-choices button:focus-visible{outline:2px solid light-dark(#986173,#e6a7bb);outline-offset:2px}
.kj-appearance-entry{position:relative;display:inline-block;text-align:left}
.kj-appearance-entry>summary{cursor:pointer;list-style:none;font-size:14px;padding:10px;color:light-dark(#777973,#bbc1cb)}
.kj-appearance-entry>summary::-webkit-details-marker{display:none}
.kj-appearance-entry>.kj-appearance{position:absolute;right:0;top:100%;z-index:2000;width:250px;background:light-dark(#fff,#242a33);border:1px solid light-dark(#e7e4de,#404752);border-radius:14px;box-shadow:0 12px 30px #00000020}
/* Shared semantic colors, applied after all page styles. */
html[data-theme=dark]{--bg:#191d24;--paper-bg:#191d24;--paper:#232830;--paper-surface:#232830;--paper-white:#232830;--text:#e8e9ed;--ink:#e8e9ed;--paper-ink:#e8e9ed;--muted:#a5aebb;--paper-muted:#a5aebb;--line:#3b434e;--paper-line:#3b434e;--red:#e4a0b5;--accent:#e4a0b5;--paper-wine:#e4a0b5;--red-dark:#f0b5c7;--red-soft:#3a2d38;--paper-rose:#352c36;--rose:#352c36;--paper-action:#352c36;--paper-action-ink:#eab1c4;--wine:#e7a0b5;--orange:#eca970;--ai:#c1ace8;--ai-bg:#302c3e;--warm:#2c2d31}
html[data-theme=dark] body{background-color:#191d24;color:#e8e9ed}
html[data-theme=dark] :is(.primary,#send-button,#publish-submit,#login-send,#verify-submit,.kj-account-logout){color:#f7e9ee}
html[data-theme=dark] :is(.primary,#send-button,#publish-submit,#login-send,#verify-submit){background:#913e5b;border-color:#a64f6c}
html[data-theme=dark] :is(input,textarea,select){caret-color:#efb2c6}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#8f99a8;opacity:1}
html[data-theme=dark] dialog::backdrop{background:#05080dc4}
html[data-theme=dark] :is(.chat-image,.post-media img,.class-avatar-button img,.avatar img){filter:none}
@media(prefers-reduced-motion:reduce){.kj-appearance *{transition:none!important}}
