body[data-app=home]{--green:#176ee8;--muted:#748094;--border:#e5e9ef;color:#293342;background:#f7f9fc}body[data-app=home] .workspace>header{display:none}body[data-app=home] #main{padding:22px 24px 16px;margin-left:230px}.hd-rail{width:230px;padding:26px 17px 22px;background:#fff;border-color:#e9edf3}.hd-logo{color:#192332;margin-bottom:30px;padding-bottom:20px}.hd-rail nav{gap:9px}.hd-rail nav a{gap:13px;padding:12px;color:#535f70}.hd-rail nav a span{font-size:14px}.hd-rail svg{width:20px;height:20px;flex-shrink:0}.hd-rail nav .selected{background:#edf4ff;color:#176ee8}.hd-rail .rail-count{background:#176ee8;color:white;border-radius:20px;min-width:22px;height:22px;display:grid;place-items:center;padding:0 6px;margin-left:auto;font-size:12px}.hd-rail-bottom{display:grid;gap:9px;border-top:1px solid #edf0f4;padding-top:18px}.hd-rail-bottom>button,.hd-rail-bottom>a{color:#536174;background:transparent;border:0;display:flex;align-items:center;text-align:left;gap:13px;padding:10px 12px;font-size:14px}.hd-rail-bottom #home-profile{margin-top:20px;padding:10px 5px;color:#293342}.hd-rail-bottom #home-profile>span:last-child{margin-left:auto}.hd-rail-bottom #home-profile small{font-size:12px;color:#7c8798}.hd-avatar{background:#e8f1ff;color:#274977;width:38px;height:38px}.hd-hero{min-height:206px;border-radius:14px;padding:32px 34px;background-position:center 55%;margin:0}.hd-hero-copy{width:min(100%,760px)}.hd-hero h1{font-size:clamp(27px,3vw,39px);letter-spacing:-1px;margin-bottom:9px}.hd-hero .hd-subtitle{font-size:15px;margin-bottom:20px;text-transform:capitalize}.hd-hero form{padding:3px 7px 3px 17px}.hd-hero input{font-size:14px}.hd-content{padding:22px 0 0;background:transparent;margin:0;border-radius:0}.hd-day-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.hd-day-heading h2{font-size:27px;letter-spacing:-.6px;margin:0;color:#293342}.hd-day-heading button{padding:11px 19px;border-radius:9px}.hd-today{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start;margin-bottom:19px}.hd-card{padding:21px 22px;background:#fff;border-color:#e5eaf1;border-radius:12px}.hd-card-head h2{color:#293342;font-size:17px}.hd-card-head>a,.hd-card-head>button{font-size:13px}.hd-card-head{margin-bottom:15px}.hd-event,.hd-task{padding:16px 0;gap:13px;border-color:#edf0f5;align-items:center}.hd-event strong,.hd-task strong,.hd-activity strong{font-size:14px;color:#313b49}.hd-event small,.hd-task small,.hd-activity small{font-size:13px;color:#7c8798}.hd-event time{font-size:13px;color:#49596f}.hd-event i,.hd-event:nth-of-type(even) i{background:#708698}.hd-task time{color:#7c8798;font-size:12px}.hd-circle{border-color:#99a5b5}.hd-apps{background:white;border:1px solid #e5eaf1;border-radius:12px;padding:19px 20px;margin-bottom:18px}.hd-apps>.hd-card-head h2{font-size:18px}.hd-app-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:0}.hd-app{background:white;border:1px solid #e4e9f1;padding:14px 8px 12px;border-radius:10px}.hd-app strong{color:#344050;font-size:14px}.hd-app small{color:#8792a3;font-size:12px}.hd-app img{width:36px;height:36px}.hd-secondary{display:grid;grid-template-columns:1.6fr 1fr;gap:18px;align-items:start}.hd-activity{padding:10px 0}.hd-atlas>p{color:#536174;margin:5px 0 21px}.hd-atlas .hd-atlas-open{background:#eef5ff;color:#176ee8;border:1px solid #e1edff;margin:0;padding:13px}.hd-atlas-details{background:transparent;border:0;padding:12px 2px;margin-top:10px}.hd-atlas-details summary{font-size:13px;color:#7b8799}.hd-footer{justify-content:flex-end;padding:9px 0 0;font-size:12px;color:#8a95a6}.hd-empty{padding:12px 0;color:#7b8799;line-height:1.6;font-size:14px}.home-native{padding:5px 0 0;min-height:calc(100dvh - 45px)}.home-native .page-title{margin:0 0 22px;align-items:center}.home-native .page-title h1{font-size:29px;color:#293342;letter-spacing:-.6px}.home-native .page-title .eyebrow,.home-native .page-title .muted{display:none}.home-native .toolbar{gap:10px;flex-wrap:wrap;margin-bottom:15px}.home-native .toolbar>strong{margin-right:auto;font-size:17px;color:#425065}.home-native .toolbar button{border-radius:8px;background:white;border:1px solid #e4e9f0}.home-native .toolbar select{font-size:14px;color:#657286;border:1px solid #e4e9f0;background:white}.home-native .calendar-grid{border:1px solid #e4e9f0;border-radius:10px;overflow:hidden;background:#fff}.home-native .day{min-height:105px;border-color:#edf0f5}.home-native .weekday{font-size:13px;color:#7c8798;background:#fafbfd;padding:12px}.home-native .day.today{background:#f7faff}.home-native .calendar-event{font-size:12px;text-align:left;color:#43556c;background:#eef2f6}.home-native .calendar-event.calendar{background:#e8f1ff;color:#2c62a2}.home-native .calendar-event.tasks{background:#eee9fa;color:#6a5298}.home-native .calendar-event.planubia{background:#e7f3ed;color:#397456}.home-native .calendar-event.matchvity{background:#faede4;color:#9d6235}.home-native .calendar-event.grow{background:#f0f3df;color:#6f7f37}.home-native .panel{background:white;border-color:#e5eaf1}.home-native .app-switcher{grid-template-columns:repeat(4,minmax(0,1fr))}.space-more{position:relative}.space-more summary{list-style:none;cursor:pointer;border:1px solid #e1e7ef;background:white;border-radius:8px;padding:7px 12px;color:#647387;font-size:18px}.space-more[open]{z-index:6}.space-more[open] a,.space-more[open] button{display:block;background:#fff;white-space:nowrap;padding:13px 16px;font-size:13px;color:#536174;border:1px solid #edf0f4;width:220px;position:absolute;right:0;text-align:left}.space-more[open] a{top:85px}.space-more[open] button{top:40px}.space-options .space-more[open] a{top:40px}.calendar-legend{display:flex;gap:17px;flex-wrap:wrap;color:#7d8898;font-size:12px;margin:0 0 16px}.calendar-legend span{display:flex;align-items:center;gap:6px}.calendar-legend i{width:8px;height:8px;border-radius:50%;background:#8e9bad}.calendar-legend .legend-calendar i{background:#5c8dcc}.calendar-legend .legend-tasks i{background:#9175bb}.calendar-legend .legend-planubia i{background:#6b9f81}.calendar-legend .legend-matchvity i{background:#c59165}.calendar-legend .legend-grow i{background:#9da95d}.home-space{padding:0;min-height:0}.space-options{display:flex;justify-content:flex-end;margin-bottom:12px}.space-frame{min-height:0;border:0;border-radius:0;background:transparent}.hd-rail-bottom .rail-settings{border-radius:9px}.hd-rail-bottom .rail-settings:hover{background:#f5f7fa}
@media(max-width:1250px){body[data-app=home] #main{margin-left:210px;padding:20px}.hd-rail{width:210px}.hd-app-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hd-secondary{grid-template-columns:1.2fr 1fr}.hd-card{padding:19px 17px}.home-native .day{min-height:90px}}
@media(max-width:760px){body[data-app=home] #main{margin:0;padding:0 14px 18px}.hd-rail{position:static;width:auto;margin:0 -14px 16px;padding:17px 14px 12px;display:block!important}.hd-logo{padding:0;margin:0 0 16px}.hd-rail nav{display:flex;flex-wrap:wrap;gap:5px;overflow:visible}.hd-rail nav a{padding:9px 10px;gap:7px;flex:1 1 135px}.hd-rail nav a span{font-size:13px}.hd-rail svg{width:18px;height:18px}.hd-rail-bottom{display:flex;align-items:center;flex-wrap:wrap;gap:3px;padding:9px 0 0;margin-top:12px}.hd-rail-bottom>button,.hd-rail-bottom>a{padding:7px;font-size:12px;gap:6px;width:auto}.hd-rail-bottom #home-profile{margin:0 0 0 auto;padding:6px}.hd-rail-bottom #home-profile small{display:none}.hd-rail-bottom #home-profile .hd-avatar{width:29px;height:29px}.hd-hero{min-height:190px;padding:25px 20px}.hd-hero h1{font-size:28px}.hd-hero .hd-subtitle{font-size:13px}.hd-hero input{font-size:14px}.hd-content{padding-top:21px}.hd-today,.hd-secondary{grid-template-columns:1fr;gap:13px}.hd-app-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hd-app small{font-size:11px}.hd-apps{padding:16px 12px}.hd-day-heading h2{font-size:25px}.home-native .page-title{align-items:flex-start;flex-direction:row;gap:12px}.home-native .page-title h1{font-size:25px}.home-native .page-title .row{gap:6px}.home-native .page-title .primary{font-size:12px;padding:10px}.home-native .day{min-height:83px;padding:5px 3px}.home-native .calendar-event{font-size:11px;padding:3px}.home-native .toolbar>strong{font-size:15px}.home-native .app-switcher{grid-template-columns:repeat(2,minmax(0,1fr))}.hd-secondary .hd-card{min-height:0}}
.space-more.solo-more[open] a{top:40px}
.home-mobile-bar,.home-menu-close,.home-menu-backdrop{display:none}
.integrated-space{height:calc(100dvh - 44px);min-height:420px;display:flex;flex-direction:column;position:relative;overflow:hidden}.integrated-space .space-options{display:flex;align-items:center;justify-content:space-between;padding:0 0 12px;flex:0 0 auto}.integrated-space .space-frame{flex:1 1 auto;min-height:0;width:100%;height:100%;border:1px solid #e5e9ef;border-radius:12px;background:white}.space-loading{position:absolute;inset:45px 0 0;z-index:2;background:#f7f9fc;display:flex;flex-direction:column;gap:16px;align-items:center;justify-content:center}.space-loading[hidden]{display:none}.home-id-dialog{padding:0;width:min(560px,94vw);max-width:94vw;height:min(740px,90dvh);border:1px solid #e5e9ef;border-radius:16px;overflow:hidden}.home-id-dialog[open]{display:flex;flex-direction:column}.home-id-dialog::backdrop{background:#14253888}.home-id-heading{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;border-bottom:1px solid #e5e9ef}.home-id-dialog iframe{width:100%;flex:1;border:0;min-height:0}@media(max-width:760px){.integrated-space{height:calc(100dvh - 105px)}}
/* Mobile Home: persistent compact control, off-canvas navigation, full-width apps. */
@media(max-width:760px){
 body[data-app=home]{--home-bar-height:calc(52px + env(safe-area-inset-top,0px))}
 body[data-app=home] #main{margin:0;padding:calc(var(--home-bar-height) + 12px) 12px max(12px,env(safe-area-inset-bottom,0px))}
 .home-mobile-bar{position:fixed;inset:0 0 auto;z-index:20;height:var(--home-bar-height);padding:env(safe-area-inset-top,0px) max(12px,env(safe-area-inset-right,0px)) 0 max(8px,env(safe-area-inset-left,0px));display:flex;gap:10px;align-items:center;background:#fff;border-bottom:1px solid #e5e9ef}
 .home-mobile-bar strong{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;padding-right:50px}
 #home-menu-toggle,.home-menu-close{width:44px;height:44px;min-height:44px;flex-shrink:0;display:grid;place-items:center;padding:10px;border:0;border-radius:8px;background:transparent;color:#293342}
 #home-menu-toggle svg{width:24px;height:24px}
 body[data-app=home] .hd-rail{position:fixed;inset:0 auto 0 0;margin:0;width:min(310px,calc(100vw - 48px));height:100dvh;padding:max(18px,env(safe-area-inset-top,0px)) 16px max(18px,env(safe-area-inset-bottom,0px));display:flex!important;flex-direction:column;gap:0;overflow-y:auto;overscroll-behavior:contain;z-index:42;visibility:hidden;transform:translateX(-100%)!important;transition:transform .2s ease,visibility .2s;background:#fff;box-shadow:8px 0 32px #14253820}
 body[data-app=home] .hd-rail.home-menu-open{visibility:visible;transform:translateX(0)!important}
 .home-menu-close{align-self:flex-end;font-size:28px;padding:0;margin-bottom:4px}
 .hd-rail .hd-logo{margin:0 0 22px;padding:0 8px}
 .hd-rail nav{display:grid;gap:5px;overflow:visible;flex-shrink:0}
 .hd-rail nav a{min-height:44px;flex:none;padding:11px 12px;gap:13px}
 .hd-rail nav a span{font-size:14px}
 .hd-rail svg{width:20px;height:20px}
 .hd-rail-bottom{display:grid;gap:5px;margin-top:auto;padding-top:18px;flex-shrink:0}
 .hd-rail-bottom>button,.hd-rail-bottom>a{width:100%;min-height:44px;padding:10px 12px;gap:13px;font-size:14px}
 .hd-rail-bottom #home-profile{margin:8px 0 0;padding:10px 12px}
 .hd-rail-bottom #home-profile small{display:block}
 .hd-rail-bottom #home-profile .hd-avatar{width:36px;height:36px}
 .home-menu-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:41;width:100%;height:100dvh;border:0;border-radius:0;background:#14253877;padding:0}
 body.home-menu-visible{overflow:hidden}
 body[data-app=home] #main:has(>.integrated-space){padding:var(--home-bar-height) 0 0}
 .integrated-space{height:calc(100dvh - var(--home-bar-height));min-height:0;padding:0}
 .integrated-space .space-frame{border:0;border-radius:0;min-height:0}
 .integrated-space .space-options{position:fixed;right:max(8px,env(safe-area-inset-right,0px));top:env(safe-area-inset-top,0px);height:52px;padding:0;margin:0;z-index:21}
 .integrated-space .space-options>strong{display:none}
 .integrated-space .space-more summary{height:44px;min-width:44px;display:grid;place-items:center;padding:0;border:0}
 .integrated-space .space-options .space-more[open] button{top:44px;min-height:44px}
 .integrated-space .space-options .space-more[open] a{top:88px;min-height:44px}
 .space-loading{inset:0}
 .home-native{min-height:calc(100dvh - var(--home-bar-height) - 24px)}
}
@media(prefers-reduced-motion:reduce){body[data-app=home] .hd-rail{transition:none}}

/* Desktop ID access uses the full browser viewport. Keep the mobile layout. */
@media(min-width:761px){
 body[data-app] dialog.home-id-dialog{position:fixed;inset:0;margin:0;padding:0;width:100%;max-width:none;height:100dvh;max-height:none;border:0;border-radius:0;box-sizing:border-box;overflow:hidden}
 .home-id-heading{flex:0 0 auto}
 .home-id-dialog iframe{display:block;flex:1 1 0;min-height:0}
}

/* Keep desktop navigation reachable on short and scaled laptop viewports. */
@media(min-width:761px){
 .hd-rail{height:100dvh;overflow-y:auto;overscroll-behavior:contain}
 .hd-rail nav,.hd-rail-bottom{flex-shrink:0}
 .hd-today>*,.hd-secondary>*,.hd-hero-copy{min-width:0}
 .hd-card-head{flex-wrap:wrap;gap:8px}
 .hd-card-head h2,.hd-event strong,.hd-task strong{overflow-wrap:anywhere}
 .hd-event,.hd-task{min-width:0}
 .hd-event>div,.hd-task>div{min-width:0}
}
@media(min-width:761px) and (max-width:1100px){
 .hd-today,.hd-secondary{grid-template-columns:minmax(0,1fr)}
 .hd-hero{padding:24px;min-height:180px}
}
@media(min-width:761px) and (max-height:760px){
 .hd-rail{padding-top:16px;padding-bottom:16px}
 .hd-logo{margin-bottom:16px;padding-bottom:12px}
 .hd-rail nav{gap:4px;margin-top:16px}
 .hd-rail nav a{padding:9px 12px}
 .hd-rail-bottom{gap:4px;padding-top:10px}
 .hd-rail-bottom #home-profile{margin-top:8px}
}

/* An embedded app owns its viewport; Home remains available on demand. */
body[data-app=home] #main:has(>.integrated-space){padding-top:0;padding-bottom:0}
.integrated-space{height:100dvh;min-height:0}
.integrated-space .space-options{display:none}
.integrated-space .space-loading{inset:0}
@media(max-width:760px){
 body[data-app=home] #main:has(>.integrated-space){padding:0}
 #main:has(>.integrated-space) .home-mobile-bar{inset:auto auto max(12px,env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-left,0px));height:44px;width:44px;padding:0;border:1px solid #dce3ea;border-radius:50%;background:#fffffff2;box-shadow:0 2px 12px #14253822}
 #main:has(>.integrated-space) .home-mobile-bar>strong{display:none}
 #main:has(>.integrated-space) #home-menu-toggle{border-radius:50%;background:transparent}
 #main:has(>.integrated-space) .integrated-space{height:100dvh;min-height:0}
}
@media(max-width:760px){
 #main:has(>.integrated-space) .home-mobile-bar{left:0;bottom:max(26px,env(safe-area-inset-bottom,0px));width:30px;border-left:0;border-radius:0 14px 14px 0;box-shadow:1px 1px 5px #14253814}
 #main:has(>.integrated-space) #home-menu-toggle{width:30px;padding:5px;border-radius:0 14px 14px 0}
 #main:has(>.integrated-space) #home-menu-toggle svg{width:18px}
}

/* Fullscreen applications on desktop as well as mobile. */
body[data-app=home]:has(#main>.integrated-space){height:100dvh;overflow:hidden}
body[data-app=home]:has(#main>.integrated-space) .shell,
body[data-app=home]:has(#main>.integrated-space) .workspace{height:100dvh;min-height:0;overflow:hidden}
body[data-app=home] #main:has(>.integrated-space){height:100dvh;min-height:0;overflow:hidden}
#main:has(>.integrated-space) .space-frame{display:block}
@media(min-width:761px){#main:has(>.integrated-space[data-space=calendar]) .home-mobile-bar{display:none}}
body[data-app=home] #main:has(>.integrated-space){margin:0;padding:0;max-width:none;width:100%}
#main:has(>.integrated-space)>.integrated-space{padding:0;margin:0;width:100%;height:100dvh;min-height:0}
#main:has(>.integrated-space) .space-frame{width:100%;height:100dvh;min-height:0;border:0;border-radius:0}
#main:has(>.integrated-space) .home-mobile-bar{position:fixed;inset:auto auto max(26px,env(safe-area-inset-bottom,0px)) 0;z-index:40;display:flex;width:36px;height:44px;padding:0;border:1px solid #dce3ea;border-left:0;border-radius:0 14px 14px 0;background:#fffffff2;box-shadow:1px 1px 5px #14253814}
#main:has(>.integrated-space) .home-mobile-bar>strong{display:none}
#main:has(>.integrated-space) #home-menu-toggle{display:grid;place-items:center;width:36px;height:44px;padding:7px;border:0;border-radius:0 14px 14px 0;background:transparent;color:#293342}
#main:has(>.integrated-space) #home-menu-toggle svg{width:20px;height:20px}
body[data-app=home] #main:has(>.integrated-space)>.hd-rail{position:fixed;inset:0 auto 0 0;z-index:42;display:flex!important;flex-direction:column;width:min(310px,calc(100vw - 48px));height:100dvh;margin:0;padding:18px 16px;overflow-y:auto;visibility:hidden;transform:translateX(-100%)!important;background:#fff;box-shadow:8px 0 32px #14253820}
body[data-app=home] #main:has(>.integrated-space)>.hd-rail.home-menu-open{visibility:visible;transform:translateX(0)!important}
#main:has(>.integrated-space) .home-menu-close{display:block;align-self:flex-end;width:44px;height:44px;border:0;background:transparent;font-size:28px}
#main:has(>.integrated-space) .home-menu-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:41;width:100%;height:100dvh;border:0;border-radius:0;background:#14253877;padding:0}
