/* Calendar uses the compact application shell introduced in Documents. */
body[data-app=calendar]:not([data-app=home]){
 --calendar-accent:#2b5fba;--calendar-soft:#eaf1ff;--calendar-ink:#27313f;
 --green:var(--calendar-accent);--border:#e4e8ef;--muted:#687788;
 background:#f7f8fb;color:var(--calendar-ink);
}
body[data-app=calendar]:not([data-app=home]) .shell,
body.embedded-app[data-app=calendar]:not([data-app=home]) .shell{display:grid;grid-template-columns:88px minmax(0,1fr)}
body[data-app=calendar]:not([data-app=home]) #sidebar,
body.embedded-app[data-app=calendar]:not([data-app=home]) #sidebar{
 position:sticky;inset:0 auto auto 0;display:flex;flex-direction:column;width:88px;height:100dvh;
 padding:14px 7px max(12px,env(safe-area-inset-bottom));overflow:visible;
 background:#f9fafc;color:var(--calendar-ink);border-right:1px solid var(--border);
 visibility:visible;transform:none;box-shadow:none;z-index:30;
}
body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-brand{
 display:flex;justify-content:center;align-items:center;order:0;min-height:58px;
 padding:0;margin:0 0 12px;color:var(--calendar-ink);
}
body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-brand>img{width:36px;height:36px}
body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-brand>span{display:none}
body[data-app=calendar]:not([data-app=home]) #sidebar .app-local-nav{
 flex:1;order:1;min-height:0;margin:0;padding:0;border:0;overflow:visible;
}
body[data-app=calendar]:not([data-app=home]) #sidebar .app-local-nav>.app-side-label{display:none}
body[data-app=calendar]:not([data-app=home]) #app-side-nav{display:grid;gap:5px;margin:0;padding:0}
body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-bottom{
 display:grid;order:3;flex:none;gap:3px;margin-top:12px;padding:10px 0 0;border-top:1px solid var(--border);
}
body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-bottom>.app-global-nav{display:grid;gap:3px;order:0;margin:0;padding:0}
body[data-app=calendar]:not([data-app=home]) #sidebar #app-side-nav button,
body[data-app=calendar]:not([data-app=home]) #sidebar .calendar-sources summary,
body[data-app=calendar]:not([data-app=home]) #sidebar .app-global-nav a,
body[data-app=calendar]:not([data-app=home]) #sidebar #app-switcher-button,
body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-bottom>a{
 display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;
 position:relative;width:100%;min-height:68px;padding:9px 3px;border:0;border-radius:12px;
 background:transparent;color:var(--calendar-ink);font-size:11px;font-weight:500;line-height:1.25;text-align:center;
}
body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-bottom .app-global-nav a,
body[data-app=calendar]:not([data-app=home]) #sidebar #app-switcher-button,
body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-bottom>a{min-height:58px}
body[data-app=calendar]:not([data-app=home]) #sidebar #app-side-nav svg,
body[data-app=calendar]:not([data-app=home]) #sidebar .app-global-nav svg,
body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-bottom>a svg{width:23px;height:23px;flex:none}
body[data-app=calendar]:not([data-app=home]) #sidebar #app-side-nav button>span,
body[data-app=calendar]:not([data-app=home]) #sidebar .calendar-sources summary>span,
body[data-app=calendar]:not([data-app=home]) #sidebar .app-global-nav a span,
body[data-app=calendar]:not([data-app=home]) #sidebar #app-switcher-button span,
body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-bottom>a span{display:block;max-width:100%;font-size:11px;line-height:1.25;white-space:normal}
body[data-app=calendar]:not([data-app=home]) #sidebar #app-side-nav button:hover,
body[data-app=calendar]:not([data-app=home]) #sidebar .calendar-sources summary:hover,
body[data-app=calendar]:not([data-app=home]) #sidebar .app-global-nav a:hover,
body[data-app=calendar]:not([data-app=home]) #sidebar #app-switcher-button:hover,
body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-bottom>a:hover{background:#eef2f9;filter:none}
body[data-app=calendar]:not([data-app=home]) #sidebar #app-side-nav button[aria-pressed=true],
body[data-app=calendar]:not([data-app=home]) #sidebar .calendar-sources[open] summary,
body[data-app=calendar]:not([data-app=home]) #sidebar #app-switcher-button[aria-expanded=true]{background:var(--calendar-soft);color:var(--calendar-accent)}
body[data-app=calendar]:not([data-app=home]) #session-button{display:none}
.calendar-rail-views{display:grid;gap:5px}
.calendar-sources summary{cursor:pointer;list-style:none}
.calendar-sources summary::-webkit-details-marker{display:none}
body[data-app=calendar]:not([data-app=home]) .calendar-sources-panel{
 position:fixed;top:108px;left:96px;z-index:55;width:280px;max-height:calc(100dvh - 125px);
 overflow:auto;padding:17px;background:#fff;border:1px solid var(--border);border-radius:15px;
 box-shadow:0 16px 45px #223a6026;color:var(--calendar-ink);
}
body[data-app=calendar]:not([data-app=home]) .calendar-sources-panel .calendar-mini{display:block;padding:0 0 17px;border-bottom:1px solid var(--border)}
body[data-app=calendar]:not([data-app=home]) .calendar-mini-head{font-size:14px}
body[data-app=calendar]:not([data-app=home]) #sidebar #app-side-nav .calendar-mini-head button{display:inline-grid;place-items:center;width:26px;min-height:26px;height:26px;padding:0;gap:0;border:0;background:transparent;color:var(--calendar-accent);font-size:20px}
body[data-app=calendar]:not([data-app=home]) #sidebar #app-side-nav .calendar-mini-days button{display:grid;place-items:center;width:100%;min-height:25px;height:25px;padding:0;gap:0;border:0;border-radius:50%;background:transparent;color:#314666;font-size:11px;font-weight:500}
body[data-app=calendar]:not([data-app=home]) #sidebar #app-side-nav .calendar-mini-days button.outside{color:#a9b3c0}
body[data-app=calendar]:not([data-app=home]) #sidebar #app-side-nav .calendar-mini-days button.is-today{background:var(--calendar-accent);color:#fff}
body[data-app=calendar]:not([data-app=home]) #sidebar #app-side-nav .calendar-mini-days button.is-selected:not(.is-today){outline:1px solid var(--calendar-accent)}
body[data-app=calendar]:not([data-app=home]) .calendar-sources-panel .app-side-list-head{margin:15px 0 7px;padding:0;font-size:11px;color:var(--muted)}
body[data-app=calendar]:not([data-app=home]) .calendar-source-list{display:grid;gap:2px}
body[data-app=calendar]:not([data-app=home]) .calendar-source-list label{display:flex;align-items:center;gap:9px;min-height:37px;margin:0;padding:5px;color:var(--calendar-ink);font-size:13px}
body[data-app=calendar]:not([data-app=home]) .calendar-source-list input{width:17px;height:17px;accent-color:var(--calendar-accent)}
body[data-app=calendar]:not([data-app=home]) .calendar-connect{margin:0}
body[data-app=calendar]:not([data-app=home]) .workspace>.docs-topbar{
 display:flex;align-items:center;height:62px;min-height:62px;gap:11px;padding:0 24px;
 background:#fff;border-bottom:1px solid var(--border);
}
body[data-app=calendar]:not([data-app=home]) .docs-topbar #breadcrumb{display:none}
body[data-app=calendar]:not([data-app=home]) .docs-topbar #app-header-search{
 flex:1;width:min(500px,40vw);max-width:500px;min-width:130px;height:40px;margin:0;
 background:#f7f8fa;border-color:var(--border);border-radius:10px;
}
body[data-app=calendar]:not([data-app=home]) .docs-topbar #app-create{height:40px;min-height:40px;margin-left:auto;background:var(--calendar-accent);border-radius:10px}
body[data-app=calendar]:not([data-app=home]) .docs-topbar-actions{display:flex;align-items:center;gap:7px;flex:none}
body[data-app=calendar]:not([data-app=home]) .docs-topbar #notice-bell{
 position:relative;display:grid;place-items:center;width:44px;height:44px;min-width:44px;
 margin:0;padding:0;border:0;border-radius:12px;background:transparent;color:#5d6b7e;font-size:14px;
}
body[data-app=calendar]:not([data-app=home]) .docs-topbar #notice-bell>svg{width:22px;height:22px;stroke-width:1.7}
body[data-app=calendar]:not([data-app=home]) .docs-topbar #notice-bell:hover,
body[data-app=calendar]:not([data-app=home]) .docs-topbar .account-button:hover{background:#eef2f9;filter:none}
body[data-app=calendar]:not([data-app=home]) .docs-topbar .account-button{max-width:220px;min-height:44px;margin:0;padding:4px 8px;gap:10px;color:var(--calendar-ink);border-radius:12px}
body[data-app=calendar]:not([data-app=home]) .docs-topbar .app-user-avatar{width:36px;height:36px;background:#eaf1ff;color:var(--calendar-accent);font-weight:600}
body[data-app=calendar]:not([data-app=home]) .docs-topbar .app-user-name{max-width:155px;font-size:14px;font-weight:500}
body[data-app=calendar]:not([data-app=home]) .docs-account-chevron{width:14px;height:14px;flex:none;color:var(--muted)}
body[data-app=calendar]:not([data-app=home]) #main{max-width:none;padding:22px 24px}
body[data-app=calendar]:not([data-app=home]) .calendar-workspace{
 display:grid;grid-template-columns:minmax(0,1fr);gap:16px;min-height:0;height:100%;
}
body[data-app=calendar]:not([data-app=home]) .calendar-detail[hidden]{display:none}
@media(min-width:1101px){body[data-app=calendar]:not([data-app=home]) .calendar-workspace.has-detail{grid-template-columns:minmax(0,1fr) minmax(265px,23%)}}
body[data-app=calendar]:not([data-app=home]) .calendar-board,
body[data-app=calendar]:not([data-app=home]) .calendar-detail{
 min-width:0;padding:20px;background:#fff;border:1px solid var(--border);border-radius:16px;
 box-shadow:0 4px 18px #263b5a08;
}
body[data-app=calendar]:not([data-app=home]) .calendar-board-toolbar{margin-bottom:18px}
body[data-app=calendar]:not([data-app=home]) .calendar-period h1{color:var(--calendar-ink)}
body[data-app=calendar]:not([data-app=home]) .calendar-period button,
body[data-app=calendar]:not([data-app=home]) .calendar-board .view-tabs button{border-color:var(--border);border-radius:9px;color:var(--calendar-accent)}
body[data-app=calendar]:not([data-app=home]) .calendar-board .view-tabs button[aria-pressed=true]{background:var(--calendar-accent);border-color:var(--calendar-accent);color:#fff}
body[data-app=calendar]:not([data-app=home]) .calendar-detail{height:fit-content;min-height:300px}
body[data-app=calendar]:not([data-app=home]) .calendar-detail-actions .primary{background:var(--calendar-accent)}
body[data-app=calendar]:not([data-app=home]) .calendar-week-scroll,
body[data-app=calendar]:not([data-app=home]) .calendar-grid{border-color:var(--border);border-radius:11px}
body[data-app=calendar]:not([data-app=home]) .calendar-footnote{margin:15px 0 0;color:var(--muted)}
body[data-app=calendar]:not([data-app=home]) .docs-mobile-brand{display:none}
body[data-app=calendar]:not([data-app=home]) #menu,
body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-close,
body[data-app=calendar]:not([data-app=home]) .app-menu-backdrop{display:none}
@media(max-width:1100px){
 body[data-app=calendar]:not([data-app=home]) .calendar-workspace{grid-template-columns:minmax(0,1fr)}
 body[data-app=calendar]:not([data-app=home]) .calendar-detail{min-height:150px}
}
@media(max-width:760px){
 body[data-app=calendar]:not([data-app=home]) .shell,
 body.embedded-app[data-app=calendar]:not([data-app=home]) .shell{display:block}
 body[data-app=calendar]:not([data-app=home]) #sidebar,
 body.embedded-app[data-app=calendar]: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;transition:transform .2s ease,visibility .2s ease;
 }
 body[data-app=calendar]:not([data-app=home]).menu-open #sidebar{visibility:visible;transform:translateX(0)}
 body[data-app=calendar]:not([data-app=home]).menu-open{overflow:hidden}
 body[data-app=calendar]:not([data-app=home]) .workspace>.docs-topbar{height:58px;min-height:58px;padding:0 10px;gap:5px}
 body[data-app=calendar]:not([data-app=home]) .docs-topbar #menu{display:grid;place-items:center;flex:none;width:40px;min-width:40px;height:44px;margin:0;padding:8px;border:0;border-radius:10px;background:transparent;color:var(--calendar-ink)}
 body[data-app=calendar]:not([data-app=home]) .docs-mobile-brand{display:flex;align-items:center;gap:6px;flex:none;min-height:44px;margin:0;color:var(--calendar-ink);font:700 14px/1.2 Manrope,system-ui,sans-serif}
 body[data-app=calendar]:not([data-app=home]) .docs-mobile-brand>img{width:28px;height:28px;flex:none}
 body[data-app=calendar]:not([data-app=home]) .docs-topbar #app-header-search{width:auto;min-width:72px;max-width:none;height:38px;margin:0;padding:8px;font-size:13px}
 body[data-app=calendar]:not([data-app=home]) .docs-topbar #app-create{flex:none;width:40px;min-width:40px;height:40px;margin:0;padding:0}
 body[data-app=calendar]:not([data-app=home]) .docs-topbar-actions{gap:2px}
 body[data-app=calendar]:not([data-app=home]) .docs-topbar .account-button{width:40px;min-width:40px;max-width:40px;height:44px;padding:3px;justify-content:center}
 body[data-app=calendar]:not([data-app=home]) .docs-topbar .app-user-name,
 body[data-app=calendar]:not([data-app=home]) .docs-account-chevron{display:none}
 body[data-app=calendar]:not([data-app=home]) #main{padding:16px 10px calc(24px + env(safe-area-inset-bottom))}
 body[data-app=calendar]:not([data-app=home]) .calendar-workspace{display:block;min-height:0}
 body[data-app=calendar]:not([data-app=home]) .calendar-board,
 body[data-app=calendar]:not([data-app=home]) .calendar-detail{padding:14px;margin-bottom:14px}
 body[data-app=calendar]:not([data-app=home]) .calendar-period h1{font-size:20px}
 body[data-app=calendar]:not([data-app=home]) .calendar-period h1{width:100%;margin:6px 0 0;white-space:normal;line-height:1.3;overflow-wrap:anywhere}
 body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-close{display:grid;place-items:center;position:static;align-self:center;flex:none;width:44px;height:44px;margin:0 0 8px;padding:0;border:0;border-radius:10px;background:transparent}
 body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-close>img{width:32px;height:32px}
 body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-brand{display:none}
 body[data-app=calendar]: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=calendar]:not([data-app=home]) .calendar-sources-panel{left:86px;top:68px;width:min(280px,calc(100vw - 98px));max-height:calc(100dvh - 80px)}
}
@media(max-width:600px){body[data-app=calendar]:not([data-app=home]) .docs-mobile-brand>span{display:none}}
@media(max-width:390px){
 body[data-app=calendar]:not([data-app=home]) .docs-topbar #notice-bell{width:38px;min-width:38px}
 body[data-app=calendar]:not([data-app=home]) .docs-topbar .account-button{width:38px;min-width:38px;max-width:38px}
 body[data-app=calendar]:not([data-app=home]) .docs-topbar #app-header-search{min-width:60px}
}
@media(max-height:700px){
 body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-brand{min-height:42px;margin-bottom:5px}
 body[data-app=calendar]:not([data-app=home]) #sidebar #app-side-nav button,
 body[data-app=calendar]:not([data-app=home]) #sidebar .calendar-sources summary{min-height:47px;padding:5px 2px;gap:3px}
 body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-bottom .app-global-nav a,
 body[data-app=calendar]:not([data-app=home]) #sidebar #app-switcher-button,
 body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-bottom>a{min-height:43px;padding:4px 2px;gap:3px}
 body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-bottom{margin-top:5px;padding-top:5px}
}
@media(prefers-reduced-motion:reduce){body[data-app=calendar]:not([data-app=home]) #sidebar{transition:none}}

/* Calendar title, live weather and event interactions. */
.calendar-brand-name{font-style:normal;color:#2b5fba}
body[data-app=calendar]:not([data-app=home]) .workspace>.docs-topbar,
body.embedded-app[data-app=calendar]:not([data-app=home]) .workspace>.docs-topbar{display:grid;grid-template-columns:minmax(190px,1fr) minmax(220px,540px) minmax(190px,1fr);column-gap:20px}
body[data-app=calendar]:not([data-app=home]) .calendar-top-brand{grid-column:1;display:inline-flex;align-items:center;justify-self:start;min-width:0;white-space:nowrap;color:#26344a;font:800 17px/1.1 Manrope,system-ui,sans-serif;letter-spacing:-.03em}
body[data-app=calendar]:not([data-app=home]) .calendar-top-brand .calendar-brand-name{color:var(--calendar-accent);margin-left:.16em}
body[data-app=calendar]:not([data-app=home]) .calendar-search-weather{grid-column:2;display:flex;align-items:center;gap:10px;justify-self:stretch;min-width:0}
body[data-app=calendar]:not([data-app=home]) .calendar-search-weather #app-header-search{display:block;width:100%;min-width:0;max-width:none;flex:1}
body[data-app=calendar]:not([data-app=home]) .calendar-today-weather{position:static;display:flex;align-items:center;gap:5px;flex:none;width:106px;min-width:90px;max-width:118px;height:40px;padding:3px 6px;border:0;border-radius:10px;background:#f3f7fd;color:#285ca9;text-align:left}
body[data-app=calendar]:not([data-app=home]) .calendar-today-weather span:not(.weather-location-symbol){display:flex;flex-direction:column;min-width:0}
body[data-app=calendar]:not([data-app=home]) .calendar-today-weather strong{font-size:14px;line-height:1.1}
body[data-app=calendar]:not([data-app=home]) .calendar-today-weather small{max-width:76px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;line-height:1.2;color:#637b9b}
body[data-app=calendar]:not([data-app=home]) .weather-location-symbol{font-size:23px;line-height:1}
body[data-app=calendar]:not([data-app=home]) .calendar-header-actions{grid-column:3;display:flex;align-items:center;justify-self:end;gap:5px;min-width:0}
body[data-app=calendar]:not([data-app=home]) .calendar-header-actions #app-create{margin:0;white-space:nowrap}
body[data-app=calendar]:not([data-app=home]) .calendar-day-top{display:flex;align-items:center;justify-content:space-between;gap:2px;min-width:0}
body[data-app=calendar]:not([data-app=home]) .calendar-day-weather{display:inline-flex;align-items:center;justify-content:center;gap:2px;min-width:0;white-space:nowrap;color:#445e80;font-size:10px;font-weight:650;line-height:1}
body[data-app=calendar]:not([data-app=home]) .weather-icon{width:18px;height:18px;flex:none}
body[data-app=calendar]:not([data-app=home]) .weather-sun,body[data-app=calendar]:not([data-app=home]) .weather-partly{color:#df9a27}
body[data-app=calendar]:not([data-app=home]) .weather-rain,body[data-app=calendar]:not([data-app=home]) .weather-storm{color:#3f79c5}
body[data-app=calendar]:not([data-app=home]) .weather-snow{color:#5799c5}
body[data-app=calendar]:not([data-app=home]) .calendar-week-day header{gap:0;padding:4px 3px}
body[data-app=calendar]:not([data-app=home]) .calendar-week-day header .calendar-day-weather{height:17px}
body[data-app=calendar]:not([data-app=home]) .calendar-week-day header .weather-icon{width:15px;height:15px}
body[data-app=calendar]:not([data-app=home]) .calendar-week-event{padding:3px 4px 8px;cursor:pointer}
body[data-app=calendar]:not([data-app=home]) .calendar-week-event time,body[data-app=calendar]:not([data-app=home]) .calendar-week-event strong{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;line-height:1.1}
body[data-app=calendar]:not([data-app=home]) .calendar-week-event strong{font-size:14px;font-weight:750;line-height:19px;margin-top:2px}
body[data-app=calendar]:not([data-app=home]) .calendar-week-event small{display:none}
body[data-app=calendar]:not([data-app=home]) .calendar-all-day .calendar-week-event{padding:4px 5px}
body[data-app=calendar]:not([data-app=home]) .calendar-all-day .calendar-week-event time{display:none}
body[data-app=calendar]:not([data-app=home]) .calendar-event{position:relative;font-size:10px;line-height:1.3;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body[data-app=calendar]:not([data-app=home]) .calendar-event-title{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-app=calendar]:not([data-app=home]) .calendar-event[data-editable=true]{padding-right:12px}
body[data-app=calendar]:not([data-app=home]) .calendar-month-resize-handle{position:absolute;inset:0 0 0 auto;width:9px;cursor:ew-resize;border-left:1px solid #3474b966;background:#2b66b118}
body[data-app=calendar]:not([data-app=home]) .calendar-month-resize-handle::after{content:'⋮';position:absolute;inset:0;display:grid;place-items:center;color:#3268a8;font-size:9px;line-height:1}
body[data-app=calendar]:not([data-app=home]) .calendar-event[data-editable=true],body[data-app=calendar]:not([data-app=home]) .calendar-week-event[data-editable=true]{touch-action:none}
body[data-app=calendar]:not([data-app=home]) .calendar-resize-handle{position:absolute;left:0;right:0;bottom:0;height:7px;cursor:ns-resize;background:linear-gradient(transparent,#2b66b125)}
body[data-app=calendar]:not([data-app=home]) .calendar-resize-handle::after{content:'';display:block;width:19px;height:2px;margin:3px auto 0;border-radius:2px;background:currentColor;opacity:.5}
body[data-app=calendar]:not([data-app=home]) .calendar-drop-target{background-color:#e8f2ff!important;outline:2px dashed #4d80cf;outline-offset:-3px}
.calendar-event-tooltip{position:fixed;z-index:90;display:flex;flex-direction:column;gap:12px;padding:18px;background:#fff;color:#27313f;border:1px solid #dce5f1;border-radius:18px;box-shadow:0 18px 60px #1b345630,0 3px 12px #1b345612;font:13px/1.5 Manrope,system-ui,sans-serif;overflow-wrap:anywhere;box-sizing:border-box;overflow:hidden}
.calendar-event-tooltip[hidden],.calendar-drag-ghost[hidden]{display:none}
.calendar-tooltip-header{display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px}
.calendar-tooltip-source{color:#35649b;font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.calendar-tooltip-close{display:grid;place-items:center;flex:none;width:28px;height:28px;min-height:28px;padding:0;border:0;border-radius:7px;background:#f2f5fa;color:#64748b;font-size:23px;line-height:1}
.calendar-tooltip-content{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.calendar-tooltip-title{display:block;font-size:18px;line-height:1.4;font-weight:750;white-space:normal}
.calendar-tooltip-time{margin:9px 0 13px;color:#52657f;font-size:12px;line-height:1.5}
.calendar-tooltip-field{display:grid;grid-template-columns:80px minmax(0,1fr);gap:8px;margin:8px 0;font-size:13px}
.calendar-tooltip-field>span:first-child{color:#748298;font-size:12px}
.calendar-tooltip-notes{margin:14px 0 0;padding-top:13px;border-top:1px solid #e7edf5;font-size:13px;line-height:1.6;white-space:pre-wrap}
.calendar-tooltip-photo{display:block;width:100%;max-height:180px;object-fit:cover;margin-top:14px;border-radius:10px}
.calendar-event-tooltip .calendar-event-weather.is-detail{margin:12px 0 0;font-size:12px}
.calendar-tooltip-actions{display:flex;flex:none;flex-wrap:wrap;gap:8px;margin-top:0;padding-top:12px;border-top:1px solid #e7edf5}
.calendar-tooltip-actions button{padding:8px 12px;border-radius:9px;border-color:#d7e2f0;color:#295ea8;background:#f2f7ff;font-size:12px}
.calendar-tooltip-actions button:first-child{background:#2b5fba;border-color:#2b5fba;color:#fff}
.calendar-drag-ghost{position:fixed;z-index:95;pointer-events:none;max-width:240px;padding:8px 11px;background:#203d68;color:#fff;border-radius:9px;box-shadow:0 8px 22px #142b4c38;font:600 12px Manrope,system-ui,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1300px){body[data-app=calendar]:not([data-app=home]) .calendar-header-actions #app-create{width:40px;min-width:40px;padding:0;font-size:0}body[data-app=calendar]:not([data-app=home]) .calendar-header-actions #app-create::before{content:'+';font-size:24px}}
@media(max-width:1500px){body[data-app=calendar]:not([data-app=home]) .docs-topbar .account-button{width:44px;min-width:44px;max-width:44px;justify-content:center;padding:4px}body[data-app=calendar]:not([data-app=home]) .docs-topbar .app-user-name,body[data-app=calendar]:not([data-app=home]) .docs-topbar .docs-account-chevron{display:none}}
@media(max-width:1050px){body[data-app=calendar]:not([data-app=home]) .workspace>.docs-topbar{column-gap:8px;padding:0 12px}body[data-app=calendar]:not([data-app=home]) .calendar-top-brand{font-size:14px}body[data-app=calendar]:not([data-app=home]) .docs-topbar .account-button{display:none}}
@media(max-width:850px){body[data-app=calendar]:not([data-app=home]) .calendar-today-weather{min-width:68px;max-width:68px}body[data-app=calendar]:not([data-app=home]) .calendar-today-weather small{display:none}body[data-app=calendar]:not([data-app=home]) .calendar-header-actions{gap:0}}
@media(max-width:760px){body[data-app=calendar]:not([data-app=home]) .workspace>.docs-topbar{display:grid;grid-template-columns:40px minmax(0,1fr) auto;grid-template-rows:46px 42px;height:96px;min-height:96px;padding:3px 10px 5px;column-gap:5px;row-gap:0}body[data-app=calendar]:not([data-app=home]) .docs-topbar #menu{grid-column:1;grid-row:1}body[data-app=calendar]:not([data-app=home]) .calendar-top-brand{grid-column:2;grid-row:1;font-size:14px}body[data-app=calendar]:not([data-app=home]) .calendar-top-brand span{display:inline;min-width:0;overflow:hidden;text-overflow:ellipsis}body[data-app=calendar]:not([data-app=home]) .calendar-header-actions{grid-column:3;grid-row:1}body[data-app=calendar]:not([data-app=home]) .calendar-search-weather{grid-column:1 / -1;grid-row:2;display:flex;align-items:center;gap:9px}body[data-app=calendar]:not([data-app=home]) .calendar-search-weather #app-header-search{height:38px;flex:1}body[data-app=calendar]:not([data-app=home]) .calendar-today-weather{position:static;transform:none;height:38px}body[data-app=calendar]:not([data-app=home]) .calendar-grid .day{min-height:76px}body[data-app=calendar]:not([data-app=home]) .calendar-day-weather{font-size:9px}body[data-app=calendar]:not([data-app=home]) .calendar-day-weather .weather-icon{width:13px;height:13px}}
@media(max-width:390px){body[data-app=calendar]:not([data-app=home]) .calendar-top-brand{font-size:12px}body[data-app=calendar]:not([data-app=home]) .docs-topbar #notice-bell{width:36px;min-width:36px}body[data-app=calendar]:not([data-app=home]) .docs-topbar .account-button{width:36px;min-width:36px;max-width:36px}}
@media(max-width:600px){body[data-app=calendar]:not([data-app=home]) .calendar-grid .calendar-day-top{flex-direction:column;align-items:flex-start;gap:2px}body[data-app=calendar]:not([data-app=home]) .calendar-grid .calendar-day-weather{align-self:center;font-size:9px}body[data-app=calendar]:not([data-app=home]) .calendar-grid .calendar-event{font-size:9px;padding-left:2px;padding-right:2px}body[data-app=calendar]:not([data-app=home]) .calendar-grid .calendar-event[data-editable=true]{padding-right:10px}}
body[data-app=calendar]:not([data-app=home]) .calendar-footnote a{color:var(--calendar-accent);text-decoration:underline;text-underline-offset:2px}

/* One viewport, with scrolling owned by the calendar content. These rules also
   cover the iframe in Home, whose shared shell uses more specific selectors. */
body[data-app=calendar]:not([data-app=home]){height:100dvh;overflow:hidden}
body[data-app=calendar]:not([data-app=home]) .shell,
body.embedded-app[data-app=calendar]:not([data-app=home]) .shell{height:100dvh;min-height:0;grid-template-rows:minmax(0,1fr)}
body[data-app=calendar]:not([data-app=home]) .workspace{display:grid;grid-template-rows:auto minmax(0,1fr);height:100%;min-height:0;overflow:hidden}
body[data-app=calendar]:not([data-app=home]) #main{height:100%;min-height:0;overflow:hidden;padding:20px 24px}
body[data-app=calendar]:not([data-app=home]) .calendar-board{display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden}
body[data-app=calendar]:not([data-app=home]) .calendar-board-toolbar{flex:none;align-items:center;gap:12px;margin-bottom:16px}
body[data-app=calendar]:not([data-app=home]) .calendar-period{flex:1;flex-wrap:wrap;gap:6px}
body[data-app=calendar]:not([data-app=home]) .calendar-period h1{min-width:0;white-space:normal;line-height:1.3;overflow-wrap:anywhere}
body[data-app=calendar]:not([data-app=home]) .calendar-board .view-tabs{flex:none}
body[data-app=calendar]:not([data-app=home]) #calendar-content{flex:1;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c4cfdf transparent;border-radius:11px}
body[data-app=calendar]:not([data-app=home]) .calendar-week-scroll{height:100%;min-height:0;overflow:visible}
body[data-app=calendar]:not([data-app=home]) #calendar-content:has(.calendar-week){overflow-x:auto;overflow-y:hidden}
body[data-app=calendar]:not([data-app=home]) .calendar-week{height:100%;min-height:0;min-width:0;grid-template-columns:51px repeat(7,minmax(0,1fr));grid-template-rows:minmax(0,1fr)}
body[data-app=calendar]:not([data-app=home]) .calendar-week.is-day{min-width:0;grid-template-columns:51px minmax(0,1fr)}
body[data-app=calendar]:not([data-app=home]) .calendar-week-day,
body[data-app=calendar]:not([data-app=home]) .calendar-hours{display:flex;flex-direction:column;min-height:0}
body[data-app=calendar]:not([data-app=home]) .calendar-week-day header,
body[data-app=calendar]:not([data-app=home]) .calendar-hour-head{position:sticky;top:0;z-index:3;flex:none;background:#fff}
body[data-app=calendar]:not([data-app=home]) .calendar-week-day.is-today header{background:#f2f7ff}
body[data-app=calendar]:not([data-app=home]) .calendar-all-day,
body[data-app=calendar]:not([data-app=home]) .calendar-hour-all-day{flex:none;height:var(--calendar-all-day-height,34px);min-height:var(--calendar-all-day-height,34px)}
body[data-app=calendar]:not([data-app=home]) .calendar-week-items,
body[data-app=calendar]:not([data-app=home]) .calendar-hour-labels{flex:1;height:auto;min-height:0;container-type:size}
body[data-app=calendar]:not([data-app=home]) .calendar-week-items{background:linear-gradient(to bottom,transparent calc(100% - 1px),#e7edf4 0) 0 0 / 100% calc(100% / 24) repeat-y}
body[data-app=calendar]:not([data-app=home]) .calendar-hour-labels span{top:calc((var(--calendar-hour-index) + .5) * 100% / 24);font-size:clamp(8px,3.5cqh,10px);line-height:min(12px,4cqh)}
body[data-app=calendar]:not([data-app=home]) .calendar-hour-labels span:first-child{transform:translateY(-50%)}
body[data-app=calendar]:not([data-app=home]) .calendar-week-items .calendar-week-event{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:0;padding:3px 5px;box-sizing:border-box;container-type:size}
body[data-app=calendar]:not([data-app=home]) .calendar-week-items .calendar-week-event>strong{order:-1;margin:0}
body[data-app=calendar]:not([data-app=home]) .calendar-week-items .calendar-week-event>.calendar-event-weather{top:auto;bottom:3px}
body[data-app=calendar]:not([data-app=home]) .calendar-week-items .calendar-week-event.is-compact{flex-direction:row;align-items:center;gap:5px;padding:3px 5px}
body[data-app=calendar]:not([data-app=home]) .calendar-week-event.is-compact>time{display:none}
body[data-app=calendar]:not([data-app=home]) .calendar-week-event.is-compact>strong{flex:1;min-width:0;width:auto;margin:0;font-size:14px;line-height:19px}
body[data-app=calendar]:not([data-app=home]) .calendar-week-items .calendar-week-event.is-compact>.calendar-event-weather{position:static;flex:none;order:1;padding:0;background:transparent;font-size:10px;line-height:16px}
@container(max-width:120px){body[data-app=calendar]:not([data-app=home]) .calendar-week-items .calendar-week-event.is-compact>.calendar-event-weather{display:none}}
body[data-app=calendar]:not([data-app=home]) .calendar-footnote{flex:none;margin:12px 0 0;font-size:11px;line-height:1.45}
body[data-app=calendar]:not([data-app=home]) .calendar-detail{min-height:0;max-height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-top:28px}
body[data-app=calendar]:not([data-app=home]) .calendar-detail h2{padding-right:28px;overflow-wrap:anywhere}
body[data-app=calendar]:not([data-app=home]) .calendar-detail-empty{min-height:240px}
body[data-app=calendar]:not([data-app=home]) #sidebar .app-local-nav{overflow-x:hidden;overflow-y:auto;scrollbar-width:none;overscroll-behavior:contain}
body[data-app=calendar]:not([data-app=home]) .calendar-header-actions #app-create::before{content:none}
body[data-app=calendar]:not([data-app=home]) .docs-topbar .account-button{display:flex}
body[data-app=calendar]:not([data-app=home]) .docs-topbar .docs-notice-badge{position:absolute;top:2px;right:1px;display:grid;place-items:center;min-width:17px;height:17px;padding:0 4px;border:2px solid #fff;border-radius:20px;background:var(--calendar-accent);color:#fff;font-size:10px;font-weight:700;line-height:1}
body[data-app=calendar]:not([data-app=home]) .docs-topbar #notice-bell[data-notice-state=error] .docs-notice-badge{background:#b34c3a}
@media(min-width:761px){
 body.embedded-app[data-app=calendar]:not([data-app=home]) .workspace>.docs-topbar #menu{display:none}
 body[data-app=calendar]:not([data-app=home]) .calendar-top-brand,
 body[data-app=calendar]:not([data-app=home]) .calendar-search-weather,
 body[data-app=calendar]:not([data-app=home]) .calendar-header-actions{grid-row:1}
}
@media(max-width:1300px) and (min-width:761px){
 body[data-app=calendar]:not([data-app=home]) .workspace>.docs-topbar,
 body.embedded-app[data-app=calendar]:not([data-app=home]) .workspace>.docs-topbar{grid-template-columns:minmax(165px,1fr) minmax(200px,460px) minmax(140px,1fr);column-gap:14px;padding:0 16px}
 body[data-app=calendar]:not([data-app=home]) .calendar-header-actions #app-create::before{content:'+';font-size:24px}
}
@media(max-width:1100px){
 body[data-app=calendar]:not([data-app=home]) .calendar-workspace{grid-template-columns:minmax(0,1fr)}
 body[data-app=calendar]:not([data-app=home]) .calendar-detail{display:none}
 body[data-app=calendar]:not([data-app=home]) .calendar-detail.has-event{display:block;position:fixed;z-index:40;top:78px;right:16px;width:min(360px,calc(100vw - 112px));max-height:calc(100dvh - 94px);box-shadow:0 14px 45px #223a6030}
}
@media(max-width:900px) and (min-width:761px){
 body[data-app=calendar]:not([data-app=home]) .workspace>.docs-topbar,
 body.embedded-app[data-app=calendar]:not([data-app=home]) .workspace>.docs-topbar{grid-template-columns:170px minmax(0,1fr) auto;column-gap:10px;padding:0 12px}
 body[data-app=calendar]:not([data-app=home]) .calendar-today-weather{width:68px;min-width:68px}
}
@media(max-width:760px){
 body[data-app=calendar]:not([data-app=home]) .shell,
 body.embedded-app[data-app=calendar]:not([data-app=home]) .shell{display:grid;grid-template-columns:minmax(0,1fr)}
 body[data-app=calendar]:not([data-app=home]) .workspace>.docs-topbar,
 body.embedded-app[data-app=calendar]:not([data-app=home]) .workspace>.docs-topbar{display:grid;grid-template-columns:40px minmax(0,1fr) auto;grid-template-rows:46px 42px;height:96px;min-height:96px;padding:3px 10px 5px;column-gap:5px;row-gap:0}
 body[data-app=calendar]:not([data-app=home]) #main{padding:10px 8px max(10px,env(safe-area-inset-bottom))}
 body[data-app=calendar]:not([data-app=home]) .calendar-workspace{display:grid;height:100%;min-height:0}
 body[data-app=calendar]:not([data-app=home]) .calendar-board{padding:12px;margin:0;border-radius:12px}
 body[data-app=calendar]:not([data-app=home]) .calendar-board-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin-bottom:12px}
 body[data-app=calendar]:not([data-app=home]) .calendar-period h1{flex-basis:100%;margin:4px 0 0;font-size:18px}
 body[data-app=calendar]:not([data-app=home]) .calendar-board .view-tabs{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
 body[data-app=calendar]:not([data-app=home]) .calendar-week-scroll{min-width:725px}
 body[data-app=calendar]:not([data-app=home]) .calendar-week-scroll:has(.is-day){min-width:0}
 body[data-app=calendar]:not([data-app=home]) .calendar-hours{position:sticky;left:0;z-index:4}
 body[data-app=calendar]:not([data-app=home]) .calendar-footnote{font-size:10px;line-height:1.4;margin-top:10px}
 body[data-app=calendar]:not([data-app=home]) .calendar-detail.has-event{inset:auto 8px max(8px,env(safe-area-inset-bottom));width:auto;max-height:48dvh;margin:0;z-index:40}
 body[data-app=calendar]:not([data-app=home]) .calendar-header-actions #app-create::before{content:'+';font-size:24px}
}
@media(min-height:701px) and (max-height:820px){
 body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-brand{min-height:50px;margin-bottom:6px}
 body[data-app=calendar]:not([data-app=home]) #sidebar #app-side-nav button,
 body[data-app=calendar]:not([data-app=home]) #sidebar .calendar-sources summary{min-height:58px;padding:6px 2px;gap:5px}
}
@media(max-width:850px){
 body[data-app=calendar]:not([data-app=home]) .calendar-today-weather{gap:3px;padding:3px 4px}
 body[data-app=calendar]:not([data-app=home]) .calendar-today-weather .weather-location-symbol{width:14px;flex:none;font-size:18px}
 body[data-app=calendar]:not([data-app=home]) .calendar-today-weather strong{font-size:12px}
}
.calendar-event-photo{margin:0 0 20px;min-height:80px;border-radius:12px;overflow:hidden;background:#f1f4f8;color:#63748d;display:grid;place-items:center;text-align:center;font-size:13px;gap:10px}
.calendar-event-photo[hidden]{display:none}
.calendar-event-photo img{display:block;width:100%;max-height:240px;object-fit:contain}
.calendar-event-photo.is-loading{min-height:150px}
.calendar-event-photo button{margin:0 12px 12px}
@media(max-width:760px){body[data-app=calendar]:not([data-app=home]) .calendar-detail.has-photo{max-height:78dvh}.calendar-event-photo{margin-bottom:14px}.calendar-event-photo img{max-height:150px}.calendar-event-photo.is-loading{min-height:100px}}
.calendar-event-weather{display:inline-flex;align-items:center;gap:3px;max-width:100%;font-size:11px;line-height:1.2;font-weight:500;color:inherit;white-space:nowrap}
.calendar-event-weather[hidden]{display:none}
body[data-app=calendar]:not([data-app=home]) .calendar-event-weather .weather-icon{width:14px;height:14px}
.calendar-week-event>.calendar-event-weather{position:absolute;right:4px;top:3px;padding:0 2px;border-radius:3px;background:inherit;font-size:10px}
body[data-app=calendar]:not([data-app=home]) .calendar-all-day .calendar-week-event{position:relative}
.calendar-week-event:has(>.calendar-event-weather:not([hidden]))>time{max-width:calc(100% - 45px);overflow:hidden}
.calendar-event-weather.is-detail{display:flex;flex-wrap:wrap;gap:6px;margin:-6px 0 18px;font-size:13px;white-space:normal;color:#536985}
.calendar-event-weather.is-detail[hidden]{display:none}
.calendar-weather-resolved-place{flex-basis:100%;font-size:11px;line-height:1.4;color:#63748a;overflow-wrap:anywhere}
.calendar-weather-options:has(>button[hidden]:first-child){display:none}
body[data-app=calendar]:not([data-app=home]) .calendar-detail.has-photo{padding-top:20px}
body[data-app=calendar]:not([data-app=home]) .calendar-detail.has-photo h2{margin-bottom:16px}
body[data-app=calendar]:not([data-app=home]) .calendar-detail.has-photo .calendar-event-photo{margin-bottom:14px}
body[data-app=calendar]:not([data-app=home]) .calendar-detail.has-photo .calendar-detail-field{margin:14px 0}
body[data-app=calendar]:not([data-app=home]) .calendar-detail.has-photo .calendar-detail-notes{margin-top:14px;padding:10px 0}
body[data-app=calendar]:not([data-app=home]) .calendar-detail.has-photo .calendar-detail-actions{margin-top:14px;padding-top:12px}
.calendar-weather-change{border:0;background:transparent;padding:2px 0;color:#2b5fba;font-size:12px;text-decoration:underline}
.calendar-event>.calendar-event-weather{margin:1px 0 0;font-size:10px}
.calendar-weather-dialog{width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:22px;border:1px solid #e4e8ef;border-radius:16px;box-shadow:0 18px 60px #223a6033;color:#27313f;background:#fff;overflow:auto}
.calendar-weather-dialog::backdrop{background:#182a4555}
.calendar-weather-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.calendar-weather-title h2{margin:0;font-size:22px}
.calendar-weather-title button{padding:2px 10px;border:0;background:transparent;font-size:24px}
.calendar-weather-selected{margin:0 0 18px;overflow-wrap:anywhere;font-size:14px;color:#63748a}
.calendar-weather-dialog label{display:block;margin:0 0 8px;font-size:14px;font-weight:600}
.calendar-weather-search{display:flex;gap:8px}
.calendar-weather-search input{flex:1;min-width:0;font-size:16px;margin:0}
.calendar-weather-search button{flex:none;color:#fff;background:#2b5fba;border-color:#2b5fba;font-size:14px}
.calendar-weather-results{display:grid;gap:6px;margin:14px 0;font-size:14px}
.calendar-weather-results button{padding:10px;text-align:left;white-space:normal;font-size:14px;border:1px solid #e4e8ef;background:#f6f8fc;color:#27313f}
.calendar-weather-options{display:flex;flex-wrap:wrap;gap:8px;padding-top:12px;border-top:1px solid #e4e8ef}
.calendar-weather-options button{font-size:14px}
.calendar-weather-help{margin:16px 0 0;font-size:12px;line-height:1.5;color:#63748a}
body[data-app=calendar] .calendar-group-filter{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:8px 0 16px;font-size:13px;color:#606b77}
body[data-app=calendar] .calendar-group-filter label{display:flex;align-items:center;gap:8px;margin:0}
body[data-app=calendar] .calendar-group-filter select{width:auto;max-width:220px;font-size:13px;padding:7px;border:1px solid #e2e5e9;border-radius:8px;background:#fff}
body[data-app=calendar] .calendar-group-filter a{color:inherit}
body[data-app=calendar] .calendar-event.group_calendar,body[data-app=calendar] .calendar-week-event.group_calendar{background:#e2f3f5;border-left-color:#247586;color:#24545e}

/* Day and week fit the full 24-hour scale. Individual day previews never scroll. */
body[data-app=calendar]:not([data-app=home]) .calendar-week{overflow:visible}
body[data-app=calendar]:not([data-app=home]) #calendar-content{--calendar-preview-count:3}
body[data-app=calendar]:not([data-app=home]) .calendar-all-day{display:flex;flex-direction:column;gap:4px;padding:4px;overflow:hidden;min-width:0;position:sticky;top:61px;z-index:3;background:#fff}
body[data-app=calendar]:not([data-app=home]) .is-today .calendar-all-day{background:#f2f7ff}
body[data-app=calendar]:not([data-app=home]) .calendar-hour-all-day{position:sticky;top:61px;z-index:3;background:#fff}
body[data-app=calendar]:not([data-app=home]) .calendar-all-day .calendar-week-event{position:relative;left:auto;right:auto;display:flex;align-items:center;flex:none;gap:3px;width:100%;min-width:0;max-width:100%;height:24px;min-height:24px;max-height:24px;margin:0;padding:3px 5px;box-sizing:border-box}
body[data-app=calendar]:not([data-app=home]) .calendar-all-day .calendar-week-event strong{flex:1;min-width:0;margin:0;line-height:16px}
body[data-app=calendar]:not([data-app=home]) .calendar-all-day .calendar-week-event .calendar-event-weather{top:5px}
body[data-app=calendar]:not([data-app=home]) .calendar-week-event[hidden],body[data-app=calendar]:not([data-app=home]) .calendar-event[hidden],.calendar-more[hidden]{display:none}
body[data-app=calendar]:not([data-app=home]) .calendar-grid .day{overflow:hidden;min-width:0}
body[data-app=calendar]:not([data-app=home]) .calendar-grid .calendar-event{height:24px;min-height:24px;max-height:24px;box-sizing:border-box}
body[data-app=calendar]:not([data-app=home]) .calendar-grid .calendar-event>.calendar-event-weather{position:absolute;top:4px;right:4px;margin:0;background:inherit}
body[data-app=calendar]:not([data-app=home]) .calendar-grid .calendar-event:has(>.calendar-event-weather:not([hidden])) .calendar-event-title{padding-right:38px}
.calendar-more{display:flex;align-items:center;justify-content:flex-start;flex:none;width:100%;min-width:0;max-width:100%;height:24px;min-height:24px;margin:0;padding:3px 7px;border:0;border-radius:5px;background:#edf3fd;color:#2b5fba;font:700 12px/18px Manrope,system-ui,sans-serif;text-align:left;white-space:nowrap;cursor:pointer;box-sizing:border-box}
.calendar-more:hover,.calendar-more[aria-expanded=true]{background:#dfeafd;color:#204e9a}
.calendar-more:focus-visible,.calendar-overflow-item:focus-visible,.calendar-overflow-close:focus-visible{outline:2px solid #2b5fba;outline-offset:2px}
.calendar-overflow-popover{position:fixed;z-index:85;display:flex;flex-direction:column;padding:16px;background:#fff;border:1px solid #dce5f2;border-radius:16px;box-shadow:0 14px 50px #233b6429,0 3px 10px #233b6410;color:#27313f;box-sizing:border-box;overflow:hidden;animation:calendar-popover-in .12s ease-out}
.calendar-overflow-popover[hidden]{display:none}
.calendar-overflow-popover>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex:none;height:auto;min-height:0;padding:0;border:0;background:transparent;color:inherit}
.calendar-overflow-popover h2{margin:2px 0 0;font:750 16px/1.4 Manrope,system-ui,sans-serif;text-transform:capitalize;overflow-wrap:anywhere}
.calendar-overflow-close{display:grid;place-items:center;flex:none;width:28px;height:28px;min-width:28px;min-height:28px;margin:0;padding:0;border:0;border-radius:7px;background:transparent;color:#6b7a91;font-size:24px;line-height:1;cursor:pointer}
.calendar-overflow-close:hover{background:#eef3fb}
.calendar-overflow-summary{flex:none;margin:3px 0 12px;color:#748298;font-size:12px;line-height:1.4}
.calendar-overflow-list{display:flex;flex-direction:column;gap:5px;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin}
.calendar-overflow-item{display:flex;align-items:flex-start;gap:10px;flex:none;width:100%;min-height:54px;padding:11px 10px;border:0;border-radius:9px;background:#f6f8fc;color:#27313f;text-align:left;font:inherit;cursor:pointer}
.calendar-overflow-item:hover,.calendar-overflow-item:focus-visible{background:#eaf1ff}
.calendar-overflow-item>span:last-child{flex:1;min-width:0}
.calendar-overflow-item strong{display:block;overflow-wrap:anywhere;font-size:14px;line-height:1.45;font-weight:650}
.calendar-overflow-item small{display:block;margin-top:3px;color:#6a7c94;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.calendar-overflow-dot{flex:none;width:8px;height:8px;margin-top:6px;border-radius:50%;background:#2b73d0}
.calendar-overflow-item[data-source=tasks] .calendar-overflow-dot{background:#6b50cd}
.calendar-overflow-item[data-source=planubia] .calendar-overflow-dot{background:#ed8842}
.calendar-overflow-item[data-source=finance] .calendar-overflow-dot{background:#b57526}
.calendar-overflow-item[data-source=group_calendar] .calendar-overflow-dot{background:#3d947c}
@media(max-width:760px),(max-height:740px){body[data-app=calendar]:not([data-app=home]) #calendar-content{--calendar-preview-count:2}}
@media(prefers-reduced-motion:reduce){.calendar-overflow-popover{animation:none}}
@keyframes calendar-popover-in{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}

/* Reserve the height for all 24 hours when toolbars have little room. */
@media(max-height:740px){
 body[data-app=calendar]:not([data-app=home]):has(.calendar-week) #main{padding:12px}
 body[data-app=calendar]:not([data-app=home]):has(.calendar-week) .calendar-board{padding:12px}
 body[data-app=calendar]:not([data-app=home]):has(.calendar-week) .calendar-board-toolbar{gap:6px;margin-bottom:8px}
 body[data-app=calendar]:not([data-app=home]):has(.calendar-week) .calendar-period{gap:4px}
 body[data-app=calendar]:not([data-app=home]):has(.calendar-week) .calendar-period h1{font-size:16px;margin:0}
 body[data-app=calendar]:not([data-app=home]):has(.calendar-week) .calendar-period button,
 body[data-app=calendar]:not([data-app=home]):has(.calendar-week) .view-tabs button{min-height:30px;padding:5px 8px}
 body[data-app=calendar]:not([data-app=home]):has(.calendar-week) .calendar-group-filter{flex:none;gap:6px;padding:0 0 8px;font-size:11px}
 body[data-app=calendar]:not([data-app=home]):has(.calendar-week) .calendar-group-filter label{gap:4px;font-size:11px}
 body[data-app=calendar]:not([data-app=home]):has(.calendar-week) .calendar-group-filter select{max-width:150px;font-size:11px;padding:5px}
 body[data-app=calendar]:not([data-app=home]):has(.calendar-week) .calendar-group-links{display:flex;align-items:center;gap:6px}
 body[data-app=calendar]:not([data-app=home]):has(.calendar-week) .calendar-group-links button{min-height:30px;padding:5px 8px;font-size:11px}
 body[data-app=calendar]:not([data-app=home]):has(.calendar-week) .calendar-footnote{margin-top:8px;font-size:10px;line-height:14px}
 body[data-app=calendar]:not([data-app=home]):has(.calendar-week) .calendar-usage-help,
 body[data-app=calendar]:not([data-app=home]):has(.calendar-week) .calendar-credit-label{display:none}
 body[data-app=calendar]:not([data-app=home]) .calendar-week-day header{display:grid;grid-template-columns:auto auto;grid-template-rows:22px 14px;justify-content:center;align-content:center;column-gap:5px;height:42px;min-height:42px;padding:2px}
 body[data-app=calendar]:not([data-app=home]) .calendar-week-day header>.calendar-day-weather{grid-column:1 / -1;height:14px;font-size:9px}
 body[data-app=calendar]:not([data-app=home]) .calendar-week-day header strong{font-size:14px}
 body[data-app=calendar]:not([data-app=home]) .calendar-week-day.is-today header strong{width:22px;height:22px}
 body[data-app=calendar]:not([data-app=home]) .calendar-hour-head{height:42px}
 body[data-app=calendar]:not([data-app=home]) .calendar-all-day,
 body[data-app=calendar]:not([data-app=home]) .calendar-hour-all-day{top:42px}
}
@media(max-height:620px){body[data-app=calendar]:not([data-app=home]) #calendar-content:has(.calendar-week){--calendar-preview-count:0}}
@media(max-width:760px) and (max-height:740px){
 body[data-app=calendar]:not([data-app=home]):has(.calendar-week) .workspace>.docs-topbar,
 body.embedded-app[data-app=calendar]:not([data-app=home]):has(.calendar-week) .workspace>.docs-topbar{grid-template-rows:36px 32px;height:76px;min-height:76px}
 body[data-app=calendar]:not([data-app=home]):has(.calendar-week) .calendar-search-weather #app-header-search,
 body[data-app=calendar]:not([data-app=home]):has(.calendar-week) .calendar-today-weather{height:30px}
 body[data-app=calendar]:not([data-app=home]):has(.calendar-week) #main{padding:8px}
 body[data-app=calendar]:not([data-app=home]):has(.calendar-week) .calendar-board{padding:10px}
 body[data-app=calendar]:not([data-app=home]):has(.calendar-week) .calendar-board-toolbar{gap:4px}
 body[data-app=calendar]:not([data-app=home]):has(.calendar-week) .calendar-period{flex-wrap:nowrap}
 body[data-app=calendar]:not([data-app=home]):has(.calendar-week) .calendar-period h1{flex:1;width:auto;font-size:12px;line-height:1.3}
 body[data-app=calendar]:not([data-app=home]):has(.calendar-week) .calendar-group-filter{display:grid;grid-template-columns:minmax(90px,1fr) auto}
 body[data-app=calendar]:not([data-app=home]):has(.calendar-week) .calendar-group-filter label{font-size:0;gap:0}
 body[data-app=calendar]:not([data-app=home]):has(.calendar-week) .calendar-group-filter select{width:100%;max-width:none}
}

/* Keep navigation wide and horizontal at every size, including Home embeds. */
body[data-app=calendar]:not([data-app=home]){--calendar-sidebar-width:156px;--calendar-nav-height:44px;--calendar-nav-gap:3px}
body[data-app=calendar]:not([data-app=home]) .shell,
body.embedded-app[data-app=calendar]:not([data-app=home]) .shell{grid-template-columns:var(--calendar-sidebar-width) minmax(0,1fr)}
body[data-app=calendar]:not([data-app=home]) #sidebar,
body.embedded-app[data-app=calendar]:not([data-app=home]) #sidebar{width:var(--calendar-sidebar-width);padding:10px 8px max(10px,env(safe-area-inset-bottom));min-height:0;overflow:visible}
body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-brand{flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;height:44px;min-height:44px;flex:none;margin:0 0 6px;padding:0 4px}
body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-brand>img{width:32px;height:32px}
body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-brand>span{display:block;min-width:0;white-space:normal;font:700 13px/1.2 Manrope,system-ui,sans-serif;letter-spacing:0}
body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-brand small{display:none}
body[data-app=calendar]:not([data-app=home]) #sidebar .app-local-nav{min-height:0;overflow:visible}
body[data-app=calendar]:not([data-app=home]) #sidebar #app-side-nav,
body[data-app=calendar]:not([data-app=home]) #sidebar .calendar-rail-views,
body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-bottom>.app-global-nav{gap:var(--calendar-nav-gap)}
body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-bottom{gap:var(--calendar-nav-gap);margin-top:8px;padding-top:8px}
body[data-app=calendar]:not([data-app=home]) #sidebar #app-side-nav .calendar-rail-views>button,
body[data-app=calendar]:not([data-app=home]) #sidebar #app-side-nav>button,
body[data-app=calendar]:not([data-app=home]) #sidebar .calendar-sources>summary,
body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-bottom .app-global-nav>a,
body[data-app=calendar]:not([data-app=home]) #sidebar #app-switcher-button,
body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-bottom>a{flex-direction:row;align-items:center;justify-content:flex-start;height:var(--calendar-nav-height);min-height:var(--calendar-nav-height);padding:6px 8px;gap:9px;border-radius:9px;text-align:left}
body[data-app=calendar]:not([data-app=home]) #sidebar #app-side-nav svg,
body[data-app=calendar]:not([data-app=home]) #sidebar .app-global-nav svg,
body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-bottom>a svg{width:20px;height:20px}
body[data-app=calendar]:not([data-app=home]) #sidebar #app-side-nav button>span,
body[data-app=calendar]:not([data-app=home]) #sidebar .calendar-sources summary>span,
body[data-app=calendar]:not([data-app=home]) #sidebar .app-global-nav a span,
body[data-app=calendar]:not([data-app=home]) #sidebar #app-switcher-button span,
body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-bottom>a span{font-size:13px;line-height:1.2;white-space:nowrap}
body[data-app=calendar]:not([data-app=home]) .calendar-sources-panel{left:calc(var(--calendar-sidebar-width) + 8px)}
@media(max-width:760px){
 body[data-app=calendar]:not([data-app=home]) .shell,body.embedded-app[data-app=calendar]:not([data-app=home]) .shell{grid-template-columns:minmax(0,1fr)}
 body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-close{margin-bottom:6px}
 body[data-app=calendar]:not([data-app=home]) .calendar-sources-panel{left:max(12px,min(calc(var(--calendar-sidebar-width) + 8px),calc(100vw - 292px)));width:min(280px,calc(100vw - 24px))}
}
@media(max-height:700px){
 body[data-app=calendar]:not([data-app=home]){--calendar-nav-height:40px}
 body[data-app=calendar]:not([data-app=home]) #sidebar,body.embedded-app[data-app=calendar]:not([data-app=home]) #sidebar{padding:8px}
 body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-brand{height:40px;min-height:40px;margin-bottom:4px}
 body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-brand>img{width:28px;height:28px}
 body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-bottom{margin-top:6px;padding-top:6px}
 body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-close{height:40px;min-height:40px;margin-bottom:4px}
}
@media(max-height:460px){
 body[data-app=calendar]:not([data-app=home]){--calendar-nav-height:34px;--calendar-nav-gap:2px}
 body[data-app=calendar]:not([data-app=home]) #sidebar,body.embedded-app[data-app=calendar]:not([data-app=home]) #sidebar{padding:6px}
 body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-brand,body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-close{height:32px;min-height:32px;margin-bottom:2px}
 body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-bottom{margin-top:4px;padding-top:4px}
}
@media(max-height:340px){body[data-app=calendar]:not([data-app=home]){--calendar-nav-height:28px}body[data-app=calendar]:not([data-app=home]) #sidebar,body.embedded-app[data-app=calendar]:not([data-app=home]) #sidebar{padding:4px 6px}body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-brand,body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-close{height:28px;min-height:28px}body[data-app=calendar]:not([data-app=home]) #sidebar #app-side-nav .calendar-rail-views>button,body[data-app=calendar]:not([data-app=home]) #sidebar #app-side-nav>button,body[data-app=calendar]:not([data-app=home]) #sidebar .calendar-sources>summary,body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-bottom .app-global-nav>a,body[data-app=calendar]:not([data-app=home]) #sidebar #app-switcher-button,body[data-app=calendar]:not([data-app=home]) #sidebar .app-side-bottom>a{padding-top:3px;padding-bottom:3px}}

.calendar-day-top .calendar-create-day{border:0;background:transparent;color:inherit;font:inherit;padding:2px 6px;min-height:28px;min-width:28px;border-radius:6px;cursor:pointer}.calendar-day-top .calendar-create-day:hover,.calendar-day-top .calendar-create-day:focus-visible{background:var(--surface-hover,#eef2ff);outline:2px solid var(--primary,#3159d7);outline-offset:1px}
