/* WorkDeck dashboard system based on the supplied planner and Today mockups. */
body:is([data-planner-view="today"],[data-planner-view="planner"]),
body:is([data-planner-view="today"],[data-planner-view="planner"]) .main,
:is(#todayView,#plannerView){background:#0b0e12!important;color:#f4f6fa;color-scheme:dark;--rooftop-frame:#0b0e12}
body:is([data-planner-view="today"],[data-planner-view="planner"]) .sidebar,
body:is([data-planner-view="today"],[data-planner-view="planner"]) .topbar{display:none}
body:is([data-planner-view="today"],[data-planner-view="planner"]) .main{max-width:none;min-height:100vh;margin:0;padding:0}
:is(#todayView,#plannerView){min-height:100vh;padding:0 0 34px}
:is(#todayView,#plannerView) .rooftop-banner{height:clamp(116px,9vw,156px);margin:0;background-color:#161821;background-image:url('/assets/workdeck-rooftop-pixel-extended.png');background-position:center 62%;background-size:max(100%,calc(var(--banner-expanded-height) + var(--banner-expanded-height) + var(--banner-expanded-height))) auto;background-repeat:no-repeat}
:is(#todayView,#plannerView) .rooftop-banner .banner-scene,
:is(#todayView,#plannerView) .rooftop-banner .banner-copy,
:is(#todayView,#plannerView) .rooftop-banner .banner-silhouette{display:none}
:is(#todayView,#plannerView) .rooftop-banner .banner-roof-link{right:24px;bottom:13px;padding:7px 11px;border:1px solid #ffffff69;border-radius:8px;background:#0d1420b3;color:#fff;font-size:11px}
:is(#todayView,#plannerView) .rooftop-banner.is-expanded{height:var(--banner-expanded-height)}
:is(#todayView,#plannerView) .dashboard-content{display:grid;grid-template-columns:210px minmax(0,1fr);width:100%;min-height:calc(100vh - 156px);margin:0;border:0;border-radius:0;background:#0c0f13;box-shadow:none;overflow:visible}
:is(#todayView,#plannerView) .analytics-sidebar{position:relative;display:flex;flex-direction:column;gap:4px;padding:0 10px 26px;border-right:1px solid #252b32;background:linear-gradient(180deg,#0d1116,#0c0f13)}
:is(#todayView,#plannerView) .analytics-side-brand{display:flex;align-items:center;justify-content:flex-start;height:57px;margin:0 -10px 13px;padding:0 20px;border-bottom:1px solid #252b32;color:#fff;font-size:21px;font-weight:760;letter-spacing:-.05em}
:is(#todayView,#plannerView) .analytics-side-brand:before{content:'◈';display:grid;place-items:center;width:28px;height:28px;margin-right:9px;border-radius:8px;background:linear-gradient(145deg,#42a5ff,#1a58da);box-shadow:0 0 16px #2585e637;color:#eaf5ff;font-size:17px}
:is(#todayView,#plannerView) .analytics-side-brand span{display:none}
:is(#todayView,#plannerView) .analytics-side-label{margin:15px 13px 6px;color:#6c798a;font-size:10px;font-weight:600;letter-spacing:.06em}
:is(#todayView,#plannerView) .analytics-side-link{min-height:41px;padding:0 14px;border:1px solid transparent;border-radius:8px;color:#aeb7c3;font-size:12px;font-weight:540;text-decoration:none}
:is(#todayView,#plannerView) .analytics-side-link:hover{background:#151d26;color:#fff}
:is(#todayView,#plannerView) .analytics-side-link.is-current{border-color:#21466e;background:linear-gradient(90deg,#173556,#132840);box-shadow:inset 3px 0 #318cff;color:#fff}
:is(#todayView,#plannerView) .analytics-main{min-width:0;padding:0 24px 34px;background:radial-gradient(ellipse at 50% -10%,#1b273323,transparent 48%),#0c0f13}
:is(#todayView,#plannerView) .dashboard-tabs{display:flex;align-items:center;justify-content:flex-end;gap:14px;height:57px;min-height:57px;margin:0 -24px 21px;padding:0 24px;border-bottom:1px solid #252b32;background:#0e1217}
:is(#todayView,#plannerView) .dashboard-tabs .dashboard-wordmark,
:is(#todayView,#plannerView) .dashboard-tabs .dashboard-tab-list{display:none}
:is(#todayView,#plannerView) .dashboard-search{display:flex;align-items:center;gap:9px;width:min(365px,42vw);height:34px;padding:0 10px;border:1px solid #303944;border-radius:9px;background:#151a20;color:#b3bfce}
:is(#todayView,#plannerView) .dashboard-search>span{font-size:18px;line-height:1}
:is(#todayView,#plannerView) .dashboard-search input{width:100%;min-width:0;padding:0;border:0;outline:0;background:none;color:#f3f6fa;font-size:11px}
:is(#todayView,#plannerView) .dashboard-search input::placeholder{color:#8794a5}
:is(#todayView,#plannerView) .dashboard-search kbd{flex:none;padding:2px 4px;border:1px solid #3c4652;border-radius:4px;color:#8090a3;font:9px inherit}
:is(#todayView,#plannerView) .dashboard-account-actions{display:flex;align-items:center;gap:10px}
:is(#todayView,#plannerView) .dashboard-profile{min-height:33px;padding:2px 6px 2px 2px;border:0;background:none;color:#f0f4f9;font-size:10px}
:is(#todayView,#plannerView) .dashboard-profile>span:first-child{width:28px;height:28px;background:linear-gradient(135deg,#8b9aab,#435972)}
:is(#todayView,#plannerView) .dashboard-profile small{color:#92a0ae}
:is(#todayView,#plannerView) .dashboard-logout{width:28px;height:28px;border:0;background:transparent;color:#adbac9}
:is(#todayView,#plannerView) .analytics-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 17px}
:is(#todayView,#plannerView) .analytics-heading h1{margin:0;color:#f7f9fc;font-size:31px;font-weight:730;letter-spacing:-.055em}
:is(#todayView,#plannerView) .analytics-heading .button.primary{min-height:39px;padding:0 19px;border:1px solid #247bea;border-radius:9px;background:linear-gradient(180deg,#258fff,#1466da);box-shadow:0 5px 17px #0a66d73b;color:#fff;font-size:12px;font-weight:650}
:is(#todayView,#plannerView) .analytics-heading .button.primary{flex:none;white-space:nowrap}
:is(#todayView,#plannerView) .analytics-heading .button.primary:hover{background:#3c9fff}
:is(#todayView,#plannerView) .dashboard-subtitle,
:is(#todayView,#plannerView) .planner-heading .muted{margin:4px 0 0;color:#96a3b3;font-size:12px}
:is(#todayView,#plannerView) button:focus-visible,
:is(#todayView,#plannerView) a:focus-visible,
:is(#todayView,#plannerView) input:focus-visible,
:is(#todayView,#plannerView) select:focus-visible{outline:2px solid #5faaff;outline-offset:2px}

/* Shared metric cards */
:is(#todayView,#plannerView) .summary-grid,
:is(#todayView,#plannerView) .planner-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;width:100%;margin:0 0 16px}
:is(#todayView,#plannerView) .summary-card,
:is(#todayView,#plannerView) .planner-stats>div{position:relative;min-height:117px;padding:19px 17px 13px 68px;border:1px solid #252c34;border-radius:10px;background:linear-gradient(145deg,#14191e,#101419);box-shadow:inset 0 1px #ffffff08,0 8px 22px #0002;overflow:hidden}
#todayView .dashboard-hero-row .summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:0 0 16px}
#todayView .dashboard-hero-row .summary-card,
#todayView .dashboard-hero-row .summary-card:nth-child(2){min-height:117px;padding:19px 17px 13px 68px;border:1px solid #252c34;border-radius:10px;background:linear-gradient(145deg,#14191e,#101419);box-shadow:inset 0 1px #ffffff08,0 8px 22px #0002}
#todayView .dashboard-hero-row{display:block;margin:0}
#todayView .dashboard-hero-row .page-heading,
#todayView .dashboard-statusbar{display:none}
#todayView .summary-card .summary-label,
#plannerView .planner-stats span{display:block;color:#b7c2cf;font-size:11px;font-weight:560}
#todayView .summary-card>strong,
#plannerView .planner-stats strong{display:block;margin:15px 0 0;color:#f5f7fa;font-size:29px;font-weight:650;line-height:1;letter-spacing:-.045em}
#todayView .dashboard-hero-row .summary-card>strong{margin:15px 0 0;color:#f5f7fa;font-size:29px;line-height:1}
#todayView .summary-card>strong small{margin-left:4px;color:#9ba7b6;font-size:11px;font-weight:400;letter-spacing:0}
#todayView .summary-card .summary-foot{margin:9px 0 0;color:#8694a4;font-size:10px}
#todayView .summary-card .progress-track{position:absolute;left:68px;right:110px;bottom:8px;height:2px;margin:0;background:#28313b}
#todayView .summary-card .progress-track span{background:#35c99b}
#todayView .metric-symbol{position:absolute;top:16px;left:16px;display:grid;place-items:center;width:37px;height:37px;border-radius:11px;background:#12362c;color:#52dab0;font-size:20px}
#todayView .metric-doing .metric-symbol{background:#3a2c16;color:#f6ba55}
#todayView .metric-due .metric-symbol{background:#302445;color:#ba80f8}
#todayView .metric-focus .metric-symbol{background:#182f47;color:#4da8ff}
#todayView .metric-bars{position:absolute;right:17px;bottom:19px;display:flex;align-items:end;gap:4px;height:38px}
#todayView .metric-bars i{width:5px;height:var(--bar-height);border-radius:4px 4px 0 0;background:#43d4a4;box-shadow:0 0 7px #43d4a43d}
#todayView .metric-bars i:nth-child(1){--bar-height:13px}#todayView .metric-bars i:nth-child(2){--bar-height:23px}#todayView .metric-bars i:nth-child(3){--bar-height:17px}#todayView .metric-bars i:nth-child(4){--bar-height:31px}#todayView .metric-bars i:nth-child(5){--bar-height:21px}#todayView .metric-bars i:nth-child(6){--bar-height:27px}#todayView .metric-bars i:nth-child(7){--bar-height:38px}
#todayView .metric-doing .metric-bars i{background:#ffb553;box-shadow:0 0 7px #ffb5533d}
#todayView .metric-due .metric-bars i{background:#b269ee;box-shadow:0 0 7px #b269ee3d}
#todayView .metric-focus .metric-bars i{background:#378fff;box-shadow:0 0 7px #378fff3d}
#plannerView .planner-stats>div{padding-left:17px}
#plannerView .planner-stats>div:after{content:'';position:absolute;right:17px;bottom:19px;width:50px;height:29px;background:repeating-linear-gradient(90deg,#328dff 0 5px,transparent 5px 9px);clip-path:polygon(0 70%,17% 40%,34% 65%,53% 12%,70% 53%,83% 30%,100% 0,100% 100%,0 100%);opacity:.8}
#plannerView .planner-stats>div:nth-child(2):after{background:repeating-linear-gradient(90deg,#a866f7 0 5px,transparent 5px 9px)}
#plannerView .planner-stats>div:nth-child(3):after{background:repeating-linear-gradient(90deg,#ff696e 0 5px,transparent 5px 9px)}
#plannerView .planner-stats>div:nth-child(4):after{background:repeating-linear-gradient(90deg,#45d6a2 0 5px,transparent 5px 9px)}
#plannerView .planner-stats>div:nth-child(3) strong{color:#f97983}
#plannerView .planner-stats>div:nth-child(4) strong{color:#65d9b4}

/* Today: task list, timer and rooftop preview, then activity. */
#todayView .today-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(290px,.96fr);grid-template-areas:'tasks rail' 'rhythm recent';gap:15px;align-items:stretch}
#todayView .today-grid>.task-surface{grid-area:tasks;min-height:435px}
#todayView .today-grid>.right-rail{grid-area:rail;display:grid;grid-template-columns:1fr;grid-template-rows:1.23fr .77fr;gap:15px;min-height:435px}
#todayView .today-grid>.rhythm-surface{grid-area:rhythm;min-height:246px}
#todayView .today-grid>.recent-surface{grid-area:recent;min-height:246px;margin:0}
#todayView .surface,#plannerView .surface{border:1px solid #252c34;border-radius:10px;background:linear-gradient(150deg,#151a1f,#11161b);box-shadow:inset 0 1px #ffffff09,0 9px 22px #0002}
#todayView .task-surface,#todayView .focus-card,#todayView .roof-teaser,#todayView .rhythm-surface,#todayView .recent-surface{padding:17px 18px}
#todayView .surface-heading h2,#plannerView .surface-heading h2{margin:0;color:#f6f8fb;font-size:17px;font-weight:680}
#todayView .task-surface .surface-heading .eyebrow,#todayView .focus-card .eyebrow{display:none}
#todayView .task-surface .text-link{color:#7fb9ff;font-size:11px}
#todayView .quick-add{height:48px;margin:15px 0 4px;padding:4px 6px;border:1px solid #3b4652;border-radius:8px;background:#171d24}
#todayView .quick-add input{color:#f4f6fa;font-size:12px}
#todayView .quick-add input::placeholder{color:#8796a7}
#todayView .quick-add button{width:37px;height:37px;border:1px solid #3b4652;border-radius:7px;background:#202833;color:#dbe8f6}
#todayView .task-surface .task-list{max-height:345px;overflow-y:auto}
#todayView .task-surface .task-row{min-height:62px;border-bottom:1px solid #252d36}
#todayView .task-title{color:#f4f6f9;font-size:12px;font-weight:590}
#todayView .task-meta{color:#8799ac;font-size:10px}
#todayView .task-meta .project-tag{padding:0;background:transparent;color:#8eaacc}
#todayView .task-check{border:2px solid #8595a8;border-radius:50%}
#todayView .task-row.is-done .task-check{border-color:#38c99b;background:#38c99b;color:#052019}
#todayView .task-time{color:#a5b0be;font-size:10px}
#todayView .focus-card{position:relative;overflow:hidden}
#todayView .focus-spark{display:none}
#todayView .focus-card .timer{display:grid;place-items:center;width:150px;height:150px;margin:4px auto 0;border:9px solid #26313d;border-top-color:#2e8fff;border-right-color:#2e8fff;border-radius:50%;color:#fff;font-size:35px;font-weight:700;letter-spacing:-.03em;box-shadow:0 0 0 1px #29333f}
#todayView .focus-card .focus-caption{margin:7px 0;color:#9aaabb;font-size:10px}
#todayView .focus-card .timer-actions{margin-top:10px}
#todayView .focus-card .button.primary{min-width:150px;border-color:#2388f4;background:linear-gradient(180deg,#2897ff,#126adf);color:#fff}
#todayView .focus-card .button.secondary{border-color:#37414e;background:#1b2229;color:#becbd9}
#todayView .roof-teaser{position:relative;overflow:hidden;background:linear-gradient(150deg,#111924,#151f29)}
#todayView .roof-teaser .icon-link{width:auto;height:auto;padding:0;border:0;color:#61aaff;font-size:11px}
#todayView .roof-progress-copy{position:relative;z-index:2;margin:9px 0;color:#c8d4e0;font-size:12px;line-height:1.5}
#todayView .roof-teaser .mini-roof{position:absolute;right:0;bottom:0;left:0;height:84px;margin:0;border:0;border-radius:0;opacity:.85}
#todayView .roof-teaser .muted{position:relative;z-index:2;margin:0;color:#e2ecf7;font-size:10px}
#todayView .rhythm-surface .surface-heading{align-items:flex-start}
#todayView .rhythm-caption{margin:5px 0 0;color:#8292a4;font-size:10px}
#todayView .trend-key{color:#9eacba;font-size:10px}
#todayView .trend-key i{background:#368dff}
#todayView .trend-key span:nth-child(2) i{background:#b36bf1}
#todayView .analytics-period{display:flex;width:max-content;gap:3px;margin:11px 0 0;padding:2px;border:1px solid #303a45;border-radius:7px;background:#1c232b}
#todayView .analytics-period button{min-height:23px;color:#a5b5c6;font-size:10px}
#todayView .analytics-period button.selected{background:#364251;color:#fff}
#todayView .trend-chart{min-height:145px;height:145px;margin-top:5px;overflow:hidden}
#todayView .trend-bars{display:grid;grid-template-columns:repeat(var(--bin-count),minmax(0,1fr));gap:14px;align-items:end;height:100%;padding:8px 5px 2px 28px;background:repeating-linear-gradient(0deg,transparent 0 31px,#27323e 32px,#27323e 33px,transparent 34px 37px);border-bottom:1px solid #354251}
#todayView .trend-bar-group{display:grid;align-content:end;justify-items:center;min-width:0;height:100%}
#todayView .trend-bar-track{display:flex;flex-direction:column;justify-content:flex-end;width:min(42px,100%);height:110px;border-radius:3px 3px 0 0;background:#18212a}
#todayView .trend-bar-track span{display:block;flex:none;min-height:0}
#todayView .trend-bar-created{background:#a961ea}
#todayView .trend-bar-completed{background:#348dff}
#todayView .trend-bar-label{margin-top:4px;color:#8c9aab;font-size:9px;white-space:nowrap}
#todayView .trend-chart svg{height:100%}
#todayView .trend-chart text{fill:#91a1b3}
#todayView .trend-chart .grid-line{stroke:#27323e}
#todayView .trend-chart .axis-line{stroke:#364451}
#todayView .trend-chart .complete-line{stroke:#378fff}
#todayView .trend-chart .created-line{stroke:#b46aef}
#todayView .trend-chart .complete-dot{fill:#378fff}
#todayView .trend-chart .created-dot{fill:#b46aef}
#todayView .recent-table-head{display:none}
#todayView .recent-list{display:block;margin-top:10px;overflow:hidden}
#todayView .recent-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;min-height:53px;padding:7px 0 7px 28px;border-bottom:1px solid #252d36;color:#91a2b5;font-size:10px}
#todayView .recent-row:before{content:'✓';grid-column:1;grid-row:1 / span 2;place-self:center start;width:20px;height:20px;margin-left:-28px;border-radius:50%;background:#186048;color:#70e5b5;text-align:center;line-height:20px}
#todayView .recent-row .recent-title{grid-column:1;color:#eff4f8;font-size:11px}
#todayView .recent-row>span:nth-child(2){grid-column:1;grid-row:2}
#todayView .recent-row time{grid-column:2;grid-row:1;color:#8c9aaa}
#todayView .recent-row .recent-status{display:none}
#todayView .recent-empty{padding:26px 0;color:#8f9eae;font-size:11px}

/* Planner: task board with a compact right-side agenda. */
#plannerView .analytics-main .planner-heading{display:flex;align-items:flex-start;justify-content:space-between;flex-direction:row;gap:12px;margin:0 0 17px;text-align:left}
#plannerView .planner-heading .eyebrow{display:none}
#plannerView .planner-heading h1{margin:0;color:#f7f9fc;font-size:31px;font-weight:730}
#plannerView .planner-board-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(278px,.91fr);gap:14px;align-items:start}
#plannerView .planner-surface{min-width:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
#plannerView .planner-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;padding:0;border:0}
#plannerView .range-nav{gap:5px}
#plannerView .range-title{min-width:130px;color:#c9d6e3;font-size:11px}
#plannerView .icon-button{width:29px;height:29px;border-color:#313c47;border-radius:7px;background:#19212a;color:#aabacc}
#plannerView .segmented{border-color:#303b46;border-radius:8px;background:#19212a}
#plannerView .segmented button{min-height:28px;color:#a1b0bf;font-size:10px}
#plannerView .segmented button.selected{background:#343f4c;color:#fff}
#plannerView .planner-filter{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px;padding:8px 10px;border:1px solid #2a3540;border-radius:9px;background:#151b21}
#plannerView .planner-filter .search-box{display:none}
#plannerView .filter-select{gap:5px;color:#91a2b4;font-size:10px}
#plannerView .filter-select select{max-width:133px;min-height:27px;border-color:#354250;border-radius:7px;background:#202932;color:#d2dce7;font-size:10px}
#plannerView .range-summary{font-size:10px}
#plannerView .board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;min-height:525px;padding:0}
#plannerView .board-column{min-width:0;min-height:510px;padding:10px;border:1px solid #303a45;border-radius:10px;background:linear-gradient(155deg,#1a2027,#141a20);box-shadow:inset 0 1px #ffffff08}
#plannerView .board-head{display:flex;align-items:center;gap:6px;min-height:29px;margin:0;padding:0 2px 9px;border-bottom:1px solid #303944;color:#f0f4f9;font-size:12px;font-weight:650}
#plannerView .board-head:before{content:'';width:8px;height:8px;border:2px solid #398efe;border-radius:50%;background:transparent}
#plannerView .board-column:nth-child(2) .board-head:before{border-color:#ffbb58}
#plannerView .board-column:nth-child(3) .board-head:before{border-color:#49d4a3;background:#49d4a3}
#plannerView .board-head span{padding:1px 6px;border-radius:99px;background:#29343f;color:#9daec0;font-size:10px}
#plannerView .board-head button{margin-left:auto;border:0;background:none;color:#9fb1c3;font-size:18px}
#plannerView .board-drop{display:grid;align-content:start;gap:8px;padding-top:9px}
#plannerView .board-card{display:grid;gap:8px;min-height:106px;margin:0;padding:11px;border:1px solid #2b3440;border-radius:8px;background:#11171d;box-shadow:0 4px 11px #0003}
#plannerView .board-card:before{width:2px;background:#388efb}
#plannerView .board-card strong{color:#f2f5f9;font-size:11px;font-weight:610;line-height:1.4}
#plannerView .board-project{background:#1b3551;color:#76b6ff;font-size:9px}
#plannerView .board-priority{font-size:9px}
#plannerView .board-card-foot small{color:#94a4b5;font-size:9px}
#plannerView .board-card .task-status-select{max-width:71px;font-size:9px}
#plannerView .planner-content.is-list,#plannerView .planner-content.is-calendar{border:1px solid #303a45;border-radius:10px;background:#151b21}
#plannerView .planner-side-rail{display:grid;gap:12px;min-width:0}
#plannerView .planner-side-rail .surface{padding:14px 14px 8px}
#plannerView .planner-side-rail .surface-heading{padding-bottom:9px;border-bottom:1px solid #303a45}
#plannerView .planner-side-rail .surface-heading h2{font-size:13px}
#plannerView #agendaRange{color:#8495a8;font-size:9px;white-space:nowrap}
#plannerView .agenda-row{display:grid;grid-template-columns:28px minmax(0,1fr) 7px;align-items:center;gap:9px;min-height:52px;border-bottom:1px solid #28313b}
#plannerView .agenda-row time{display:grid;justify-items:center;color:#9aaaba;font-size:9px}
#plannerView .agenda-row time strong{color:#f2f5f8;font-size:15px}
#plannerView .agenda-row b,#plannerView .activity-row b{display:block;overflow:hidden;color:#f0f4f8;font-size:10px;font-weight:570;text-overflow:ellipsis;white-space:nowrap}
#plannerView .agenda-row small,#plannerView .activity-row small{display:block;margin-top:4px;color:#8798ab;font-size:9px}
#plannerView .agenda-dot{width:7px;height:7px;border-radius:50%;background:#398fff}
#plannerView .agenda-dot.high{background:#f4777e}
#plannerView .agenda-dot.low{background:#49c99b}
#plannerView .activity-row{display:flex;align-items:center;gap:9px;min-height:49px;border-bottom:1px solid #28313b}
#plannerView .activity-row>span{display:grid;place-items:center;flex:none;width:22px;height:22px;border-radius:50%;background:#164b3b;color:#61ddb1;font-size:11px}
#plannerView .rail-empty{margin:13px 0;color:#8c9dac;font-size:11px;line-height:1.6}

@media(max-width:1200px){
  :is(#todayView,#plannerView) .dashboard-content{grid-template-columns:185px minmax(0,1fr)}
  :is(#todayView,#plannerView) .analytics-main{padding-right:17px;padding-left:17px}
  :is(#todayView,#plannerView) .dashboard-tabs{margin-right:-17px;margin-left:-17px;padding-right:17px;padding-left:17px}
  #todayView .today-grid{grid-template-columns:minmax(0,1.55fr) minmax(250px,.9fr)}
  #plannerView .planner-board-layout{grid-template-columns:1fr}
  #plannerView .planner-side-rail{grid-template-columns:1fr 1fr}
}
@media(max-width:850px){
  :is(#todayView,#plannerView) .dashboard-content{display:block}
  :is(#todayView,#plannerView) .analytics-sidebar{display:none}
  :is(#todayView,#plannerView) .dashboard-tabs{justify-content:space-between;flex-wrap:wrap;height:auto;min-height:60px;padding-top:10px;padding-bottom:10px}
  :is(#todayView,#plannerView) .dashboard-tabs .dashboard-tab-list{display:flex;order:3;width:100%;margin-top:5px;border:1px solid #303b46;background:#19212a}
  :is(#todayView,#plannerView) .dashboard-tabs .dashboard-tab-list>:is(button,a){flex:1}
  :is(#todayView,#plannerView) .dashboard-search{width:min(430px,calc(100% - 100px))}
  :is(#todayView,#plannerView) .summary-grid,:is(#todayView,#plannerView) .planner-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  #todayView .dashboard-hero-row .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #todayView .today-grid{grid-template-columns:1fr;grid-template-areas:'tasks' 'rail' 'rhythm' 'recent'}
  #todayView .today-grid>.right-rail{grid-template-columns:1fr 1fr;grid-template-rows:auto;min-height:0}
}
@media(max-width:580px){
  :is(#todayView,#plannerView) .rooftop-banner{height:105px;background-position:40% 62%}
  :is(#todayView,#plannerView) .dashboard-content{width:100%;margin:0;border-radius:0}
  :is(#todayView,#plannerView) .analytics-main{padding:0 12px 30px}
  :is(#todayView,#plannerView) .dashboard-tabs{margin-right:-12px;margin-left:-12px;padding-right:12px;padding-left:12px}
  :is(#todayView,#plannerView) .dashboard-search{width:calc(100% - 72px)}
  :is(#todayView,#plannerView) .dashboard-search kbd{display:none}
  :is(#todayView,#plannerView) .dashboard-profile>span:nth-child(2),:is(#todayView,#plannerView) .dashboard-profile b{display:none}
  :is(#todayView,#plannerView) .analytics-heading h1{font-size:27px}
  :is(#todayView,#plannerView) .analytics-heading .button.primary{padding:0 12px;font-size:10px}
  #plannerView .analytics-main .planner-heading{align-items:flex-start;flex-direction:row;text-align:left}
  #todayView .summary-grid,#plannerView .planner-stats{gap:8px}
  #todayView .dashboard-hero-row .summary-grid{gap:8px}
  #todayView .summary-card,#plannerView .planner-stats>div{min-height:100px;padding:15px 11px 12px 52px}
  #todayView .dashboard-hero-row .summary-card,#todayView .dashboard-hero-row .summary-card:nth-child(2){min-height:100px;padding:15px 11px 12px 52px}
  #todayView .metric-symbol{top:13px;left:10px;width:32px;height:32px}
  #todayView .metric-bars{right:8px;gap:3px}
  #todayView .metric-bars i{width:3px}
  #todayView .summary-card>strong,#plannerView .planner-stats strong{font-size:23px}
  #todayView .summary-card .progress-track{left:52px;right:68px}
  #plannerView .planner-stats>div{padding-left:12px}
  #todayView .today-grid>.right-rail,#plannerView .planner-side-rail{grid-template-columns:1fr}
  #todayView .today-grid>.task-surface{min-height:300px}
  #todayView .today-grid>.right-rail{min-height:0}
  #plannerView .planner-toolbar{align-items:flex-start;flex-direction:column}
  #plannerView .planner-controls{width:100%;justify-content:space-between}
  #plannerView .board{grid-template-columns:repeat(3,245px);overflow-x:auto;padding-bottom:12px}
  #plannerView .board-column{min-height:360px}
  #plannerView .planner-filter{flex-wrap:wrap}
  #plannerView .filter-select{flex:1 1 45%}
  #plannerView .filter-select select{width:100%;max-width:none}
  #plannerView .range-summary{width:100%;text-align:right}
}
@media(prefers-reduced-motion:reduce){:is(#todayView,#plannerView) *{scroll-behavior:auto!important;transition-duration:0s!important}}

/* The open rooftop gives the lower viewport to a full-width, Stream Deck-like metric row. */
:is(#todayView,#plannerView) .dashboard-content{transition:grid-template-columns 560ms cubic-bezier(.22,1,.36,1)}
:is(#todayView,#plannerView) .analytics-sidebar{min-width:0;overflow:hidden;transition:transform 560ms cubic-bezier(.22,1,.36,1),opacity 360ms ease,padding 560ms ease}
:is(#todayView,#plannerView) .rooftop-banner.is-expanded{height:var(--banner-expanded-height)}
:is(#todayView,#plannerView) .rooftop-banner.is-expanded + .dashboard-content{grid-template-columns:0 minmax(0,1fr);min-height:0}
:is(#todayView,#plannerView) .rooftop-banner.is-expanded + .dashboard-content .analytics-sidebar{padding-right:0;padding-left:0;border-right:0;opacity:0;transform:translateX(-100%);pointer-events:none}
:is(#todayView,#plannerView) .rooftop-banner.is-expanded + .dashboard-content .dashboard-tabs{height:42px;min-height:42px;margin-bottom:9px}
:is(#todayView,#plannerView) .rooftop-banner.is-expanded + .dashboard-content .analytics-heading{min-height:32px;margin-bottom:9px}
:is(#todayView,#plannerView) .rooftop-banner.is-expanded + .dashboard-content .analytics-heading h1{font-size:24px;line-height:1.1}
:is(#todayView,#plannerView) .rooftop-banner.is-expanded + .dashboard-content .dashboard-subtitle,
:is(#todayView,#plannerView) .rooftop-banner.is-expanded + .dashboard-content .planner-heading .muted{display:none}
:is(#todayView,#plannerView) .rooftop-banner.is-expanded + .dashboard-content .analytics-heading .button.primary{min-height:30px;padding:0 13px;font-size:11px}
:is(#todayView,#plannerView) .rooftop-banner.is-expanded + .dashboard-content .summary-grid,
:is(#todayView,#plannerView) .rooftop-banner.is-expanded + .dashboard-content .planner-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:9px}
#todayView .rooftop-banner.is-expanded + .dashboard-content .dashboard-hero-row .summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:9px}
:is(#todayView,#plannerView) .rooftop-banner.is-expanded + .dashboard-content .summary-card,
:is(#todayView,#plannerView) .rooftop-banner.is-expanded + .dashboard-content .planner-stats>div,
#todayView .rooftop-banner.is-expanded + .dashboard-content .dashboard-hero-row .summary-card,
#todayView .rooftop-banner.is-expanded + .dashboard-content .dashboard-hero-row .summary-card:nth-child(2){min-height:117px;padding:19px 17px 13px 68px;border-radius:14px;box-shadow:inset 0 1px #ffffff16,0 9px 22px #0004}
#plannerView .rooftop-banner.is-expanded + .dashboard-content .planner-stats>div{padding-left:17px}

@media(max-width:850px){
  :is(#todayView,#plannerView) .rooftop-banner.is-expanded{height:var(--banner-expanded-height)}
  :is(#todayView,#plannerView) .rooftop-banner.is-expanded + .dashboard-content .dashboard-tabs{height:auto;min-height:60px;margin-bottom:8px}
  :is(#todayView,#plannerView) .rooftop-banner.is-expanded + .dashboard-content .analytics-heading{margin-bottom:8px}
  :is(#todayView,#plannerView) .rooftop-banner.is-expanded + .dashboard-content .summary-grid,
  :is(#todayView,#plannerView) .rooftop-banner.is-expanded + .dashboard-content .planner-stats,
  #todayView .rooftop-banner.is-expanded + .dashboard-content .dashboard-hero-row .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
}
@media(max-width:580px){
  :is(#todayView,#plannerView) .rooftop-banner.is-expanded + .dashboard-content .dashboard-tabs{min-height:48px;padding-top:4px;padding-bottom:4px}
  :is(#todayView,#plannerView) .rooftop-banner.is-expanded + .dashboard-content .dashboard-search{display:none}
  :is(#todayView,#plannerView) .rooftop-banner.is-expanded + .dashboard-content .dashboard-account-actions{margin-left:auto}
  #todayView .rooftop-banner.is-expanded + .dashboard-content .dashboard-hero-row .summary-card,
  #todayView .rooftop-banner.is-expanded + .dashboard-content .dashboard-hero-row .summary-card:nth-child(2),
  #plannerView .rooftop-banner.is-expanded + .dashboard-content .planner-stats>div{min-height:100px;padding:15px 11px 12px 52px}
  #plannerView .rooftop-banner.is-expanded + .dashboard-content .planner-stats>div{padding-left:12px}
}

