/* All-page cosmetic extension. Geometry and interactions unchanged. */
body[data-theme-sample=michigan][data-theme-sample=michigan] .calendar-home-card .calendar-card-dot{background:var(--cal-color)!important;box-shadow:none!important}
body[data-theme-sample=michigan][data-theme-sample=michigan] .calendar-page-event .event-date-badge{background:var(--cal-color,#a52b30)!important}
body[data-theme-sample=michigan][data-theme-sample=michigan] .calendar-page-event .event-chevron{color:var(--cal-color,#a52b30)!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarPage .calendar-page-top-actions button,
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarPage .calendar-page-actions>button{box-shadow:none!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarPage .calendar-page-top-actions .calendar-page-back{background:#eee9dc!important;color:#a52b30!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarPage .calendar-page-top-actions .calendar-page-create{background:#f2e7dc!important;color:#a52b30!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarPage .calendar-page-top-actions .calendar-page-add-top{background:#a52b30!important;color:#fbf9f1!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarPage .calendar-page-actions [data-page-panel="invite"]{background:#eee9dc!important;color:#a52b30!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarPage .calendar-page-actions [data-page-settings]{background:#f2e7dc!important;color:#a52b30!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarPage .calendar-page-actions .yomi-leave-page{background:#eee9dc!important;color:#fbf9f1!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarPage .calendar-page-add-inline{background:#a52b30!important;color:#fbf9f1!important;box-shadow:none!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarPage .events-card-head .yomi-leave-page{background:#eee9dc!important;color:#fbf9f1!important;box-shadow:none!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarPage .events-card-head [data-page-panel="invite"]{background:#eee9dc!important;color:#a52b30!important;box-shadow:none!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarPage .calendar-page-invite-close{background:#eee9dc!important;color:#a52b30!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarPage .calendar-page-all-events,
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarPage .calendar-page-events-count,
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarPage .calendar-page-members-count{background:#eeeee3!important;color:#66745a!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarCards .calendar-row-add{background:#f2e7dc!important;color:#a52b30!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #groupCalendarsScreen .dashboard-actions #createCalendarFromHome,
html body[data-theme-sample=michigan][data-theme-sample=michigan] #groupCalendarsScreen .dashboard-actions #homeAddEvent{background:#f2e7dc!important;border-color:#d7bfb0!important;color:#a52b30!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #groupSummary.group-summary{background:linear-gradient(110deg,#f2e7dc,#eeeadc)!important;border-color:#a52b30!important;color:#a52b30!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #groupSummary .summary-tile{background:#a52b30!important;color:#f2e7dc!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .appnav button:not(.active){background:#f2e7dc!important;border-color:#d7bfb0!important;color:#a52b30!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .appnav button.active{background:#eeeadc!important;border-color:#d7bfb0!important;color:#a52b30!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .appnav button span:first-child{color:#a52b30!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .appnav #yomiAdminTab:not(.active){background:#f2e7dc!important;border-color:#d7bfb0!important;color:#a52b30!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .appnav button[data-view=groups]:not(.active){background:#f2e7dc!important;border-color:#d7bfb0!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .appnav button[data-view=calendars]:not(.active){background:#f2e7dc!important;border-color:#f2e7dc!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .appnav button[data-view=preferences]:not(.active){background:#eee9dc!important;border-color:#eee9dc!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .appnav #yomiAdminTab:not(.active){background:#eee9dc!important;border-color:#eee9dc!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .appnav button[data-view=groups].active{background:#d7bfb0!important;border-color:#d7bfb0!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .appnav button[data-view=calendars].active{background:#f2e7dc!important;border-color:#d7bfb0!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .appnav button[data-view=preferences].active{background:#eeeadc!important;border-color:#d7bfb0!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .appnav #yomiAdminTab.active{background:#eee9dc!important;border-color:#d7bfb0!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarToolbar #gridCreateCalendar{background:#f2e7dc!important;border-color:#d7bfb0!important;color:#a52b30!important;box-shadow:none!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarToolbar #gridAddEvent{background:#eee9dc!important;border-color:#eee9dc!important;color:#a52b30!important;box-shadow:none!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarToolbar #calendarSelect{background:#f5f2e6!important;border-color:#eee9dc!important;color:#a52b30!important;box-shadow:none!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .appnav button[data-view=groups]:is(.active,:not(.active)){background:#dedbce!important;border-color:#dedbce!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .appnav button[data-view=calendars]:is(.active,:not(.active)){background:#dedbce!important;border-color:#dedbce!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .appnav button[data-view=preferences]:is(.active,:not(.active)){background:#eee9dc!important;border-color:#dedbce!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .appnav #yomiAdminTab:is(.active,:not(.active)){background:#f5f2e6!important;border-color:#dedbce!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .appnav button.active{box-shadow:inset 0 0 0 1px #a52b30!important;border-color:#a52b30!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarPage .calendar-page-invite-close.invite-close-pinned{box-shadow:0 2px 8px #39372e20!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarPage .calendar-page-top-actions .calendar-page-back,
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarPage .calendar-page-top-actions .calendar-page-create,
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarPage .events-card-head [data-page-panel="invite"],
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarPage .events-card-head .calendar-page-settings{background:#f2e7dc!important;color:#a52b30!important;border-color:#d7bfb0!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarPage .calendar-page-top-actions .calendar-page-back{background:#eee9dc!important;border-color:#d7bfb0!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarPage .events-card-head [data-page-panel="invite"]{background:#f2e1dd!important;border-color:#d4aaa5!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarPage .events-card-head .calendar-page-settings{background:#f2e7dc!important;border-color:#d7bfb0!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarPage [data-page-content=invite]>section.invite-desktop-section:first-of-type{background:#eeeee3!important;border-color:#66745a!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarPage [data-page-content=invite]>.sms-optin-box.invite-desktop-section{background:#f2e7dc!important;border-color:#883d38!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarPage [data-page-content=invite]>section.invite-desktop-section:last-of-type{background:#f2e1dd!important;border-color:#a52b30!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarPage [data-page-content=invite]>section.invite-desktop-section:first-of-type>h3{color:#66745a!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarPage [data-page-content=invite]>.sms-optin-box.invite-desktop-section>h3{color:#883d38!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarPage [data-page-content=invite]>section.invite-desktop-section:last-of-type>h3{color:#883d38!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] :is(.panel,.calendar,.calendar-page-card,.calendar-page-panel,.calendar-page-event,.settings,.plain-modal-panel,dialog,.my-account-panel,.create-section-box,.calendar-settings-card,.calendar-settings-header,.invite-settings-card,.invite-contact-card,.account-dropdown,.record){background:#fbf9f1!important;color:#39372e!important;border-color:#dedbce!important;box-shadow:none!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] :is(.dialog-head,.dialog-actions,.invite-settings-head,.invite-settings-footer){background:#fbf9f1!important;color:#39372e!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] :is(h1,h2,h3,h4,label,.settings summary,.account-dropdown button){color:#39372e!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] :is(input,textarea,select){background:#fffdf7!important;color:#39372e!important;border-color:#d7d0be!important;accent-color:#a52b30!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] :is(.secondary,.today,.small,.icon,.calendar-page-back,.calendar-page-create,.calendar-page-actions button,.calendar-page-menu button,.invite-settings-cancel,.account-dropdown button){background:#eee9dc!important;color:#615e52!important;border-color:#d9d1bd!important;box-shadow:none!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] :is(.primary,#homeAddEvent,.calendar-page-add-top,.calendar-page-add-inline,.calendar-page-actions [data-page-add],.invite-settings-done){background:#a52b30!important;color:#fffaf2!important;border-color:#a52b30!important;box-shadow:none!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] :is(.day,.calendar-page-fullcalendar .day){background:#fbf9f1!important;border-color:#dedbce!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] :is(.event,.calendar-page-fullcalendar .event){background:#f2e1dd!important;color:#883d38!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] :is(.day.today .date,.calendar-page-fullcalendar .day.today .date){background:#a52b30!important;color:#fffaf2!important;border-color:#a52b30!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] :is(.calendar-page-card .eyebrow,.calendar-page-stats,.calendar-page-browse-bar span,.hint,.muted,.demo-note){color:#77796d!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] :is(.calendar-page-event .event-date-badge){background:#a52b30!important;color:#fffaf2!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] :is(.calendar-page-event .event-date-badge small){color:#fffaf2!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] :is(.calendar-page-header h1,.calendar-page-card h1,.calendar-page-event .event-chevron){color:#39372e!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] :is(.settings-section-icon,.calendar-page-events h2:before,.calendar-page-panel h2:before){background:#f2e1dd!important;color:#a52b30!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #createCalendarDialog .calendar-wide-box{background:#f2e1dd!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .invite-settings-dialog{background:#f5f2e6!important;color:#39372e!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .calendar-page-grid-mount #calendarToolbar{background:#fbf9f1!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .day.outside{background:#eeeadc!important;color:#99978c!important}
/* LOCAL DESIGN PREVIEW: cosmetic overrides only, all app layout rules retained. */
html body[data-theme-sample=michigan]{background:#f5f2e6!important;color:#292a24!important;--ink:#292a24;--muted:#77796d;--line:#dedbce}
html body[data-theme-sample=michigan] .top{background:#f5f2e6!important;border-bottom-color:#aaa99a!important;box-shadow:none!important}
html body[data-theme-sample=michigan] .brand-logo{filter:grayscale(1) brightness(.28)!important}
html body[data-theme-sample=michigan] .brand-tagline{color:#a52b30!important}
html body[data-theme-sample=michigan] .avatar{background:#ece7d7!important;color:#7b3032!important;box-shadow:none!important}
html body[data-theme-sample=michigan] .eyebrow,html body[data-theme-sample=michigan] .section-label{color:#7b7465!important}
html body[data-theme-sample=michigan] .welcome h1{color:#292a24!important}
html body[data-theme-sample=michigan] .welcome p,html body[data-theme-sample=michigan] .upcoming{color:#77796d!important}
html body[data-theme-sample=michigan] #groupSummary.group-summary{background:#eeeadc!important;border-color:#d7d0be!important;box-shadow:none!important}
html body[data-theme-sample=michigan] #groupSummary .summary-tile{background:#f5f2e6!important;color:#a52b30!important;box-shadow:none!important}
html body[data-theme-sample=michigan] #groupSummary .summary-heading,html body[data-theme-sample=michigan] #groupSummary b{color:#292a24!important}
html body[data-theme-sample=michigan] #groupSummary small,html body[data-theme-sample=michigan] #groupSummary .summary-metric{color:#77796d!important}
html body[data-theme-sample=michigan] #calendarCards .calendar-home-card{background:#fbf9f1!important;border-color:#dedbce!important;box-shadow:0 1px 3px #292a2408!important}
html body[data-theme-sample=michigan] #calendarCards .calendar-card-title,html body[data-theme-sample=michigan] #calendarCards h3{color:#292a24!important}
html body[data-theme-sample=michigan] #calendarCards .calendar-card-meta>span,html body[data-theme-sample=michigan] #calendarCards .calendar-card-stats>span{background:#eeeadc!important;color:#746e60!important;outline-color:#d7d0be!important;border-color:#d7d0be!important}
html body[data-theme-sample=michigan] .appnav{background:#f5f2e6!important;border-color:#aaa99a!important;box-shadow:none!important}
html body[data-theme-sample=michigan] .appnav button,html body[data-theme-sample=michigan] #groupCalendarsScreen .dashboard-actions button,html body[data-theme-sample=michigan] #calendarCards button{background:#eee9dc!important;color:#615e52!important;border-color:#d9d1bd!important;box-shadow:none!important}
html body[data-theme-sample=michigan] .appnav button.active{background:#f2e1dd!important;color:#a52b30!important;border-color:#d4aaa5!important}
html body[data-theme-sample=michigan] #groupCalendarsScreen #homeAddEvent{background:#a52b30!important;border-color:#a52b30!important;color:#fffaf2!important;box-shadow:0 2px 5px #a52b3015!important}
html body[data-theme-sample=michigan] #groupCalendarsScreen #createCalendarFromHome{background:#f2e7dc!important;color:#883d38!important;border-color:#d7bfb0!important}
html body[data-theme-sample=michigan] #calendarCards .calendar-row-add{background:#f2e1dd!important;border-color:#dcc1b9!important;color:#983c3e!important}
html body[data-theme-sample=michigan] #calendarCards .calendar-row-invite{background:#eee9dc!important;border-color:#d9d1bd!important;color:#766451!important}
html body[data-theme-sample=michigan] #calendarCards .notification-chip{background:#eeeee3!important;border-color:#d5d8c5!important;color:#66745a!important;box-shadow:none!important}
html body[data-theme-sample=michigan] #calendarCards .phone-calendar-more{color:#837b6b!important;background:transparent!important}
html{background:#f5f2e6!important}
html body[data-theme-sample=michigan] main,html body[data-theme-sample=michigan] #calendarCardsView{background:#f5f2e6!important}
html body[data-theme-sample=michigan] #groupCalendarsScreen #calendarCardsView #createCalendarFromHome{background:#f2e7dc!important;color:#883d38!important;border-color:#d7bfb0!important;box-shadow:none!important}
html body[data-theme-sample=michigan] #groupCalendarsScreen #calendarCardsView #homeAddEvent{background:#a52b30!important;color:#fffaf2!important;border-color:#a52b30!important;box-shadow:none!important}
html body[data-theme-sample=michigan] nav.appnav button[data-view]:is(.active,:not(.active)){background:#eee9dc!important;border-color:#d9d1bd!important;color:#615e52!important;box-shadow:none!important}
html body[data-theme-sample=michigan] nav.appnav button[data-view].active{background:#f2e1dd!important;color:#a52b30!important;border-color:#d4aaa5!important;box-shadow:inset 0 0 0 1px #d4aaa5!important}
html body[data-theme-sample=michigan] #calendarCards#calendarCards .calendar-row-invite{background:#eee9dc!important;color:#766451!important;border-color:#d9d1bd!important;box-shadow:none!important}
html body[data-theme-sample=michigan] #calendarCards#calendarCards .calendar-card-title *,html body[data-theme-sample=michigan] #groupSummary#groupSummary *{color:inherit!important}
html body[data-theme-sample=michigan] #groupSummary#groupSummary{color:#39372e!important}
html body[data-theme-sample=michigan] #calendarCards#calendarCards .calendar-card-title{color:#39372e!important}
html body[data-theme-sample=michigan] .appnav.appnav button span{color:inherit!important}
/* Shared palette for every screen and form, preserving each calendar's color marker. */
html body[data-theme-sample=michigan]{--brand:#a52b30;--brand-dark:#883d38;--teal:#a52b30;--teal-pale:#eeeadc;--blue-pale:#f2e1dd;--canvas:#f5f2e6;--coral:#a52b30;--coral-pale:#f2e1dd;--gold:#883d38}
html body[data-theme-sample=michigan] :is(#calendarPage,#preferencesScreen,#myAccountScreen,.calendar-page-grid-mount){background:#f5f2e6!important}
html body[data-theme-sample=michigan] :is(.calendar-colors legend,.setting-label,.setting-description b,.invite-setting b,.event-type-trigger){color:#39372e!important}
html body[data-theme-sample=michigan] :is(.setting-description,.my-account-heading>p:last-child,.my-account-note,.field small){color:#77796d!important}
html body[data-theme-sample=michigan] :is(.access-choice,.event-type-trigger,.event-type-options,.event-type-options button,.calendar-multi){background:#fffdf7!important;color:#39372e!important;border-color:#dedbce!important}
html body[data-theme-sample=michigan] .access-choice input:checked+span{background:#a52b30!important;color:#fffaf2!important}
html body[data-theme-sample=michigan] .access-choice input:not(:checked)+span{background:#eee9dc!important;color:#615e52!important}
html body[data-theme-sample=michigan] .setting-switch input:checked+.switch-ui{background:#a52b30!important}
html body[data-theme-sample=michigan] #createCalendarDialog .calendar-access-box{background:#eeeee3!important;border-color:#aaa98d!important}
html body[data-theme-sample=michigan] #createCalendarDialog .calendar-invite-box{background:#f2e7dc!important;border-color:#c3a48d!important}
html body[data-theme-sample=michigan] #createCalendarDialog .calendar-wide-box{background:#f2e1dd!important;border-color:#bb8580!important}
html body[data-theme-sample=michigan] #createCalendarDialog .personal-notify-box{background:#eeeadc!important;border-color:#b2a58a!important}
html body[data-theme-sample=michigan] #createCalendarDialog .create-section-box .setting-description b{color:#615e52!important}
html body[data-theme-sample=michigan] #calendarPage .calendar-page-event{background:#fbf9f1!important;border-color:#dedbce!important}
html body[data-theme-sample=michigan] #calendarPage .calendar-page-event .event-main small{color:#77796d!important}
html body[data-theme-sample=michigan] .calendar-page-fullcalendar .day .date{color:#615e52!important;border-color:#dedbce!important}
html body[data-theme-sample=michigan] .calendar-page-fullcalendar .day.today .date{color:#fffaf2!important;background:#a52b30!important;border-color:#a52b30!important}
html body[data-theme-sample=michigan] :is(#createCalendarDialog,#calendarEditDialog) .setting-switch input:checked+.switch-ui{background:#a52b30!important}

/* Supplied #5 wordmark + slogan lockup (theme preview) */
html body[data-theme-sample=michigan] .brand-logo{content:url('brand-wordmark.png')!important;width:170px!important;max-height:36px!important}
html body[data-theme-sample=michigan] .brand-slogan-tag{display:block;width:170px;height:auto;margin-top:2px}
body .brand-slogan-tag{display:block;width:170px;height:auto;margin-top:2px}
html body[data-theme-sample=michigan] .brand-logo{filter:none!important}
/* Restore On/Off chip distinction (explicit preference: On light green, Off neutral dashed) */
html body[data-theme-sample=michigan] .notification-chip.is-on{background:#eaf6ef!important;border:1px solid #a9d6b8!important;color:#236b4c!important}
html body[data-theme-sample=michigan] .notification-chip.is-off{background:#fbf9f1!important;border:1px dashed #b9b3a4!important;color:#66745a!important}
[data-view="chats"][hidden]{display:none!important}
/* Sign-in gate themed (no reference design existed; palette match only, layout unchanged) */
html body[data-theme-sample=michigan] #yomiSignin{background:#f5f2e6!important}
html body[data-theme-sample=michigan] #yomiSignin .ys-card{background:#fbf9f1!important;border:1px solid #dedbce!important;box-shadow:0 10px 40px #292a2412!important}
html body[data-theme-sample=michigan] #yomiSignin .ys-logo{content:url('brand-wordmark.png?v=2')!important;height:44px!important;width:auto!important}
html body[data-theme-sample=michigan] #yomiSignin h1{color:#39372e!important}
html body[data-theme-sample=michigan] #yomiSignin .ys-sub,html body[data-theme-sample=michigan] #yomiSignin .ys-fine{color:#77796d!important}
html body[data-theme-sample=michigan] #yomiSignin label{color:#39372e!important}
html body[data-theme-sample=michigan] #yomiSignin input{background:#fffdf7!important;border-color:#d7d0be!important;color:#39372e!important}
html body[data-theme-sample=michigan] #yomiSignin .ys-btn{background:#a52b30!important;color:#fffaf2!important}
html body[data-theme-sample=michigan] #yomiSignin .ys-btn.ys-google{background:#eee9dc!important;color:#39372e!important;border:1px solid #d7d0be!important}
html body[data-theme-sample=michigan] #yomiSignin .ys-brand{background:transparent!important;padding:0!important}

/* Residual navy/blue cleanup pass (whole-app cream/burgundy feel) */
html body[data-theme-sample=michigan]{--brand:#883d38!important;--brand-dark:#6d2f2c!important;--ink:#39372e!important;--muted:#77796d!important;--line:#ddd2b8!important;--canvas:#f5f2e6!important;--blue-pale:#f2e7dc!important;--teal-pale:#efe8d4!important;--teal:#883d38!important;color:#39372e!important}
html body[data-theme-sample=michigan] a{color:#a52b30}
html body[data-theme-sample=michigan][data-theme-sample=michigan] :is(#quickAddEvent .modal-card,#quickAddEvent>form){background:linear-gradient(180deg,#fbf9f1 0%,#fffdf7 260px,#fbf9f1 520px)!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] :is(.field-label,#quickAddEvent .notification-choice legend){color:#39372e!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .quick-cal-list{background:#fffdf7!important;border-color:#ddd2b8!important}
html body[data-theme-sample=michigan] #cardEventDialog[open]{background:#fbf9f1!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] :is(.event-location-card,.event-comments){background:#fffdf7!important;border-color:#ddd2b8!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .event-map-actions a{background:#fffdf7!important;color:#39372e!important;border-color:#ddd2b8!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] :is(.calendar-settings-card,.calendar-settings-card .calendar-setting-row){background:#fffdf7!important;border-color:#ddd2b8!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .all-events-sheet{background:#f5f2e6!important;color:#39372e!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] :is(.see-all-events,.card-event-row,.day-dialog-body .record,.expanded-view){background:#fffdf7!important;border-color:#ddd2b8!important;color:#39372e!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .see-all-events>button{background:#a52b30!important;color:#fffaf2!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .calendar-card-actions{flex-wrap:wrap!important;row-gap:6px!important}
/* Brand lockup breathing room: uncropped supplied assets, slightly smaller in same header slot */
html body[data-theme-sample=michigan] .brand-logo{content:url('brand-wordmark.png?v=2')!important;width:160px!important;height:auto!important;max-height:none!important}
html body[data-theme-sample=michigan] .brand-slogan-tag,body .brand-slogan-tag{width:155px!important;height:auto;margin-top:2px}
html body[data-theme-sample=michigan] #groupEventDialog dt{color:#39372e!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .demo-note{background:#f2e7dc!important;color:#6e5a44!important;border:1px solid #e0cfae!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .calendar-admin-badge.is-admin{background:#f2e7dc!important;color:#883d38!important;border-color:#d7bfb0!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .calendar-admin-badge.is-member{background:#fbf9f1!important;color:#77796d!important;border-color:#ddd2b8!important}
html body[data-theme-sample=michigan] #groupCalendarsScreen #calendarCards .calendar-home-card .calendar-admin-badge.is-admin{background:#f2e7dc!important;color:#883d38!important;border-color:#d7bfb0!important}
html body[data-theme-sample=michigan] #groupCalendarsScreen #calendarCards .calendar-home-card .calendar-admin-badge.is-member{background:#fbf9f1!important;color:#77796d!important;border-color:#ddd2b8!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] :is(.newdot,.newtag){background:#a52b30!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .newcount{background:#f2e7dc!important;color:#883d38!important}
/* round3: desktop/all-width residual navy fixes (live-probed) */
html body[data-theme-sample=michigan] .calendar-home-card{color:#39372e!important}
html body[data-theme-sample=michigan] .calendar-home-card .upcoming{color:#77796d!important}
html body[data-theme-sample=michigan] :is(.homeWelcome,.welcome)>div>p:not(.eyebrow){color:#77796d!important}
html body[data-theme-sample=michigan] dialog .dialog-head .eyebrow{color:#7b7465!important}
html body[data-theme-sample=michigan] .badge{background:#efe8d4!important;color:#6d6252!important;border-color:#ddd2b8!important}
html body[data-theme-sample=michigan] #preferencesScreen label{color:#39372e!important}
/* round4: residual pale-blue borders/labels (live-probed) */
html body[data-theme-sample=michigan] dialog .dialog-head{border-bottom-color:#ddd2b8!important}
html body[data-theme-sample=michigan] #quickAddEvent fieldset.notification-choice{border-color:#ddd2b8!important;background:rgba(251,249,241,.85)!important}
html body[data-theme-sample=michigan] .month-controls button{background:#fbf9f1!important;border-color:#ddd2b8!important;color:#39372e!important}
html body[data-theme-sample=michigan] .weekday{color:#7b7465!important;background:#f0ebdb!important}
/* round5: iPhone-proof chip fit - auto width, smaller/700 weight, no autosize inflation */
@media(max-width:680px){
 html body[data-theme-sample=michigan][data-theme-sample=michigan] #groupCalendarsScreen:not([hidden]) #calendarCards .calendar-home-card .calendar-home-action-row{flex-wrap:nowrap!important;margin-left:-25px!important;width:calc(100% + 25px)!important;gap:4px!important}
 html body[data-theme-sample=michigan][data-theme-sample=michigan] #groupCalendarsScreen:not([hidden]) #calendarCards .calendar-home-card .calendar-home-primary-actions{gap:2px!important}
 html body[data-theme-sample=michigan][data-theme-sample=michigan] #groupCalendarsScreen:not([hidden]) #calendarCards .calendar-home-card .calendar-notification-status{flex-wrap:nowrap!important;gap:2px!important}
 html body[data-theme-sample=michigan][data-theme-sample=michigan] #groupCalendarsScreen:not([hidden]) #calendarCards .calendar-home-card .calendar-row-add,html body[data-theme-sample=michigan][data-theme-sample=michigan] #groupCalendarsScreen:not([hidden]) #calendarCards .calendar-home-card .calendar-row-invite,html body[data-theme-sample=michigan][data-theme-sample=michigan] #groupCalendarsScreen:not([hidden]) #calendarCards .calendar-home-card .notification-chip{width:auto!important;min-width:0!important;height:28px!important;min-height:28px!important;padding:3px 4px!important;font-size:9px!important;font-weight:700!important;line-height:1!important;gap:2px!important;white-space:nowrap!important;-webkit-text-size-adjust:100%!important;text-size-adjust:100%!important}
}
/* round5: theme yn-* popups (chat alerts, confirm, consent) - colors only */
html body[data-theme-sample=michigan] .yn-card{background:#fffdf7!important;color:#39372e!important;border:1px solid #ddd2b8!important}
html body[data-theme-sample=michigan] .yn-card h3{color:#39372e!important}
html body[data-theme-sample=michigan] .yn-card .hint{color:#77796d!important}
html body[data-theme-sample=michigan] .yn-card .yn-check{color:#39372e!important}
html body[data-theme-sample=michigan] .yn-row button{background:#fbf9f1!important;border:1px solid #ddd2b8!important;color:#39372e!important}
html body[data-theme-sample=michigan] .yn-row button.go{background:#a52b30!important;border-color:#a52b30!important;color:#fff!important}
/* round5b: See All Groups Events sheet - warm palette, preserve event data colors */
html body[data-theme-sample=michigan][data-theme-sample=michigan] .all-events-sheet{background:#fbf9f1!important;color:#39372e!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .all-events-title{border-bottom:1px solid #ddd2b8!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .all-events-title h2{color:#39372e!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .all-events-title button{color:#7b7465!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .all-events-sheet>p{color:#77796d!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .all-filter-label{color:#77796d!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .all-filter-label select,html body[data-theme-sample=michigan][data-theme-sample=michigan] .all-search{background:#fffdf7!important;border-color:#ddd2b8!important;color:#39372e!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .all-filter-label select{color:#39372e!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .all-search{color:#77796d!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .all-search input{color:#39372e!important;background:transparent!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .all-search button{color:#7b7465!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .all-filter-button{background:#fffdf7!important;border-color:#ddd2b8!important;color:#39372e!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan] .all-events-controls button{background:#fffdf7!important;border-color:#ddd2b8!important;color:#615e52!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan].events-page-mode>.all-events-overlay{background:#f5f2e6!important}
html body[data-theme-sample=michigan][data-theme-sample=michigan]:not(.events-page-mode) #allGroupsEventsOverlay .all-events-title{background:#fbf9f1!important;box-shadow:0 -24px 0 #fbf9f1!important}

/* Personal chat choices are distinct from event reminders and calendar-wide controls. */
html body[data-theme-sample=michigan][data-theme-sample=michigan] #calendarEditDialog .chat-notify-card{background:#f2e1dd!important;border:1px solid #bb8580!important;margin:16px 26px;padding:16px;border-radius:14px}
html body[data-theme-sample=michigan] #calendarEditDialog .chat-notify-title{margin:0 0 12px!important;line-height:1.5}
html body[data-theme-sample=michigan][data-theme-sample=michigan] #chatNotifyRows .calendar-setting-row{background:transparent!important}
