/* Keep the agenda's teal identity while keeping controls legible regardless of the landing-page theme. */
body.app-page.v25{
  color-scheme:dark;--bg:#0e272e;--surface:#15373e;--surface-2:#1d454b;
  --ink:#f2f8f6;--muted:#bdd3cf;--brand:#91e7da;--brand-strong:#b0f0e2;--navy:#0a232a;
  --line:#47666b;--danger:#ffadb7;--red:#ffadb7;--paper:#0e272e;--card:#15373e;
}
body.app-page.v25 #dashboard .welcome{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
body.app-page.v25 #dashboard .welcome > a{flex:none;white-space:nowrap;min-height:44px}
body.app-page.v25 #dashboard .welcome > div{flex:1}
body.app-page.v25 #smartQuickText::placeholder{color:#c3d8d5;opacity:1}
body.app-page.v25 #calendarSearch::placeholder{color:#c3d8d5;opacity:1}
body.app-page.v25 .focus-copy .eyebrow{color:var(--calm-mint)}
body.app-page.v25 #pageTitle:focus-visible{outline:2px solid var(--calm-gold);outline-offset:3px}
body.app-page.v25 .calendar-tools{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}
body.app-page.v25 .calendar-tools .agenda-date-control{grid-column:auto}
body.app-page.v25 .calendar-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}
body.app-page.v25 .calendar-tabs button{min-width:0;padding:4px 2px;color:var(--ink)}
body.app-page.v25 .calendar-tabs button.active{background:#286067;color:#fff}
body.app-page.v25 .month-grid{grid-template-columns:minmax(0,1fr);background:var(--line)}
body.app-page.v25 .month-grid > .month-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-height:0;padding:0;gap:1px;background:var(--line)}
body.app-page.v25 .month-row > :is([role="gridcell"],.weekday){min-width:0;padding:5px 3px;background:var(--surface);color:var(--ink)}
body.app-page.v25 .month-row > .weekday{background:var(--surface-2);color:var(--ink)}
body.app-page.v25 .month-row > .outside{background:var(--bg)}
body.app-page.v25 .month-row > [role="gridcell"].today{box-shadow:inset 0 0 0 2px var(--brand)}
body.app-page.v25 .month-day-button{color:var(--ink)}
body.landing-v25 .feature-card .number{color:var(--brand-strong)}
body.landing-v25 .site-footer .footer-inner{color:#c6d9d7}
body.status-page .status-row{align-items:center;min-width:0}
body.status-page .status-row > *{min-width:0;overflow-wrap:anywhere}
body.status-page .status-row .state{text-align:right}
html[data-theme=dark] body.status-page .checking{color:#f4d890}
html[data-theme=dark] body.status-page .healthy{color:#a1e9d8}
html[data-theme=dark] body.status-page .degraded{color:#ffb1b1}
html[data-theme=dark] body.status-page .unknown{color:#c9dbd8}
@media (max-width:440px){
  body.app-page.v25 #dashboard .welcome{flex-direction:column}
  body.app-page.v25 .calendar-tools{grid-template-columns:minmax(0,1fr)}
  body.status-page .status-row{display:grid;gap:4px}
  body.status-page .status-row .state{text-align:left}
}
@media (max-width:380px){
  body.landing-v25 .site-nav{gap:7px}
  body.landing-v25 .site-brand{gap:6px;min-width:0;font-size:.88rem}
  body.landing-v25 .site-brand .brand-mark{width:32px;height:32px;flex:0 0 32px}
  body.landing-v25 .site-actions{gap:5px}
  body.landing-v25 .site-actions .btn-premium{padding:6px 8px;white-space:nowrap}
  body.landing-v25 .theme-toggle{width:33px;height:36px}
  body.app-page.v25 .calendar-tabs button{font-size:.68rem}
}
body.app-page.v25 :is(#quickAdd,.agenda-shortcuts .primary,#enableNotifications,.home-notification-action.btn.primary){color:#09282a}
body.app-page.v25 .focus-date :is(strong,span){color:#09282a}
body.app-page.v25 [data-calview="past"]{grid-column:auto}
body.landing-v25 .returning-user{font-size:.9rem;color:#deeeeb;margin:12px 0}
body.landing-v25 .returning-user a{color:#a7f2e7;font-weight:800;text-underline-offset:3px}
html[data-theme=dark] body.onboarding-v29 .progress li[aria-current=step] > span{color:#a7f2e7}

/* Keep the icon and the whole label inside the mobile menu control. */
@media(max-width:700px){
  body.app-page.v25 .topbar #mobileMenuTrigger{
    flex:none;
    inline-size:max-content;
    min-inline-size:max-content;
    max-inline-size:none;
    padding-inline:10px;
    column-gap:7px;
    white-space:nowrap;
  }
  body.app-page.v25 #mobileMenuTrigger>img,
  body.app-page.v25 #mobileMenuTrigger>span{flex:none}
}
body.app-page.v25 #dashboard a.dashboard-clock-link{text-decoration:none}
