/* Dark desktop menus use stable surfaces instead of the light accent variable. */
[data-theme=dark] #app .desktop-navigation details>div{background:#1c3031;color:#e6efed;border-color:#456060;}
[data-theme=dark] #app .desktop-navigation details>div :is(.desktop-link,.nav-item){color:#e6efed;background:transparent;}
[data-theme=dark] #app .desktop-navigation details>div :is(.desktop-link,.nav-item):is(:hover,:focus-visible,.active){background:#294c4d;color:#fff;}
[data-theme=dark] .planning-automation-dialog .planning-config-section{border-color:var(--line);}
[data-theme=dark] .planning-automation-dialog .planning-config-section>summary{color:var(--ink);}
#app .page-heading:is(.page-heading-finance,.page-heading-mail-accounts){flex-wrap:nowrap;align-items:center;}
#app .page-heading:is(.page-heading-finance,.page-heading-mail-accounts) h1{margin:0;min-width:0;width:auto;flex:1 1 auto;}
#app .page-heading:is(.page-heading-finance,.page-heading-mail-accounts)>.primary{flex:0 0 auto;margin-block:0;}
.finance-heading-line:before{content:' ';}
#app .content:has(>.page-heading-business) #business-profiles{display:grid;gap:16px;margin-bottom:16px;}
#app .app-day-summary>button,#app .app-day-summary>button>span{text-align:center;}
#editor .profile-calendar-card{padding:18px;}
#editor .profile-calendar-card h3{margin:0 0 12px;}
#editor .profile-calendar-card p{margin:0 0 16px;}
#app .shift-more>div{box-sizing:border-box;width:280px;max-width:calc(100vw - 32px);}
#app .shift-more>div>label{display:flex;flex-direction:column;align-items:stretch;min-width:0;width:100%;gap:8px;margin:0;}
#app .shift-more input[type=date]{box-sizing:border-box;min-width:0;width:100%;max-width:100%;margin:0;}
#app .shift-more input[type=date]::-webkit-date-and-time-value{min-width:0;text-align:left;}
@media(max-width:700px){
 #app .content:has(>.page-heading-events)>.toolbar .month-control{width:100%;max-width:100%;flex:1 0 100%;box-sizing:border-box;}
 #app .content:has(>.page-heading-events)>.toolbar .month-control>label{flex:1;min-width:0;}
 #app .content:has(>.page-heading-events)>.toolbar .month-control input{min-width:0;width:100%;box-sizing:border-box;}
 #app .page-heading-finance h1 .finance-heading-line{display:block;}
 #app .page-heading-finance h1 .finance-heading-line:before{content:none;}
 #app .page-heading:is(.page-heading-finance,.page-heading-mail-accounts){padding-inline:14px;gap:10px;}
 #app .page-heading:is(.page-heading-finance,.page-heading-mail-accounts) h1{font-size:clamp(18px,5.5vw,24px);}
 #app .page-heading-mail-accounts h1{max-width:50%;}
 #app .page-heading-mail-accounts>.primary{font-size:13px;padding-inline:10px;gap:6px;}
}
@media(max-width:360px){#app .page-heading-finance>.primary{font-size:12px;padding-inline:10px;}}
