/* Palette only: existing layout, calendar, login and motion remain unchanged. */
:root,html[data-theme=light],html[data-theme=light] :is(#homePage,#thoughtSheet),html[data-theme=light] body[data-page=homePage] #tabBar,html[data-theme=light][data-bubble-style=liquid]{
 --paper:#f3f3f3;--paper-deep:#e8e8e8;--ink:#202020;--muted:#858585;
 --surface:rgba(255,255,255,.72);--surface-strong:rgba(255,255,255,.9);
 --hairline:rgba(32,32,32,.09);--coral:#555;--coral-soft:rgba(85,85,85,.12);
 --text:var(--ink);--meta:var(--muted);--page:var(--paper);--glass:var(--surface);
 --stroke:rgba(255,255,255,.85);--tool-bg:rgba(236,236,236,.8);--action:#292929;--accent:#555;
 --soft-shadow:0 18px 42px #0000000d,0 2px 8px #00000008;--lift-shadow:0 22px 54px #00000016,0 3px 10px #0000000d;
 --bg:radial-gradient(circle at 14% 8%,#ffffffed,transparent 34%),radial-gradient(circle at 92% 54%,#c9c9c94d,transparent 38%),linear-gradient(150deg,#f7f7f7,#eeeeee);
 --mo-bg:#e8e8e8;--mo-ink:#262626;--mo-muted:#737373;--mo-line:#d9d9d9;
 --mo-pane:#fafafacc;--mo-soft:#e8e8e8cc;--mo-sheet:#fafafa;--mo-rose:#626262;--mo-rose-soft:#dedede;--mo-cast:#cccccc;
 --liquid-ink:#242424;--liquid-glow:#ffffff55;--liquid-fill:#ffffff26;--liquid-rim:#ffffffa8;
}
html[data-theme=dark],html[data-theme=dark] :is(#homePage,#thoughtSheet),html[data-theme=dark] body[data-page=homePage] #tabBar,html[data-theme=dark][data-bubble-style=liquid]{
 --paper:#1f1f1f;--paper-deep:#292929;--ink:#f3f3f3;--muted:#aaa;
 --surface:rgba(48,48,48,.8);--surface-strong:rgba(53,53,53,.94);
 --hairline:#ffffff18;--coral:#bcbcbc;--coral-soft:#bcbcbc26;--accent:#bcbcbc;
 --tool-bg:#ffffff12;--action:#f3f3f3;--stroke:#ffffff24;
 --bg:radial-gradient(circle at 15% 8%,#ffffff0f,transparent 30%),linear-gradient(150deg,#252525,#1d1d1d);
 --mo-bg:#191919;--mo-ink:#f0f0f0;--mo-muted:#aaa;--mo-line:#494949;
 --mo-pane:#242424cc;--mo-soft:#363636cc;--mo-sheet:#232323;--mo-rose:#bcbcbc;--mo-rose-soft:#3c3c3c;--mo-cast:#363636;
 --liquid-ink:#f4f4f4;--liquid-glow:#00000080;--liquid-fill:#24242426;--liquid-rim:#ffffff73;
}
.login-card,.login-card h1,.login-card input{color:var(--ink)}
.login-card p,.login-card input::placeholder,.login-card small{color:var(--muted)}
.login-mark{background:var(--ink);color:var(--paper)}
.login-card input{background:var(--surface-strong);border-color:var(--hairline)}
.connection-notice button{margin-left:10px;color:inherit;background:transparent;border:1px solid currentColor;border-radius:8px;padding:3px 7px}
.session-recovery{margin-top:12px;color:var(--muted);font-size:13px;text-align:center}
.session-recovery button{margin-top:8px}
html[data-chat-style=imessage]{--im-blue:#555;--im-blue-pressed:#333;--im-incoming:rgba(229,229,229,.94);--im-ink:#202020;--im-muted:#737373}
html[data-chat-style=imessage][data-theme=dark]{--im-blue:#666;--im-blue-pressed:#888;--im-incoming:rgba(58,58,58,.96);--im-ink:#fff;--im-muted:#aaa}
#settingsPage .chat-style-setting .segmented-control input[type=checkbox]:checked{background:var(--coral)!important}
.rich-message a{color:var(--text);text-decoration:underline}

.lock-art{filter:grayscale(1)}
html[data-bubble-style=lily] body[data-page=chat] .messages .message .bubble:not(.voice-bubble):not(.photo-bubble)::before,html[data-bubble-style=lily] body[data-page=chat] .messages .message .bubble:not(.voice-bubble):not(.photo-bubble)::after{filter:grayscale(1)}
