/* Larger disclosure targets; preserve the existing data handlers and typography. */
html[data-lab-v="2"]:not(#interaction):not(#targets):not(#controls) :is(.main,.modal-ov,.dz5c-set) :is(button[aria-expanded],button[aria-haspopup],[role="button"][aria-expanded],summary,select:not([multiple]):not([size]),.tk-ft-expand,.dz6-rs-tog){min-height:44px!important;min-width:44px}
html[data-lab-v="2"] :is(.tk-ft-expand,.dz6-rs-tog){width:44px;height:44px}
html[data-lab-v="2"] :is(.tk-ft-expand,.dz6-rs-tog) svg{width:20px;height:20px}
html[data-lab-v="2"] .stage-title[role="button"]{min-height:44px;display:inline-flex;align-items:center;gap:8px;cursor:pointer}
html[data-lab-v="2"] .dztel .topbar .dzc-actions{margin-left:auto;justify-content:flex-end}
#dztStatus{min-height:108px}#dztCheck{min-width:132px;min-height:44px}#dztCheck:disabled{cursor:wait}
.cal-primary-controls{display:grid;grid-template-columns:minmax(160px,1fr) auto;gap:12px;width:100%;align-items:start}
html .cal-primary-controls .cal-modes{padding:0;background:none;border:0;width:100%;display:block}
.cal-view-select{width:100%;font:inherit;min-height:44px}
.cal-primary-controls #calRefresh{min-height:44px;min-width:112px;justify-self:end}
.cal-primary-controls .cal-settings{grid-column:1/-1;min-width:0;width:100%}
.cal-primary-controls .cal-settings>div{display:flex;flex-wrap:wrap;gap:10px;padding:12px 0}
.cal-primary-controls .cal-settings .cal-layers{flex-basis:100%;margin:0}
.cal-primary-controls #calRefreshNotice{grid-column:1/-1;color:var(--ink-red);font-size:13px;line-height:1.5}
.cal-primary-controls #calRefreshNotice:empty{display:none}
@media(min-width:701px){.cal-primary-controls{grid-template-columns:180px minmax(0,1fr)}.cal-primary-controls .cal-settings>div{padding:16px}.cal-primary-controls .cal-who{min-width:220px}}
@media(max-width:700px){html[data-lab-v="2"] .dztel .topbar .dzc-actions{width:100%;margin-left:0;justify-content:space-between}.cal-primary-controls{gap:10px}.cal-primary-controls .cal-settings>div>*{max-width:100%}}

html[data-lab-v="2"]:not(#interaction):not(#targets):not(#controls) .rd-dd-o{min-height:44px!important;line-height:1.45}
html[data-lab-v="2"]:not(#interaction):not(#targets):not(#controls) :is(#calRefresh,#dztCheck,.cal-nav>button,.dp-nav){min-height:44px!important;min-width:44px}
/* The calendar has its own period, layers and owner controls. Keep task filters collapsed. */
html #tasks.dz-tk.tk-calendar-mode:not(#old):not(#legacy) #dzTkDay{display:none!important}
#tasks.tk-calendar-mode .tk-description{display:none}
#tasks:not(.tk-calendar-mode) #calCrumb{display:none}
#tasks.tk-calendar-mode #calCrumb{display:block;margin-top:7px;font-size:13px;line-height:1.5;color:var(--muted)}
@media(min-width:701px){
 html #tasks.tk-calendar-mode #tktToolbar:not(.filters-open){padding:0!important}
 html #tasks.tk-calendar-mode #tktToolbar>.tkt-calendar-filters{display:flex!important;align-items:center;justify-content:space-between;width:100%;min-height:44px;border:0;background:var(--panel);color:var(--ink);padding:10px 14px;font:inherit;font-size:13px}
 html #tasks.tk-calendar-mode #tktToolbar>.tkt-calendar-filters span{font-size:20px}
 html #tasks.tk-calendar-mode #tktToolbar:not(.filters-open)>:not(.tkt-calendar-filters){display:none!important}
}
@media(max-width:700px){#tasks.tk-calendar-mode #mobileTaskKind{display:none}#tasks.tk-calendar-mode #mobileTaskControls{grid-template-columns:minmax(0,1fr) 44px}}
html[data-lab-v="2"]:not(#interaction):not(#targets):not(#controls) .cal-primary-controls .cal-modes{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;width:100%!important;display:block!important}
@media(min-width:701px){html #tasks.tk-calendar-mode #tktToolbar:not(.filters-open){overflow:hidden;border-radius:var(--r-md)}}
.dztel .dzt-regcard,.dztel .dzt-help{padding:12px 18px}
.dztel .dzt-regcard>summary,.dztel .dzt-help>summary{min-height:44px;cursor:pointer}
.dztel .dzt-help #dztScheme>.panel-box{border:0;box-shadow:none;padding:14px 0 0;margin:0}
.dztel .dzt-regcard>p{font-size:13px;line-height:1.5;color:var(--muted);margin:12px 0}
@media(max-width:700px){html[data-lab-v="2"] .dztel .dzt-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dztel .dzt-regcard,.dztel .dzt-help{padding:10px 14px}}

@media(max-width:700px){.dztel .dzt-st{flex-wrap:wrap}.dztel .dzt-st-b{flex:1;min-width:0}.dztel .dzt-at{flex-basis:100%;margin-left:22px}}
/* Calendar has a single settings surface on each viewport. */
#tasks.tk-calendar-mode #tktToolbar,#tasks.tk-calendar-mode #mobileTaskSettings{display:none!important}
.cal-settings-content .cal-settings-group{width:100%;min-width:0;border-bottom:1px solid var(--line);padding:8px 0 16px}
.cal-settings-group h3{font:inherit;font-size:13px;font-weight:600;color:var(--muted);margin:0 0 12px}
.cal-settings-group .tkt-filters{display:flex;flex-wrap:wrap;gap:12px;width:100%}
.cal-settings-group .tkt-filters>*{max-width:100%}
.cal-settings-content .cal-layers{margin:0}
.dzt-mobile-summary{display:none}
@media(max-width:700px){
 #tasks.tk-calendar-mode .cal-settings>summary{display:none}
 #tasks.tk-calendar-mode .cal-settings:not([open]){display:none}
 .cal-settings-group .tkt-filters>*{flex:1 1 100%;width:100%}
 .cal-settings-group .cal-who{width:100%}
 .dztel .dzt-kpis{display:none!important}
 .dzt-mobile-summary{display:block;padding:12px 16px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--panel);margin:0 0 16px}
 .dzt-mobile-summary>div{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px 0;font-size:13px}
 .dzt-mobile-summary b{font-variant-numeric:tabular-nums;font-size:17px}
 .dzt-mobile-summary summary{font-size:13px;color:var(--muted);cursor:pointer}
 .dzt-mobile-summary p{font-size:13px;line-height:1.5;color:var(--muted)}
}

.cal-settings :is(button,select){min-height:44px!important}
html[data-lab-v="2"]:not(#interaction):not(#targets):not(#controls) #tasks .cal-settings :is(.cal-who,.cal-add,.cal-layer){font:400 13px/1.5 Inter,system-ui,sans-serif!important}

#calTaskKinds .tkt-kinds{display:flex;width:fit-content;max-width:100%;margin-bottom:12px}
#tasks #calTaskKinds .tkt-kinds button{font-family:Inter,system-ui,sans-serif;font-size:13px;line-height:1.5;min-height:44px}
/* Task-state selector belongs to list mode; avoid an empty label in the calendar. */
#tasks.tk-calendar-mode #calTaskFilters label:has(#tkTaskFilter){display:none}

/* Compact calendar settings: three fields, actions and one filter row. */
#tasks .cal-primary-controls .cal-settings>.cal-settings-content{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:12px}
#tasks .cal-settings-content .cal-settings-group{width:auto;padding:0;border:0}
#tasks .cal-settings-group h3{margin:0 0 6px;font-size:12px}
#tasks .cal-settings-group :is(select,.cal-who){width:100%;min-width:0}
#tasks #calTaskKinds{display:none}
#tasks .cal-settings-actions,#tasks .cal-task-filters{grid-column:1/-1}
#tasks .cal-settings-actions{display:flex;flex-wrap:wrap;gap:8px}
#tasks .cal-settings-group .tkt-filters{gap:8px;margin:0;padding:0;border:0}
#tasks .cal-layer-select{position:relative;min-width:0}
#tasks .cal-layer-select>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--panel);color:var(--ink);cursor:pointer;list-style:none;font:400 13px/1.5 Inter,system-ui,sans-serif}
#tasks .cal-layer-select>summary::-webkit-details-marker{display:none}
#tasks .cal-layer-select .cal-layers{position:absolute;z-index:20;top:calc(100% + 4px);left:0;right:0;display:flex;flex-direction:column;gap:4px;padding:6px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--panel);box-shadow:var(--sh-1)}
#tasks .cal-layer-select .cal-layer{text-align:left;border-radius:var(--r-md);justify-content:flex-start}
html[data-lab-v="2"]:not(#interaction):not(#targets):not(#controls) #tasks #calKindSelect{font:400 13px/1.5 Inter,system-ui,sans-serif}
@media(max-width:700px){#tasks .cal-primary-controls .cal-settings>.cal-settings-content{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px 0;gap:10px}#tasks .cal-task-types{grid-column:1/-1}#tasks .cal-settings-group .tkt-filters>*{flex:1 1 calc(50% - 8px);width:calc(50% - 8px);min-width:0}#tasks .cal-settings-actions .cal-add{flex:1;padding-left:8px;padding-right:8px}}

#tasks #calAdvancedFilters>summary{min-height:44px;display:flex;align-items:center;gap:8px;font:400 13px/1.5 Inter,system-ui,sans-serif;color:var(--muted);cursor:pointer;list-style:none}
#tasks #calAdvancedFilters .tkt-filters{padding-top:8px}
#tasks .cal-layer-select>summary:before{display:none!important}

#tasks :is(.cal-layer-select,#calAdvancedFilters)>summary:after,#tasks #calAdvancedFilters>summary:before{display:none!important}
#tasks .cal-disclosure-arrow{margin-left:auto;font-size:18px;line-height:1}
#tasks :is(.cal-layer-select,#calAdvancedFilters)[open]>summary .cal-disclosure-arrow{transform:rotate(180deg)}
#tasks #calAdvancedFilters>summary{background:transparent;border:0;padding:0}
