/* Join section navigation, subnavigation and their first content surface. */
main:has(#sections:not([hidden])) #sections{margin-bottom:0;align-items:flex-end;background:#fff;border:1px solid #d8dfd6;border-bottom:0;padding:0 12px;gap:0 12px;border-radius:10px 10px 0 0}
main:has(#sections:not([hidden])) #sections .main-sections{margin:0;border-bottom:0}
main:has(#sections:not([hidden])) #sections .account-actions{align-self:center;padding-block:4px}
main:has(#sections:not([hidden])) #tabs:not(:empty){margin:0;padding:0 12px;gap:12px;background:#fff;border:1px solid #d8dfd6;border-top:1px solid #edf0f2;border-bottom:0;border-radius:0}
main:has(#sections:not([hidden])) #tabs button{background:transparent;border-radius:0;color:#85898e}
main:has(#sections:not([hidden])) #tabs button[aria-current]{color:#0782ff;border-bottom-color:#0782ff}
main:has(#sections:not([hidden])) #app{margin-top:0;padding-top:0;display:flow-root}
main:has(#sections:not([hidden])) #app>.panel:first-child,
main:has(#sections:not([hidden])) #app>.settings-cards:first-child>.panel:first-child{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}
main:has(#sections:not([hidden])) #app>.settings-cards:first-child{margin-top:0}
main:has(#sections:not([hidden])) #app>.chat-panel{max-width:none;width:100%;margin-inline:0}
main:has(#sections:not([hidden])) #testbar:empty{display:none}
main:has(#sections:not([hidden])) #testbar:not(:empty){margin:0;border-radius:0}
.chat-footer{display:flex;justify-content:flex-end;align-items:center;margin-top:12px;padding-top:8px;border-top:1px solid #e4e9ed}
.chat-footer #chat-sound{font-size:12px;padding:6px 10px}
#chat-status:empty{display:none}
@media(max-width:650px){
 main:has(#sections:not([hidden])) #sections{padding-inline:9px}
 main:has(#sections:not([hidden])) #sections .account-actions{order:-1;width:100%;justify-content:flex-end}
 main:has(#sections:not([hidden])) #sections .main-sections{order:0}
 main:has(#sections:not([hidden])) #tabs:not(:empty){padding-inline:9px}
}

/* Compact and top-align the monthly team heading and month picker. */
#app .panel[data-block="month"]{padding-top:10px}
#app .panel[data-block="month"]>.row:first-child{align-items:flex-start;gap:8px;margin:0 0 8px}
#app #team-title{font-size:12px;line-height:22px;margin:0;font-weight:700}
#app .month-controls{align-items:flex-start;gap:3px;margin:0}
#app .month-controls button{font-size:12px;line-height:20px;width:24px;height:22px;min-height:0;padding:0;border-radius:4px}
#app .month-controls input[type="month"]{font-size:12px;line-height:20px;height:22px;width:10.5em;padding:0 4px;border-radius:4px;box-sizing:border-box}

/* Green secondary tabs and compact team/settings controls. */
main:has(#sections:not([hidden])) #tabs button[aria-current]{color:#205c4b;border-bottom-color:#205c4b}
#app .team-filters{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:0 0 12px}
#app .team-add{width:29px;height:29px;min-height:0;padding:0;line-height:25px;font-size:22px;border:1px solid #205c4b;border-radius:5px;color:#205c4b;background:white}
#app .team-panel{padding-top:12px}
#app .settings-cards{max-width:800px;width:100%;gap:10px}
#app .settings-cards .panel{padding:14px 16px}
#app .settings-cards h2{font-size:18px;margin:0}
#app .settings-cards button{padding:5px 9px;font-size:12px;min-height:28px;border-radius:6px}
#app .settings-cards .job-list{margin-top:9px}
#app .settings-cards .job-setting{padding:6px 0;gap:8px;font-size:14px}
#app .settings-cards .norm-days{margin:10px 0}
#app .settings-cards .norm-days div{padding:6px 0}
@media(max-width:650px){#app .settings-cards .panel{padding:12px}}
