/* Compact Tasks shell. Navigation always uses one column. */
body[data-app=tasks]:not([data-app=home]){--task-rail-width:164px;--task-nav-height:clamp(22px,calc((100dvh - 110px)/10),38px);font-size:14px;line-height:1.45}
body[data-app=tasks]:has(.shell:not([hidden])){height:100dvh;overflow:hidden;overscroll-behavior:none}
body[data-app=tasks]:not([data-app=home]) .shell,body.embedded-app[data-app=tasks]:not([data-app=home]) .shell{height:100dvh;min-height:0;overflow:hidden}
body[data-app=tasks]:not([data-app=home]) .workspace{display:grid;grid-template-rows:auto minmax(0,1fr);height:100%;min-height:0;overflow:hidden}
body[data-app=tasks]:not([data-app=home]) #main{min-height:0;width:100%;padding:18px 20px 22px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-padding:18px}
body[data-app=tasks]:not([data-app=home]) #sidebar,body.embedded-app[data-app=tasks]:not([data-app=home]) #sidebar{position:relative;inset:auto;height:100%;min-height:0;padding:10px 8px;overflow:hidden}
body[data-app=tasks] #sidebar .app-local-nav{flex:1;overflow:hidden}
body[data-app=tasks] #sidebar #app-side-nav{display:grid;grid-template-columns:minmax(0,1fr);gap:2px;margin:0;padding:0}
body[data-app=tasks] #sidebar .task-side-views,body[data-app=tasks] #sidebar .task-side-lists{display:contents}
body[data-app=tasks] #sidebar #app-side-nav button,body[data-app=tasks] #sidebar .app-global-nav a,body[data-app=tasks] #sidebar #app-switcher-button,body[data-app=tasks] #sidebar .app-side-bottom>a{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:9px;height:var(--task-nav-height);min-height:0;width:100%;margin:0;padding:4px 10px;border-radius:8px;font-size:12px;line-height:1.2;text-align:left}
body[data-app=tasks] #sidebar #app-side-nav button>span,body[data-app=tasks] #sidebar .app-global-nav a span,body[data-app=tasks] #sidebar #app-switcher-button span,body[data-app=tasks] #sidebar .app-side-bottom>a span{width:auto;max-width:100%;font-size:inherit;line-height:1.2;white-space:normal;overflow-wrap:anywhere}
body[data-app=tasks] #sidebar #app-side-nav svg,body[data-app=tasks] #sidebar .app-global-nav svg,body[data-app=tasks] #sidebar .app-side-bottom>a svg{width:18px;height:18px;flex:none}
body[data-app=tasks] #sidebar .app-side-bottom{display:grid;grid-template-columns:minmax(0,1fr);gap:2px;margin-top:6px;padding-top:6px}
body[data-app=tasks] #sidebar .app-side-bottom>.app-global-nav{display:contents}
body[data-app=tasks] #sidebar .app-side-bottom .app-global-nav a{height:var(--task-nav-height);min-height:0;padding:2px 10px}
@media(min-width:761px){
 body.task-sidebar-collapsed[data-app=tasks]:not([data-app=home]){--task-rail-width:0px}
 body.task-sidebar-collapsed[data-app=tasks]:not([data-app=home]) #sidebar{width:0;padding:0;border:0;visibility:hidden}
}

/* The search is part of the fixed topbar, not the scrolling task content. */
body[data-app=tasks]:not([data-app=home]) .workspace>.docs-topbar,body.embedded-app[data-app=tasks] .workspace>.docs-topbar{position:relative;height:54px;min-height:54px;min-width:0;padding:0 18px;gap:12px;z-index:10}
body[data-app=tasks] .docs-topbar #breadcrumb,body[data-app=tasks] .docs-mobile-brand{display:none}
body[data-app=tasks] .workspace>.docs-topbar #menu{display:grid;place-items:center;flex:none;width:36px;min-width:36px;height:36px;min-height:36px;padding:7px;border:0;border-radius:8px;background:transparent;color:#27313f}
body[data-app=tasks] .docs-topbar #menu:hover,body[data-app=tasks] .docs-topbar #menu[aria-expanded=true]{background:var(--task-soft)}
body[data-app=tasks] .docs-topbar .task-topbar-brand{display:flex;align-items:center;gap:8px;flex:none;min-width:0;min-height:36px;color:#27313f;font:700 15px/1.2 Manrope,system-ui,sans-serif;letter-spacing:-.3px;text-decoration:none}
body[data-app=tasks] .docs-topbar .task-topbar-brand>img{width:28px;height:28px;flex:none}
body[data-app=tasks] .docs-topbar .task-topbar-brand>span{min-width:0;white-space:nowrap}
body[data-app=tasks] .docs-topbar .task-brand-name{color:var(--task-accent);font-style:normal}
body[data-app=tasks] .docs-topbar .task-search{position:absolute;left:calc(50% - var(--task-rail-width)/2);transform:translateX(-50%);display:flex;align-items:center;gap:8px;flex:1;width:clamp(240px,32vw,440px);min-width:0;max-width:440px;min-height:34px;height:34px;margin:0;padding:0 11px;border:1px solid #e9e5e2;border-radius:8px;background:#f8f7f5}
body[data-app=tasks] .docs-topbar .task-search svg{width:16px;height:16px;flex:none}
body[data-app=tasks] .docs-topbar .task-search #app-header-search{flex:1;width:100%;min-width:0;max-width:100%;height:32px;min-height:0;margin:0;padding:6px 0;border:0;border-radius:0;outline:0;box-shadow:none;background:transparent;color:#27313f;font-size:13px}
body[data-app=tasks] .docs-topbar-actions{gap:6px}
body[data-app=tasks] .docs-topbar #notice-bell{height:36px;min-width:36px;width:36px;border:0}
body[data-app=tasks] .docs-topbar #notice-bell>svg{width:19px;height:19px}
body[data-app=tasks] .docs-notice-badge{position:absolute;top:0;right:0;display:grid;place-items:center;min-width:16px;height:16px;padding:0 3px;border:2px solid #fff;border-radius:20px;background:var(--task-accent);color:#fff;font-size:9px;font-weight:700;line-height:1}
body[data-app=tasks] .docs-topbar .account-button{min-height:36px;padding:3px 6px;gap:7px;max-width:190px}
body[data-app=tasks] .docs-topbar .app-user-avatar{flex:none;width:29px;height:29px;font-size:12px;overflow:hidden}
body[data-app=tasks] .docs-topbar .app-user-name{min-width:0;max-width:125px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-app=tasks] .task-page-heading{gap:10px;margin-bottom:8px}
body[data-app=tasks] .task-page-heading>div:first-child{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;min-width:0}
body[data-app=tasks] .task-page-heading h1{font-size:18px;line-height:1.25;letter-spacing:-.025em;overflow-wrap:anywhere}
body[data-app=tasks] .task-eyebrow{display:none}
body[data-app=tasks] .task-heading-meta{margin:0;font-size:11px;line-height:1.45;text-transform:none}
body[data-app=tasks] .task-heading-meta::first-letter{text-transform:uppercase}
body[data-app=tasks] .task-heading-actions{gap:6px}
body[data-app=tasks] #refresh-tasks{flex:none;width:34px;height:34px;font-size:20px;border-radius:8px}
body[data-app=tasks] #app-create{width:auto;min-width:34px;min-height:34px;height:34px;padding:6px 11px;font-size:12px;border-radius:8px}
body[data-app=tasks] .task-scope-bar{gap:10px;margin-bottom:12px;font-size:12px}
body[data-app=tasks] .task-scope-bar strong{min-width:0;max-width:100%;overflow-wrap:anywhere}
body[data-app=tasks] .task-scope-bar label{max-width:100%;min-width:0;font-size:12px}
body[data-app=tasks] .task-scope-bar select{min-width:0;max-width:190px;min-height:32px;padding:5px 24px 5px 9px;font-size:12px;text-overflow:ellipsis}
body[data-app=tasks] .task-workspace{grid-template-columns:minmax(0,1fr);min-height:0;border-radius:12px}
@media(min-width:1101px){body[data-app=tasks] .task-workspace.has-detail{grid-template-columns:minmax(0,1fr) minmax(270px,30%)}}
body[data-app=tasks] .task-board{padding:15px}
body[data-app=tasks] .task-group{margin-bottom:18px}
body[data-app=tasks] .task-group:last-child{margin-bottom:0}
body[data-app=tasks] .task-group h2{margin-bottom:7px;font-size:13px;line-height:1.4}
body[data-app=tasks] .task-group h2 span{min-width:19px;height:19px;font-size:10px;border-radius:5px}
body[data-app=tasks] .task-line{gap:6px;min-height:52px;padding:5px 8px}
body[data-app=tasks] .task-line-check{flex:none;min-width:34px;width:34px;height:34px;min-height:34px;border:0;background:transparent;position:relative;isolation:isolate}
body[data-app=tasks] .task-line-check::before{content:'';position:absolute;inset:6px;border:1.5px solid #a6a0b0;border-radius:50%;background:#fff;z-index:-1}
body[data-app=tasks] .task-line.is-done .task-line-check::before{border-color:var(--task-accent);background:var(--task-soft)}
body[data-app=tasks] .task-line-check:hover::before{border-color:var(--task-accent);box-shadow:0 0 0 3px #7654b51a}
body[data-app=tasks] .task-line-main{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;min-height:40px;padding:2px 0;color:#27313f}
body[data-app=tasks] .task-line-main strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;flex:none;width:100%;white-space:normal;overflow:hidden;overflow-wrap:anywhere;font-size:13px;line-height:1.4}
body[data-app=tasks] .task-line-meta{flex:none;width:100%;max-width:100%;gap:4px 7px;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
body[data-app=tasks] .task-line-meta time{white-space:normal;color:var(--muted);font-size:11px}
body[data-app=tasks] .task-list-chip{display:inline-block;max-width:200px;padding:2px 6px;border-radius:5px;font-size:10px;font-weight:500;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-app=tasks] .task-flag{font-size:14px}
body[data-app=tasks] .task-detail{align-self:start;min-height:0;padding:18px;overflow:visible}
body[data-app=tasks] .task-detail h2{margin:12px 0 10px;font-size:18px;line-height:1.4;letter-spacing:-.025em;overflow-wrap:anywhere}
body[data-app=tasks] .task-detail-circle{width:25px;height:25px}
body[data-app=tasks] .task-detail-close{display:grid;place-items:center;top:7px;right:7px;width:32px;height:32px;min-height:32px;border-radius:8px;font-size:23px}
body[data-app=tasks] .task-detail-close:hover{background:var(--task-soft)}
body[data-app=tasks] .task-detail-tags{margin-bottom:16px}
body[data-app=tasks] .task-detail-field{gap:9px;margin:15px 0}
body[data-app=tasks] .task-detail-field>div{flex:1;min-width:0}
body[data-app=tasks] .task-detail-field small{font-size:11px}
body[data-app=tasks] .task-detail-field strong{font-size:12px;overflow-wrap:anywhere}
body[data-app=tasks] .task-detail-field p{padding:9px;font-size:12px;line-height:1.55}
body[data-app=tasks] .task-detail-section{min-width:0;overflow-wrap:anywhere}
body[data-app=tasks] .task-detail-section h3{margin:18px 0 6px;font-size:12px}
body[data-app=tasks] .task-detail-section p{font-size:12px;color:var(--muted)}
body[data-app=tasks] .task-detail-actions{position:static;margin-top:18px;padding:0;gap:6px}
body[data-app=tasks] .task-detail-actions button{min-height:34px;padding:7px 10px;white-space:normal;font-size:12px}
body[data-app=tasks] #task-detail-edit{position:static;top:auto;right:auto;width:100%;padding:7px 10px;border:1px solid var(--border);background:#fff;font-size:12px}
body[data-app=tasks] .task-detail-empty{min-height:230px}
body[data-app=tasks] #notice{max-width:min(560px,calc(100vw - 24px));bottom:max(16px,env(safe-area-inset-bottom));z-index:80;font-size:13px;overflow-wrap:anywhere}
body[data-app=tasks] dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:22px;border-color:var(--border);color:#27313f;overflow:auto;overscroll-behavior:contain;overflow-wrap:anywhere}
body[data-app=tasks] dialog::backdrop{background:#27313f66;backdrop-filter:blur(2px)}
body[data-app=tasks] dialog h2{font-size:20px;line-height:1.35;overflow-wrap:anywhere}
body[data-app=tasks] :is(dialog,[data-task-resources]) :is(input,select,textarea){min-width:0;max-width:100%;min-height:36px;font-size:14px}
body[data-app=tasks] dialog label{min-width:0;font-size:13px}
body[data-app=tasks] dialog .split{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body[data-app=tasks] dialog .form-actions{flex-wrap:wrap;gap:8px}
body[data-app=tasks] dialog :is(button,.primary){min-height:36px;white-space:normal}
body[data-app=tasks] .task-list-picker{max-height:none;overflow:visible;gap:5px}
body[data-app=tasks] .task-list-picker button{padding:9px 11px;border-color:var(--border);font-size:13px;overflow-wrap:anywhere}
body[data-app=tasks] .task-detail-dialog{width:min(620px,calc(100vw - 24px));padding:0;border:1px solid var(--border);border-radius:16px}
body[data-app=tasks] .task-detail-dialog .task-detail{display:block;border:0;padding:24px 20px;background:#fff}
body[data-app=tasks] .task-detail-dialog .task-detail-close{position:sticky;top:0;float:right;z-index:2;margin:-14px -8px 0 8px;background:#fff}
body[data-app=tasks] #main table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;font-size:12px}
body[data-app=tasks] #main :is(th,td){padding:8px;text-align:left;overflow-wrap:anywhere}
@media(max-width:1100px){body[data-app=tasks] .task-workspace{grid-template-columns:minmax(0,1fr)}body[data-app=tasks] .task-workspace>.task-detail{display:none}}
@media(min-width:761px) and (max-height:700px){body[data-app=tasks]:not([data-app=home]) #main{padding:12px 16px 18px}body[data-app=tasks] .task-line{min-height:48px}}
@media(max-width:1150px){
 body[data-app=tasks]:not([data-app=home]) .workspace>.docs-topbar,body.embedded-app[data-app=tasks] .workspace>.docs-topbar{display:grid;grid-template-columns:36px minmax(0,1fr) auto;grid-template-rows:36px 36px;grid-template-areas:'menu brand actions' 'search search search';height:96px;min-height:96px;padding:8px 18px;gap:8px 12px}
 body[data-app=tasks] .docs-topbar #menu{grid-area:menu}
 body[data-app=tasks] .docs-topbar .task-topbar-brand{grid-area:brand;justify-self:start}
 body[data-app=tasks] .docs-topbar-actions{grid-area:actions;margin:0}
 body[data-app=tasks] .docs-topbar .task-search{grid-area:search;position:static;left:auto;transform:translateX(calc(var(--task-rail-width)/-2));justify-self:center;width:min(440px,calc(100vw - 2*(var(--task-rail-width) + 18px)));height:36px;min-height:36px}
}
@media(max-width:760px){
 body[data-app=tasks]:not([data-app=home]){--task-nav-height:clamp(22px,calc((100dvh - 118px)/10),44px)}
 body[data-app=tasks]:not([data-app=home]) #sidebar,body.embedded-app[data-app=tasks]:not([data-app=home]) #sidebar{position:fixed;inset:0 auto 0 0;width:min(248px,calc(100vw - 32px));height:100dvh;padding:10px}
 body[data-app=tasks] #sidebar .app-side-close{position:static;align-self:flex-end;flex:none;margin:0 0 8px;padding:9px;width:40px;height:40px;min-height:40px;color:#27313f}
 body[data-app=tasks] #sidebar .app-side-close>svg{width:21px;height:21px}
 body[data-app=tasks] #sidebar #app-side-nav button,body[data-app=tasks] #sidebar .app-global-nav a,body[data-app=tasks] #sidebar #app-switcher-button,body[data-app=tasks] #sidebar .app-side-bottom>a{height:var(--task-nav-height);font-size:13px}
 body[data-app=tasks]:not([data-app=home]) .workspace>.docs-topbar,body.embedded-app[data-app=tasks] .workspace>.docs-topbar{grid-template-columns:40px minmax(0,1fr) auto;grid-template-rows:40px 38px;grid-template-areas:'menu brand actions' 'search search search';height:96px;min-height:96px;padding:6px 8px;gap:6px}
 body[data-app=tasks] .workspace>.docs-topbar #menu{grid-area:menu;flex:none;width:40px;min-width:40px;height:40px;min-height:40px;padding:9px}
 body[data-app=tasks] .docs-topbar .task-topbar-brand{gap:6px;font-size:14px}
 body[data-app=tasks] .docs-topbar .task-search{transform:none;width:min(440px,100%);max-width:none;height:38px;min-height:38px;padding:0 9px}
 body[data-app=tasks] .docs-topbar .task-search #app-header-search{height:36px;font-size:16px}
 body[data-app=tasks] .docs-topbar-actions{gap:1px}
 body[data-app=tasks] .docs-topbar .account-button{width:36px;max-width:36px;height:36px;min-height:36px;padding:3px}
 body[data-app=tasks]:not([data-app=home]) #main{padding:16px 12px calc(22px + env(safe-area-inset-bottom));scrollbar-gutter:auto}
 body[data-app=tasks] .task-page-heading{gap:10px;margin-bottom:10px}
 body[data-app=tasks] .task-page-heading>div:first-child{display:block}
 body[data-app=tasks] .task-page-heading h1{font-size:20px}
 body[data-app=tasks] .task-heading-meta{margin-top:4px;font-size:11px}
 body[data-app=tasks] #refresh-tasks,body[data-app=tasks] #app-create{width:40px;min-width:40px;height:40px;min-height:40px;padding:6px}
 body[data-app=tasks] #app-create{font-size:21px}
 body[data-app=tasks] .task-scope-bar select{min-height:40px;font-size:16px}
 body[data-app=tasks] .task-board{padding:15px 10px}
 body[data-app=tasks] .task-line{padding:6px 4px;gap:5px}
 body[data-app=tasks] .task-line-check{width:40px;min-width:40px;height:40px;min-height:40px}
 body[data-app=tasks] .task-line-check::before{inset:8px}
 body[data-app=tasks] .task-line-main strong{-webkit-line-clamp:3;line-clamp:3;font-size:14px}
 body[data-app=tasks] .task-line-meta{font-size:12px}
 body[data-app=tasks] .task-line-meta time{font-size:12px}
 body[data-app=tasks] .task-list-chip{max-width:100%;font-size:11px}
 body[data-app=tasks] dialog{padding:20px;border-radius:16px}
 body[data-app=tasks] :is(dialog,[data-task-resources]) :is(input,select,textarea){min-height:44px;font-size:16px}
 body[data-app=tasks] dialog :is(button,.primary){min-height:44px}
 body[data-app=tasks] .task-detail-dialog{width:100%;max-width:100%;max-height:calc(100dvh - 12px);margin:auto 0 0;padding:0;border-radius:20px 20px 0 0}
 body[data-app=tasks] .task-detail-dialog .task-detail{padding:28px 20px calc(24px + env(safe-area-inset-bottom))}
 body[data-app=tasks] .task-detail-close{width:44px;height:44px;min-height:44px}
 body[data-app=tasks] .task-detail h2{font-size:20px}
 body[data-app=tasks] .task-detail-field p{font-size:14px}
 body[data-app=tasks] .task-detail-actions button{min-height:44px;font-size:14px}
}
@media(max-width:420px){body[data-app=tasks] .task-eyebrow{font-size:9px}body[data-app=tasks] .task-heading-actions{gap:4px}body[data-app=tasks] .task-scope-bar{align-items:stretch;gap:8px}body[data-app=tasks] .task-scope-bar label{justify-content:space-between;width:100%}body[data-app=tasks] .task-scope-bar select{flex:1;max-width:190px}body[data-app=tasks] dialog .split{grid-template-columns:minmax(0,1fr);gap:0}body[data-app=tasks] dialog .form-actions>*{flex:1}}
@media(max-height:500px){body[data-app=tasks] #sidebar #app-side-nav,body[data-app=tasks] #sidebar .app-side-bottom{gap:1px}body[data-app=tasks] #sidebar #app-side-nav button,body[data-app=tasks] #sidebar .app-global-nav a,body[data-app=tasks] #sidebar #app-switcher-button,body[data-app=tasks] #sidebar .app-side-bottom>a{gap:7px;padding:2px 9px;font-size:11px}body[data-app=tasks] #sidebar #app-side-nav svg,body[data-app=tasks] #sidebar .app-global-nav svg,body[data-app=tasks] #sidebar .app-side-bottom>a svg{width:16px;height:16px}}
