/* Matter tasks only. No changes to task or approval rules. */
#workspace #mw-tasks.tw-compact{padding:16px 20px}
#workspace #mw-tasks.tw-compact>.mw-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
#workspace #mw-tasks.tw-compact>.mw-toolbar>h2{font-size:17px!important;font-weight:500!important;margin:0;line-height:1.4;min-width:0}
#workspace #mw-tasks .tw-actions{display:flex;align-items:center;gap:6px;flex:none}
#workspace #mw-tasks .tw-actions>button,#workspace #mw-tasks .tw-help>summary{display:inline-flex;align-items:center;justify-content:center;min-height:36px!important;margin:0!important;padding:6px 12px!important;font-size:13px!important;line-height:20px;border-radius:5px;white-space:nowrap}
#workspace #mw-tasks .tw-actions>.tw-refresh,#workspace #mw-tasks .tw-help>summary{width:36px;min-width:36px;padding:0!important;background:transparent;color:#45647f;border:1px solid transparent;list-style:none}
#workspace #mw-tasks .tw-help>summary::-webkit-details-marker{display:none}
#workspace #mw-tasks .tw-help>summary::after{display:none!important;content:none!important}
#workspace #mw-tasks .tw-help{position:relative;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
#workspace #mw-tasks .tw-help>p{position:absolute;right:0;top:calc(100% + 6px);width:min(320px,calc(100vw - 64px));box-sizing:border-box;z-index:12;margin:0!important;padding:12px 14px;background:#fff;border:1px solid #dce4ed;border-radius:6px;box-shadow:0 8px 24px #193b501a;font-size:13px;line-height:1.6;color:#526b80}
#workspace #mw-tasks .tw-refresh:hover,#workspace #mw-tasks .tw-help>summary:hover{background:#edf3f8}
#workspace #mw-tasks .tw-tabs{display:flex;gap:20px;margin:0 0 14px;padding:0;border-bottom:1px solid #e0e7ef}
#workspace #mw-tasks .tw-tabs>button{min-width:44px;min-height:36px!important;margin:0 0 -1px!important;padding:6px 0!important;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#62798d;font-size:13px!important;font-weight:400}
#workspace #mw-tasks .tw-tabs>button[aria-pressed=true]{border-bottom-color:#225780;color:#194b73;font-weight:600}
#workspace #mw-tasks #task-panel{padding:0!important;margin:0!important;border:0!important;background:transparent;box-shadow:none}
#workspace #mw-tasks.tw-compact #task-panel>h2{display:none}
#workspace #mw-tasks .tw-empty{margin:0!important;padding:16px 0!important;color:#62798d;font-size:14px}
#workspace #mw-tasks .mw-matter-approvals>p:only-child{margin:0;padding:16px 0;color:#62798d;font-size:14px}
@media(max-width:1100px),(any-pointer:coarse){
 #workspace #mw-tasks .tw-actions>button,#workspace #mw-tasks .tw-help>summary,#workspace #mw-tasks .tw-tabs>button{min-height:44px!important}
 #workspace #mw-tasks .tw-actions>.tw-refresh,#workspace #mw-tasks .tw-help>summary{width:44px;min-width:44px}
}
@media(max-width:540px){
 #workspace #mw-tasks.tw-compact{padding:14px}
 #workspace #mw-tasks.tw-compact>.mw-toolbar{flex-wrap:wrap;gap:8px;margin-bottom:8px}
 #workspace #mw-tasks.tw-compact>.mw-toolbar>h2{flex:1 0 100%;font-size:16px!important}
 #workspace #mw-tasks .tw-actions{width:100%;justify-content:flex-end}
 #workspace #mw-tasks .tw-actions>.tw-add{margin-left:auto!important}
 #workspace #mw-tasks .tw-help>p{left:0;right:auto}
 #workspace #mw-tasks .tw-tabs{gap:24px;margin-bottom:8px}
}
