/* Tasks uses the compact Documents shell, with its own violet identity. */
body[data-app=tasks] .task-scope-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 22px;flex-wrap:wrap;color:#58616c;font-size:13px}
body[data-app=tasks] .task-scope-bar strong{font-weight:500}
body[data-app=tasks] .task-scope-bar label{display:flex;align-items:center;gap:8px;margin:0}
body[data-app=tasks] .task-scope-bar select{width:auto;max-width:190px;padding:7px 26px 7px 10px;background:#fff;border:1px solid #e2e5e9;border-radius:8px;font-size:13px}
body[data-app=tasks] .task-line-meta{flex-wrap:wrap}
body[data-app=tasks]:not([data-app=home]){
 --task-rail-width:88px;--task-accent:#7654b5;--task-soft:#f1ebfa;
 --green:var(--task-accent);--muted:#68717d;--border:#e9e5e2;
 background:#fbfaf9;color:#27313f;overflow-x:hidden;
}
body[data-app=tasks]:not([data-app=home]) .shell,
body.embedded-app[data-app=tasks]:not([data-app=home]) .shell{display:grid;grid-template-columns:var(--task-rail-width) minmax(0,1fr)}
body[data-app=tasks]:not([data-app=home]) #sidebar,
body.embedded-app[data-app=tasks]:not([data-app=home]) #sidebar{
 position:sticky;inset:0 auto auto 0;display:flex;flex-direction:column;width:var(--task-rail-width);height:100dvh;
 padding:14px 7px max(12px,env(safe-area-inset-bottom));visibility:visible;transform:none;box-shadow:none;z-index:30;
 border-right:1px solid var(--border);background:#f8f7f5;color:#27313f;overflow:hidden;
}
body[data-app=tasks] #sidebar .docs-side-brand{display:flex;justify-content:center;min-height:58px;margin:0 0 12px;padding:0}
body[data-app=tasks] #sidebar .docs-side-brand>img{width:36px;height:36px}
body[data-app=tasks] #sidebar .docs-side-brand>span,
body[data-app=tasks] #sidebar .app-side-label{display:none}
body[data-app=tasks] #sidebar .app-local-nav{flex:1;min-width:0;min-height:0;margin:0;padding:0;border:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}
body[data-app=tasks] #sidebar #app-side-nav{display:grid;gap:6px;margin:0;padding:0}
body[data-app=tasks] #sidebar .task-side-views,
body[data-app=tasks] #sidebar .task-side-lists{display:grid;gap:6px}
body[data-app=tasks] #sidebar .task-side-lists{padding-top:6px;border-top:1px solid var(--border)}
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:column;align-items:center;justify-content:center;gap:7px;width:100%;min-height:72px;
 padding:10px 3px;border:0;border-radius:12px;background:transparent;color:#27313f;
 font-size:11.5px;font-weight:500;line-height:1.3;text-align:center;white-space:normal;overflow-wrap:normal;
}
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{display:block;width:auto;max-width:100%;font-size:11.5px;line-height:1.3;white-space:normal}
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:23px;height:23px;flex:none}
body[data-app=tasks] #sidebar #app-side-nav button:hover,
body[data-app=tasks] #sidebar .app-global-nav a:hover,
body[data-app=tasks] #sidebar #app-switcher-button:hover,
body[data-app=tasks] #sidebar .app-side-bottom>a:hover{background:#f0edee;filter:none}
body[data-app=tasks] #sidebar #app-side-nav button[aria-pressed=true],
body[data-app=tasks] #sidebar #app-switcher-button[aria-expanded=true]{background:var(--task-soft);color:var(--task-accent)}
body[data-app=tasks] #sidebar .app-side-bottom{flex:none;gap:3px;margin-top:12px;padding-top:10px;border-top:1px solid var(--border)}
body[data-app=tasks] #sidebar .app-side-bottom>.app-global-nav{display:grid;gap:3px;order:0;margin:0;padding:0;border:0}
body[data-app=tasks] #sidebar .app-side-bottom .app-global-nav a,
body[data-app=tasks] #sidebar #app-switcher-button,
body[data-app=tasks] #sidebar .app-side-bottom>a{min-height:62px;padding-top:8px;padding-bottom:8px}
body[data-app=tasks] #session-button,
body[data-app=tasks] #sidebar .app-side-close,
body[data-app=tasks] .app-menu-backdrop{display:none}
body[data-app=tasks]:not([data-app=home]) .workspace{min-width:0;width:auto;margin:0}
body[data-app=tasks]:not([data-app=home]) .workspace>.docs-topbar,
body.embedded-app[data-app=tasks] .workspace>.docs-topbar{
 display:flex;align-items:center;height:62px;min-height:62px;padding:0 24px;gap:16px;background:#fff;border-bottom:1px solid var(--border);
}
body[data-app=tasks] .docs-topbar #breadcrumb{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:0;padding:0;font-size:13px;color:var(--muted)}
body[data-app=tasks] .docs-topbar-actions{display:flex;align-items:center;gap:12px;margin-left:auto;min-width:0;flex:none}
body[data-app=tasks] .docs-topbar #notice-bell{position:relative;display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0;margin:0;border:1px solid transparent;border-radius:12px;background:transparent;color:#58677e;font-size:14px}
body[data-app=tasks] .docs-topbar #notice-bell>svg{width:22px;height:22px;stroke-width:1.7}
body[data-app=tasks] .docs-topbar #notice-bell:hover,
body[data-app=tasks] .docs-topbar .account-button:hover{background:#f8f5f2;border-color:var(--border);filter:none}
body[data-app=tasks] .docs-topbar .account-button{display:flex;align-items:center;gap:10px;max-width:220px;min-height:44px;margin:0;padding:4px 8px;border-radius:12px;color:#27313f}
body[data-app=tasks] .docs-topbar .app-user-avatar{display:grid;place-items:center;width:36px;height:36px;background:#edf0f3;color:#536071;font-size:14px;font-weight:600}
body[data-app=tasks] .docs-topbar .app-user-name{font-size:14px;font-weight:500;max-width:155px}
body[data-app=tasks] .docs-account-chevron{width:14px;height:14px;flex:none;color:var(--muted)}
body[data-app=tasks]:not([data-app=home]) #main{min-width:0;max-width:none;margin:0;padding:22px 24px 28px}
body[data-app=tasks] .task-page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
body[data-app=tasks] .task-eyebrow{margin:0 0 8px;color:var(--muted);font-size:12px;font-weight:600;letter-spacing:.09em}
body[data-app=tasks] .task-page-heading h1{margin:0;color:#27313f;font-size:clamp(25px,2.2vw,32px);line-height:1.25;letter-spacing:-.035em}
body[data-app=tasks] .task-heading-meta{margin:7px 0 0;color:var(--muted);font-size:14px;text-transform:capitalize;overflow-wrap:anywhere}
body[data-app=tasks] .task-heading-actions{display:flex;align-items:center;gap:10px;flex:none}
body[data-app=tasks] #refresh-tasks{display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid var(--border);border-radius:9px;background:#fff;color:var(--muted);font-size:23px}
body[data-app=tasks] #app-create{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;width:auto;min-height:42px;padding:8px 14px;border-radius:9px;background:var(--task-accent);color:#fff;font-size:14px;font-weight:600}
body[data-app=tasks] #app-create::before{content:none}
body[data-app=tasks] .task-search{display:flex;align-items:center;gap:9px;width:min(420px,100%);min-height:44px;margin:0 0 20px;padding:9px 13px;border:1px solid var(--border);border-radius:11px;background:#f6f5f3;color:var(--muted)}
body[data-app=tasks] .task-search svg{width:18px;height:18px;flex:none}
body[data-app=tasks] .task-search input{width:100%;min-width:0;min-height:24px;margin:0;padding:0;border:0;outline:0;background:transparent;color:#27313f;font-size:16px}
body[data-app=tasks] .task-search:focus-within{border-color:var(--task-accent);box-shadow:0 0 0 2px #7654b526}
body[data-app=tasks] .task-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,32%);min-height:calc(100dvh - 212px);overflow:hidden;border:1px solid var(--border);border-radius:16px;background:#fff;box-shadow:0 4px 18px #49382805}
body[data-app=tasks] .task-board{min-width:0;padding:22px 22px 30px;background:#fff}
body[data-app=tasks] .task-detail{height:auto;min-width:0;padding:26px 22px 24px;border-left:1px solid var(--border);background:#fcfbfa;overflow-y:auto}
body[data-app=tasks] .task-group h2{color:#27313f;font-size:16px}
body[data-app=tasks] .task-group h2 span{background:#f2f0ef;color:var(--muted)}
body[data-app=tasks] .task-group-lines{border-color:var(--border);border-radius:11px}
body[data-app=tasks] .task-line{min-height:60px;border-bottom-color:#f0ece8}
body[data-app=tasks] .task-line:hover{background:#fcfafc}
body[data-app=tasks] .task-line.is-selected{background:var(--task-soft);box-shadow:inset 3px 0 var(--task-accent)}
body[data-app=tasks] .task-line-check{min-width:36px;width:36px;height:36px;min-height:36px;color:var(--task-accent)}
body[data-app=tasks] .task-line-main{min-height:58px}
body[data-app=tasks] .task-line-main strong{font-size:14px}
body[data-app=tasks] .task-line-meta time{font-size:13px}
body[data-app=tasks] .task-list-chip{background:#f1ebfa;color:#5c4095;font-size:12px}
body[data-app=tasks] .task-detail h2{color:#27313f}
body[data-app=tasks] .task-detail-field p{background:#fff;border-color:var(--border)}
body[data-app=tasks] .task-detail-actions{background:transparent}
body[data-app=tasks] .task-detail-actions .primary{background:var(--task-accent)}
body[data-app=tasks] #task-detail-edit{color:var(--task-accent)}
body[data-app=tasks] .task-list-picker button[aria-pressed=true]{background:var(--task-soft);color:var(--task-accent)}
body[data-app=tasks] .docs-mobile-brand{display:none}
body[data-app=tasks] #notice{bottom:20px}
@media(max-width:1050px){
 body[data-app=tasks] .task-workspace{grid-template-columns:minmax(0,1fr) minmax(270px,35%)}
 body[data-app=tasks] .task-line-main{align-items:flex-start;flex-direction:column;gap:3px}
 body[data-app=tasks] .task-line-meta{max-width:100%;width:100%;flex-wrap:wrap}
}
@media(max-width:760px){
 body[data-app=tasks]:not([data-app=home]){--task-rail-width:80px}
 body[data-app=tasks]:not([data-app=home]) .shell,
 body.embedded-app[data-app=tasks]:not([data-app=home]) .shell{display:block}
 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:80px;height:100dvh;padding:8px 6px max(10px,env(safe-area-inset-bottom));
  visibility:hidden;transform:translateX(-100%);z-index:52;box-shadow:8px 0 30px #27313f24;
  transition:transform .2s ease,visibility .2s ease;
 }
 body[data-app=tasks]:not([data-app=home]).menu-open{overflow:hidden}
 body[data-app=tasks]:not([data-app=home]).menu-open #sidebar{visibility:visible;transform:translateX(0)}
 body[data-app=tasks] #sidebar .docs-side-brand{display:none}
 body[data-app=tasks] #sidebar .app-side-close{display:grid;place-items:center;position:static;align-self:center;flex:none;width:44px;height:44px;min-height:44px;margin:0 0 8px;padding:0;border:0;border-radius:10px;background:transparent}
 body[data-app=tasks] #sidebar .app-side-close>img{width:32px;height:32px;object-fit:contain}
 body[data-app=tasks] #sidebar .app-side-close:hover{background:var(--task-soft)}
 body[data-app=tasks]:not([data-app=home]) .app-menu-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:51;width:100%;height:100dvh;padding:0;border:0;border-radius:0;background:#27313f66;backdrop-filter:blur(2px)}
 body[data-app=tasks]:not([data-app=home]) .workspace>.docs-topbar,
 body.embedded-app[data-app=tasks] .workspace>.docs-topbar{height:58px;min-height:58px;padding:0 10px;gap:6px}
 body[data-app=tasks] .docs-topbar #menu{display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:10px;border:0;border-radius:10px;background:transparent;color:#27313f}
 body[data-app=tasks] .docs-topbar #menu:hover{background:var(--task-soft)}
 body[data-app=tasks] .docs-topbar #breadcrumb{display:none}
 body[data-app=tasks] .docs-mobile-brand{display:flex;align-items:center;flex:1;min-width:0;min-height:44px;gap:7px;color:#27313f;font:700 15px/1.2 Manrope,system-ui,sans-serif;letter-spacing:-.3px}
 body[data-app=tasks] .docs-mobile-brand>img{width:28px;height:28px;flex:none}
 body[data-app=tasks] .docs-mobile-brand>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body[data-app=tasks] .docs-topbar-actions{gap:6px;margin-left:auto}
 body[data-app=tasks] .docs-topbar .account-button{width:44px;height:44px;max-width:44px;margin:0;padding:4px;justify-content:center}
 body[data-app=tasks] .docs-topbar .app-user-name,
 body[data-app=tasks] .docs-account-chevron{display:none}
 body[data-app=tasks]:not([data-app=home]) #main{padding:16px 12px calc(24px + env(safe-area-inset-bottom))}
 body[data-app=tasks] .task-page-heading{align-items:flex-start;gap:10px}
 body[data-app=tasks] .task-page-heading h1{font-size:24px}
 body[data-app=tasks] .task-heading-actions{gap:6px}
 body[data-app=tasks] #app-create{width:42px;min-width:42px;height:42px;padding:6px;font-size:22px}
 body[data-app=tasks] #app-create span{display:none}
 body[data-app=tasks] .task-search{width:100%;margin-bottom:16px}
 body[data-app=tasks] .task-workspace{display:block;min-height:0}
 body[data-app=tasks] .task-board{padding:17px 12px 20px}
 body[data-app=tasks] .task-detail{height:auto;min-height:210px;padding:24px 15px;border-left:0;border-top:1px solid var(--border)}
 body[data-app=tasks] .task-detail-inner{min-height:0}
 body[data-app=tasks] .task-detail-actions{position:static;margin-top:20px}
 body[data-app=tasks] .task-line-main strong{font-size:15px;white-space:normal}
 body[data-app=tasks] .task-list-chip{font-size:12px}
 body[data-app=tasks] #notice{bottom:calc(16px + env(safe-area-inset-bottom))}
}
@media(max-width:440px){
 body[data-app=tasks] .task-page-heading{flex-wrap:wrap}
 body[data-app=tasks] .task-heading-actions{margin-left:auto}
}
@media(max-width:760px) and (prefers-reduced-motion:reduce){body[data-app=tasks] #sidebar{transition:none}}
@media(max-width:760px){
 html.pwa-fixed-viewport body[data-app=tasks]:has(.shell:not([hidden])){height:100dvh;overflow:hidden;overscroll-behavior-y:none}
 html.pwa-fixed-viewport body[data-app=tasks] .shell{position:fixed;inset:0;height:100dvh;min-height:0;margin:0;padding:0;overflow:hidden}
 html.pwa-fixed-viewport body[data-app=tasks] .workspace{display:flex;flex-direction:column;height:100%;min-height:0}
 html.pwa-fixed-viewport body[data-app=tasks] .workspace>.docs-topbar{flex:none}
 html.pwa-fixed-viewport body[data-app=tasks] #main{flex:1;min-height:0;width:100%;overflow-y:auto;overscroll-behavior-y:contain}
}
