/* Responsive Astrolinia Engine overview.
   Desktop (>1500px and sufficient height) preserves the approved scene.
   Compact screens use document flow: content is never clipped or layered over cards. */
@media (max-width:1500px), (max-height:790px) {
  .ae-app--overview .ae-main {
    display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,34%);
    grid-template-rows:auto auto auto auto;align-content:start;
    gap:12px;padding:13px;overflow-x:hidden;overflow-y:auto;
    height:100%;min-height:0;
  }
  .ae-app--overview .ae-dash__intro {
    grid-column:1/-1;grid-row:1;max-width:none;
    padding:0;min-width:0;pointer-events:auto;
  }
  .ae-app--overview .ae-dash__intro h1{font-size:clamp(27px,3vw,38px)}
  .ae-app--overview .ae-cosmic-stage{
    grid-column:1;grid-row:2;
    position:relative;top:auto;bottom:auto;left:auto;right:auto;
    height:auto;max-height:none;min-height:0;
    aspect-ratio:1/1;width:min(100%,480px);margin:0 auto;
    overflow:visible;z-index:1;
  }
  .ae-app--overview .ae-cosmic-stage__diagram{
    position:relative;top:auto;left:auto;
    width:100%;height:100%;max-width:100%;max-height:none;
    transform:none;transform-origin:center;filter:none;
  }
  .ae-app--overview .ae-right-rail {
    grid-column:2;grid-row:2 / span 2;
    position:relative;top:auto;left:auto;right:auto;bottom:auto;
    display:flex;flex-direction:column;gap:10px;
    width:100%;height:auto;max-height:none;min-height:0;
    overflow:visible;z-index:2;
  }
  .ae-app--overview .ae-sky-summary,
  .ae-app--overview .ae-day-energies {
    position:relative;top:auto;left:auto;right:auto;bottom:auto;
    width:100%;max-width:none;min-width:0;margin:0;transform:none;
    grid-column:1;z-index:3;
  }
  .ae-app--overview .ae-sky-summary{grid-row:3}
  .ae-app--overview .ae-day-energies{grid-row:4}
  .ae-app--overview .ae-bottom-five{
    position:relative;grid-column:1/-1;grid-row:5;
    top:auto;bottom:auto;left:auto;right:auto;
    transform:none;margin:0;width:100%;height:clamp(150px,20dvh,210px);
    display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;
    align-self:start;justify-self:stretch;
  }
  .ae-app--overview .ae-bottom-tile{width:100%}
  .ae-app--overview .ae-week-preview{grid-column:3/span 3}
  .ae-app--overview .ae-chart__meta{bottom:-12px}
  .ae-app--overview .ae-right-rail .ae-cosmic-promo{height:auto;min-height:160px}
  .ae-app--overview .ae-right-rail .ae-cosmic-promo__inner{height:auto;min-height:160px}
  .ae-app--overview .ae-dash[hidden]{display:none}
}
@media (min-width:701px) and (max-width:1059px) {
  .ae-app--overview .ae-shell__body{min-height:0}
  .ae-app--overview .ae-main{height:auto;min-height:calc(100dvh - 120px);overflow-y:visible}
  .ae-app--overview .ae-cosmic-stage{position:relative;top:auto;left:auto;right:auto;margin:0 auto;height:auto;max-height:none}
}
@media (max-width:700px) {
  html:has(body.ae-app--overview),body.ae-app--overview {height:auto;overflow-x:hidden;overflow-y:auto}
  .ae-app--overview .ae-shell,.ae-app--overview .ae-shell__body,.ae-app--overview .ae-content{height:auto;min-height:0;overflow:visible}
  .ae-app--overview .ae-topbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:8px 12px;height:auto}
  .ae-app--overview .ae-brand--above-menu{max-width:180px}
  .ae-app--overview .ae-brand__logo--full{width:100%;max-width:180px}
  .ae-app--overview .ae-settings.ae-settings--topbar{display:flex;flex:1 1 100%;justify-content:space-between;gap:7px;max-height:none;padding:3px 0;margin:0;overflow:visible}
  .ae-app--overview .ae-clock__primary{flex-wrap:wrap;gap:6px}
  .ae-app--overview .ae-clock__reading time:last-child{font-size:16px}
  .ae-app--overview .ae-login{margin-left:auto;min-width:0}
  .ae-app--overview .ae-sidebar{height:auto;max-height:none;overflow:visible;padding:6px 9px}
  .ae-app--overview .ae-primary-nav{display:flex;overflow-x:auto;overscroll-behavior-x:contain;flex-wrap:nowrap;gap:5px;padding-bottom:4px}
  .ae-app--overview .ae-primary-nav a{flex:0 0 auto;white-space:nowrap;min-height:37px}
  .ae-app--overview .ae-sidebar__eyebrow--groups,.ae-app--overview .ae-primary-nav--secondary,.ae-app--overview .ae-sidebar__bottom{display:none}
  .ae-app--overview .ae-main{
    display:flex;flex-direction:column;gap:12px;padding:12px 10px 20px;
    overflow:visible;height:auto;min-height:0;
  }
  .ae-app--overview .ae-dash__intro{order:0;max-width:100%;width:100%}
  .ae-app--overview .ae-dash__intro h1{font-size:clamp(25px,7vw,35px)}
  .ae-app--overview .ae-dash__intro .ae-dash__summary{max-width:100%}
  .ae-app--overview .ae-cosmic-stage{
    order:1;position:relative;inset:auto;
    aspect-ratio:1;width:min(92vw,430px);height:auto;max-height:none;
    margin:0 auto 10px;
  }
  .ae-app--overview .ae-cosmic-stage__diagram{transform:none;width:100%;height:100%;position:relative;inset:auto}
  .ae-app--overview .ae-chart__meta{bottom:-14px;font-size:7px;max-width:95%}
  .ae-app--overview .ae-sky-summary{order:2;width:100%;margin:0}
  .ae-app--overview .ae-day-energies{order:3;width:100%;margin:0}
  .ae-app--overview .ae-right-rail{
    order:4;display:flex;flex-direction:column;gap:10px;
    width:100%;height:auto;max-height:none;overflow:visible;margin:0;
  }
  .ae-app--overview .ae-bottom-five{
    order:5;position:relative;inset:auto;transform:none;width:100%;height:auto;
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0;
  }
  .ae-app--overview .ae-bottom-tile{height:175px;width:100%;min-width:0}
  .ae-app--overview .ae-week-preview{grid-column:1/-1;min-height:150px;height:150px}
  .ae-app--overview .ae-right-rail .ae-cosmic-promo{height:auto;min-height:160px}
  .ae-app--overview .ae-right-rail .ae-cosmic-promo__inner{height:auto;min-height:160px}
}
@media(max-width:390px){
  .ae-app--overview .ae-cosmic-stage{width:100%}
  .ae-app--overview .ae-bottom-tile{height:160px;padding:7px}
  .ae-app--overview .ae-bottom-tile__heading{font-size:13px}
  .ae-app--overview .ae-bottom-tile__corner-value{font-size:18px}
}

/* Correct compact-layout grid ownership */

/* Correct compact-layout grid ownership and prevent legacy absolute positioning
   from swallowing the map, floating the footer row or overlaying the intro. */
@media (min-width:701px) and (max-width:1700px), (min-width:701px) and (max-height:900px){
  .ae-app--overview .ae-main{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(275px,32%)!important;
    grid-template-rows:auto auto auto auto auto!important;
    gap:12px!important;
    align-content:start!important;
    height:100%!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding:14px!important;
  }
  .ae-app--overview .ae-dash__intro{
    position:relative!important;
    grid-column:1/-1!important;grid-row:1!important;
    height:auto!important;max-width:none!important;
    padding:0!important;margin:0!important;
    z-index:2!important;
  }
  .ae-app--overview .ae-cosmic-stage{
    position:relative!important;inset:auto!important;
    grid-column:1!important;grid-row:2!important;
    width:min(100%,490px)!important;height:auto!important;
    aspect-ratio:1!important;
    min-height:300px!important;max-height:none!important;
    margin:0 auto 14px!important;overflow:visible!important;
    z-index:1!important;
  }
  .ae-app--overview .ae-cosmic-stage__diagram{
    position:absolute!important;inset:0!important;
    width:100%!important;height:100%!important;
    aspect-ratio:1!important;max-width:100%!important;max-height:100%!important;
    transform:none!important;opacity:1!important;
  }
  .ae-app--overview .ae-right-rail{
    position:relative!important;inset:auto!important;transform:none!important;
    grid-column:2!important;grid-row:2/span 3!important;
    width:100%!important;height:auto!important;max-height:none!important;
    min-height:0!important;overflow:visible!important;align-self:start!important;
    z-index:2!important;
  }
  .ae-app--overview .ae-sky-summary{
    position:relative!important;inset:auto!important;transform:none!important;
    grid-column:1!important;grid-row:3!important;
    width:100%!important;max-width:none!important;margin:0!important;
  }
  .ae-app--overview .ae-day-energies{
    position:relative!important;inset:auto!important;transform:none!important;
    grid-column:1!important;grid-row:4!important;
    width:100%!important;max-width:none!important;margin:0!important;
  }
  .ae-app--overview .ae-bottom-five{
    position:relative!important;inset:auto!important;transform:none!important;
    grid-column:1/-1!important;grid-row:5!important;
    width:100%!important;height:180px!important;
    display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
    align-self:start!important;margin:0!important;
  }
  .ae-app--overview .ae-week-preview{grid-column:3/span 3!important}
}
@media(max-width:700px){
  .ae-app--overview .ae-cosmic-stage{
    height:auto!important;min-height:0!important;
    aspect-ratio:1!important;position:relative!important;
    width:min(100%,430px)!important;margin:0 auto 17px!important;
  }
  .ae-app--overview .ae-cosmic-stage__diagram{
    position:absolute!important;inset:0!important;
    width:100%!important;height:100%!important;
    transform:none!important;
  }
  .ae-app--overview .ae-sky-summary,
  .ae-app--overview .ae-day-energies,
  .ae-app--overview .ae-right-rail,
  .ae-app--overview .ae-bottom-five{
    position:relative!important;inset:auto!important;
    transform:none!important;width:100%!important;
    max-width:none!important;margin:0!important;
  }
  .ae-app--overview .ae-bottom-five{
    height:auto!important;display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .ae-app--overview .ae-week-preview{grid-column:1/-1!important}
}

/* Compact desktop: the document, not the clipped dashboard viewport, scrolls.
   The full-height fixed grid from engine-viewport-layout must be released. */
@media (min-width:701px) and (max-width:1700px), (min-width:701px) and (max-height:900px){
 html:has(body.ae-app--overview){height:auto!important;min-height:100%;overflow-x:hidden!important;overflow-y:auto!important}
 body.ae-app--overview{height:auto!important;min-height:100dvh!important;overflow-x:hidden!important;overflow-y:auto!important}
 .ae-app--overview .ae-shell{
   height:auto!important;min-height:100dvh!important;overflow:visible!important;
   display:flex!important;flex-direction:column!important;
 }
 .ae-app--overview .ae-topbar{flex:0 0 auto;min-height:66px}
 .ae-app--overview .ae-shell__body{
   height:auto!important;min-height:calc(100dvh - 76px)!important;
   overflow:visible!important;align-items:stretch!important;
 }
 .ae-app--overview .ae-content{
   height:auto!important;min-height:0!important;overflow:visible!important;
   display:block!important;
 }
 .ae-app--overview .ae-main{
   height:auto!important;min-height:0!important;overflow:visible!important;
   align-content:start!important;
 }
 .ae-app--overview .ae-right-rail{grid-row:2 / 5!important}
 .ae-app--overview .ae-bottom-five{grid-row:5!important}
 .ae-app--overview .ae-dash__intro{z-index:5!important}
}

/* Laptop/compact desktop: start the observation rail alongside the intro,
   not below it. The approved wide-desktop layout is unaffected. */
@media (min-width:701px) and (max-width:1700px), (min-width:701px) and (max-height:900px){
  .ae-app--overview .ae-dash__intro{
    grid-column:1!important;
    grid-row:1!important;
    min-width:0!important;
  }
  .ae-app--overview .ae-right-rail{
    grid-column:2!important;
    grid-row:1 / span 4!important;
    align-self:start!important;
    margin-top:0!important;
  }
}

/* Mobile: lift the empty editorial panel out of the bottom-card grid
   and place it immediately after Sky Signals, without altering desktop. */
@media(max-width:700px){
  .ae-app--overview .ae-bottom-five{
    display:contents!important;
  }
  .ae-app--overview .ae-sky-summary{order:2!important}
  .ae-app--overview .ae-week-preview{
    order:3!important;
    width:100%!important;
    min-height:150px!important;
    height:150px!important;
    box-sizing:border-box;
  }
  .ae-app--overview .ae-day-energies{order:4!important}
  .ae-app--overview .ae-right-rail{order:5!important}
  .ae-app--overview .ae-bottom-tile{
    order:6!important;
    width:100%!important;
  }
}

/* Small-screen hamburger navigation: hidden by default, accessible on demand. */
.ae-mobile-menu-toggle{display:none}
@media(max-width:700px){
  .ae-app .ae-shell__body{display:flex!important;flex-direction:column!important}
  .ae-mobile-menu-toggle{
    display:flex;align-items:center;gap:10px;
    align-self:stretch;margin:5px 10px;padding:11px 14px;
    border:1px solid #ba7f9d;border-radius:8px;
    background:#421638;color:#fff5fa;
    font:600 14px/1.15 "Segoe UI",sans-serif;
    cursor:pointer;text-align:left;
  }
  .ae-mobile-menu-toggle__bars{display:flex;flex-direction:column;justify-content:center;gap:4px;width:21px;height:20px}
  .ae-mobile-menu-toggle__bars i{display:block;width:21px;height:2px;background:currentColor;border-radius:2px}
  .ae-mobile-menu-toggle[aria-expanded="true"]{background:#743358}
  .ae-mobile-menu-toggle:focus-visible{outline:3px solid #daa5c7;outline-offset:2px}
  .ae-app .ae-sidebar{display:none!important}
  .ae-app .ae-shell__body:has(.ae-mobile-menu-toggle[aria-expanded="true"])>.ae-sidebar{
    display:block!important;margin:0 10px 7px;padding:10px;
    background:#32122d;border-radius:8px;
  }
  .ae-app .ae-sidebar .ae-primary-nav{display:grid!important;grid-template-columns:1fr!important;overflow:visible!important;gap:4px}
  .ae-app .ae-sidebar .ae-primary-nav a{white-space:normal!important;min-height:42px}
  .ae-app .ae-sidebar .ae-primary-nav--secondary{display:grid!important}
  .ae-app .ae-sidebar .ae-sidebar__eyebrow--groups{display:block!important}
  .ae-app .ae-sidebar .ae-sidebar__more{display:block!important}
}

/* 2026-11: Three matching empty editorial panels replace luminary teasers.
   Keep the right observation rail on desktop; fill the entire bottom canvas. */
@media(min-width:701px){
  .ae-app--overview .ae-bottom-five.ae-bottom-five--three{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:10px!important;
    align-items:stretch!important;
  }
  .ae-app--overview .ae-bottom-five--three>.ae-week-preview{
    grid-column:auto!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;min-height:0!important;
    align-self:stretch!important;
  }
}
@media(max-width:700px){
  /* Mobile gets three actual panels rather than display:contents
     so the cards remain adjacent in a single accessible group. */
  .ae-app--overview .ae-bottom-five.ae-bottom-five--three{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:7px!important;
    width:100%!important;
    height:auto!important;min-height:130px!important;
    position:relative!important;
    transform:none!important;
    order:3!important;
  }
  .ae-app--overview .ae-bottom-five--three>.ae-week-preview{
    grid-column:auto!important;
    grid-row:auto!important;
    order:initial!important;
    width:100%!important;
    height:140px!important;min-height:140px!important;
    padding:6px!important;
  }
}
/* The large guide now owns the space freed by the deleted phone advert.
   Distribute copy and the link vertically rather than crowding the header. */
.ae-app--overview .ae-right-rail .ae-cosmic-promo{
  flex:1 0 auto!important;
  height:clamp(235px,29dvh,355px)!important;
  min-height:235px!important;
  background-position:center,60% center!important;
}
.ae-app--overview .ae-right-rail .ae-cosmic-promo__inner{
  height:100%!important;min-height:0!important;
  padding:clamp(14px,1.2vw,22px)!important;
  display:flex!important;flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:12px!important;
}
.ae-app--overview .ae-cosmic-promo h2{font-size:clamp(18px,1.45vw,24px)!important}
.ae-app--overview .ae-cosmic-promo p{
  font-size:clamp(12px,.88vw,14px)!important;
  line-height:1.45!important;
  max-width:78%!important;
}
.ae-app--overview .ae-cosmic-promo__action{
  padding:8px 13px!important;font-size:12px!important;
  margin-top:0!important;
}
.ae-app--overview .ae-cosmic-promo blockquote{
  max-width:90%!important;
  font-size:clamp(12px,.9vw,14px)!important;
  line-height:1.35!important;
  margin:0!important;
}
@media(max-width:700px){
  .ae-app--overview .ae-right-rail .ae-cosmic-promo{
    height:280px!important;min-height:280px!important;
  }
  .ae-app--overview .ae-cosmic-promo p{max-width:75%!important}
}

/* The enlarged guide is taller than the old rail. Grid span must contribute
   its full intrinsic height; min-height:0 previously let the rail overflow
   rows 1–4 while the bottom panels started too early. */
@media (min-width:701px) and (max-width:1700px), (min-width:701px) and (max-height:900px){
  .ae-app--overview .ae-main{
    grid-template-rows:repeat(4,max-content) max-content!important;
    align-items:start!important;
  }
  .ae-app--overview .ae-right-rail{
    grid-column:2!important;grid-row:1 / 5!important;
    min-height:max-content!important;
    height:max-content!important;
    align-self:stretch!important;
    overflow:visible!important;
  }
  .ae-app--overview .ae-bottom-five.ae-bottom-five--three{
    grid-column:1 / -1!important;grid-row:5!important;
    margin-top:12px!important;
    position:relative!important;
    z-index:1!important;
  }
}

/* Wide desktop: right rail participates in the grid's height calculation.
   The old absolute rail did not reserve vertical space, so the full-width
   bottom row could start while the larger Cosmic Guide was still visible. */
@media (min-width:1701px) and (min-height:901px){
  .ae-app--overview .ae-main{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) clamp(310px,23.5vw,420px)!important;
    grid-template-rows:auto minmax(510px,1fr) auto!important;
    gap:12px!important;
    height:auto!important;
    min-height:calc(100dvh - 90px)!important;
    overflow:visible!important;
    align-content:start!important;
  }
  .ae-app--overview .ae-dash__intro{
    grid-column:1!important;grid-row:1!important;
    position:relative!important;
    width:100%!important;
  }
  .ae-app--overview .ae-right-rail{
    grid-column:2!important;grid-row:1 / 3!important;
    position:relative!important;
    inset:auto!important;
    transform:none!important;
    width:100%!important;
    height:auto!important;
    min-height:max-content!important;
    max-height:none!important;
    align-self:start!important;
    overflow:visible!important;
    z-index:2!important;
  }
  .ae-app--overview .ae-bottom-five.ae-bottom-five--three{
    grid-column:1 / -1!important;
    grid-row:3!important;
    position:relative!important;
    inset:auto!important;
    transform:none!important;
    width:100%!important;
    max-width:none!important;
    margin:12px 0 0!important;
    justify-self:stretch!important;
    align-self:start!important;
    height:180px!important;
    z-index:1!important;
  }
}

/* Structural dashboard layout: unlike the old five-row overlay grid,
   the bottom cards are a SIBLING of the upper scene. Their position
   follows the actual height of both the aspect card and the right rail.
   This remains correct on 1728x864, tall desktops and resized windows. */
@media(min-width:701px){
  .ae-app--overview .ae-main{
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:calc(100dvh - 90px)!important;
    overflow:visible!important;
    box-sizing:border-box!important;
  }
  .ae-app--overview .ae-dashboard-top{
    display:grid!important;
    grid-template-columns:minmax(265px,30%) minmax(0,1fr) minmax(290px,24%)!important;
    grid-template-rows:auto auto auto!important;
    gap:12px!important;
    align-items:start!important;
    width:100%!important;
    min-width:0!important;
  }
  .ae-app--overview .ae-dashboard-top>.ae-dash__intro{
    grid-column:1!important;grid-row:1!important;
    position:relative!important;inset:auto!important;
    max-width:none!important;width:100%!important;
    z-index:5!important;
  }
  .ae-app--overview .ae-dashboard-top>.ae-sky-summary{
    grid-column:1!important;grid-row:2!important;
    position:relative!important;inset:auto!important;
    width:100%!important;max-width:100%!important;
    margin:0!important;
    z-index:5!important;
  }
  .ae-app--overview .ae-dashboard-top>.ae-day-energies{
    grid-column:1!important;grid-row:3!important;
    position:relative!important;inset:auto!important;
    width:100%!important;max-width:100%!important;
    margin:0!important;
    z-index:5!important;
  }
  .ae-app--overview .ae-dashboard-top>.ae-cosmic-stage{
    grid-column:2!important;grid-row:1 / 4!important;
    position:relative!important;inset:auto!important;
    transform:none!important;
    align-self:start!important;
    width:min(100%,560px)!important;
    height:auto!important;
    aspect-ratio:1!important;
    min-height:0!important;
    max-height:none!important;
    margin:0 auto!important;
    z-index:1!important;
  }
  .ae-app--overview .ae-dashboard-top>.ae-right-rail{
    grid-column:3!important;grid-row:1 / 4!important;
    position:relative!important;inset:auto!important;
    transform:none!important;
    display:flex!important;flex-direction:column!important;
    gap:9px!important;
    width:100%!important;height:auto!important;
    min-height:0!important;max-height:none!important;
    align-self:start!important;
    margin:0!important;overflow:visible!important;
    z-index:2!important;
  }
  .ae-app--overview .ae-main>.ae-bottom-five.ae-bottom-five--three{
    position:relative!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-column:auto!important;grid-row:auto!important;
    inset:auto!important;transform:none!important;
    width:100%!important;max-width:none!important;
    height:clamp(150px,19dvh,205px)!important;
    margin:14px 0 0!important;
    align-self:auto!important;justify-self:auto!important;
    z-index:1!important;
  }
  .ae-app--overview .ae-main>.ae-bottom-five--three>.ae-week-preview{
    grid-column:auto!important;grid-row:auto!important;
    width:100%!important;height:100%!important;
    min-height:0!important;
  }
}
@media(min-width:701px) and (max-width:1190px){
  .ae-app--overview .ae-dashboard-top{
    grid-template-columns:minmax(230px,32%) minmax(0,1fr) minmax(260px,30%)!important;
  }
  .ae-app--overview .ae-dashboard-top>.ae-cosmic-stage{width:min(100%,440px)!important}
}
@media(max-width:700px){
  .ae-app--overview .ae-main{display:block!important;height:auto!important;overflow:visible!important}
  .ae-app--overview .ae-dashboard-top{
    display:flex!important;flex-direction:column!important;
    gap:12px!important;width:100%!important;min-width:0!important;
  }
  .ae-app--overview .ae-dashboard-top>.ae-dash__intro{order:1!important;width:100%!important}
  .ae-app--overview .ae-dashboard-top>.ae-cosmic-stage{
    order:2!important;position:relative!important;
    margin:0 auto!important;width:min(100%,430px)!important;
    height:auto!important;aspect-ratio:1!important;
  }
  .ae-app--overview .ae-dashboard-top>.ae-sky-summary{
    order:3!important;width:100%!important;max-width:none!important;margin:0!important;
  }
  .ae-app--overview .ae-dashboard-top>.ae-day-energies{
    order:4!important;width:100%!important;max-width:none!important;margin:0!important;
  }
  .ae-app--overview .ae-dashboard-top>.ae-right-rail{
    order:5!important;position:relative!important;inset:auto!important;
    width:100%!important;margin:0!important;height:auto!important;
  }
  .ae-app--overview .ae-main>.ae-bottom-five.ae-bottom-five--three{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
    position:relative!important;inset:auto!important;transform:none!important;
    width:100%!important;height:140px!important;
    margin:12px 0 0!important;
  }
}

/* Desktop containment, November 2: constrain the decorative zodiac SVG to
   its *own middle column* and fit the editorial row inside typical laptop
   height without any absolute overlap. */
@media(min-width:1191px){
  .ae-app--overview .ae-dashboard-top{
    grid-template-columns:minmax(0,28%) minmax(0,1fr) minmax(0,23%)!important;
    column-gap:clamp(12px,1.3vw,20px)!important;
  }
}
@media(min-width:701px){
  .ae-app--overview .ae-main{
    height:calc(100dvh - 76px)!important;
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding-top:clamp(8px,1dvh,14px)!important;
    padding-bottom:10px!important;
  }
  .ae-app--overview .ae-dashboard-top>.ae-cosmic-stage{
    box-sizing:border-box!important;
    width:min(100%,490px,calc(100dvh - 350px))!important;
    min-width:0!important;max-width:100%!important;
    justify-self:center!important;
    overflow:visible!important;
  }
  .ae-app--overview .ae-dashboard-top>.ae-cosmic-stage .ae-cosmic-stage__diagram,
  .ae-app--overview .ae-dashboard-top>.ae-cosmic-stage .ae-cosmic-stage__start-hit{
    position:absolute!important;
    left:50%!important;top:0!important;
    width:100%!important;height:100%!important;
    max-width:100%!important;max-height:100%!important;
    transform:translateX(-50%)!important;
    transform-origin:center center!important;
    box-sizing:border-box!important;
  }
  .ae-app--overview .ae-dashboard-top>.ae-right-rail .ae-cosmic-promo{
    height:clamp(185px,24dvh,212px)!important;
    min-height:185px!important;
    flex:0 0 auto!important;
  }
  .ae-app--overview .ae-dashboard-top>.ae-right-rail .ae-cosmic-promo__inner{
    padding:clamp(10px,1vw,15px)!important;
    gap:6px!important;
    justify-content:space-between!important;
  }
  .ae-app--overview .ae-dashboard-top>.ae-right-rail .ae-cosmic-promo p{
    font-size:clamp(11px,.75vw,13px)!important;line-height:1.3!important;
  }
  .ae-app--overview .ae-main>.ae-bottom-five.ae-bottom-five--three{
    height:clamp(145px,19dvh,190px)!important;
    margin-top:10px!important;
  }
}
@media(min-width:701px) and (max-height:820px){
  .ae-app--overview .ae-dashboard-top>.ae-cosmic-stage{
    width:min(100%,420px,calc(100dvh - 310px))!important;
  }
  .ae-app--overview .ae-dashboard-top>.ae-right-rail .ae-cosmic-promo{
    height:180px!important;min-height:180px!important;
  }
  .ae-app--overview .ae-main>.ae-bottom-five.ae-bottom-five--three{
    height:145px!important;
  }
}
