/* Desktop Dashboard r82. Intentionally never overrides mobile/tablet greeting or billing/data behavior. */
@media (min-width:1101px){
  html:is([data-dashboard-preview="bento"],:not([data-dashboard-preview="bento"])) body.shell-app #appShell .view[data-page="today"] #todayHeroCard{
    width:100%!important;min-height:0!important;height:auto!important;
    padding:clamp(20px,2.15vw,30px) clamp(24px,2.5vw,38px)!important;
    margin-bottom:12px!important;border-radius:25px!important;
    box-shadow:0 12px 34px rgba(23,42,54,.07),inset 0 1px 0 rgba(255,255,255,.38)!important;
    isolation:isolate;overflow:hidden!important;
  }
  html:is([data-dashboard-preview="bento"],:not([data-dashboard-preview="bento"])) body.shell-app #appShell .view[data-page="today"] #todayHeroCard .hero-ecosystem{
    display:block!important;min-height:0!important;width:100%!important;
  }
  html:is([data-dashboard-preview="bento"],:not([data-dashboard-preview="bento"])) body.shell-app #appShell .view[data-page="today"] #todayHeroCard .hero-greeting-zone{
    display:grid!important;width:100%!important;max-width:none!important;min-height:0!important;
    grid-template-columns:minmax(0,1.22fr) minmax(250px,.78fr)!important;
    grid-template-rows:auto auto auto auto!important;
    grid-template-areas:"top top" "greeting weather" "action alert" "route route"!important;
    column-gap:clamp(20px,3.7vw,64px)!important;row-gap:12px!important;
    align-items:center!important;justify-items:stretch!important;text-align:left!important;padding:0!important;
  }
  html:is([data-dashboard-preview="bento"],:not([data-dashboard-preview="bento"])) body.shell-app #appShell .view[data-page="today"] #todayHeroCard .hero-card-topline{
    grid-area:top!important;grid-column:1/-1!important;grid-row:1!important;
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    gap:12px!important;width:100%!important;min-height:0!important;margin:0 0 3px!important;padding:0!important;
  }
  html:is([data-dashboard-preview="bento"],:not([data-dashboard-preview="bento"])) body.shell-app #appShell .view[data-page="today"] #todayHeroCard .hero-sky-badge{
    position:relative!important;inset:auto!important;transform:none!important;margin:0!important;
    flex:0 0 48px!important;width:48px!important;height:48px!important;pointer-events:none;
  }
  html:is([data-dashboard-preview="bento"],:not([data-dashboard-preview="bento"])) body.shell-app #appShell .view[data-page="today"] #todayHeroCard .today-clock{
    min-width:0!important;width:max-content!important;max-width:100%!important;margin:0!important;
    padding:8px 12px!important;border-radius:12px!important;
  }
  html:is([data-dashboard-preview="bento"],:not([data-dashboard-preview="bento"])) body.shell-app #appShell .view[data-page="today"] #todayHeroCard .today-clock-copy strong{
    font-size:15px!important;font-weight:650!important;line-height:1.2!important;font-variant-numeric:tabular-nums;
  }
  html:is([data-dashboard-preview="bento"],:not([data-dashboard-preview="bento"])) body.shell-app #appShell .view[data-page="today"] #todayHeroCard .today-clock-copy small{
    font-size:11px!important;line-height:1.35!important;font-weight:500!important;
  }
  html:is([data-dashboard-preview="bento"],:not([data-dashboard-preview="bento"])) body.shell-app #appShell .view[data-page="today"] #todayHeroCard .today-greeting-first{
    grid-area:greeting!important;grid-column:1!important;grid-row:2!important;
    min-width:0!important;width:100%!important;margin:0!important;text-align:left!important;align-self:center!important;
  }
  html:is([data-dashboard-preview="bento"],:not([data-dashboard-preview="bento"])) body.shell-app #appShell .view[data-page="today"] #todayHeroCard #todayGreeting{
    max-width:650px!important;margin:0 0 8px!important;padding:0!important;
    font-family:"Prompt","Avenir Next","Segoe UI",sans-serif!important;
    font-size:clamp(27px,2.45vw,39px)!important;font-weight:600!important;
    line-height:1.17!important;letter-spacing:-.038em!important;text-wrap:balance;
    overflow-wrap:break-word;color:inherit!important;
  }
  html:is([data-dashboard-preview="bento"],:not([data-dashboard-preview="bento"])) body.shell-app #appShell .view[data-page="today"] #todayHeroCard #todayMomentCopy{
    max-width:550px!important;margin:0!important;
    font-family:"Avenir Next","Segoe UI",ui-sans-serif,sans-serif!important;
    font-size:14px!important;font-weight:450!important;line-height:1.55!important;
    letter-spacing:0!important;color:inherit!important;opacity:.85!important;
  }
  html:is([data-dashboard-preview="bento"],:not([data-dashboard-preview="bento"])) body.shell-app #appShell .view[data-page="today"] #todayHeroCard #todayHeroAction{
    grid-area:action!important;grid-column:1!important;grid-row:3!important;
    justify-self:start!important;align-self:start!important;min-height:43px!important;height:auto!important;
    width:max-content!important;max-width:100%!important;margin:2px 0 0!important;padding:10px 17px!important;
    border-radius:12px!important;font-family:"Avenir Next","Segoe UI",sans-serif!important;
    font-size:13px!important;font-weight:650!important;letter-spacing:0!important;white-space:normal!important;
  }
  html:is([data-dashboard-preview="bento"],:not([data-dashboard-preview="bento"])) body.shell-app #appShell .view[data-page="today"] #todayHeroCard .weather-brief{
    grid-area:weather!important;grid-column:2!important;grid-row:2!important;
    justify-self:stretch!important;align-self:center!important;
    width:100%!important;max-width:none!important;min-width:0!important;min-height:0!important;
    margin:0!important;padding:16px 17px!important;border-radius:17px!important;text-align:left!important;
    background:rgba(255,255,255,.22)!important;
    box-shadow:inset 0 0 0 1px rgba(25,25,25,.075)!important;
    backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  }
  html:is([data-dashboard-preview="bento"],:not([data-dashboard-preview="bento"])) body.shell-app #appShell .view[data-page="today"] #todayHeroCard .weather-temp-row strong{
    font-size:clamp(24px,2.2vw,31px)!important;line-height:1.15!important;font-weight:650!important;
  }
  html:is([data-dashboard-preview="bento"],:not([data-dashboard-preview="bento"])) body.shell-app #appShell .view[data-page="today"] #todayHeroCard #weatherLocation{
    font-size:10px!important;letter-spacing:.09em!important;font-weight:650!important;
  }
  html:is([data-dashboard-preview="bento"],:not([data-dashboard-preview="bento"])) body.shell-app #appShell .view[data-page="today"] #todayHeroCard .weather-condition-stack span{
    font-size:12px!important;line-height:1.35!important;
  }
  html:is([data-dashboard-preview="bento"],:not([data-dashboard-preview="bento"])) body.shell-app #appShell .view[data-page="today"] #todayHeroCard .hero-weather-alert{
    grid-area:alert!important;grid-column:2!important;grid-row:3!important;
    min-width:0!important;width:100%!important;max-width:none!important;margin:0!important;
    font-size:11px!important;line-height:1.45!important;
  }
  html:is([data-dashboard-preview="bento"],:not([data-dashboard-preview="bento"])) body.shell-app #appShell .view[data-page="today"] #todayHeroCard .hero-route-chip{
    grid-area:route!important;grid-column:1/-1!important;grid-row:4!important;
    position:relative!important;inset:auto!important;justify-self:start!important;margin:0!important;font-size:12px!important;
  }
  body.shell-app #appShell .view[data-page="today"] #businessPulse .pulse-card>span{
    font-size:12px!important;line-height:1.45!important;
  }
  body.shell-app #appShell .view[data-page="today"] #businessPulse .pulse-card>small{
    font-size:11px!important;line-height:1.4!important;
  }
}
/* Desktop rail stays visible on every authenticated page, including after viewport changes. */
@media (min-width:861px){
  html body.shell-app #appShell:not([hidden]){
    display:grid!important;grid-template-columns:var(--tle-fixed-sidebar-width,220px) minmax(0,1fr)!important;min-width:0!important;
  }
  html body.shell-app #appShell:not([hidden])>#sidebar.sidebar{
    position:fixed!important;display:flex!important;flex-direction:column!important;
    top:0!important;left:0!important;right:auto!important;bottom:auto!important;
    width:var(--tle-fixed-sidebar-width,220px)!important;min-width:var(--tle-fixed-sidebar-width,220px)!important;
    max-width:var(--tle-fixed-sidebar-width,220px)!important;height:100dvh!important;max-height:100dvh!important;
    overflow-x:hidden!important;overflow-y:auto!important;visibility:visible!important;opacity:1!important;
    pointer-events:auto!important;transform:none!important;-webkit-transform:none!important;z-index:45!important;
  }
  html body.shell-app #appShell:not([hidden])>.main{
    grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;max-width:100%!important;
  }
}


/* Final two-row desktop composition; keeps the greeting under the bento density gate. */
@media (min-width:1101px){
  html:is([data-dashboard-preview="bento"],:not([data-dashboard-preview="bento"])) body.shell-app #appShell .view[data-page="today"] #todayHeroCard{
    padding:14px clamp(22px,2.2vw,32px)!important;
  }
  html:is([data-dashboard-preview="bento"],:not([data-dashboard-preview="bento"])) body.shell-app #appShell .view[data-page="today"] #todayHeroCard .hero-greeting-zone{
    grid-template-rows:auto auto auto auto!important;
    grid-template-areas:"greeting top" "action weather" "alert alert" "route route"!important;
    row-gap:7px!important;
  }
  html:is([data-dashboard-preview="bento"],:not([data-dashboard-preview="bento"])) body.shell-app #appShell .view[data-page="today"] #todayHeroCard .hero-card-topline{
    grid-area:top!important;grid-column:2!important;grid-row:1!important;
    justify-content:flex-end!important;align-self:center!important;margin:0!important;
  }
  html:is([data-dashboard-preview="bento"],:not([data-dashboard-preview="bento"])) body.shell-app #appShell .view[data-page="today"] #todayHeroCard .today-greeting-first{
    grid-area:greeting!important;grid-column:1!important;grid-row:1!important;
  }
  html:is([data-dashboard-preview="bento"],:not([data-dashboard-preview="bento"])) body.shell-app #appShell .view[data-page="today"] #todayHeroCard #todayGreeting{
    font-size:clamp(27px,2.1vw,32px)!important;margin:0 0 5px!important;
  }
  html:is([data-dashboard-preview="bento"],:not([data-dashboard-preview="bento"])) body.shell-app #appShell .view[data-page="today"] #todayHeroCard #todayMomentCopy{
    font-size:13px!important;line-height:1.4!important;
  }
  html:is([data-dashboard-preview="bento"],:not([data-dashboard-preview="bento"])) body.shell-app #appShell .view[data-page="today"] #todayHeroCard #todayHeroAction{
    grid-area:action!important;grid-column:1!important;grid-row:2!important;
    align-self:center!important;min-height:41px!important;margin:0!important;
  }
  html:is([data-dashboard-preview="bento"],:not([data-dashboard-preview="bento"])) body.shell-app #appShell .view[data-page="today"] #todayHeroCard .weather-brief{
    grid-area:weather!important;grid-column:2!important;grid-row:2!important;
    padding:9px 12px!important;
  }
  html:is([data-dashboard-preview="bento"],:not([data-dashboard-preview="bento"])) body.shell-app #appShell .view[data-page="today"] #todayHeroCard .hero-weather-alert{
    grid-area:alert!important;grid-column:1/-1!important;grid-row:3!important;
    max-width:none!important;
  }
  html:is([data-dashboard-preview="bento"],:not([data-dashboard-preview="bento"])) body.shell-app #appShell .view[data-page="today"] #todayHeroCard .hero-route-chip{
    grid-area:route!important;grid-column:1/-1!important;grid-row:4!important;
  }
}
