/* BaseHeart Project Galaxy — a private observatory for the current account.
   Brand: ink, deep violet, a restrained Heart-rose accent and cool starlight.
   Preview pixels are supplied by the owner's browser-local covers; the UI
   never runs project code or launches additional sandbox instances. */
#projectGalaxyNavBtn[hidden],
.bh-galaxy-page[hidden],
.bh-galaxy-page [hidden] { display:none!important; }

.bh-galaxy-page {
  --galaxy-ink:#080d1c;--galaxy-panel:#11172b;--galaxy-ink-deep:#050915;
  --galaxy-text:#f3f5ff;--galaxy-muted:#a5b3d0;--galaxy-violet:#986ef4;
  --galaxy-rose:#f36a9b;--galaxy-ice:#8ed5f6;
  position:relative;isolation:isolate;box-sizing:border-box;
  min-height:calc(100vh - 92px);padding:clamp(22px,3.3vw,44px) clamp(14px,3.7vw,48px) 64px;
  background:radial-gradient(ellipse 70% 35% at 50% 0%,#32235c44,transparent 100%),#080b16;
  color:var(--galaxy-text);color-scheme:dark;
  font-family:inherit;
}
.bh-galaxy-page *, .bh-galaxy-page *::before,.bh-galaxy-page *::after{box-sizing:border-box}
.bh-galaxy-head,.bh-galaxy-tools,.bh-galaxy-layout,.bh-galaxy-foot{width:100%;max-width:1440px;margin-inline:auto}
.bh-galaxy-head{margin-bottom:21px}
.bh-galaxy-kicker{
  margin:0 0 9px;font-size:10px;line-height:1.3;letter-spacing:.17em;
  color:#c7a9ff;font-weight:800;text-transform:uppercase
}
.bh-galaxy-head h1{
  margin:0 0 8px;font-size:clamp(28px,3.1vw,42px);line-height:1.09;letter-spacing:-.048em;
  color:#f8f7ff;font-weight:830;
}
.bh-galaxy-copy{margin:0;color:var(--galaxy-muted);font-size:13px;line-height:1.6}
.bh-galaxy-tools{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-bottom:18px}
.bh-galaxy-switch{
  display:flex;align-items:center;gap:3px;flex-shrink:0;
  padding:4px;border:1px solid #7884b835;border-radius:13px;background:#10162a;
  box-shadow:inset 0 1px 0 #ffffff09;
}
.bh-galaxy-switch button{
  min-height:36px;padding:8px 13px;border:0;border-radius:9px;background:transparent;
  color:#b6c2dd;font-size:11px;font-weight:725;line-height:1.2;cursor:pointer;
  white-space:nowrap;transition:color .16s,background .16s;
}
.bh-galaxy-switch button:hover{color:white;background:#ffffff0c}
.bh-galaxy-switch button[aria-pressed=true]{
  background:linear-gradient(125deg,#5f46bc,#794be1);color:#fff;
  box-shadow:inset 0 1px 0 #e7d6ff35,0 3px 14px #4c2d934b;
}
.bh-galaxy-account-switch button[aria-pressed=true]{
  background:#282344;color:#f7ecff;box-shadow:inset 0 0 0 1px #a18ae342;
}
.bh-galaxy-account-switch button[hidden],.bh-galaxy-company-picker[hidden]{display:none!important}
.bh-galaxy-search,.bh-galaxy-filter{
  appearance:none;min-height:44px;max-width:100%;
  border:1px solid #8195c03b;border-radius:12px;
  background:#111829;color:#ebeeff;padding:10px 13px;
  font:inherit;font-size:12px;line-height:1.25;
}
.bh-galaxy-search::placeholder{color:#8695b5}
.bh-galaxy-search:focus,.bh-galaxy-filter:focus{border-color:#a18aff95;box-shadow:0 0 0 3px #845fe722;outline:none}
.bh-galaxy-search{flex:1 1 180px;min-width:128px;max-width:330px}
.bh-galaxy-filter{min-width:112px;padding-right:26px;background:#111829 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9' viewBox='0 0 12 9'%3E%3Cpath d='M2 2.5 6 6.5l4-4' stroke='%23bec8e8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center}
.bh-galaxy-sort{min-width:126px}
.bh-galaxy-tools>.bh-galaxy-switch:last-child{margin-left:auto}
.bh-galaxy-layout{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,315px);
  align-items:stretch;gap:17px;min-height:540px
}
.bh-galaxy-sky{
  position:relative;isolation:isolate;overflow:hidden;min-width:0;min-height:540px;
  border-radius:22px;border:1px solid #6985c947;
  background:
    radial-gradient(ellipse 25% 24% at 51% 50%,#7055c83a,transparent 92%),
    radial-gradient(ellipse 50% 42% at 12% 19%,#3b5ab32a,transparent 100%),
    radial-gradient(ellipse 45% 55% at 88% 80%,#4c2f9b30,transparent 100%),
    linear-gradient(155deg,#090e23,#050a19 52%,#080d1d);
  box-shadow:inset 0 0 110px #0009,0 22px 55px #02040d6c;
  touch-action:pan-y;
}
.bh-galaxy-sky::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;opacity:.72;
  background:
    radial-gradient(circle,#e3e8ff 0 1px,transparent 1.5px) 14px 17px/83px 97px,
    radial-gradient(circle,#9b91fc 0 .7px,transparent 1.6px) 42px 12px/119px 133px,
    radial-gradient(circle,#6da6ea 0 .65px,transparent 1.4px) 20px 74px/157px 181px;
}
.bh-galaxy-sky::after{
  content:"";position:absolute;inset:-12%;pointer-events:none;z-index:0;opacity:.42;
  background:conic-gradient(from 32deg at 49% 50%,transparent 0deg,#645bb024 45deg,transparent 88deg,#a06cc420 161deg,transparent 211deg,#5ea3de18 274deg,transparent 326deg);
  -webkit-mask-image:radial-gradient(ellipse at center,transparent 8%,#0005 27%,transparent 74%);
  mask-image:radial-gradient(ellipse at center,transparent 8%,#0005 27%,transparent 74%);
}
.bh-galaxy-ring{
  position:absolute;left:50%;top:50%;width:79%;height:51%;
  transform:translate(-50%,-50%) rotate(-13deg);
  border:1px solid #97a8ff21;border-radius:50%;pointer-events:none
}
.bh-galaxy-ring.ring-b{width:61%;height:36%;transform:translate(-50%,-50%) rotate(12deg);border-color:#b493ee24}
.bh-galaxy-core{
  position:absolute;left:50%;top:50%;width:122px;height:122px;
  transform:translate(-50%,-50%);border-radius:50%;
  display:grid;place-items:center;pointer-events:none;
  color:#fff2f4;font-size:44px;text-shadow:0 0 13px #e6ccff;
  background:radial-gradient(circle at 49% 50%,#fff2e4 0 5%,#c79dff 11%,#7151bb 23%,#473c9555 44%,transparent 72%);
  filter:drop-shadow(0 0 19px #9983f1b4);
}
.bh-galaxy-core::after{
  content:"";position:absolute;inset:-30%;z-index:-1;border-radius:50%;
  background:conic-gradient(from 22deg,transparent,#8497fa50,transparent 29%,#a863dc4f,transparent 62%,#628bdd5a,transparent);
  filter:blur(12px);opacity:.65
}
.bh-galaxy-cards{position:absolute;inset:0;z-index:3}
.bh-galaxy-card{
  position:absolute;left:50%;top:50%;display:flex;align-items:center;justify-content:center;
  flex-direction:column;gap:7px;width:136px;height:138px;min-height:0;padding:0;
  color:var(--galaxy-text);background:transparent;border:0;cursor:pointer;
  transform:translate(-50%,-50%);
  touch-action:manipulation;z-index:4;
}
.bh-galaxy-card:hover,.bh-galaxy-card:focus-visible{z-index:7}
.bh-galaxy-card[aria-current=true]{z-index:6}
.bh-galaxy-planet{
  display:block;flex:0 0 auto;position:relative;isolation:isolate;overflow:hidden;
  width:88px;height:88px;border-radius:50%;border:1px solid #c6c4fd75;
  background:radial-gradient(circle at 22% 18%,#cadfff77,transparent 22%),
    repeating-linear-gradient(143deg,#d4bcff0a 0 7px,transparent 8px 17px),
    radial-gradient(circle at 38% 31%,hsl(var(--planet-hue,265) 65% 62%),hsl(var(--planet-hue,265) 62% 30%) 48%,#10162c 91%);
  box-shadow:inset -18px -10px 19px #040616cb,inset 8px 8px 11px #e1eaff2b,0 0 18px #9374ff51;
}
.bh-galaxy-planet::after{
  content:"";position:absolute;inset:0;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle at 29% 20%,#fff8,transparent 29%),
    linear-gradient(120deg,transparent 43%,#020513bc 98%);
  box-shadow:inset -13px -8px 17px #020718;
}
.bh-galaxy-planet-preview,.bh-galaxy-detail-planet-image{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:center;border-radius:50%;
  filter:saturate(.96) contrast(1.04)
}
.bh-galaxy-planet-unset{
  background:radial-gradient(circle at 35% 25%,#bcc9ff84,transparent 18%),
    radial-gradient(circle at 38% 37%,hsl(var(--planet-hue,265) 50% 52%),#181b48 54%,#0b1029);
  border-style:dashed;border-color:#a294e864
}
.bh-galaxy-planet-unset::before{
  content:"✦";position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);
  font-size:24px;color:#f6eefeae;z-index:1
}
.bh-galaxy-card-name{
  display:block;max-width:138px;min-width:0;overflow:hidden;white-space:nowrap;
  text-overflow:ellipsis;padding:6px 10px;
  border:1px solid #b4b4f13b;border-radius:999px;
  background:#080e21e6;color:#eef1ff;
  text-shadow:0 1px 3px #000b;font-size:10px;font-weight:730;line-height:1.1;
  box-shadow:0 3px 12px #02050ea0;
}
.bh-galaxy-card[aria-current=true] .bh-galaxy-card-name{
  color:#fff;border-color:#bda5ffb0;background:#231b4ce0;
  box-shadow:0 0 0 1px #8b70fd3a,0 8px 19px #0a061aaa;
}
.bh-galaxy-card:hover .bh-galaxy-card-name{border-color:#c3b0ffb0}
.bh-galaxy-space-canvas{position:absolute;inset:0;z-index:1;width:100%;height:100%;pointer-events:none}
.bh-galaxy-space-active .bh-galaxy-ring,.bh-galaxy-space-active .bh-galaxy-core{display:none}
.bh-galaxy-camera-controls{position:absolute;right:18px;bottom:18px;display:flex;gap:7px;z-index:9}
.bh-galaxy-camera-controls[hidden]{display:none!important}
.bh-galaxy-camera-button{
  display:grid;place-items:center;width:38px;height:38px;padding:0;
  border:1px solid #7a8cbe70;border-radius:11px;
  background:#0c1430de;color:#f5f1ff;font-size:21px;
  cursor:pointer;box-shadow:inset 0 1px #ffffff19;
}
.bh-galaxy-camera-button:hover{background:#29234c;border-color:#ae95f3}
.bh-galaxy-page button:focus-visible,.bh-galaxy-sky:focus-visible{
  outline:2px solid #c9b1ff;outline-offset:3px;
}
.bh-galaxy-detail{
  min-width:0;display:flex;flex-direction:column;gap:10px;align-items:stretch;
  padding:22px;border:1px solid #7c83bd5c;border-radius:22px;
  background:radial-gradient(circle at 50% 12%,#4f347b44,transparent 42%),
    linear-gradient(155deg,#151c32,#0a0f20 78%);
  box-shadow:inset 0 1px #ffffff1a,0 18px 48px #02040d67;
}
.bh-galaxy-eyebrow{
  color:#bbc3e6;font-size:10px;font-weight:725;line-height:1.2;
  text-transform:uppercase;letter-spacing:.09em;
}
.bh-galaxy-detail-planet{
  flex:0 0 auto;position:relative;overflow:hidden;isolation:isolate;
  width:min(68%,210px);aspect-ratio:1;margin:15px auto 13px;
  display:grid;place-items:center;border-radius:50%;
  border:1px solid #baa5fb83;
  background:radial-gradient(circle at 28% 23%,#c6cff3b3,transparent 20%),
    radial-gradient(circle at 37% 32%,#745cc8,#241d59 58%,#081027 94%);
  box-shadow:inset -26px -16px 22px #0609169e,
    inset 10px 8px 15px #d5cfff3a,0 0 23px #9a6cfc78,0 0 59px #6e5bcc38;
}
.bh-galaxy-detail-planet::after{
  content:"";position:absolute;inset:0;z-index:2;pointer-events:none;border-radius:50%;
  background:radial-gradient(circle at 28% 20%,#fff9,transparent 25%),
    linear-gradient(114deg,transparent 45%,#020414c9 98%);
  box-shadow:inset -18px -11px 20px #020615a8;
}
.bh-galaxy-detail-star{font-size:48px;color:#e4ceff;filter:drop-shadow(0 0 20px #c19cf8)}
.bh-galaxy-detail h2{
  margin:1px 0 2px;font-size:clamp(20px,2vw,25px);line-height:1.22;
  letter-spacing:-.033em;font-weight:830;color:#f9f7ff;
  overflow-wrap:anywhere;
}
.bh-galaxy-category{
  color:#a9bafe;font-size:10px;text-transform:uppercase;
  letter-spacing:.09em;font-weight:760;
}
.bh-galaxy-description{
  margin:0;color:#c2cce5;font-size:12px;line-height:1.65;overflow-wrap:anywhere
}
.bh-galaxy-status-chip{
  display:inline-flex;align-self:flex-start;align-items:center;gap:8px;
  margin:6px 0 5px;padding:7px 11px;
  border:1px solid #927aca61;border-radius:999px;
  background:#281d448a;color:#e6d5ff;
  font-size:10px;font-weight:760;
}
.bh-galaxy-status-chip::before{
  content:"";width:7px;height:7px;flex:none;border-radius:50%;
  background:#a47cff;box-shadow:0 0 8px #9f7ef7b5
}
.bh-galaxy-preview-empty{
  margin:0;color:#aebbd7;font-size:11px;line-height:1.6
}
.bh-galaxy-actions{display:flex;flex-direction:column;gap:9px;margin-top:8px}
.bh-galaxy-open,.bh-galaxy-cover-button,.bh-galaxy-share{
  display:flex;align-items:center;justify-content:center;
  min-height:44px;border-radius:12px;padding:11px 14px;
  font-family:inherit;font-size:12px;font-weight:770;line-height:1.2;
  cursor:pointer;transition:background .16s,border-color .16s,box-shadow .16s;
}
.bh-galaxy-open{
  color:white;border:1px solid #c3a4ff97;
  background:linear-gradient(113deg,#764bec,#9a63f1);
  box-shadow:inset 0 1px #e5dcff61,0 8px 25px #5b3ab665;
}
.bh-galaxy-open:hover{background:linear-gradient(113deg,#8c62f6,#b076f9);box-shadow:0 8px 27px #7455d75a}
.bh-galaxy-cover-button{
  border:1px solid #9796cc7f;background:#1b2240;color:#f1eeff
}
.bh-galaxy-cover-button:hover{background:#252d50;border-color:#beb3fb}
.bh-galaxy-share{
  min-height:38px;border:1px solid transparent;background:transparent;color:#bcb6e7;
  font-size:11px
}
.bh-galaxy-share:hover{background:#a898f316;color:#efe9ff}
.bh-galaxy-meta{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  margin-top:auto;padding-top:15px;border-top:1px solid #8b92be2b;
  color:#9dabc8;font-size:11px;
}
.bh-galaxy-meta time{color:#d3ddf3;font-weight:640}
.bh-galaxy-empty{margin:auto;color:#b7c1da;text-align:center;font-size:13px;line-height:1.65}
.bh-galaxy-foot{
  display:grid;grid-template-columns:minmax(0,1fr) auto auto auto minmax(0,1fr);
  justify-content:stretch;align-items:center;column-gap:9px;
  padding:16px 3px 0;color:#9cabc9;font-size:11px;
}
.bh-galaxy-status{margin:0;min-width:0}
.bh-galaxy-more{
  display:grid;place-items:center;margin:0;min-height:34px;min-width:36px;
  padding:6px 9px;border:1px solid #61779b61;
  border-radius:10px;background:#131b2d;color:#e4e8fa;cursor:pointer
}
.bh-galaxy-more:hover{border-color:#ac95f1;background:#262340}
.bh-galaxy-page-count{min-width:44px;text-align:center}
.bh-galaxy-foot>.bh-galaxy-more:last-child{justify-self:end}
.bh-galaxy-list .bh-galaxy-ring,.bh-galaxy-list .bh-galaxy-core{opacity:.1}
.bh-galaxy-list .bh-galaxy-space-canvas,.bh-galaxy-list .bh-galaxy-camera-controls{display:none}
.bh-galaxy-list .bh-galaxy-cards{
  position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  align-content:start;gap:11px;padding:22px
}
.bh-galaxy-list .bh-galaxy-card,
.bh-galaxy-list .bh-galaxy-card:hover,
.bh-galaxy-list .bh-galaxy-card[aria-current=true]{
  position:relative;left:auto;top:auto;width:auto;height:auto;min-height:96px;
  padding:12px;transform:none;animation:none;filter:none;gap:13px;
  flex-direction:row;justify-content:flex-start;text-align:left;
  border:1px solid #808db951;border-radius:15px;background:#121b31ef;
}
.bh-galaxy-list .bh-galaxy-card[aria-current=true]{border-color:#ba9bfd9c;background:#211a40ed}
.bh-galaxy-list .bh-galaxy-planet{width:64px;height:64px}
.bh-galaxy-list .bh-galaxy-card-name{
  max-width:calc(100% - 75px);border:0;background:transparent;box-shadow:none;
  border-radius:0;white-space:normal;font-size:12px;line-height:1.4;padding:0
}
.bh-galaxy-list .bh-galaxy-card[aria-current=true] .bh-galaxy-card-name{background:transparent;box-shadow:none}
/* Owner-controlled sharing dialog is separate from the private gallery.
   These selectors are deliberately retained for backwards compatibility. */
.galaxy-share-dialog{display:flex;flex-direction:column;gap:13px}
.galaxy-share-dialog .control-field{display:flex;flex-direction:column;gap:7px}
.galaxy-share-dialog .project-settings-input{width:100%;max-width:100%}
.galaxy-share-upload-preview{
  display:block;width:min(100%,500px);aspect-ratio:16/9;object-fit:cover;
  border:1px solid #ddc7e84d;border-radius:14px
}
.galaxy-share-upload-preview[hidden]{display:none}
.galaxy-share-status{font-weight:800;color:#d0a3ea}
.galaxy-share-privacy{font-size:12px;line-height:1.6;opacity:.78}
.galaxy-share-remove-video{display:flex;align-items:center;gap:10px;color:inherit;font-size:13px;cursor:pointer}
.galaxy-share-remove-video input{width:18px;height:18px;accent-color:#b964c4}
.bh-galaxy-preview-video{width:100%;aspect-ratio:16/9;object-fit:contain;border-radius:13px;background:#070714}
@media(max-width:1100px){
  .bh-galaxy-page{padding-inline:18px}
  .bh-galaxy-layout{grid-template-columns:minmax(0,1fr) minmax(230px,280px)}
  .bh-galaxy-detail{padding:18px}
  .bh-galaxy-tools>.bh-galaxy-switch:last-child{margin-left:0}
}
@media(max-width:850px){
  /* The account/navigation bar is fixed over this view on narrow screens.
     Reserve its actual height so the Galaxy heading is never hidden below it. */
  .bh-galaxy-page{padding-top:90px}
  .bh-galaxy-layout{grid-template-columns:minmax(0,1fr);min-height:0}
  .bh-galaxy-sky{min-height:505px}
  .bh-galaxy-detail{display:grid;grid-template-columns:128px minmax(0,1fr);align-items:center;column-gap:16px;min-height:190px}
  .bh-galaxy-detail-planet{grid-row:1 / span 5;width:122px;margin:0;align-self:center}
  .bh-galaxy-eyebrow,.bh-galaxy-category,.bh-galaxy-detail h2,.bh-galaxy-status-chip,.bh-galaxy-description,.bh-galaxy-preview-empty,.bh-galaxy-actions,.bh-galaxy-meta{grid-column:2}
  .bh-galaxy-actions{display:flex;flex-direction:row;flex-wrap:wrap}
  .bh-galaxy-actions>button{flex:1 1 auto}
  .bh-galaxy-meta{margin:5px 0 0}
}
@media(max-width:640px){
  .bh-galaxy-page{padding:90px 12px 52px}
  .bh-galaxy-head{margin-bottom:14px}
  .bh-galaxy-tools{gap:8px}
  .bh-galaxy-account-switch{width:100%}
  .bh-galaxy-account-switch button{flex:1}
  .bh-galaxy-search{min-width:0;max-width:none;flex:1 1 100%}
  .bh-galaxy-filter{flex:1 1 42%;min-width:0}
  .bh-galaxy-tools>.bh-galaxy-switch:last-child{width:100%}
  .bh-galaxy-tools>.bh-galaxy-switch:last-child button{flex:1}
  .bh-galaxy-sky{min-height:465px}
  .bh-galaxy-space-canvas,.bh-galaxy-camera-controls{display:none}
  .bh-galaxy-core{width:93px;height:93px;font-size:32px}
  .bh-galaxy-detail{display:flex;padding:19px}
  .bh-galaxy-detail-planet{width:155px;margin:10px auto}
  .bh-galaxy-actions{flex-direction:column}
  .bh-galaxy-foot{column-gap:5px}
  .bh-galaxy-list .bh-galaxy-cards{grid-template-columns:1fr;padding:14px}
  .bh-galaxy-list .bh-galaxy-card{width:auto;height:auto;min-height:83px}
}
@media(prefers-reduced-motion:reduce){
  .bh-galaxy-page *,.bh-galaxy-page *::before,.bh-galaxy-page *::after{
    animation:none!important;transition:none!important;scroll-behavior:auto!important
  }
}

/* Browser/account theme button selectors previously painted a vertical pink
   selection stripe and translucent rectangular face behind a selected planet.
   Own the COMPLETE hit area here; selection is indicated on the round planet
   and its compact name, never on the rectangular button. */
:is(#projectGalaxyPage,#myProjectsGalaxy) .bh-galaxy-sky .bh-galaxy-card,
:is(#projectGalaxyPage,#myProjectsGalaxy) .bh-galaxy-sky .bh-galaxy-card:is(:hover,:focus,:active,[aria-current="true"]){
  -webkit-appearance:none!important;appearance:none!important;
  background:transparent!important;background-image:none!important;
  border:0!important;border-left:0!important;outline:0!important;
  box-shadow:none!important;text-decoration:none!important;
}
:is(#projectGalaxyPage,#myProjectsGalaxy) .bh-galaxy-sky .bh-galaxy-card::before,
:is(#projectGalaxyPage,#myProjectsGalaxy) .bh-galaxy-sky .bh-galaxy-card::after{
  display:none!important;content:none!important;background:none!important;
  border:0!important;box-shadow:none!important;
}
:is(#projectGalaxyPage,#myProjectsGalaxy) .bh-galaxy-sky .bh-galaxy-card[aria-current="true"] .bh-galaxy-planet{
  border-color:#c7b3ff;
  box-shadow:inset -18px -10px 19px #040616cb,
    inset 8px 8px 11px #e1eaff2b,
    0 0 0 3px #7e60ff55,0 0 20px #9773f47a;
}
:is(#projectGalaxyPage,#myProjectsGalaxy) .bh-galaxy-sky .bh-galaxy-card[aria-current="true"] .bh-galaxy-card-name{
  background:#171531e8;outline-color:#ab93ff;color:#fff;
  box-shadow:0 2px 14px #090b25b5;
}
:is(#projectGalaxyPage,#myProjectsGalaxy) .bh-galaxy-sky .bh-galaxy-card:focus-visible .bh-galaxy-planet{
  outline:2px solid #f2d9ff;outline-offset:4px;
}
:is(#projectGalaxyPage,#myProjectsGalaxy) .bh-galaxy-sky .bh-galaxy-card:focus-visible .bh-galaxy-card-name{
  outline:2px solid #f2d9ff;outline-offset:3px;
}
:is(#projectGalaxyPage,#myProjectsGalaxy) .bh-galaxy-sky.bh-galaxy-launching .bh-galaxy-card{
  animation:none!important;pointer-events:none!important;
}
:is(#projectGalaxyPage,#myProjectsGalaxy) .bh-galaxy-sky.bh-galaxy-launching .bh-galaxy-card-name{
  opacity:0!important;visibility:hidden!important;
}
:is(#projectGalaxyPage,#myProjectsGalaxy) .bh-galaxy-sky.bh-galaxy-launching .bh-galaxy-camera-controls{
  pointer-events:none!important;opacity:0!important;
}

/* BaseHeart Celestial Atlas — a quiet spacecraft observatory, not floating cards.
   One expressive galaxy, composed typography, and preview-linked world entries.
   All names remain complete; only owners' existing preview assets are reused. */
.bh-galaxy-page{
  --galaxy-ink:#080d1b;--galaxy-panel:#111729;--galaxy-muted:#aebdd8;
  --atlas-starlight:#edf3ff;--atlas-ice:#87d6f1;--atlas-violet:#ae92f1;
  background:
    radial-gradient(ellipse 54% 32% at 51% -5%,#41326a2d,transparent 95%),
    linear-gradient(165deg,#0a1020 0%,#090c19 46%,#080c17 100%);
}
.bh-galaxy-head{margin-bottom:22px}
.bh-galaxy-kicker{
  display:inline-flex;align-items:center;gap:8px;
  padding:5px 10px 5px 0;
  color:#c7b7f2;font-size:10px;letter-spacing:.16em
}
.bh-galaxy-head h1{
  font-size:clamp(32px,3.4vw,46px);letter-spacing:-.052em;
  line-height:1.05;font-weight:830;color:#f8f9ff;
  text-shadow:0 9px 36px #8d73c029
}
.bh-galaxy-copy{font-size:13px;color:#adbbd6;line-height:1.6}
.bh-galaxy-tools{
  padding:10px;gap:9px;margin-bottom:18px;
  border:1px solid #9eaae027;border-radius:18px;
  background:linear-gradient(115deg,#151b2bdc,#0e1526eb);
  box-shadow:inset 0 1px #ffffff0b,0 13px 34px #04071634
}
.bh-galaxy-tools>.bh-galaxy-switch{background:#0c1427c8}
.bh-galaxy-tools>.bh-galaxy-switch button[aria-pressed=true]{
  background:linear-gradient(120deg,#493c77,#7456ba);
  box-shadow:inset 0 1px #ffffff31,0 4px 13px #2b1c623d
}
.bh-galaxy-tools .bh-galaxy-account-switch button[aria-pressed=true]{
  background:#2a2445;box-shadow:inset 0 0 0 1px #baa4f144
}
.bh-galaxy-search{
  padding-left:38px;
  background-color:#0d1528;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a5b7db' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:12px center;background-size:17px 17px
}
.bh-galaxy-sky{
  min-height:570px;
  border-radius:25px;border-color:#6f83c344;
  background:
    radial-gradient(ellipse 24% 25% at 50% 50%,#8c6acc36,transparent 100%),
    radial-gradient(ellipse 60% 55% at 50% 54%,#29347524,transparent 91%),
    radial-gradient(ellipse 42% 43% at 12% 9%,#243c7234,transparent 100%),
    radial-gradient(ellipse 45% 39% at 84% 90%,#48336f24,transparent 100%),
    linear-gradient(157deg,#0c1428,#060b18 52%,#0a1122);
  box-shadow:inset 0 1px 0 #e8e8ff18,inset 0 0 130px #01040cb9,0 25px 64px #0205105c
}
.bh-galaxy-sky::before{
  opacity:.74;
  background:
    radial-gradient(circle,#f2f6ffde 0 .65px,transparent 1.4px) 16px 22px/91px 112px,
    radial-gradient(circle,#a2c5ff8e 0 .66px,transparent 1.35px) 31px 83px/139px 147px,
    radial-gradient(circle,#8e81dfb0 0 .7px,transparent 1.4px) 54px 27px/167px 133px,
    radial-gradient(circle,#c4d7ff65 0 .48px,transparent 1.2px) 26px 13px/41px 57px
}
.bh-galaxy-sky::after{opacity:.34;filter:saturate(.75)}
.bh-galaxy-ring{border-color:#a3b3f329}
.bh-galaxy-ring.ring-b{border-color:#a99bed21}
.bh-galaxy-core{
  background:radial-gradient(circle at 48% 50%,#fff9ed 0 5%,#e2c7ff 12%,#8463c6 21%,#5a419a70 42%,transparent 74%);
  filter:drop-shadow(0 0 23px #9b80ed99)
}
.bh-galaxy-sky-caption{
  position:absolute;z-index:16;top:15px;left:50%;
  transform:translateX(-50%);max-width:calc(100% - 20px);
  display:inline-flex;align-items:center;justify-content:center;
  padding:8px 15px;border:1px solid #9e9bcd36;border-radius:999px;
  background:#0b1429dc;color:#b2c1e2;
  font-size:10px;line-height:1;letter-spacing:.115em;
  font-weight:770;text-transform:uppercase;white-space:nowrap;
  pointer-events:none;box-shadow:inset 0 1px #fff1,0 6px 17px #02061648
}
.bh-galaxy-sky-caption[hidden]{display:none!important}
.bh-galaxy-sky-caption::before{
  content:"";width:6px;height:6px;margin-right:9px;
  border-radius:50%;background:#84d9d3;box-shadow:0 0 12px #84d9d380
}
/* The simulated fallback planet and the genuine spherical project screenshot
   use the SAME restrained highlights. This never changes the WebGL texture. */
.bh-galaxy-planet{
  border-color:#cdd9fd6e;
  box-shadow:inset -20px -16px 23px #030918d6,inset 7px 8px 14px #e3f2ff34,0 0 0 1px #badbff1a,0 0 19px #8aa2e947
}
.bh-galaxy-planet::after{
  background:radial-gradient(ellipse at 26% 17%,#fff9,transparent 34%),
    linear-gradient(122deg,transparent 36%,#04081bc4 95%);
  box-shadow:inset -13px -9px 23px #020613ca
}
/* Unlike the old pink selection rectangle, the active world keeps a strictly
   circular highlight; names are emphasized in the fixed index instead. */
:is(#projectGalaxyPage,#myProjectsGalaxy) .bh-galaxy-sky .bh-galaxy-card[aria-current="true"] .bh-galaxy-planet{
  border-color:#e0d3ff;
  box-shadow:inset -20px -16px 23px #030918d6,inset 8px 8px 13px #f6f2ff3c,
    0 0 0 3px #8f77dc52,0 0 31px #aa9bec87
}
.bh-galaxy-camera-controls{gap:7px;right:16px;bottom:16px}
.bh-galaxy-camera-button{
  border:1px solid #8a9ac16e;background:#101a30db;border-radius:11px;
  box-shadow:inset 0 1px #edf1ff11,0 3px 12px #02040a7a
}
.bh-galaxy-camera-button:hover{border-color:#baacf2;background:#2a2547}
/* The detail surface is a specimen bay: the selected planet is the hero.
   All other UI stays quieter than the content and the complete title. */
.bh-galaxy-detail{
  position:relative;overflow:hidden;padding:23px 22px 22px;gap:11px;
  border:1px solid #8f9dd343;border-radius:25px;
  background:radial-gradient(ellipse 75% 34% at 50% 8%,#62509229,transparent 100%),
    linear-gradient(154deg,#172037,#0d1427 52%,#090f20);
  box-shadow:inset 0 1px #ffffff19,0 25px 57px #02040d59
}
.bh-galaxy-detail::before{
  content:"";position:absolute;inset:0 0 auto;height:2px;pointer-events:none;
  background:linear-gradient(90deg,transparent,#a999e770 49%,transparent);
}
.bh-galaxy-detail-heading{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  min-height:23px
}
.bh-galaxy-eyebrow{
  color:#b5b9d9;letter-spacing:.12em;font-size:10px;font-weight:780
}
.bh-galaxy-detail-serial{
  color:#b5c6df;font-size:11px;font-weight:730;
  letter-spacing:.12em;font-variant-numeric:tabular-nums
}
.bh-galaxy-detail-planet{
  width:min(78%,222px);margin:19px auto 22px;
  border:1px solid #c7b9f58c;
  background:radial-gradient(circle at 28% 20%,#d5dfff95,transparent 21%),
    radial-gradient(circle at 38% 32%,#8872c7,#29245f 60%,#081227 93%);
  box-shadow:inset -30px -22px 32px #010613cb,inset 9px 9px 19px #fff9,
    0 0 0 9px #8d83d60b,0 0 0 20px #8f84c409,0 0 40px #b4a2fb70
}
.bh-galaxy-detail-planet::before{
  content:"";position:absolute;z-index:3;inset:5px;border-radius:50%;pointer-events:none;
  border:1px solid #ffffff22
}
.bh-galaxy-detail h2{
  font-size:clamp(21px,1.95vw,27px);line-height:1.19;
  font-weight:820;letter-spacing:-.035em;color:#f9f9ff
}
.bh-galaxy-category{color:#93d8f1;letter-spacing:.14em;font-weight:800}
.bh-galaxy-description{
  max-height:12.8em;overflow-y:auto;overscroll-behavior:contain;
  padding-right:4px;scrollbar-width:thin;scrollbar-color:#746a9b transparent;
  color:#b4c2dc;font-size:12px;line-height:1.68
}
.bh-galaxy-status-chip{
  background:#2b264887;border-color:#9a88cb5b;color:#d9c9ff
}
.bh-galaxy-status-chip[data-status="published"]{
  background:#163d3b99;border-color:#6bceb07a;color:#aaf4db
}
.bh-galaxy-status-chip[data-status="published"]::before{
  background:#91e3bf;box-shadow:0 0 11px #86ddb888
}
.bh-galaxy-actions{gap:10px;margin-top:12px}
.bh-galaxy-open{
  min-height:47px;letter-spacing:.015em;
  background:linear-gradient(116deg,#6d4dcc,#9677e9);
  border-color:#c8b8ffad;
  box-shadow:inset 0 1px #ffffff50,0 8px 28px #7457ca45
}
.bh-galaxy-open:hover{background:linear-gradient(116deg,#8362dd,#ab8bfd)}
.bh-galaxy-cover-button{background:#18223b;border-color:#8b96c36f}
.bh-galaxy-cover-button:hover{background:#253151;border-color:#b6b7ee}
.bh-galaxy-meta{border-top-color:#a3abd72c}
/* List mode is allowed to use actual full rectangular cards. */
:is(#projectGalaxyPage,#myProjectsGalaxy) .bh-galaxy-sky.bh-galaxy-list .bh-galaxy-card{
  background:#121d34ed!important;border:1px solid #778ab458!important;
  border-radius:15px!important;box-shadow:inset 0 1px #ffffff0c!important
}
:is(#projectGalaxyPage,#myProjectsGalaxy) .bh-galaxy-sky.bh-galaxy-list .bh-galaxy-card[aria-current=true]{
  background:#212341f5!important;border-color:#b3a2f0bb!important
}
@media(max-width:850px){
  .bh-galaxy-detail-heading{grid-column:2}
  .bh-galaxy-sky{min-height:535px}
}
@media (max-width:640px){
  .bh-galaxy-tools{padding:9px;border-radius:15px}
  .bh-galaxy-sky{min-height:465px}
  .bh-galaxy-sky-caption{top:12px;font-size:9px;padding:7px 12px}
  .bh-galaxy-detail{padding:20px}
  .bh-galaxy-detail-heading{width:100%}
}

/* Named worlds: every globe carries its project's preview and, right under
   it, the project's name. Each world is one fixed box (--world-box-w/h) that
   project-galaxy-ui.mjs moves along an ellipse sized so no two boxes ever
   touch. The name label has a fixed maximum height, so the geometry holds. */
.bh-galaxy-sky:not(.bh-galaxy-list) .bh-galaxy-card,
.bh-galaxy-sky:not(.bh-galaxy-list) .bh-galaxy-card:hover,
.bh-galaxy-sky:not(.bh-galaxy-list) .bh-galaxy-card[aria-current=true]{
  justify-content:flex-start;gap:6px;
  width:var(--world-box-w,174px);height:var(--world-box-h,160px);padding:3px 0 0;
  transform:translate(-50%,-50%);animation:none;filter:none
}
.bh-galaxy-sky:not(.bh-galaxy-list) .bh-galaxy-planet{
  width:var(--world-size,84px);height:var(--world-size,84px)
}
.bh-galaxy-sky:not(.bh-galaxy-list) .bh-galaxy-card-name{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--world-lines,3);
  box-sizing:border-box;width:max-content;max-width:var(--world-label-w,168px);
  max-height:var(--world-label-h,58px);padding:0 9px;
  overflow:hidden;white-space:normal;text-overflow:ellipsis;
  /* Names wrap between words; a word is only split (with a hyphen where the
     language allows) when it is wider than the whole label on its own. */
  overflow-wrap:break-word;word-break:normal;hyphens:auto;text-align:center;
  /* Clamped text is clipped at the padding edge, so the vertical breathing
     room is a transparent border: a cut-off fourth line can never peek out. */
  border-radius:10px;border:5px solid transparent;
  background:#070c1df2;background-clip:border-box;color:#f4f6ff;outline:1px solid #b4b4f14d;outline-offset:-1px;
  font-size:calc(var(--world-line,16px) * .8);line-height:var(--world-line,16px);
  font-weight:720;letter-spacing:0;text-shadow:none;
  box-shadow:0 3px 12px #02050ec0
}
.bh-galaxy-sky:not(.bh-galaxy-list) .bh-galaxy-ring.ring-a{
  display:block;top:var(--world-orbit-y,50%);
  width:var(--world-orbit-w,79%);height:var(--world-orbit-h,51%);
  transform:translate(-50%,-50%);border-color:#a3b3f330
}
.bh-galaxy-sky:not(.bh-galaxy-list) .bh-galaxy-ring.ring-b{display:none}
.bh-galaxy-sky:not(.bh-galaxy-list) .bh-galaxy-core{top:var(--world-orbit-y,50%)}
.bh-galaxy-space-active:not(.bh-galaxy-list) .bh-galaxy-core{display:none}

/* The flat preview a world shows while it is pointed at or tapped. */
.bh-galaxy-peek{
  position:absolute;z-index:20;left:0;top:0;width:min(340px,calc(100% - 20px));
  display:flex;flex-direction:column;gap:9px;padding:9px;
  border:1px solid #b9a8f59c;border-radius:16px;
  background:#0a1022f7;box-shadow:0 18px 44px #01030bd9,0 0 0 1px #8f77dc33;
  pointer-events:none;animation:bh-galaxy-peek-in .16s ease-out
}
.bh-galaxy-peek[hidden]{display:none!important}
.bh-galaxy-peek.is-touch{pointer-events:auto}
.bh-galaxy-peek-image{
  display:block;width:100%;aspect-ratio:16/9;object-fit:cover;
  border-radius:10px;background:#050915
}
.bh-galaxy-peek-image[hidden]{display:none}
.bh-galaxy-peek-empty{
  display:grid;place-items:center;margin:0;aspect-ratio:16/9;padding:14px;
  border:1px dashed #8f9dd366;border-radius:10px;
  color:#b4c2dc;font-size:12px;line-height:1.5;text-align:center
}
.bh-galaxy-peek-empty[hidden]{display:none}
.bh-galaxy-peek-name{
  color:#f6f7ff;font-size:14px;line-height:1.35;font-weight:760;
  overflow-wrap:anywhere;padding:0 3px
}
.bh-galaxy-peek-open{
  min-height:42px;border:1px solid #c8b8ffad;border-radius:11px;
  background:linear-gradient(116deg,#6d4dcc,#9677e9);color:#fff;
  font:inherit;font-size:13px;font-weight:760;cursor:pointer
}
.bh-galaxy-peek-open[hidden]{display:none}
@keyframes bh-galaxy-peek-in{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}
@media(max-width:640px){.bh-galaxy-peek{width:min(290px,calc(100% - 20px))}}


/* The chosen world bursts apart in the core before its project opens. */
:is(#projectGalaxyPage,#myProjectsGalaxy) .bh-galaxy-burst{
  position:absolute;left:50%;top:50%;width:0;height:0;z-index:30;pointer-events:none;
}
:is(#projectGalaxyPage,#myProjectsGalaxy) .bh-galaxy-burst i{position:absolute;left:0;top:0;display:block;opacity:0}
:is(#projectGalaxyPage,#myProjectsGalaxy) .bh-galaxy-burst-flash{
  width:min(70vmin,520px);height:min(70vmin,520px);border-radius:50%;
  background:radial-gradient(circle,#fff 0,#f2d9ffcc 22%,#ab93ff55 48%,transparent 70%);
}
:is(#projectGalaxyPage,#myProjectsGalaxy) .bh-galaxy-burst-ring{
  width:140px;height:140px;border-radius:50%;border:5px solid #fff;
  box-shadow:0 0 24px #ab93ff,inset 0 0 18px #87d6f1;
}
:is(#projectGalaxyPage,#myProjectsGalaxy) .bh-galaxy-burst-shard{
  width:14px;height:14px;border-radius:3px;box-shadow:0 0 16px #fff,0 0 28px #ab93ff;
}
:is(#projectGalaxyPage,#myProjectsGalaxy) .bh-galaxy-flare{
  position:absolute;left:50%;top:50%;width:150px;height:150px;border-radius:50%;z-index:29;
  pointer-events:none;opacity:0;border:3px solid #f2d9ff;
  background:radial-gradient(circle,#fff 0,#f2d9ffaa 25%,#87d6f144 50%,transparent 70%);
  box-shadow:0 0 30px #ab93ff,0 0 60px #87d6f188;
}
:is(#projectGalaxyPage,#myProjectsGalaxy) .bh-galaxy-burst-nebula{
  width:min(80vmin,600px);height:min(80vmin,600px);border-radius:50%;filter:blur(6px);
  background:radial-gradient(ellipse 40% 55% at 42% 48%,hsl(var(--nova-hue,266) 95% 72% / .9),transparent 70%),
    radial-gradient(ellipse 55% 35% at 60% 55%,hsl(calc(var(--nova-hue,266) + 60) 95% 65% / .75),transparent 70%),
    radial-gradient(ellipse 35% 50% at 55% 35%,hsl(calc(var(--nova-hue,266) - 50) 95% 70% / .6),transparent 70%),
    radial-gradient(circle,#fff 0,transparent 18%);
}
:is(#projectGalaxyPage,#myProjectsGalaxy) .bh-galaxy-warp{position:absolute;left:0;top:0;width:0;height:0}
:is(#projectGalaxyPage,#myProjectsGalaxy) .bh-galaxy-burst .bh-galaxy-warp-streak{
  width:180px;height:2px;margin-top:-1px;transform-origin:0 50%;border-radius:2px;
  background:linear-gradient(90deg,transparent,#fff 70%,#d6f3ff);box-shadow:0 0 6px #b8e6ff;
}
:is(#projectGalaxyPage,#myProjectsGalaxy) .bh-galaxy-glass{
  position:absolute;left:0;top:0;width:min(320px,70vw);aspect-ratio:16/9;transform:translate(-50%,-50%);
}
.bh-galaxy-glass-piece{
  position:absolute;display:block;
  width:calc(100% / 6 + .5px);height:calc(100% / 4 + .5px);opacity:0;
  background-size:600% 400%;box-shadow:inset 0 0 0 1px #ffffff66,0 0 12px #c9b6ff88;
}
:is(#projectGalaxyPage,#myProjectsGalaxy) .bh-galaxy-lens{
  position:absolute;left:50%;top:50%;width:min(46vmin,340px);height:min(46vmin,340px);z-index:28;
  border-radius:50%;pointer-events:none;opacity:0;
  backdrop-filter:blur(3px) saturate(1.8) contrast(1.2) hue-rotate(25deg);
  -webkit-backdrop-filter:blur(3px) saturate(1.8) contrast(1.2) hue-rotate(25deg);
  -webkit-mask:radial-gradient(circle,transparent 18%,#000 40%,#000 62%,transparent 72%);
  mask:radial-gradient(circle,transparent 18%,#000 40%,#000 62%,transparent 72%);
}
:is(#projectGalaxyPage,#myProjectsGalaxy) .bh-galaxy-lens i{
  position:absolute;inset:22%;border-radius:50%;
  border:2px solid #fff;border-left-color:#c9b6ffaa;border-right-color:#87d6f1aa;
  box-shadow:0 0 22px #e9ddff,0 0 50px #ab93ff,inset 0 0 22px #e9ddff;
}
/* Hover life: Saturn ring, two moons and a pulsing aura around the world. */
.bh-galaxy-sky .bh-galaxy-life{
  position:absolute;left:50%;top:calc(3px + var(--world-size,84px) / 2);
  width:calc(var(--world-size,84px) * 2);height:calc(var(--world-size,84px) * 2);
  transform:translate(-50%,-50%);pointer-events:none;opacity:0;transition:opacity .25s;z-index:2;
}
.bh-galaxy-sky.bh-galaxy-list .bh-galaxy-life,.bh-galaxy-sky.bh-galaxy-launching .bh-galaxy-life{display:none}
.bh-galaxy-sky .bh-galaxy-card:hover .bh-galaxy-life,.bh-galaxy-sky .bh-galaxy-card:focus-visible .bh-galaxy-life{opacity:1}
.bh-galaxy-life i{position:absolute;display:block}
.bh-galaxy-life-aura{
  inset:22%;border-radius:50%;
  box-shadow:0 0 18px 6px hsl(var(--planet-hue,266) 90% 70% / .55),0 0 44px 14px hsl(var(--planet-hue,266) 90% 60% / .3);
  animation:bh-galaxy-aura 1.6s ease-in-out infinite;
}
.bh-galaxy-life-ring{
  left:4%;right:4%;top:40%;bottom:40%;border-radius:50%;
  border:3px solid hsl(var(--planet-hue,266) 80% 82% / .85);border-top-color:transparent;
  box-shadow:0 0 10px hsl(var(--planet-hue,266) 90% 75% / .7);transform:rotate(-16deg);
}
.bh-galaxy-life-moon{
  left:50%;top:50%;width:10px;height:10px;margin:-5px;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#fff,#b9c2e6 55%,#4a5277);box-shadow:0 0 8px #dfe6ff;
  animation:bh-galaxy-moon 3.2s linear infinite;
}
.bh-galaxy-life-moon.moon-b{width:7px;height:7px;margin:-3.5px;animation-duration:2.1s;animation-direction:reverse;--moon-r:-12px}
@keyframes bh-galaxy-aura{0%,100%{opacity:.55;transform:scale(.96)}50%{opacity:1;transform:scale(1.08)}}
@keyframes bh-galaxy-moon{
  from{transform:rotate(0deg) translateX(calc(var(--world-size,84px) * .82 + var(--moon-r,0px))) scaleY(1)}
  to{transform:rotate(360deg) translateX(calc(var(--world-size,84px) * .82 + var(--moon-r,0px)))}
}
@media (prefers-reduced-motion:reduce){
  .bh-galaxy-life-aura,.bh-galaxy-life-moon{animation:none}
}
.bh-galaxy-glass-fly{position:fixed;z-index:2147483000;pointer-events:none;overflow:hidden;border-radius:6px;box-shadow:0 0 40px #ab93ff88}
.bh-galaxy-glass-fly .bh-galaxy-load{
  position:absolute;left:0;right:0;bottom:0;height:6px;background:#0b0f1fb0;z-index:2;
}
.bh-galaxy-glass-fly .bh-galaxy-load i{
  position:absolute;left:0;top:0;bottom:0;width:0;display:block;
  background:linear-gradient(90deg,#ff5fa2,#ab93ff,#87d6f1);box-shadow:0 0 12px #ab93ff;
}
.bh-galaxy-glass-fly .bh-galaxy-load b{
  position:absolute;right:12px;bottom:12px;padding:3px 9px;border-radius:999px;
  background:#0b0f1fd0;color:#fff;font:700 13px/1.2 Inter,system-ui,sans-serif;
}
.bh-galaxy-glass-fly.is-landed .bh-galaxy-glass-piece{box-shadow:none;transition:box-shadow .25s}
.bh-galaxy-glass-fly.is-landed{border-radius:0;box-shadow:none}
/* Living worlds: atmosphere, drifting clouds and night-side city lights. */
.bh-galaxy-sky:not(.bh-galaxy-list) .bh-galaxy-planet{
  box-shadow:inset -18px -10px 19px #040616cb,inset 8px 8px 11px #e1eaff2b,
    0 0 0 2px hsl(var(--planet-hue,265) 90% 75% / .28),0 0 16px 3px hsl(var(--planet-hue,265) 90% 68% / .45);
}
.bh-galaxy-planet-clouds,.bh-galaxy-planet-night{position:absolute;inset:0;border-radius:50%;pointer-events:none;z-index:1}
.bh-galaxy-planet-clouds{
  background:radial-gradient(ellipse 30% 9% at 30% 30%,#ffffff70,transparent 70%),
    radial-gradient(ellipse 26% 7% at 70% 55%,#ffffff55,transparent 70%),
    radial-gradient(ellipse 34% 8% at 45% 78%,#ffffff48,transparent 70%),
    radial-gradient(ellipse 22% 6% at 85% 20%,#ffffff40,transparent 70%);
  background-size:200% 100%;mix-blend-mode:screen;
  animation:bh-galaxy-clouds 14s linear infinite;
}
.bh-galaxy-planet-night{
  background:radial-gradient(circle at 70% 64%,#ffd27a 0 1px,transparent 1.5px) 0 0/9px 8px,
    radial-gradient(circle at 30% 30%,#ffe9a8 0 .8px,transparent 1.3px) 3px 2px/7px 9px;
  -webkit-mask:radial-gradient(circle at 25% 22%,transparent 46%,#000 66%);
  mask:radial-gradient(circle at 25% 22%,transparent 46%,#000 66%);
  opacity:.5;
}
@keyframes bh-galaxy-clouds{from{background-position:0 0}to{background-position:-200% 0}}
.bh-galaxy-list .bh-galaxy-planet-clouds,.bh-galaxy-list .bh-galaxy-planet-night,.bh-galaxy-list .bh-galaxy-trail{display:none}
/* Comet trail behind each world, pointing back along its orbit. */
.bh-galaxy-sky .bh-galaxy-trail{
  position:absolute;left:50%;top:calc(3px + var(--world-size,84px) / 2);z-index:-1;pointer-events:none;
  width:calc(var(--world-size,84px) * 1.6);height:calc(var(--world-size,84px) * .42);
  transform-origin:0 50%;transform:translateY(-50%) rotate(var(--trail-angle,180deg));
  background:linear-gradient(90deg,hsl(var(--planet-hue,265) 90% 78% / .5),hsl(var(--planet-hue,265) 90% 70% / .12) 55%,transparent);
  -webkit-mask:radial-gradient(ellipse 100% 50% at 0 50%,#000 40%,transparent 100%);
  mask:radial-gradient(ellipse 100% 50% at 0 50%,#000 40%,transparent 100%);
  filter:blur(2px);
}
.bh-galaxy-sky.bh-galaxy-launching .bh-galaxy-trail{display:none}
/* Constellation lines between worlds of the same kind. */
.bh-galaxy-constellation{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none;overflow:visible}
.bh-galaxy-constellation line{stroke:#c9d6ff;stroke-opacity:.28;stroke-width:1.2;stroke-dasharray:2 5;filter:drop-shadow(0 0 3px #ab93ff)}
.bh-galaxy-list .bh-galaxy-constellation,.bh-galaxy-sky.bh-galaxy-launching .bh-galaxy-constellation{display:none}
/* Mouse gravity: a small lens that bends the stars under the pointer. */
.bh-galaxy-gravity{
  position:absolute;width:150px;height:150px;margin:-75px 0 0 -75px;border-radius:50%;z-index:2;pointer-events:none;
  backdrop-filter:blur(1.5px) brightness(1.25) saturate(1.4);-webkit-backdrop-filter:blur(1.5px) brightness(1.25) saturate(1.4);
  -webkit-mask:radial-gradient(circle,transparent 20%,#000 45%,transparent 70%);mask:radial-gradient(circle,transparent 20%,#000 45%,transparent 70%);
  box-shadow:0 0 30px #ab93ff22 inset;
}
.bh-galaxy-gravity[hidden],.bh-galaxy-list .bh-galaxy-gravity,.bh-galaxy-launching .bh-galaxy-gravity{display:none}
/* Phone tilt parallax: worlds move with the tilt, the backdrop against it. */
.bh-galaxy-sky:not(.bh-galaxy-list):not(.bh-galaxy-launching) .bh-galaxy-cards,
.bh-galaxy-sky:not(.bh-galaxy-list):not(.bh-galaxy-launching) .bh-galaxy-constellation{
  transform:translate(var(--tilt-x,0px),var(--tilt-y,0px));
}
.bh-galaxy-sky:not(.bh-galaxy-list) > canvas{transform:translate(calc(var(--tilt-x,0px) * -.6),calc(var(--tilt-y,0px) * -.6)) scale(1.04)}
/* A new project condenses from a nebula. */
.bh-galaxy-birth{
  position:absolute;left:50%;top:calc(3px + var(--world-size,84px) / 2);z-index:3;pointer-events:none;
  width:calc(var(--world-size,84px) * 2.2);height:calc(var(--world-size,84px) * 2.2);border-radius:50%;filter:blur(4px);opacity:0;
  background:radial-gradient(ellipse 45% 30% at 40% 45%,hsl(var(--planet-hue,265) 95% 72% / .85),transparent 70%),
    radial-gradient(ellipse 30% 45% at 62% 55%,hsl(calc(var(--planet-hue,265) + 60) 95% 70% / .7),transparent 70%),
    radial-gradient(circle,#fff8 0,transparent 25%);
}
/* A deleted project collapses into a small black hole. */
.bh-galaxy-dying{pointer-events:none!important;z-index:4}
.bh-galaxy-hole{
  position:absolute;left:50%;top:calc(3px + var(--world-size,84px) / 2);z-index:3;pointer-events:none;opacity:0;
  width:calc(var(--world-size,84px) * .8);height:calc(var(--world-size,84px) * .8);border-radius:50%;
  background:radial-gradient(circle,#000 0 48%,#1a0b33 56%,transparent 72%);
  box-shadow:0 0 0 2px #ab93ffaa,0 0 18px 6px #7b4dffaa,inset 0 0 12px #000;
}
@media (prefers-reduced-motion:reduce){
  .bh-galaxy-planet-clouds{animation:none}
  .bh-galaxy-trail,.bh-galaxy-gravity{display:none}
}
/* Aurora: light curtains in the background; colours follow the time of day. */
.bh-galaxy-aurora{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden;opacity:.32;mix-blend-mode:screen}
.bh-galaxy-aurora i{
  position:absolute;left:-20%;width:140%;height:42%;top:-6%;display:block;filter:blur(28px);border-radius:50%;
  background:linear-gradient(90deg,transparent,hsl(var(--aurora-a,150) 90% 60% / .55) 25%,hsl(var(--aurora-b,190) 90% 62% / .45) 55%,hsl(var(--aurora-a,150) 90% 58% / .35) 80%,transparent);
  animation:bh-galaxy-aurora 18s ease-in-out infinite alternate;
}
.bh-galaxy-aurora i:nth-child(2){top:6%;height:30%;animation-duration:24s;animation-delay:-6s;opacity:.7}
.bh-galaxy-aurora i:nth-child(3){top:62%;height:34%;animation-duration:30s;animation-delay:-12s;opacity:.45;transform:scaleY(-1)}
@keyframes bh-galaxy-aurora{
  0%{transform:translateX(-6%) skewX(-12deg) scaleY(.8)}50%{transform:translateX(4%) skewX(8deg) scaleY(1.15)}100%{transform:translateX(8%) skewX(-4deg) scaleY(.9)}
}
.bh-galaxy-list .bh-galaxy-aurora,.bh-galaxy-list .bh-galaxy-eclipse{display:none}
/* Eclipse: a shadow disc and a bright corona over the white hole. */
.bh-galaxy-eclipse{
  position:absolute;left:50%;top:50%;width:140px;height:140px;margin:-70px 0 0 -70px;border-radius:50%;z-index:2;pointer-events:none;opacity:0;
  background:radial-gradient(circle,#02030acc 0 34%,transparent 36%);
  box-shadow:0 0 0 3px #fff8,0 0 30px 10px #f2e9ff99,0 0 80px 30px #ab93ff55;
  transition:opacity .15s linear;
}
.bh-galaxy-sky .bh-galaxy-card.is-eclipsing .bh-galaxy-planet{box-shadow:inset -18px -10px 19px #040616ee,0 0 0 2px #fff,0 0 26px 8px #f2e9ffcc}
/* Active worlds glow; old ones dim. */
.bh-galaxy-sky:not(.bh-galaxy-list) .bh-galaxy-card.is-hot .bh-galaxy-planet{filter:brightness(1.15) saturate(1.2);
  box-shadow:inset -18px -10px 19px #040616cb,0 0 0 2px hsl(var(--planet-hue,265) 90% 80% / .5),0 0 26px 8px hsl(var(--planet-hue,265) 95% 70% / .6)}
.bh-galaxy-sky:not(.bh-galaxy-list) .bh-galaxy-card.is-old .bh-galaxy-planet{filter:brightness(.68) saturate(.6)}
.bh-galaxy-life-moon.moon-c{display:none;width:6px;height:6px;margin:-3px;animation-duration:4.4s;--moon-r:14px}
.bh-galaxy-card.is-hot .bh-galaxy-life-moon.moon-c{display:block}
.bh-galaxy-sky .bh-galaxy-card.is-hot .bh-galaxy-life{opacity:.6}
.bh-galaxy-sky .bh-galaxy-card.is-hot:not(:hover) .bh-galaxy-life-ring{opacity:0}
.bh-galaxy-sky .bh-galaxy-card.is-hot:hover .bh-galaxy-life{opacity:1}
/* Live worlds: lighthouse beam, signal rings and a LIVE badge. */
.bh-galaxy-beacon{position:absolute;left:50%;top:calc(3px + var(--world-size,84px) / 2);width:0;height:0;z-index:-1;pointer-events:none}
.bh-galaxy-beacon i{position:absolute;display:block;left:0;top:0}
.bh-galaxy-beam{
  width:calc(var(--world-size,84px) * 2.4);height:calc(var(--world-size,84px) * .9);margin-top:calc(var(--world-size,84px) * -.45);
  transform-origin:0 50%;
  background:conic-gradient(from 60deg at 0 50%,transparent 0deg,#b6ffd955 10deg,#e9fff4dd 25deg,#b6ffd955 40deg,transparent 50deg);
  -webkit-mask:linear-gradient(90deg,#000 20%,transparent);mask:linear-gradient(90deg,#000 20%,transparent);
  filter:blur(1px);animation:bh-galaxy-beam 5s linear infinite;
}
.bh-galaxy-signal{
  width:var(--world-size,84px);height:var(--world-size,84px);margin:calc(var(--world-size,84px) / -2) 0 0 calc(var(--world-size,84px) / -2);
  border-radius:50%;border:2px solid #7dffc0;opacity:0;animation:bh-galaxy-signal 2.4s ease-out infinite;
}
.bh-galaxy-signal.signal-b{animation-delay:1.2s}
@keyframes bh-galaxy-beam{to{transform:rotate(360deg)}}
@keyframes bh-galaxy-signal{0%{opacity:.8;transform:scale(1)}100%{opacity:0;transform:scale(2.3)}}
.bh-galaxy-live{
  position:absolute;left:50%;top:calc(var(--world-size,84px) - 6px);transform:translateX(-50%);z-index:3;
  padding:1px 7px 1px 16px;border-radius:999px;background:#06281a;color:#7dffc0;border:1px solid #2ee68f;
  font:800 10px/1.5 Inter,system-ui,sans-serif;letter-spacing:.08em;box-shadow:0 0 10px #2ee68f88;
}
.bh-galaxy-live::before{content:"";position:absolute;left:6px;top:50%;width:6px;height:6px;margin-top:-3px;border-radius:50%;background:#2ee68f;animation:bh-galaxy-live 1.2s ease-in-out infinite}
@keyframes bh-galaxy-live{50%{opacity:.25;box-shadow:0 0 0 4px #2ee68f33}}
.bh-galaxy-list .bh-galaxy-beacon,.bh-galaxy-launching .bh-galaxy-beacon,.bh-galaxy-launching .bh-galaxy-live{display:none}
.bh-galaxy-list .bh-galaxy-live{position:static;transform:none;display:inline-block;margin-top:4px}
/* Meteor shower when a project goes live. */
.bh-galaxy-meteors{position:absolute;width:0;height:0;z-index:6;pointer-events:none}
.bh-galaxy-meteor{position:absolute;left:0;top:0;display:block;width:70px;height:2px;transform-origin:100% 50%;
  background:linear-gradient(90deg,transparent,#ffe9b0 70%,#fff);border-radius:2px;box-shadow:0 0 8px #ffd27a}
/* Hyperspace entry when Galaxy view opens. */
.bh-galaxy-hyper{position:absolute;left:50%;top:50%;width:0;height:0;z-index:5;pointer-events:none}
.bh-galaxy-hyper i{position:absolute;left:0;top:0;display:block;width:260px;height:3px;margin-top:-1.5px;transform-origin:0 50%;
  background:linear-gradient(90deg,transparent,#fff 70%,#cdeeff);box-shadow:0 0 6px #b8e6ff;opacity:0}
/* Grab and throw. */
.bh-galaxy-sky .bh-galaxy-card.is-grabbed{cursor:grabbing;z-index:6}
.bh-galaxy-sky .bh-galaxy-card.is-grabbed .bh-galaxy-planet{transform:scale(1.08)}
@media (prefers-reduced-motion:reduce){
  .bh-galaxy-aurora i,.bh-galaxy-beam,.bh-galaxy-signal,.bh-galaxy-live::before{animation:none}
}
.bh-galaxy-planet-preview{-webkit-user-drag:none;user-select:none}
/* My projects: the galaxy is the project library itself. */
.bh-galaxy-page.bh-galaxy-embedded{background:transparent;padding:0;margin:0;min-height:0;border:0;box-shadow:none}
.bh-galaxy-embedded .bh-galaxy-layout{grid-template-columns:minmax(0,1fr);min-height:0}
#myProjectsGalaxy.bh-galaxy-embedded .bh-galaxy-sky{border:0;border-radius:0;background:transparent;box-shadow:none}
#myProjectsGalaxy.bh-galaxy-embedded .bh-galaxy-sky::before,#myProjectsGalaxy.bh-galaxy-embedded .bh-galaxy-sky::after{background:transparent;box-shadow:none;border:0}
.bh-galaxy-embedded .bh-galaxy-foot{margin-top:12px}
.bh-galaxy-embedded .bh-galaxy-planet-unset::before{content:"♥";color:#ff5fa2;font-size:22px;
  width:38px;height:38px;line-height:38px;text-align:center;border-radius:12px;background:#2a0f22d9;box-shadow:0 0 0 1px #ff5fa255,0 0 18px #ff5fa244}
.bh-galaxy-peek.is-actionable{pointer-events:auto}
.bh-galaxy-peek-actions{display:flex;align-items:center;gap:8px}
.bh-galaxy-peek-actions[hidden]{display:none}
.bh-galaxy-peek-icon{
  margin-left:auto;width:36px;height:32px;border-radius:10px;border:1px solid #b9a8f560;background:#151b33;color:#e8e6ff;
  font:700 15px/1 Inter,system-ui,sans-serif;cursor:pointer;
}
.bh-galaxy-peek-icon+.bh-galaxy-peek-icon{margin-left:0}
.bh-galaxy-peek-icon:hover,.bh-galaxy-peek-icon:focus-visible{background:#22294a;border-color:#c9b6ff}
.bh-galaxy-peek-icon.is-on{color:#ffd27a;border-color:#ffd27a88}
.bh-galaxy-peek-cover{
  padding:7px 12px;border-radius:10px;border:1px solid #ff5fa277;background:#2a0f22;color:#ffd6ea;
  font:700 12px/1.2 Inter,system-ui,sans-serif;cursor:pointer;
}
.bh-galaxy-peek-cover[hidden]{display:none}
.bh-galaxy-peek-cover:hover{background:#3a1430}
.my-projects-galaxy[hidden]{display:none}
/* No visible rectangle: every painted backdrop layer fades out before the edge. */
#myProjectsGalaxy.bh-galaxy-embedded .bh-galaxy-sky>:is(.bh-galaxy-space-canvas,.bh-galaxy-aurora,.bh-galaxy-eclipse,.bh-galaxy-gravity){
  -webkit-mask-image:radial-gradient(ellipse 50% 50% at 50% 50%,#000 55%,transparent 100%);
  mask-image:radial-gradient(ellipse 50% 50% at 50% 50%,#000 55%,transparent 100%)}
