/* Allocate space for the approved composition, not just its canvas. Keep the
   shared 1240px outer container and the same optical axis on both routes. */
.public-page .license-home-hero__inner:has(> .hm-optical),
.public-page .observation-catalog-hero__layout:has(> .hm-optical) {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr) !important;
  gap: 24px !important;
}
/* The approved artwork is scoped to the public hero; no global palette/layout reset. */
.public-page .hm-optical {
  --hmo-ink: #f2f1f8;
  --hmo-muted: #b1a9c3;
  --hmo-line: #aaa5d02b;
  position: relative;
  width: 100%;
  min-width: 0;
  margin: 0 0 0 auto;
  isolation: isolate;
  color: var(--hmo-ink);
}
.hm-optical, .hm-optical * { box-sizing: border-box; }
.hm-optical .hmo-stage { position: relative; width: 100%; aspect-ratio: 1; min-height: 560px; isolation: isolate; --gather: 0; view-transition-name: hm-orbit-field; }
.hm-optical .hmo-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.hm-optical .hmo-fallback { position: absolute; inset: 15%; border: 1px solid #ac98dc80; border-radius: 50%; background: radial-gradient(circle,#7c63b51c,transparent 69%); pointer-events: none; }
.hm-optical .hmo-fallback i { position: absolute; inset: 10%; border: 1px solid #6ca6c444; border-radius: 50%; transform: rotate(-25deg) scaleY(.78); }
.hm-optical .hmo-fallback i + i { inset: 22%; transform: rotate(38deg) scaleY(.9); }
.hm-optical .has-canvas .hmo-fallback { visibility: hidden; }
.hm-optical .hmo-core { position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%); width: 122px; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #c2b6e745; border-radius: 31px; background: linear-gradient(140deg,#a49abe38,#31304a50 38%,#12131fe8 80%); box-shadow: inset 0 1px 1px #f0e6ff45,inset 0 -1px #c2b2e813,0 18px 35px #0005,0 0 65px #7760c41b; backdrop-filter: blur(14px); z-index: 3; pointer-events: none; overflow: hidden; view-transition-name: hm-orbit-core; }
.hm-optical .hmo-core::before { content: ""; position: absolute; inset: 5px; border: 1px solid #e6ddff0c; border-radius: 26px; }
.hm-optical .hmo-core::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid #ccc4ff; opacity: calc(var(--gather)*.6); box-shadow: inset 0 0 26px #9a84ea33; }
.hm-optical .hmo-core img { position: relative; width: 79px; height: 79px; object-fit: contain; margin-top: -6px; }
.hm-optical .hmo-core > span { font: 8px/1.5 Consolas,monospace; letter-spacing: .11em; color: #bcb3d4; }
.hm-optical .hmo-glint { position: absolute; inset: -90%; background: linear-gradient(110deg,transparent 38%,#e6daff15 48%,#e4ecff28 50%,transparent 63%); transform: translateX(var(--glint,-20%)) rotate(-10deg); }
.hm-optical .hmo-label { position: absolute; font: 9px/1.5 Consolas,monospace; letter-spacing: .12em; color: #aaa5c2; display: flex; align-items: center; gap: 12px; z-index: 4; pointer-events: none; }
.hm-optical .hmo-label::before { content: ""; width: 20px; height: 1px; background: #b7b0d97a; }
.hm-optical .hmo-label-one { left: 8%; top: 20%; }
.hm-optical .hmo-label-two { right: 5%; bottom: 26%; }
.hm-optical .hmo-nodes { position: absolute; inset: 0; z-index: 4; view-transition-name: hm-orbit-labels; }
.hm-optical .hmo-node { --signal: 0; --tint: 170,157,224; position: absolute; display: block; width: min(42%,186px); min-height: 112px; padding: 13px 14px 11px; border: 1px solid #b2a8d330; border-radius: 14px; background: linear-gradient(135deg,#202030ec,#11141feb 65%); box-shadow: inset 0 1px #eee3ff0c,0 12px 32px #0004; text-align: left; backdrop-filter: blur(12px); isolation: isolate; text-decoration: none; cursor: pointer; touch-action: manipulation; transition: border-color 180ms ease-out; }
.hm-optical .hmo-node::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: radial-gradient(ellipse at 80% 110%,rgba(var(--tint),.22),transparent 70%); opacity: calc(.25 + var(--signal)*.75); pointer-events: none; }
.hm-optical .hmo-node::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid rgba(var(--tint),.85); box-shadow: 0 0 22px rgba(var(--tint),.07); opacity: var(--signal); pointer-events: none; }
.hm-optical .hmo-node.is-selected { border-color: rgba(var(--tint),.8); }
.hm-optical .hmo-node-head { display: flex; align-items: center; gap: 8px; }
.hm-optical .hmo-node-head img { flex-shrink: 0; width: 28px; height: 31px; object-fit: contain; padding: 3px; border: 1px solid #b5a2da1f; border-radius: 7px; background: #0e0e1788; }
.hm-optical .hmo-node-title { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.hm-optical .hmo-node-brand { font: 8px/1.2 Consolas,monospace; color: var(--hmo-muted); letter-spacing: .035em; }
.hm-optical .hmo-node strong { color: var(--hmo-ink); font-size: 12px; line-height: 1.3; font-weight: 650; }
.hm-optical .hmo-node small { display: flex; align-items: center; justify-content: space-between; gap: 3px; flex-wrap: wrap; margin-top: 7px; color: #ada5bd; font-size: 9px; line-height: 1.3; }
.hm-optical .hmo-node small > span { color: #b4a9d1; font-family: Consolas,monospace; letter-spacing: .05em; }
.hm-optical .hmo-curve { display: block; height: 27px; margin-top: 8px; color: rgb(var(--tint)); }
.hm-optical .hmo-curve svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hm-optical .hmo-zero { stroke: currentColor; stroke-width: .65; opacity: .26; fill: none; }
.hm-optical .hmo-line { stroke: currentColor; stroke-width: 1.35; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hm-optical .hmo-curve circle { fill: currentColor; }
.hm-optical .hmo-empty { height: 100%; display: flex; align-items: center; color: #a0a2b7; font-size: 10px; letter-spacing: .015em; line-height: 1.25; }
.hm-optical .hmo-node-0 { top: 9%; left: 0; --tint: 208,189,143; }
.hm-optical .hmo-node-1 { top: 12%; right: 0; --tint: 142,192,211; }
.hm-optical .hmo-node-2 { top: 60%; left: 0; --tint: 208,189,143; }
.hm-optical .hmo-node-3 { top: 60%; right: 0; }
.hm-optical .hmo-node-4 { bottom: 1%; left: calc(50% - 103px); width: 206px; --tint: 160,168,229; }
.hm-optical .hmo-node-4 .hmo-curve { height: 22px; margin-top: 5px; }
.hm-optical .hmo-node-4 small { margin-top: 5px; }
.hm-optical :is(a,button):focus-visible { outline: 2px solid #c7b8ff; outline-offset: 4px; }
.public-page > main.route-enter:has(.hm-optical) { animation: none !important; }
@media (min-width: 981px) {
  .public-page .license-home-hero__inner:has(> .hm-optical) .license-home-copy { container-type: inline-size; }
  .public-page .license-home-hero__inner:has(> .hm-optical) h1 {
    font-size: clamp(44px, 11.7cqi, 64px) !important;
    max-width: none;
  }
}
@media (min-width: 981px) and (max-width: 1100px) {
  .hm-optical .hmo-node { width: min(44%,162px); padding: 11px; }
  .hm-optical .hmo-node strong { font-size: 11px; }
  .hm-optical .hmo-node-4 { width: 186px; left: calc(50% - 93px); }
  .hm-optical .hmo-core { width: 104px; border-radius: 26px; }
  .hm-optical .hmo-core img { width: 67px; height: 67px; }
}
@media (min-width: 981px) and (max-width: 1240px) {
  .hm-optical .hmo-node-2, .hm-optical .hmo-node-3 { top: 57%; }
}
@media (max-width: 980px) {
  .public-page .license-home-hero__inner:has(> .hm-optical),
  .public-page .observation-catalog-hero__layout:has(> .hm-optical) {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }
  .public-page .hm-optical { width: min(100%,600px); margin-inline: auto; }
}
@media (max-width: 600px) {
  .public-page .hm-optical[data-optical-mode="observation"] { padding-bottom: max(76px, calc(16% + 16px)); }
  .hm-optical .hmo-stage { aspect-ratio: .9; min-height: 430px; }
  .hm-optical .hmo-node { width: 45%; min-height: 106px; padding: 11px; border-radius: 12px; }
  .hm-optical .hmo-node-head { gap: 6px; }
  .hm-optical .hmo-node-head img { width: 23px; height: 28px; padding: 2px; }
  .hm-optical .hmo-node-brand { font-size: 7px; }
  .hm-optical .hmo-node strong { font-size: 11px; }
  .hm-optical .hmo-node-0,.hm-optical .hmo-node-1 { top: 7%; }
  .hm-optical .hmo-node-2,.hm-optical .hmo-node-3 { top: 60%; }
  .hm-optical .hmo-node-4 { width: 55%; left: 22.5%; bottom: -14%; }
  .hm-optical .hmo-core { width: 89px; border-radius: 24px; }
  .hm-optical .hmo-core img { width: 59px; height: 59px; }
  .hm-optical .hmo-core > span { font-size: 6px; }
  .hm-optical .hmo-core::before { border-radius: 19px; }
  .hm-optical .hmo-label { font-size: 8px; }
}
@media (max-width: 360px) {
  .public-page .license-home-hero__inner:has(> .hm-optical) h1 { font-size: 52px !important; }
  .public-page .observation-catalog-hero__layout:has(> .hm-optical) h1 { font-size: 46px !important; }
  .hm-optical .hmo-node { padding: 9px; }
  .hm-optical .hmo-node-head img { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-optical *, .hm-optical *::before, .hm-optical *::after { transition: none !important; animation: none !important; }
}
