/* Sky & Planets — same real wheel and atmospheric palette as Aspects Now.
   All astronomy values are server-produced; rings are purely decoration. */
.ae-app--sky .ae-main{
  display:flex;flex-direction:column;min-width:0;
}
.ae-sky-atlas{
  display:grid;grid-template-columns:minmax(0,43%) minmax(0,57%);
  gap:clamp(10px,.95vw,17px);min-width:0;min-height:0;
  color:#623953;
}
.ae-sky-atlas__left{min-width:0;min-height:0;display:flex;flex-direction:column;gap:10px;padding:clamp(9px,.8vw,14px) clamp(10px,1vw,18px);border-radius:13px;background:rgba(255,255,255,.43);border:1px solid rgba(174,114,154,.26);backdrop-filter:blur(7px)}
.ae-sky-atlas__intro{display:flex;align-items:center;justify-content:space-between;gap:9px}
.ae-sky-atlas__eyebrow{font:800 9px/1.2 "Segoe UI",sans-serif;letter-spacing:.12em;color:#a3738c;margin:0 0 4px}
.ae-sky-atlas__intro h2{font:normal clamp(19px,1.65vw,27px)/1.1 Georgia,serif;color:#592448;margin:0}
.ae-sky-atlas__intro p:not(.ae-sky-atlas__eyebrow){font:11px/1.4 "Segoe UI",sans-serif;color:#8a677e;margin:5px 0 0;max-width:390px}
.ae-sky-atlas__count{display:flex;flex-direction:column;align-items:center;flex:0 0 auto;padding:8px 11px;background:#fff9fbcc;border:1px solid #e7d2df;border-radius:10px;font:normal 24px/1 Georgia,serif;color:#905e7c}
.ae-sky-atlas__count small{font:9px/1.2 "Segoe UI",sans-serif;color:#9b8190;margin-top:2px}
.ae-sky-atlas__snapshot{display:flex;align-items:center;gap:7px 10px;flex-wrap:wrap;padding:8px 10px;background:rgba(255,255,255,.56);border:1px solid #e8d8e1;border-radius:9px}
.ae-sky-atlas__snapshot>small{font:10px/1.3 "Segoe UI",sans-serif;color:#8a6b80}
.ae-sky-atlas__freshness-status{display:flex;align-items:center;gap:5px;font:800 10px/1.25 "Segoe UI",sans-serif;color:#654362}
.ae-sky-atlas__freshness-status.is-stale{color:#a3484b}
.ae-sky-atlas__pulse{width:6px;height:6px;background:#4fb989;border-radius:50%;box-shadow:0 0 9px #6dbea8}
.ae-sky-atlas__refresh-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap;width:100%}
.ae-sky-atlas__refresh,.ae-sky-atlas__change{font:700 10px/1.2 "Segoe UI",sans-serif;color:#783e67;border:1px solid #d4b6cb;background:#fffafc;border-radius:7px;padding:5px 8px;text-decoration:none;cursor:pointer}
.ae-sky-atlas__refresh:hover,.ae-sky-atlas__change:hover{background:#f9e9f1}
.ae-sky-atlas__countdown{font:10px/1.2 "Segoe UI",sans-serif;color:#977589}
.ae-sky-atlas__countdown time{font-variant-numeric:tabular-nums;font-weight:700;color:#663452}
.ae-sky-atlas__change{margin-left:auto}
.ae-sky-focus{padding:11px 12px;border-radius:12px;border:1px solid rgba(131,67,117,.35);background:rgba(255,255,255,.63);box-shadow:0 3px 16px rgba(87,30,72,.1)}
.ae-sky-focus__heading{display:flex;align-items:center;gap:12px;min-width:0}
.ae-sky-focus__portrait{display:grid;place-items:center;flex:0 0 66px;height:66px;border-radius:50%;background:radial-gradient(circle,#fff 32%,#f7e6ee);border:1px solid #ebcfdd}
.ae-sky-focus__portrait img{width:59px;height:59px;object-fit:contain}
.ae-sky-focus__who{min-width:0}
.ae-sky-focus__who>small{display:block;margin:0 0 2px;color:#9b718b;font:700 10px/1.25 "Segoe UI",sans-serif}
.ae-sky-focus__who h3{margin:0;color:#552246;font:normal clamp(20px,1.65vw,27px)/1.15 Georgia,serif}
.ae-sky-focus__who p{margin:2px 0 0;color:#a27d53;font:700 12px/1.3 "Segoe UI",sans-serif}
.ae-sky-focus__text{display:grid;gap:8px;margin-top:8px;min-height:0}
.ae-sky-focus__text>div:first-child{border-top:1px solid #ead7df;padding-top:9px}
.ae-sky-focus__text h4{font:800 12px/1.35 "Segoe UI",sans-serif;letter-spacing:.025em;color:#6d315b;margin:0 0 5px}
.ae-sky-focus__text p{margin:0;color:#62455a;font:12px/1.5 "Segoe UI",sans-serif}
.ae-sky-focus__interpretation{padding:8px 10px;border-radius:9px;background:#f9edf4ab;border:1px solid #efdae5}
.ae-sky-focus__interpretation p+p{margin-top:5px}
.ae-sky-focus__pro-note{margin:8px 0 0;color:#8b6883;font:10px/1.5 "Segoe UI",sans-serif}
.ae-sky-focus__precise{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:8px}
.ae-sky-focus__precise>div{background:#f9eff5;border:1px solid #eedee8;border-radius:7px;text-align:center;padding:6px 3px}
.ae-sky-focus__precise small{font:9px/1.3 "Segoe UI",sans-serif;color:#977285;display:block}
.ae-sky-focus__precise strong{display:block;margin-top:4px;color:#653852;font:600 clamp(10px,1vw,14px)/1.1 Georgia,serif;font-variant-numeric:tabular-nums}
.ae-sky-focus__direction{font:9px/1.4 "Segoe UI",sans-serif;color:#927086;margin:5px 0 0}
.ae-sky-focus__look{margin:8px 0 0;padding-top:7px;border-top:1px solid #efdae4;color:#6b5267;font:10px/1.45 "Segoe UI",sans-serif}
.ae-sky-focus__look strong{color:#765173}
.ae-sky-chooser{min-width:0}
.ae-sky-chooser__heading{display:flex;align-items:baseline;justify-content:space-between;gap:5px;margin:2px 0 6px}
.ae-sky-chooser__heading h3{font:normal clamp(15px,1.2vw,19px)/1.2 Georgia,serif;color:#613050;margin:0}
.ae-sky-chooser__heading>span{font:10px "Segoe UI",sans-serif;color:#a47a96}
.ae-sky-chooser__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.ae-sky-chooser__button{min-width:0;display:flex;align-items:center;gap:6px;padding:5px 7px;border:1px solid #e7d2de;border-radius:8px;background:#fffafbd9;text-align:left;cursor:pointer;font-family:inherit;transition:background .15s,border-color .15s}
.ae-sky-chooser__button:hover,.ae-sky-chooser__button:focus-visible{background:#f7e5f0;border-color:#bd8dac;outline-offset:1px}
.ae-sky-chooser__button.is-selected{border-color:#805575;background:linear-gradient(128deg,#74385f,#4d2348);box-shadow:0 3px 12px #6d36512c}
.ae-sky-chooser__button img{width:28px;height:28px;flex:0 0 28px;object-fit:contain}
.ae-sky-chooser__button span{display:block;min-width:0}
.ae-sky-chooser__button strong{display:block;font:700 10px/1.2 "Segoe UI",sans-serif;color:#60394f}
.ae-sky-chooser__button small{display:block;margin-top:2px;color:#95788b;font:9px/1.15 "Segoe UI",sans-serif}
.ae-sky-chooser__button.is-selected :is(strong,small){color:#ffebf8}
.ae-sky-atlas__learning{display:grid;grid-template-columns:1fr 1fr;gap:7px;position:relative;z-index:7}
.ae-sky-atlas__learning>details{min-width:0;position:relative;border:1px solid #e7d0df;border-radius:8px;background:#fdf7fb;padding:7px 9px;color:#7e5971}
.ae-sky-atlas__learning summary{cursor:pointer;font:700 10px/1.3 "Segoe UI",sans-serif;color:#773c61;list-style:none}
.ae-sky-atlas__learning summary::-webkit-details-marker{display:none}
.ae-sky-atlas__learning details[open]>div{position:absolute;bottom:calc(100% + 7px);left:0;z-index:8;width:min(430px,80vw);max-height:42dvh;overflow:auto;box-sizing:border-box;padding:13px 15px;border-radius:11px;border:1px solid #e4c5d9;background:#fffafd;box-shadow:0 12px 35px #4e285437}
.ae-sky-atlas__learning details:last-child[open]>div{left:auto;right:0}
.ae-sky-atlas__learning p{margin:0 0 9px;font:11px/1.5 "Segoe UI",sans-serif;color:#77546b}
.ae-sky-atlas__learning p:last-of-type{margin-bottom:0}
.ae-sky-atlas__learning p strong{color:#69334f}
.ae-sky-atlas__learning a{display:inline-block;margin-top:10px;color:#803d66;font-size:11px}
.ae-sky-atlas__map{min-height:0;height:auto;align-self:stretch}
/* The actual cosmic CLOUD image is owned by engine-unified-sky.css. */
.ae-app--sky .ae-aspect-sky{border:1px solid #74435c}
/* A modest 8% reduction: keep the same background panel and true SVG geometry. */
.ae-app--sky .ae-aspect-sky__wheel{position:relative;z-index:1;width:92%;height:calc(92% - 29px);max-height:100%;max-width:92%;object-fit:contain;filter:none}
.ae-app--sky .ae-aspect-sky__dust{display:none}
.ae-app--sky .ae-aspect-sky__legend{z-index:1}
.ae-app--sky .ae-aspect-sky__planet{opacity:.68}
.ae-app--sky .ae-aspect-sky__planet.is-emphasized{opacity:1}
.ae-app--sky .ae-aspect-sky__planet.is-emphasized .ae-aspect-sky__planet-halo{stroke:#fff8da;stroke-width:2.8;filter:drop-shadow(0 0 8px #ffdd99)}
@media(min-width:1060px) and (min-height:650px){
  .ae-app--sky .ae-main{height:100%;min-height:0;overflow:hidden;padding:7px clamp(9px,1.1vw,18px) 8px}
  .ae-app--sky .ae-breadcrumb,.ae-app--sky .ae-heading{display:none}
  .ae-app--sky .ae-data-status{font-size:9px;padding:4px 8px}
  .ae-app--sky .ae-disclaimer{display:none}
  .ae-sky-atlas{flex:1;min-height:0}
  .ae-sky-atlas__left{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#d5afc9 transparent}
  .ae-app--sky .ae-aspect-sky{height:100%;min-height:0}
}
@media(max-width:1150px){
  .ae-sky-chooser__button{padding:4px}
  .ae-sky-focus__text p{font-size:11.5px;line-height:1.45}
  .ae-sky-atlas__intro p:not(.ae-sky-atlas__eyebrow){font-size:10px}
}
@media(max-width:1059px){
  .ae-app--sky .ae-main{height:auto;overflow:visible}
  .ae-sky-atlas{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
  .ae-sky-atlas__map{min-height:460px;position:sticky;top:8px}
  .ae-app--sky .ae-aspect-sky__wheel{height:auto;width:min(92%,610px);max-width:92%}
}
@media(max-width:800px){
  .ae-sky-atlas{grid-template-columns:1fr}
  .ae-sky-atlas__map{position:static;min-height:0;grid-row:1;padding:12px}
  .ae-sky-atlas__left{grid-row:2}
  .ae-sky-atlas__map .ae-aspect-sky__wheel{height:auto;width:min(92%,515px);max-width:92%}
}
@media(max-width:430px){
  .ae-sky-atlas__count{display:none}
  .ae-sky-chooser__grid{gap:4px}
  .ae-sky-focus{padding:10px}
  .ae-sky-chooser__button small{font-size:8px}
  .ae-sky-chooser__button img{width:24px;height:24px;flex-basis:24px}
}

/* Shared SVG tooltip interactions also apply to Sky & Planets. */
.ae-app--sky .ae-aspect-sky__planet{cursor:pointer}
/* Hover/focus is owned by the common engine-unified-sky.css for both maps. */
.ae-app--sky .ae-aspect-sky__tooltip[hidden]{display:none!important}
.ae-app--sky .ae-aspect-sky__tooltip{
 position:absolute;z-index:12;box-sizing:border-box;
 width:min(270px,54%);max-height:55%;overflow-y:auto;
 padding:11px 13px;border:1px solid #d7ac77;border-radius:12px;
 background:rgba(255,251,245,.985);box-shadow:0 12px 28px #39153655;
 color:#552143;pointer-events:none;font:normal 11px/1.35 "Segoe UI",sans-serif
}
.ae-app--sky .ae-aspect-sky__tooltip strong{display:block;color:#60244c;font:normal 18px/1.15 Georgia,serif;margin-bottom:5px}
.ae-app--sky .ae-aspect-sky__tooltip-astro{color:#905d47;font-size:10px;margin-bottom:7px;padding-bottom:6px;border-bottom:1px solid #ead5ca}
.ae-app--sky .ae-aspect-sky__tooltip p{margin:0 0 6px}
.ae-app--sky .ae-aspect-sky__tooltip small{display:block;margin-top:3px;color:#8e7483;font-size:9px}
@media(max-width:700px){.ae-app--sky .ae-aspect-sky__tooltip{width:min(225px,61%);max-height:63%;padding:9px 10px;font-size:10px}
.ae-app--sky .ae-aspect-sky__tooltip strong{font-size:15px}}


/* Sky & Planets · match the Aspects Now top-right observation block. */
.ae-sky-atlas__intro{
  align-items:flex-start;gap:clamp(6px,.7vw,12px);
  padding:0 1px 7px;border-bottom:1px solid rgba(178,114,154,.20);
}
.ae-sky-atlas__intro-copy{flex:1 1 0;min-width:0}
.ae-sky-atlas__intro p:not(.ae-sky-atlas__eyebrow){
  max-width:260px;font-size:10px;line-height:1.35;
}
.ae-sky-atlas__snapshot{
  flex:0 1 185px;min-width:0;max-width:54%;
  display:flex;flex-direction:column;align-items:flex-end;
  gap:3px;text-align:right;white-space:normal;
  margin:0;padding:0;background:transparent;border:0;border-radius:0;
}
.ae-sky-atlas__freshness-status{justify-content:flex-end;max-width:100%;font-size:9px}
.ae-sky-atlas__calculated{color:#86667a;font:9px/1.25 "Segoe UI",sans-serif;font-variant-numeric:tabular-nums}
.ae-sky-atlas__snapshot>small{
  color:#95758b;font:9px/1.3 "Segoe UI",sans-serif;
  overflow-wrap:break-word;max-width:100%;
}
.ae-sky-atlas__refresh-line{width:auto;justify-content:flex-end;gap:6px}
.ae-sky-atlas__refresh,.ae-sky-atlas__change{
  padding:4px 7px;font-size:9px;
}
.ae-sky-atlas__countdown{font-size:9px;white-space:nowrap}
@media(min-width:1060px) and (max-width:1420px){
  .ae-sky-atlas__intro{flex-wrap:wrap}
  .ae-sky-atlas__snapshot{flex-basis:100%;max-width:100%;margin-left:auto}
  .ae-sky-atlas__intro-copy p:not(.ae-sky-atlas__eyebrow){max-width:none}
}
@media(max-width:1059px){
  .ae-sky-atlas__intro{flex-wrap:wrap}
  .ae-sky-atlas__snapshot{flex-basis:100%;max-width:100%;align-items:flex-end}
  .ae-sky-atlas__intro-copy p:not(.ae-sky-atlas__eyebrow){max-width:none}
}
@media(min-width:1060px) and (min-height:650px){
  .ae-app--sky .ae-sky-atlas{height:100%}
  .ae-app--sky .ae-sky-atlas__map{min-height:0}
}

/* Phone layout stability: the one-second refresh countdown must not resize
   the sky header, and orbital decoration must never enlarge the viewport. */
@media(max-width:700px){
  .ae-app--sky .ae-main,
  .ae-app--sky .ae-sky-atlas,
  .ae-app--sky .ae-sky-atlas__left,
  .ae-app--sky .ae-sky-atlas__map{min-width:0;max-width:100%;box-sizing:border-box}
  .ae-app--sky .ae-sky-atlas__snapshot{
    width:100%;max-width:100%;min-width:0;
    align-items:flex-start;text-align:left;
    overflow-wrap:anywhere;
  }
  .ae-app--sky .ae-sky-atlas__refresh-line{
    width:100%;justify-content:flex-start;flex-wrap:wrap;
  }
  .ae-app--sky .ae-sky-atlas__countdown,
  .ae-app--sky [data-aspects-auto-countdown]{
    display:inline-block;min-width:6ch;
    font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
    font-variant-numeric:tabular-nums;
    white-space:nowrap;
  }
  .ae-app--sky .ae-sky-atlas__map{
    overflow:hidden;isolation:isolate;contain:paint;
  }
  .ae-app--sky .ae-aspect-sky{max-width:100%;overflow:hidden}
}
