/* Light palette; images, canvases and player colours remain original. */
html[data-theme="light"]{color:#331e69;background:#f2f1f7}
:where(html[data-theme="light"]) body{background:radial-gradient(circle at 80% -10%,#ece8f1 0,transparent 36%),#f2f1f7}
:where(html[data-theme="light"]) .topbar{border-bottom:1px solid #42424216}
:where(html[data-theme="light"]) .brand-mark{background:#4c2684;color:#f3f1f7}
:where(html[data-theme="light"]) .brand-dot{color:#4e257f}
:where(html[data-theme="light"]) .account{color:#483c62}
:where(html[data-theme="light"]) .text-button{color:#47247c}
:where(html[data-theme="light"]) .eyebrow{color:#4a247d}
:where(html[data-theme="light"]) .heading p,:where(html[data-theme="light"]) .auth-card p,:where(html[data-theme="light"]) .hint{color:#524964}
:where(html[data-theme="light"]) .primary{background:#4c2682;color:#f2f0f6;box-shadow:0 8px 30px #4c268222}
:where(html[data-theme="light"]) .primary:hover{background:#4b247c}
:where(html[data-theme="light"]) .outline{color:#412070;background:#eeecf3;border:1px solid #e7e3ec}
:where(html[data-theme="light"]) .outline:hover{background:#ebe9f0}
:where(html[data-theme="light"]) .month-nav button{border:1px solid #42424227;background:#eeecf3;color:#292039}
:where(html[data-theme="light"]) .legend{color:#4f4561}
:where(html[data-theme="light"]) .yes{background:#2ac095}
:where(html[data-theme="light"]) .maybe{background:#826226}
:where(html[data-theme="light"]) .no{background:#81253b}
:where(html[data-theme="light"]) .calendar{background:#eceaf0;border:1px solid #eceaf0}
:where(html[data-theme="light"]) .weekday{background:#efedf4;color:#544a64}
:where(html[data-theme="light"]) .day{background:#f0eef5;color:#3d1f6a}
:where(html[data-theme="light"]) .day:hover,:where(html[data-theme="light"]) .day.selected{background:#eeeaf3}
:where(html[data-theme="light"]) .day.today .day-number{background:#4d2682;color:#f4f1f7}
:where(html[data-theme="light"]) .day.empty{background:#f1f0f6}
:where(html[data-theme="light"]) .count.yes{background:#e9f2f0;color:#257f61}
:where(html[data-theme="light"]) .count.maybe{background:#f0ece6;color:#7a5e23}
:where(html[data-theme="light"]) .count.no{background:#f0e6eb;color:#762239}
:where(html[data-theme="light"]) .avatars{color:#534768}
:where(html[data-theme="light"]) .day-panel{border:1px solid #ebe7ef;background:#f0eef5}
:where(html[data-theme="light"]) .entry{border:1px solid #eae6ee;background:#efedf4}
:where(html[data-theme="light"]) .entry small{color:#514563}
:where(html[data-theme="light"]) .entry p{color:#4d3f5f}
:where(html[data-theme="light"]) .empty-note{color:#544965}
:where(html[data-theme="light"]) .auth-card{background:#f0edf4;border:1px solid #e9e4ef;box-shadow:0 30px 100px #fafafa44}
:where(html[data-theme="light"]) .auth-tabs{border-bottom:1px solid #e8e4ec}
:where(html[data-theme="light"]) .auth-tabs button{color:#554867}
:where(html[data-theme="light"]) .auth-tabs button.active{color:#472275;border-bottom:2px solid #4d2580}
:where(html[data-theme="light"]) .auth-card label,:where(html[data-theme="light"]) dialog label{color:#4a3b5e}
:where(html[data-theme="light"]) .auth-card input,:where(html[data-theme="light"]) dialog input[type=date],:where(html[data-theme="light"]) dialog textarea{background:#f3f1f7;border:1px solid #e7e3eb;color:#292039;color-scheme:light}
:where(html[data-theme="light"]) .error{color:#7a2336!important}
:where(html[data-theme="light"]) .optional{color:#564b67}
:where(html[data-theme="light"]) dialog{background:#efecf4;color:#292039;box-shadow:0 25px 100px #fafafaaa}
:where(html[data-theme="light"]) dialog::backdrop{background:#f6f6f9bc}
:where(html[data-theme="light"]) .close{color:#4f346b}
:where(html[data-theme="light"]) .status-options span{background:#f2f0f6;border:1px solid #e8e4ec}
:where(html[data-theme="light"]) .status-options input:checked+span{border-color:#47237a;background:#eae4ef}
:where(html[data-theme="light"]) .yes-choice{color:#268468}
:where(html[data-theme="light"]) .maybe-choice{color:#7c5e24}
:where(html[data-theme="light"]) .no-choice{color:#7a233a}
:where(html[data-theme="light"]) .danger{color:#7a233a}
@media(max-width:760px){}
:where(html[data-theme="light"]) .view-toggle{background:#f0edf4}
:where(html[data-theme="light"]) .view-toggle button{color:#524265}
:where(html[data-theme="light"]) .view-toggle button.active{background:#502785;color:#f2f0f6}
:where(html[data-theme="light"]) .matrix-scroll{border:1px solid #ebe6ef;background:#f1eff6}
:where(html[data-theme="light"]) .matrix{background:#ebe6ef}
:where(html[data-theme="light"]) .matrix-corner,:where(html[data-theme="light"]) .matrix-head,:where(html[data-theme="light"]) .person-cell,:where(html[data-theme="light"]) .matrix-cell{background:#f0eef5}
:where(html[data-theme="light"]) .matrix-corner,:where(html[data-theme="light"]) .person-cell{background:#efecf4}
:where(html[data-theme="light"]) .matrix-corner,:where(html[data-theme="light"]) .matrix-head{color:#4e3d67}
:where(html[data-theme="light"]) .today-head{color:#4b2378}
:where(html[data-theme="light"]) .matrix-cell{color:#756981}
:where(html[data-theme="light"]) .status-yes{background:#ebf3f2;color:#257f61}
:where(html[data-theme="light"]) .status-maybe{background:#f1ece7;color:#7a6023}
:where(html[data-theme="light"]) .status-no{background:#f1e8ec;color:#77233a}
:where(html[data-theme="light"]) .request{background:#eeebf3}
:where(html[data-theme="light"]) #detailNote{color:#4e3863}
@media(max-width:760px){}
@media(max-width:760px){}
:where(html[data-theme="light"]) .brand-mark{background:linear-gradient(145deg,#652580,#288984);color:#f2f0f6;box-shadow:0 0 25px #46268166}
:where(html[data-theme="light"]) .profile-trigger{background:#eeecf3;color:#421f6a}
:where(html[data-theme="light"]) .profile-menu{background:#eeebf3;box-shadow:0 14px 38px #fafafa88}
:where(html[data-theme="light"]) .profile-menu button{color:#451f6b}
:where(html[data-theme="light"]) .profile-menu button:hover{background:#eae5ef}
:where(html[data-theme="light"]) .avatar{background:linear-gradient(135deg,#512786,#32afb8);color:#f2f0f6}
:where(html[data-theme="light"]) .today-head{color:#424242;box-shadow:inset 0 0 0 2px #57237a,0 0 24px #57268299}
:where(html[data-theme="light"]) .today-cell{box-shadow:inset 0 0 0 2px #5a2788;background-color:#ece8f1}
:where(html[data-theme="light"]) .today-cell.status-yes{background-color:#e7f1ee}
:where(html[data-theme="light"]) .today-cell.status-maybe{background-color:#ede8e2}
:where(html[data-theme="light"]) .file-label{color:#4a2275!important}
:where(html[data-theme="light"]) .avatar-editor small,:where(html[data-theme="light"]) .password-section p{color:#574867}
:where(html[data-theme="light"]) .password-section{border-top:1px solid #e9e3ec}
:where(html[data-theme="light"]) .brand-image{border:2px solid #542785;box-shadow:0 0 17px #4c268266}
@media(max-width:760px){}
:where(html[data-theme="light"]) .person-cell{color:#421f6a}
:where(html[data-theme="light"]) .person-cell:hover{background:#eae5ef}
:where(html[data-theme="light"]) .avatar.person-avatar{box-shadow:0 0 0 5px #4c257f24,0 12px 40px #fafafa44}
:where(html[data-theme="light"]) .mini-weekday{color:#554068}
:where(html[data-theme="light"]) .mini-day{background:#f2eff5;color:#4d2c66}
:where(html[data-theme="light"]) .mini-yes{background:#e9f2f0;color:#237a5d}
:where(html[data-theme="light"]) .mini-maybe{background:#efebe5;color:#795e23}
:where(html[data-theme="light"]) .mini-no{background:#efe5ea;color:#76223c}
:where(html[data-theme="light"]) .mini-today{box-shadow:0 0 0 2px #49247a}
:where(html[data-theme="light"]) .mini-selected{border:2px solid #288a83}
:where(html[data-theme="light"]) .person-entry{background:#f1eff5}
:where(html[data-theme="light"]) .person-status{color:#f2f1f6}
:where(html[data-theme="light"]) .person-entry p{color:#4e3465}
@media(max-width:480px){}
:where(html[data-theme="light"]) .top-scroll{scrollbar-color:#775195 #f0eef5}
:where(html[data-theme="light"]) .top-scroll::-webkit-scrollbar-track{background:#f0eef5}
:where(html[data-theme="light"]) .compact-wrapper{background:#f0eef5}
:where(html[data-theme="light"]) .full-day{background:#eeebf3;border:1px solid #e8e2ec;color:#4b206e}
:where(html[data-theme="light"]) .full-day small{color:#257f5f}
:where(html[data-theme="light"]) .full-today{background:#e9e3ee;border:2px solid #50247b;box-shadow:0 0 13px #5a278844}
:where(html[data-theme="light"]) .color-section p{color:#584168}
:where(html[data-theme="light"]) .chat-panel{background:#f0eef5;box-shadow:0 20px 70px #fafafa88}
:where(html[data-theme="light"]) .chat-message{background:#efeaf3;border:1px solid #ece4ef}
:where(html[data-theme="light"]) .chat-message.own{background:#e9e7f0;border-color:#775a90}
:where(html[data-theme="light"]) .chat-message small{color:#594466}
:where(html[data-theme="light"]) .chat-panel textarea{background:#f4f2f7;color:#474747}
@media(min-width:1450px){}
@media(max-width:760px){}
:where(html[data-theme="light"]) .color-section>summary:after{color:#57396f}
:where(html[data-theme="light"]) .color-section>summary #selectedColorName{color:#563e6a}
:where(html[data-theme="light"]) .planning-menu{color:#552f78}
:where(html[data-theme="light"]) .planning-menu[open] button{background:#efebf3}
:where(html[data-theme="light"]) .chat-launcher{background:#552788;border:1px solid #4b2276;color:#f3f0f6;box-shadow:0 6px 30px #fafafa66}
:where(html[data-theme="light"]) .chat-launcher:hover{background:#502580}
:where(html[data-theme="light"]) #profileDialog input[type=text],:where(html[data-theme="light"]) #profileDialog input:not([type]),:where(html[data-theme="light"]) #profileDialog input[type=password]{background:#f3f1f7;border:1px solid #e7e3eb;color:#401f6b}
@media(max-width:760px){}
:where(html[data-theme="light"]) .notification-badge{background:#842657;color:#f4f0f6}
:where(html[data-theme="light"]) .chat-launcher:has(.notification-badge:not([hidden])){border-color:#842657;box-shadow:0 0 20px #84265725}
:where(html[data-theme="light"]) .new-event{background:#42424204}
:where(html[data-theme="light"]) .new-event summary{color:#462275}
:where(html[data-theme="light"]) .new-event input:not([type=radio]){background:#f2f0f6;color:#424242;color-scheme:light}
:where(html[data-theme="light"]) .event-card{border:1px solid #42424218;background:#42424204}
:where(html[data-theme="light"]) .event-when{color:#472275}
:where(html[data-theme="light"]) .event-description{color:#4b3561}
:where(html[data-theme="light"]) .event-card details{color:#514264}
:where(html[data-theme="light"]) .event-pending{border-color:#50268170;background:#50268108}
:where(html[data-theme="light"]) .event-chip{border:1px solid #50268150;background:#4e278621;color:#412170}
:where(html[data-theme="light"]) .event-chip:hover,:where(html[data-theme="light"]) .event-chip:focus-visible{background:#4e278644}
:where(html[data-theme="light"]) .event-count{color:#452275}
:where(html[data-theme="light"]) .event-dot{color:#49247b!important}
:where(html[data-theme="light"]) .entry-thumb{border:1px solid #42424240}
:where(html[data-theme="light"]) .entry-upload input{color:#4e3c63}
@media(max-width:650px){}
:where(html[data-theme="light"]) .event-more{color:#472275}
:where(html[data-theme="light"]) .mention-badge{background:#4f2580;color:#f4f0f6}
:where(html[data-theme="light"]) .chat-message.mentioned{border-color:#642379;background:#f0e7f0;box-shadow:inset 3px 0 #6b2378}
:where(html[data-theme="light"]) .chat-mention{color:#662172;background:#6d288830}
:where(html[data-theme="light"]) .mention-suggestions{background:#f2f0f6}
:where(html[data-theme="light"]) .mention-suggestions button{background:#eae5ef;color:#4a206f}
:where(html[data-theme="light"]) .chat-launcher .chat-indicators>.notification-badge,:where(html[data-theme="light"]) .chat-launcher .chat-indicators>.mention-badge{border:2px solid #f1eff5;box-shadow:0 2px 7px #fafafa55}
:where(html[data-theme="light"]) .chat-launcher .chat-indicators>.notification-badge{background:#7f254c;color:#f6f0f6}
:where(html[data-theme="light"]) .chat-launcher .chat-indicators>.mention-badge{background:#4a2172;color:#efebf3}
:where(html[data-theme="light"]) .chat-launcher:has(.notification-badge:not([hidden])){border-color:#4b2276;box-shadow:0 6px 30px #fafafa66}
:where(html[data-theme="light"]) .connection-note{color:#826226}
:where(html[data-theme="light"]) .install-intro p{color:#4f3c64}
:where(html[data-theme="light"]) #installInstructions ol{color:#4d3267}
@media(max-width:760px){}
:where(html[data-theme="light"]) .platform-choice .active{background:#4c2682;color:#f3f0f6;border-color:#4c2682}
:where(html[data-theme="light"]) .app-bottom-nav{background:#f1eff5ef}
:where(html[data-theme="light"]) .app-bottom-nav button{color:#534068}
:where(html[data-theme="light"]) .app-bottom-nav button.active{color:#492173;background:#53268412}
:where(html[data-theme="light"]) .nav-badges>span{background:#7f254c;color:#f6f0f6;border:1px solid #f1eff5}
:where(html[data-theme="light"]) #appMentionBadge{background:#4a2172}
:where(html[data-theme="light"]) .installed-app{background:radial-gradient(ellipse at top,#f0ebf3,#f2f1f7 55%)}
:where(html[data-theme="light"]) .installed-app .chat-heading{border-bottom:1px solid #42424212}
:where(html[data-theme="light"]) .installed-app #planningDialog[open]{background:#f2f1f7}
:where(html[data-theme="light"]) .app-appointments summary{color:#492275}
:where(html[data-theme="light"]) .app-appointment{border-bottom:1px solid #42424212;color:#41206d}
:where(html[data-theme="light"]) .app-appointment small{color:#544166}
:where(html[data-theme="light"]) .notification-settings>summary{color:#462173}
:where(html[data-theme="light"]) .notification-settings>p{color:#554066}
:where(html[data-theme="light"]) .notification-options input{border:1px solid #786189;background:#eeeaf1}
:where(html[data-theme="light"]) .notification-options input:before{background:#513a68}
:where(html[data-theme="light"]) .notification-options input:checked{background:#532786;border-color:#532786}
:where(html[data-theme="light"]) .notification-options input:checked:before{background:#441f69}
:where(html[data-theme="light"]) .push-status{color:#4d2379!important}
:where(html[data-theme="light"]) .push-onboarding{border:1px solid #4b268370;background:radial-gradient(ellipse at top,#ece6f0 0, #f3f1f7 65%);box-shadow:0 24px 90px #fafafa99}
:where(html[data-theme="light"]) .push-onboarding::backdrop{background:#f6f5f9ba}
:where(html[data-theme="light"]) .push-onboard-icon{box-shadow:0 8px 30px #54278740}
:where(html[data-theme="light"]) .push-onboard-kicker{color:#432379}
:where(html[data-theme="light"]) .push-onboard-hint{color:#554a64}
@media(min-width:1100px){:where(html[data-theme="light"]) body.signed-in:not(.installed-app){background:radial-gradient(ellipse at 55% -20%,#efe8f138,transparent 65%),#f3f2f7}
:where(html[data-theme="light"]) body.signed-in:not(.installed-app) .desktop-nav{background:#f3f1f7;border-right:1px solid #42424209}
:where(html[data-theme="light"]) .desktop-wordmark{color:#3c1f6a}
:where(html[data-theme="light"]) .desktop-subtitle{color:#554a67}
:where(html[data-theme="light"]) .desktop-nav-label{color:#736586}
:where(html[data-theme="light"]) .desktop-nav>button,:where(html[data-theme="light"]) .desktop-nav-bottom>button{color:#544568}
:where(html[data-theme="light"]) .desktop-nav>button.active{background:#4c26851a;color:#442274;box-shadow:inset 3px 0 #4f2683}
:where(html[data-theme="light"]) .desktop-nav button:hover{background:#42424208;color:#41206d}
:where(html[data-theme="light"]) .desktop-count{background:#4c2682;color:#f3f1f6}
:where(html[data-theme="light"]) .desktop-nav-bottom p{color:#736783;border-top:1px solid #42424208}
:where(html[data-theme="light"]) body.signed-in:not(.installed-app) .topbar{border-bottom:1px solid #42424208}
:where(html[data-theme="light"]) body.signed-in:not(.installed-app) .brand-dot{color:#4d257e}
:where(html[data-theme="light"]) body.signed-in:not(.installed-app) .profile-trigger{background:#f0eef5;border-color:#42424213}
:where(html[data-theme="light"]) body.signed-in:not(.installed-app) #calendarApp{background:#f2f1f6;border:1px solid #4242420b;box-shadow:0 18px 60px #fafafa22}
:where(html[data-theme="light"]) body.signed-in:not(.installed-app) .view-toggle{background:#f4f3f8;border:1px solid #4242420b}
:where(html[data-theme="light"]) body.signed-in:not(.installed-app) .view-toggle button.active{background:#502685;color:#f3f1f6}
:where(html[data-theme="light"]) body.signed-in:not(.installed-app) .legend{color:#584b69}
:where(html[data-theme="light"]) body.signed-in:not(.installed-app) .matrix-scroll{border-color:#4242420b}
:where(html[data-theme="light"]) body.signed-in:not(.installed-app) .matrix{background:#4242420d}
:where(html[data-theme="light"]) body.signed-in:not(.installed-app) .matrix-head,:where(html[data-theme="light"]) body.signed-in:not(.installed-app) .matrix-corner{background:#f0edf4;color:#513f69}
:where(html[data-theme="light"]) body.signed-in:not(.installed-app) .person-cell{background:#f0edf4}
:where(html[data-theme="light"]) body.signed-in:not(.installed-app) .matrix-cell:not(.status-yes):not(.status-no):not(.status-maybe):not(.today-cell){background:#f1eff6}
:where(html[data-theme="light"]) body.signed-in:not(.installed-app) .today-head{background:#e8e3ee;box-shadow:inset 0 0 0 2px #4f247c;color:#292039}
:where(html[data-theme="light"]) body.signed-in:not(.installed-app) .today-cell{box-shadow:inset 0 0 0 2px #542581}
:where(html[data-theme="light"]) body.signed-in:not(.installed-app) .calendar-footer .hint{color:#766685}
:where(html[data-theme="light"]) body.signed-in:not(.installed-app) .chat-panel{border:1px solid #5027863b;background:#f1eff5;box-shadow:0 25px 90px #fafafa88}
}
@media(min-width:1440px){:where(html[data-theme="light"]) body.signed-in:not(.installed-app) .desktop-aside{background:#f2f0f6;border:1px solid #4242420b}
:where(html[data-theme="light"]) .desktop-aside-heading h2 span{color:#4f2580}
:where(html[data-theme="light"]) .desktop-aside-heading>p{color:#735f8c}
:where(html[data-theme="light"]) .desktop-event{background:#f0edf4;border:1px solid #42424208;color:#44206d}
:where(html[data-theme="light"]) .desktop-event:hover{border-color:#53268477;background:#efebf3}
:where(html[data-theme="light"]) .desktop-event-date{color:#4f237a}
:where(html[data-theme="light"]) .desktop-event small{color:#58466a}
:where(html[data-theme="light"]) .desktop-event-response{background:#4f268318;color:#492276}
:where(html[data-theme="light"]) .desktop-common{border-top:1px solid #4242420b}
:where(html[data-theme="light"]) .desktop-common>span{color:#4b257f}
:where(html[data-theme="light"]) .desktop-common p,:where(html[data-theme="light"]) .desktop-empty{color:#58476b}
}
@media(min-width:1100px){:where(html[data-theme="light"]) body.signed-in:not(.installed-app) .chat-panel{background:radial-gradient(ellipse at top right,#4d27850b,transparent 60%),#f2f1f6;border:1px solid #4242420b;box-shadow:0 18px 60px #fafafa22}
:where(html[data-theme="light"]) body.signed-in:not(.installed-app) .chat-heading{border-bottom:1px solid #4242420b}
:where(html[data-theme="light"]) body.signed-in:not(.installed-app) .desktop-chat-subtitle{color:#594769}
:where(html[data-theme="light"]) body.signed-in:not(.installed-app) .chat-message{background:#f1eef4;border-color:#4242420c}
:where(html[data-theme="light"]) body.signed-in:not(.installed-app) .chat-message.own{background:#eae5f0;border-color:#54278745}
:where(html[data-theme="light"]) body.signed-in:not(.installed-app) .chat-message small{color:#554068}
:where(html[data-theme="light"]) body.signed-in:not(.installed-app) #chatForm{border-top:1px solid #4242420b}
:where(html[data-theme="light"]) body.signed-in:not(.installed-app) #chatInput{background:#f4f2f7}
}
@media(min-width:1440px){}
:where(html[data-theme="light"]) .reaction-chip{border:1px solid #42424217;background:#f4f2f766;color:#4c3463}
:where(html[data-theme="light"]) .reaction-chip.mine{border-color:#50247d;background:#50278533;color:#451f6b}
:where(html[data-theme="light"]) .reaction-picker summary{border:1px solid #42424212;color:#543d6b}
:where(html[data-theme="light"]) .reaction-choices{background:#f4f2f7}
:where(html[data-theme="light"]) .reaction-choices button:hover,:where(html[data-theme="light"]) .reaction-choices button[aria-pressed=true]{background:#4c278635}
:where(html[data-theme="light"]) .chat-emoji-toggle{color:#4c2276;background:#4c268214}
:where(html[data-theme="light"]) .chat-emoji-toggle[aria-expanded=true]{border-color:#4e257f;background:#51268430}
:where(html[data-theme="light"]) .chat-emoji-panel{border:1px solid #7e549666;background:#f3f1f6}
:where(html[data-theme="light"]) .emoji-tabs button[aria-pressed=true]{background:#4b268333}
:where(html[data-theme="light"]) .emoji-panel-meta{color:#563b6c}
:where(html[data-theme="light"]) .emoji-panel-meta select{background:#f0edf4;color:#4e2769}
:where(html[data-theme="light"]) .emoji-grid button:hover{background:#4b268333}
:where(html[data-theme="light"]) .emoji-grid p{color:#58426d}
:where(html[data-theme="light"]) .chat-emoji-panel>small{color:#5b466f}
@media(min-width:1100px){}
:where(html[data-theme="light"]) .games-heading .eyebrow{color:#573773}
:where(html[data-theme="light"]) .game-tile{border:1px solid #42424212;background:linear-gradient(135deg,#eeebf3,#f2f0f6);color:#3f1f6c}
:where(html[data-theme="light"]) .game-tile:hover{border-color:#53268277}
:where(html[data-theme="light"]) .game-art{color:#492275;background:radial-gradient(ellipse,#4d268425,transparent 70%)}
:where(html[data-theme="light"]) .game-art-chess{color:#3a2170}
:where(html[data-theme="light"]) .game-art-codenames{color:#782723}
:where(html[data-theme="light"]) .game-art-draw{color:#268464}
:where(html[data-theme="light"]) .game-art-phone{color:#805f25}
:where(html[data-theme="light"]) .game-tile-sub{color:#523e63}
:where(html[data-theme="light"]) .game-tile small{color:#746288}
:where(html[data-theme="light"]) .game-dot{background:#2cbf80;box-shadow:0 0 6px #2cbf8025}
:where(html[data-theme="light"]) .game-person{background:#42424205;border:1px solid #42424212}
:where(html[data-theme="light"]) .game-rules{border-top:1px solid #42424212;color:#544268}
:where(html[data-theme="light"]) .game-rules p{color:#523d63}
:where(html[data-theme="light"]) .game-waiting{background:#42424203;border:1px dashed #5e338044;color:#57436c}
:where(html[data-theme="light"]) .game-muted{color:#57446b}
:where(html[data-theme="light"]) .chess-room-card{border:1px solid #42424212;background:#f0eef5;color:#41206f}
:where(html[data-theme="light"]) .chess-room-card small{color:#57446b}
:where(html[data-theme="light"]) .chess-board{border:5px solid #ebe7f1;box-shadow:0 20px 45px #fafafa33}
:where(html[data-theme="light"]) .chess-white{color:#6a471f;text-shadow:0 1px 2px #f1eef5,1px 0 #f1eef5,-1px 0 #f1eef5}
:where(html[data-theme="light"]) .chess-black{color:#f3eff5;text-shadow:0 1px 1px #42424244}
:where(html[data-theme="light"]) .chess-rank,:where(html[data-theme="light"]) .chess-file{color:#ede8f1}
:where(html[data-theme="light"]) .promotion-choice{border:1px solid #542787}
:where(html[data-theme="light"]) .team-red{color:#782325;border-color:#86272c55}
:where(html[data-theme="light"]) .team-blue{color:#23467a;border-color:#28528955}
:where(html[data-theme="light"]) .code-clue{color:#4d2172}
:where(html[data-theme="light"]) .code-red{color:#6c1f25}
:where(html[data-theme="light"]) .code-blue{color:#1f3f6c}
:where(html[data-theme="light"]) .code-neutral{background:#857866;color:#6b541f}
:where(html[data-theme="light"]) .code-assassin{background:#f0eef4;color:#4e3a62}
:where(html[data-theme="light"]) .game-clock{color:#542f77}
:where(html[data-theme="light"]) .draw-word{color:#492172}
:where(html[data-theme="light"]) .game-canvas{background:#424242}
:where(html[data-theme="light"]) .paint-color{border:2px solid #42424235}
:where(html[data-theme="light"]) .draw-guesses p{color:#523e65}
:where(html[data-theme="light"]) .draw-guesses .guess-correct{color:#268457}
:where(html[data-theme="light"]) .game-scores{color:#57436c}
:where(html[data-theme="light"]) .phone-prompt{color:#46206e;border-left:3px solid #562684;background:#5027860a}
:where(html[data-theme="light"]) .phone-done{color:#27865d;border:1px solid #27865d30}
:where(html[data-theme="light"]) .phone-album{border:1px solid #42424215}
:where(html[data-theme="light"]) .phone-page{border-top:1px solid #42424212}
@media(min-width:1100px){}
@media(max-width:600px){}
:where(html[data-theme="light"]) .games-app input,:where(html[data-theme="light"]) .games-app textarea,:where(html[data-theme="light"]) .games-app select{color:#43206d;background:#f4f1f7}
:where(html[data-theme="light"]) .games-app input::placeholder,:where(html[data-theme="light"]) .games-app textarea::placeholder{color:#776586}
:where(html[data-theme="light"]) .game-room-frame{border:1px solid #42424212;background:radial-gradient(ellipse at 20% 0,#60418819,transparent 55%),#f3f1f6;box-shadow:0 24px 80px #fafafa22}
:where(html[data-theme="light"]) .game-room-frame>.game-waiting{background:#53268308;border:1px solid #53268320}
:where(html[data-theme="light"]) .game-play-chess>.chess-board{box-shadow:0 18px 45px #fafafa44}
:where(html[data-theme="light"]) .game-play-chess>.game-status{border:1px solid #54268125;background:linear-gradient(130deg,#753ead21,#42424203)}
:where(html[data-theme="light"]) .game-play-chess>.game-rules{border:1px solid #4242420b;background:#42424203}
:where(html[data-theme="light"]) .game-play-codenames .code-clue{background:#53288813;border:1px solid #5d268333}
:where(html[data-theme="light"]) .game-play-draw .draw-status{background:#42424204;border:1px solid #4242420a}
:where(html[data-theme="light"]) .game-play-draw .game-canvas,:where(html[data-theme="light"]) .game-play-phone .game-canvas{box-shadow:0 14px 45px #fafafa33}
:where(html[data-theme="light"]) .game-play-draw .draw-guesses{border:1px solid #4242420b;background:#42424203}
:where(html[data-theme="light"]) .game-play-phone .phone-album{background:#42424202}
@media(min-width:1440px){}
@media(max-width:900px){}
:where(html[data-theme="light"]) .game-art-werewolf{color:#452377;background:radial-gradient(ellipse,#542a892a,transparent 70%)}
:where(html[data-theme="light"]) .ww-role-help{border:1px solid #56298223;background:#f5f4f880}
:where(html[data-theme="light"]) .ww-help-details>summary{color:#482275}
:where(html[data-theme="light"]) .ww-help-role{border-top:1px solid #42424211}
:where(html[data-theme="light"]) .ww-help-role p{color:#554468}
:where(html[data-theme="light"]) .ww-narrator{border:1px solid #4f258139;background:radial-gradient(ellipse at top right,#673ab133,transparent 70%),#f1eef5}
:where(html[data-theme="light"]) .ww-narrator>p{color:#4f376a}
:where(html[data-theme="light"]) .ww-voice{border:1px solid #54268240;background:#51268315;color:#472275}
:where(html[data-theme="light"]) .ww-voice[aria-pressed=true]{color:#23794f;border-color:#3dae7b50;background:#3dae7b10}
:where(html[data-theme="light"]) .ww-your-role{border:1px solid #51298831;background:#4c268408}
:where(html[data-theme="light"]) .ww-role-reveal p{color:#563f68}
:where(html[data-theme="light"]) .ww-love{color:#7b244b}
:where(html[data-theme="light"]) .ww-ghost-role{border-color:#6b6a8150;background:#69698108}
:where(html[data-theme="light"]) .ww-winner{background:#28895d13;border:1px solid #28895d40}
:where(html[data-theme="light"]) .ww-player{border:1px solid #42424218;background:linear-gradient(145deg,#eee9f2,#f1eff5);color:#43206d}
:where(html[data-theme="light"]) .ww-player:not(:disabled):hover{border-color:#582682}
:where(html[data-theme="light"]) .ww-player small{color:#5b426f}
:where(html[data-theme="light"]) .ww-player.chosen{border-color:#542379;background:linear-gradient(145deg,#72479560,#eee9f2);box-shadow:0 0 0 2px #58268230}
:where(html[data-theme="light"]) .ww-player.dead{background:#42424203;border-color:#4242420b}
:where(html[data-theme="light"]) .ww-player.dead strong{color:#74618a}
:where(html[data-theme="light"]) .ww-heart{color:#7f254c}
:where(html[data-theme="light"]) .ww-action-prompt h3{color:#4b2171}
:where(html[data-theme="light"]) .ww-announcement{border-left:3px solid #612982;background:#5a318409}
:where(html[data-theme="light"]) .ww-announcement p{color:#5a3872}
:where(html[data-theme="light"]) .ww-check{color:#553468}
:where(html[data-theme="light"]) .ww-victim{color:#7a2430}
:where(html[data-theme="light"]) .ww-chat{border:1px solid #42424211;background:#f5f3f880}
:where(html[data-theme="light"]) .ww-chat-message{color:#513c66}
:where(html[data-theme="light"]) .ww-chat-message strong{color:#4b2172}
:where(html[data-theme="light"]) .ww-observer{background:#59739112;border:1px solid #364d7730}
:where(html[data-theme="light"]) .ww-observer h3{color:#224076}
:where(html[data-theme="light"]) .ww-observer p{color:#40465f}
:where(html[data-theme="light"]) .ww-seer-notes,:where(html[data-theme="light"]) .ww-vote-results{border:1px solid #42424211;color:#513969}
:where(html[data-theme="light"]) .ww-lobby-art{color:#54277c;text-shadow:0 0 55px #4d288a60}
:where(html[data-theme="light"]) .ww-settings{border:1px solid #42424211}
:where(html[data-theme="light"]) .ww-settings>summary{color:#492276}
:where(html[data-theme="light"]) .ww-select{color:#553671}
:where(html[data-theme="light"]) .ww-settings-info{color:#755c8f}
@media(max-width:1150px){}
@media(max-width:999px){}

html[data-theme="light"]{color-scheme:light;color:#292039;background:#f7f5fb}
html[data-theme="light"] body{background:radial-gradient(circle at 80% -10%,#eaddfa 0,transparent 36%),#f7f5fb}
:where(html[data-theme="light"]) :is(input,textarea,select){background:#fff;color:#292039;border-color:#c9bfd8;color-scheme:light}
:where(html[data-theme="light"]) :is(.status-yes,.count.yes){background:#d9f3e8;color:#146347}
:where(html[data-theme="light"]) :is(.status-maybe,.count.maybe){background:#fff0cc;color:#795000}
:where(html[data-theme="light"]) :is(.status-no,.count.no){background:#fbe0e8;color:#a02a4d}
:where(html[data-theme="light"]) :is(.today-head,.matrix-cell.today){box-shadow:inset 0 0 0 2px #9950dc}
:where(html[data-theme="light"]) .primary{background:#9652e5;color:#fff}
:where(html[data-theme="light"]) .primary:hover{background:#8140cb}
:where(html[data-theme="light"]) .error{color:#a62b4b!important}
:where(html[data-theme="light"]) :is(.yes-choice){color:#146347}
:where(html[data-theme="light"]) .maybe-choice{color:#795000}
:where(html[data-theme="light"]) .no-choice{color:#a02a4d}
.theme-settings{margin:18px 0;padding:15px 0;border-top:1px solid #88779940}
.theme-settings label{margin:0 0 8px}.theme-settings select{width:100%;padding:11px;border-radius:10px;background:#171223;color:#f7f4ff;border:1px solid #564666;font:inherit}
.theme-settings small{display:block;margin-top:8px;color:#a99cba}
html[data-theme="light"] .theme-settings small{color:#746681}
html[data-theme="light"] .theme-settings select{background:#fff;color:#292039;border-color:#c9bfd8}

/* Neutral surfaces and deliberate lavender accents. */
html[data-theme="light"]{background:#f5f6fa;color:#252334}
html[data-theme="light"] body{background:#f5f6fa!important;color:#252334}
html[data-theme="light"] body :is(.topbar,.chat-panel){background:transparent!important}
html[data-theme="light"] body :is(dialog,.auth-card,.profile-menu,.event-card,.day-panel,.desktop-aside,.desktop-nav,.game-room-frame,.ww-role-help){background:#ffffff!important;border-color:#e0e2eb!important;box-shadow:0 12px 35px #25233409}
html[data-theme="light"] body :is(.profile-trigger,.outline,.month-nav button,.view-toggle){background:#fff!important;border-color:#d9dce7!important;color:#514566}
html[data-theme="light"] body .view-toggle button.active{background:#8e4ddd;color:#fff}
html[data-theme="light"] body :is(.matrix-scroll,.compact-wrapper,.matrix.full-month){background:#eceef4!important;border-color:#e0e2eb!important}
html[data-theme="light"] body .full-day{background:#fff!important;border:1px solid #e2e4ed!important;color:#3e354f;box-shadow:none}
html[data-theme="light"] body .full-day:hover{background:#faf7ff!important;border-color:#b58cde!important}
html[data-theme="light"] body .full-day.full-today{background:#efe3ff!important;border:2px solid #9652df!important;box-shadow:0 4px 14px #9652df20}
html[data-theme="light"] body :is(.matrix-cell,.matrix-head){background:#fff}
html[data-theme="light"] body :is(.person-cell,.matrix-corner){background:#f0f1f7}
html[data-theme="light"] body .matrix-cell.status-yes{background:#d9f3e8;color:#146347}
html[data-theme="light"] body .matrix-cell.status-maybe{background:#fff0cc;color:#795000}
html[data-theme="light"] body .matrix-cell.status-no{background:#fbe0e8;color:#a02a4d}
html[data-theme="light"] body .chat-message{background:#fff!important;border:1px solid #e2e4ed!important;box-shadow:0 2px 7px #25233404}
html[data-theme="light"] body .chat-message.own{background:#eee4ff!important;border-color:#e0d0f5!important}
html[data-theme="light"] body .chat-message.mentioned{background:#f7efff!important;border-color:#cba8e7!important;box-shadow:inset 3px 0 #9652df}
html[data-theme="light"] body .chat-message small{color:#7a7488}
html[data-theme="light"] body .chat-mention{color:#7540a8;background:#dec9f3}
html[data-theme="light"] body :is(.chat-panel textarea,.chat-emoji-toggle){background:#fff!important;border-color:#d9dce7!important;box-shadow:none}
html[data-theme="light"] body .app-bottom-nav{background:#ffffffef!important;border-color:#e0e2eb!important;box-shadow:0 -4px 18px #25233405}
html[data-theme="light"] body .app-bottom-nav button{color:#83798f}
html[data-theme="light"] body .app-bottom-nav button.active{color:#7c3fc5;background:#eee3fb!important}
html[data-theme="light"] body :is(.hint,.legend,.range-help){color:#746c80}
html[data-theme="light"] body .eyebrow{color:#8748c6}
/* Opaque light name cells also override dynamically assigned dark gradients. */
html[data-theme="light"] body .person-cell{background:#f0f1f7!important;color:#373044!important}
html[data-theme="light"] body .person-cell:hover{background:#e8e4f2!important}
html[data-theme="light"] body .today-head{background:#eee3fb!important;color:#7539ba;box-shadow:inset 0 -3px #9652df}
html[data-theme="light"] body .today-cell{box-shadow:inset 0 0 0 2px #ad7cda}
html[data-theme="light"] body .event-chip{background:#f5effd;color:#7540a8;border-color:#ccb5e5}
