:root {
  --bg: #f4f8fb;
  --surface: #ffffff;
  --surface-2: #f7fafc;
  --text: #12202e;
  --muted: #617486;
  --muted-2: #8999a8;
  --line: #e1e8ee;
  --blue: #287aa8;
  --blue-dark: #1f668f;
  --blue-soft: #eaf4fa;
  --cyan: #28a4bc;
  --shadow: 0 20px 58px rgba(25, 56, 77, .085);
  --gps: #287aa8;
  --galileo: #26a8a2;
  --glonass: #7a69c7;
  --beidou: #d99237;
  --other: #7e8c99;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 72% -8%, rgba(40,122,168,.09), transparent 31%),
    linear-gradient(180deg, #fbfdff 0, var(--bg) 610px);
  color: var(--text);
  font-family: "Segoe UI Variable Text", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { color: inherit; }

.splash {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; align-content: center; gap: 24px;
  background: #fff;
  transition: opacity .55s ease, visibility .55s ease;
}
.splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-brand-lockup { position: relative; z-index: 2; display: grid; justify-items: center; gap: 7px; }
.splash-logo { width: min(184px, 50vw); height: auto; animation: logoIn .72s cubic-bezier(.2,.8,.2,1) both; }
.splash-product {
  margin-top: 3px; padding-left: .42em; color: var(--blue); font-size: clamp(25px, 4vw, 34px);
  line-height: 1; font-weight: 420; letter-spacing: .42em; animation: splashSkyIn .7s .22s cubic-bezier(.2,.8,.2,1) both;
}
.splash-tagline { margin: 4px 0 0; color: var(--muted); font-size: 13px; font-weight: 380; letter-spacing: .025em; animation: splashTagIn .65s .38s ease both; }
.splash-orbit { position: absolute; width: 330px; height: 164px; border: 1px solid rgba(40,122,168,.14); border-radius: 50%; transform: rotate(-10deg); animation: orbitBreathe 2s ease-in-out infinite; }
.splash-ring-2 { position: absolute; inset: 22px -20px; border: 1px solid rgba(40,122,168,.08); border-radius: 50%; transform: rotate(22deg); }
.splash-ring-3 { position: absolute; inset: 40px -42px; border: 1px solid rgba(40,122,168,.05); border-radius: 50%; transform: rotate(-22deg); }
.splash-satellite { position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 8px rgba(40,122,168,.09), 0 0 26px rgba(40,122,168,.3); transform-origin: 0 87px; animation: satelliteOrbit 1.9s linear infinite; }
.splash-progress { width: 136px; height: 3px; border-radius: 3px; overflow: hidden; background: #eef3f7; }
.splash-progress span { display: block; width: 55%; height: 100%; background: var(--blue); border-radius: inherit; animation: progress 1.2s ease-in-out infinite; }
@keyframes logoIn { from { opacity: 0; transform: scale(.92) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes satelliteOrbit { to { transform: rotate(360deg); } }
@keyframes orbitBreathe { 50% { transform: rotate(-10deg) scale(1.045); } }
@keyframes progress { 0% { transform: translateX(-130%); } 100% { transform: translateX(240%); } }

.app { min-height: 100vh; opacity: 1; transition: opacity .4s ease; }
.app-hidden { opacity: 0; }
.topbar {
  height: 82px; display: flex; align-items: center; padding: 0 clamp(20px, 4vw, 60px);
  border-bottom: 1px solid rgba(218,227,235,.86); background: rgba(255,255,255,.88); backdrop-filter: blur(18px);
  position: sticky; top: 0; z-index: 50;
}
.brand { display: flex; align-items: center; padding-right: 24px; border-right: 1px solid var(--line); }
.brand img { width: 158px; height: auto; display: block; }
.topbar-title { padding-left: 24px; display: grid; gap: 2px; align-content: center; }
.topbar-title .topbar-sky { color: var(--blue); font-size: 17px; font-weight: 480; line-height: 1; letter-spacing: .28em; }
.topbar-title small { color: var(--muted); font-size: 10.5px; font-weight: 400; line-height: 1.2; white-space: nowrap; }
.eyebrow { color: var(--blue); font-weight: 540; letter-spacing: .115em; font-size: 11px; }
.location-pill { margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 11px 15px; display: flex; gap: 10px; align-items: center; color: #405264; font-size: 13px; cursor: pointer; box-shadow: 0 5px 14px rgba(31,63,84,.04); }
.location-pill:hover { border-color: #c7d6e0; background: #fbfdff; }
.location-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }

.page-shell { width: min(1580px, calc(100% - 44px)); margin: 0 auto; padding: 52px 0 30px; }
.intro-row { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 32px; }
h1 { margin: 9px 0 12px; font-family: "Segoe UI Variable Display", "SF Pro Display", "Helvetica Neue", system-ui, sans-serif; font-size: clamp(37px, 4vw, 55px); font-weight: 500; line-height: 1.02; letter-spacing: -.043em; max-width: 800px; }
.lede { margin: 0; max-width: 800px; color: var(--muted); line-height: 1.65; font-size: 17px; }
.live-badge { flex: 0 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 11px 15px; color: var(--muted); font-size: 13px; box-shadow: 0 6px 16px rgba(31,63,84,.04); }
.live-badge span { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #36a875; box-shadow: 0 0 0 4px rgba(54,168,117,.1); }

.stat-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.stat-card { min-height: 122px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; display: grid; grid-template-columns: 62px minmax(0,1fr); gap: 18px; align-items: center; box-shadow: 0 10px 32px rgba(32,63,83,.045); }
.stat-primary { background: linear-gradient(135deg, #fff, #f3faff); border-color: #d5e7f1; }
.stat-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; align-self: center; background: var(--blue); color: white; }
.stat-icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.stat-icon.soft-blue { background: var(--blue-soft); color: var(--blue); }
.stat-icon.soft-cyan { background: #e9f8f8; color: #299a9a; }
.stat-copy { min-width: 0; display: grid; gap: 3px; align-content: center; }
.stat-copy > span { color: var(--muted); font-size: 13px; font-weight: 400; }
.stat-copy > strong { font-size: clamp(26px, 2.2vw, 34px); font-weight: 500; line-height: 1.05; letter-spacing: -.035em; overflow-wrap: anywhere; }
.stat-copy > small { color: var(--muted); font-size: 12px; line-height: 1.4; }

.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 20px; align-items: stretch; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; }
.panel-head { padding: 25px 28px 17px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.panel-head h2, .details-card h2 { margin: 6px 0 0; font-size: 25px; font-weight: 500; letter-spacing: -.028em; }
.sky-actions { display: flex; align-items: center; gap: 9px; }
.view-switch { background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; padding: 4px; display: flex; gap: 2px; }
.view-switch button { border: 0; background: transparent; border-radius: 9px; padding: 10px 14px; font-size: 13px; color: var(--muted); cursor: pointer; }
.view-switch button.active { background: #fff; color: var(--blue); box-shadow: 0 3px 10px rgba(31,63,84,.08); font-weight: 500; }
.ar-button { border: 1px solid #bfd9e7; background: #f3faff; color: var(--blue-dark); border-radius: 12px; padding: 10px 13px; display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; cursor: pointer; }
.ar-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ar-button:hover { background: #eaf6fc; }
.motion-view-button { display: none; }
.motion-badge { position: absolute; left: 20px; top: 18px; z-index: 5; display: flex; align-items: center; gap: 10px; max-width: min(330px, calc(100% - 40px)); padding: 9px 12px; border: 1px solid #d7e7ef; border-radius: 14px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); box-shadow: 0 7px 20px rgba(31,63,84,.06); pointer-events: none; }
.motion-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.motion-badge div { display: grid; gap: 1px; min-width: 0; }
.motion-badge strong { color: #29485b; font-size: 12px; font-weight: 500; }
.motion-badge small { color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.filter-row { padding: 2px 28px 16px; display: flex; gap: 9px; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 12px; display: flex; gap: 8px; align-items: center; color: #526476; font-size: 13px; white-space: nowrap; cursor: pointer; }
.filter-chip b { min-width: 22px; height: 22px; border-radius: 999px; padding: 0 6px; background: #f0f4f7; display: grid; place-items: center; font-size: 10px; }
.filter-chip.active { border-color: #a9ccdf; background: #eef8fd; color: var(--blue-dark); box-shadow: inset 0 0 0 1px rgba(40,122,168,.035); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-all { background: #8090a0; }.dot-gps{background:var(--gps)}.dot-galileo{background:var(--galileo)}.dot-glonass{background:var(--glonass)}.dot-beidou{background:var(--beidou)}
.canvas-wrap { position: relative; min-height: 720px; height: min(75vh, 820px); background: radial-gradient(circle at 50% 44%, #ffffff 0, #fbfdff 42%, #eff5f8 100%); border-top: 1px solid #edf2f6; overflow: hidden; }
.compass-overlay { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.compass-overlay.hidden { display: none; }
.compass-marker {
  position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center;
  transform: translate(-50%,-50%); border: 1px solid rgba(189,210,222,.9); border-radius: 999px;
  background: rgba(255,255,255,.90); color: #496678; font-size: 13px; font-weight: 560; line-height: 1;
  box-shadow: 0 5px 18px rgba(31,63,84,.08); backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px); transition: opacity .15s ease;
}
#skyCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
#skyCanvas:active { cursor: grabbing; }
.canvas-hint { position: absolute; left: 20px; bottom: 18px; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 999px; padding: 9px 12px; color: var(--muted-2); font-size: 12px; pointer-events: none; }
.canvas-hint span { color: var(--muted); font-weight: 500; }
.data-badge { position: absolute; right: 20px; bottom: 18px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.92); color: var(--muted); font-size: 12px; }
.data-badge.live { color: #2e7e5b; border-color: #d7ebe1; background: rgba(247,253,250,.94); }
.data-badge.demo { color: #95682a; border-color: #f0dfc0; background: rgba(255,251,242,.95); }

.details-card { min-height: 100%; display: flex; }
.empty-details { margin: auto; padding: 42px 32px; text-align: center; }
.empty-details h2 { margin-top: 12px; }
.empty-details p { color: var(--muted); line-height: 1.65; font-size: 15px; }
.satellite-glyph { width: 110px; height: 82px; margin: 0 auto 30px; position: relative; opacity: .9; }
.satellite-glyph .body { position: absolute; width: 35px; height: 41px; left: 38px; top: 19px; border: 2px solid var(--blue); border-radius: 9px; background: var(--blue-soft); transform: rotate(-14deg); }
.satellite-glyph .wing { position: absolute; top: 26px; width: 36px; height: 28px; border: 2px solid #79a9c4; background: repeating-linear-gradient(90deg,#eef6fa 0 6px,#dcecf5 6px 8px); }
.satellite-glyph .wing-left { left: 0; transform: rotate(-14deg); }.satellite-glyph .wing-right{right:0;transform:rotate(-14deg)}
.sat-details { width: 100%; display: flex; flex-direction: column; }
.hidden { display: none !important; }
.detail-hero { padding: 27px 27px 16px; display: flex; justify-content: space-between; gap: 14px; }
.detail-hero h2 { margin: 9px 0 4px; font-size: 24px; font-weight: 500; }
.detail-hero p { margin: 0; color: var(--muted); font-size: 14px; }
.constellation-badge { display: inline-flex; padding: 6px 9px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 10px; font-weight: 540; letter-spacing: .08em; text-transform: uppercase; }
.icon-button { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 22px; line-height: 1; color: var(--muted); }
.satellite-visual { height: 230px; position: relative; display: grid; place-items: center; margin: 0 20px; border-radius: 19px; overflow: hidden; background: radial-gradient(circle at 50% 42%, #fff 0, #f5f9fc 58%, #ebf3f7 100%); border: 1px solid #e5edf3; }
.orbit-line { position: absolute; width: 340px; height: 96px; border: 1px solid rgba(40,122,168,.17); border-radius: 50%; transform: rotate(-18deg); }
.detail-spacecraft { position: relative; z-index: 2; display: block; max-width: 86%; max-height: 174px; object-fit: contain; filter: drop-shadow(0 16px 16px rgba(29,72,97,.14)); }
.detail-spacecraft.photo { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; filter: none; }
.image-credit-row { min-height: 25px; margin: 7px 24px 0; display: flex; justify-content: flex-end; align-items: flex-start; }
.image-credit-box { position: relative; max-width: 100%; color: #718596; font-size: 11px; }
.image-credit-box summary { list-style: none; cursor: pointer; user-select: none; color: #718596; border-bottom: 1px dotted #aab9c4; line-height: 1.45; }
.image-credit-box summary::-webkit-details-marker { display: none; }
.image-credit-box summary:hover { color: var(--blue); border-bottom-color: var(--blue); }
.image-credit-popover { margin-top: 7px; width: min(310px, 78vw); padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 12px 28px rgba(31,63,84,.1); display: grid; gap: 7px; line-height: 1.45; color: var(--muted); }
.image-credit-popover a { color: var(--blue); text-decoration: none; font-weight: 500; }
.sat-illustration { position: relative; z-index:2; width: 172px; height: 82px; filter: drop-shadow(0 13px 14px rgba(29,72,97,.15)); transform: rotate(-9deg); }
.sat-core { position: absolute; width: 50px; height: 57px; left: 61px; top: 12px; border-radius: 10px; background: linear-gradient(145deg,#dbe8ef,#fff); border: 2px solid #8da8b7; }
.sat-core:after { content:""; position:absolute; width:19px;height:19px;border-radius:50%;border:2px solid var(--blue);left:13px;top:17px;background:white; }
.sat-panel { position:absolute; top:20px; width:59px; height:41px; border:2px solid #7d9faf; background: repeating-linear-gradient(90deg,#e5f2f7 0 8px,#cfe6f0 8px 10px); }
.sat-left{left:0}.sat-right{right:0}
 .detail-section { margin: 19px 20px 0; }
.detail-section h3 { margin: 0 0 10px; font-size: 13px; font-weight: 500; color: #354b5c; letter-spacing: -.01em; }
.fact-list, .spec-list { margin: 0; padding: 0; list-style: none; }
.fact-list { display: grid; gap: 9px; }
.fact-list li { position: relative; padding-left: 16px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.fact-list li::before { content: ""; position: absolute; left: 1px; top: .64em; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.spec-list { border: 1px solid var(--line); border-radius: 17px; overflow: hidden; background: #fff; }
.spec-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(115px, 1.15fr); gap: 15px; align-items: baseline; padding: 11px 14px; border-bottom: 1px solid #edf1f4; }
.spec-list li:last-child { border-bottom: 0; }
.spec-list span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .065em; }
.spec-list strong { color: #203443; font-size: 12px; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.detail-note { margin: 20px; color: var(--muted); font-size: 12.5px; line-height: 1.65; }

footer { padding: 24px 4px 0; display: flex; justify-content: space-between; color: var(--muted-2); font-size: 11px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(25,45,61,.26); backdrop-filter: blur(8px); }
.modal-card { width: min(450px,100%); padding: 32px; background:#fff; border:1px solid var(--line); border-radius: 27px; box-shadow: 0 30px 80px rgba(23,47,63,.2); text-align:center; }
.modal-icon { width: 62px;height:62px;margin:0 auto 19px;border-radius:19px;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;font-size:27px; }
.modal-card h2 { margin:9px 0 11px;font-size:27px;letter-spacing:-.03em; }
.modal-card p { color:var(--muted);font-size:15px;line-height:1.62; }
.primary-button { width:100%;border:0;background:var(--blue);color:#fff;border-radius:14px;padding:14px 16px;font-weight: 500;cursor:pointer;margin-top:9px;font-size:15px; }
.primary-button:hover { background:var(--blue-dark); }
.text-button { border:0;background:transparent;color:var(--blue);font-weight: 500;font-size:13px;cursor:pointer;margin:13px 0; }
.modal-card small { display:block;color:var(--muted-2);font-size:11px;line-height:1.55; }

.ar-overlay { position: fixed; inset: 0; z-index: 500; background: #071119; color: white; overflow: hidden; }
.ar-video, .ar-canvas, .ar-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.ar-video { object-fit: cover; }
.ar-canvas { z-index: 3; touch-action: none; }
.ar-shade { z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(4,13,20,.48), transparent 22%, transparent 67%, rgba(4,13,20,.6)); }
.ar-header { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: calc(15px + env(safe-area-inset-top)) 17px 12px; }
.ar-brand { display:flex; align-items:center; gap:10px; font-weight: 500; font-size:15px; text-shadow:0 1px 8px rgba(0,0,0,.4); }
.ar-brand img { width: 118px; height: auto; display: block; object-fit: contain; filter: brightness(0) invert(1); }
.ar-brand span { opacity:.84; padding-left:10px; border-left:1px solid rgba(255,255,255,.3); }
.ar-close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(7,17,25,.38); color: white; font-size: 25px; backdrop-filter: blur(10px); }
.ar-status { position:absolute; z-index:5; top:calc(82px + env(safe-area-inset-top)); left:50%; transform:translateX(-50%); display:grid; gap:3px; text-align:center; text-shadow:0 1px 8px rgba(0,0,0,.55); pointer-events:none; width:min(88%,420px); }
.ar-status strong { font-size:15px; }.ar-status span{font-size:11px;opacity:.8;}
.ar-reticle { position:absolute;z-index:4;left:50%;top:50%;width:46px;height:46px;transform:translate(-50%,-50%);border:1px solid rgba(255,255,255,.54);border-radius:50%;box-shadow:0 0 0 7px rgba(255,255,255,.05);pointer-events:none; }
.ar-reticle:before,.ar-reticle:after{content:"";position:absolute;background:rgba(255,255,255,.74);left:50%;top:50%;transform:translate(-50%,-50%)}.ar-reticle:before{width:16px;height:1px}.ar-reticle:after{width:1px;height:16px}
.ar-info { position:absolute; z-index:6; left:14px; right:14px; bottom:calc(78px + env(safe-area-inset-bottom)); padding:15px 16px; border:1px solid rgba(255,255,255,.24); border-radius:18px; background:rgba(8,20,29,.72); backdrop-filter:blur(16px); display:grid; grid-template-columns:auto 1fr auto; gap:6px 12px; align-items:center; }
.ar-info .constellation-badge{grid-row:1/3}.ar-info strong{font-size:16px}.ar-info>span:not(.constellation-badge){font-size:12px;color:rgba(255,255,255,.75)}.ar-info button{grid-column:3;grid-row:1/3;border:0;border-radius:10px;background:white;color:#1e668f;padding:10px 11px;font-size:11px;font-weight: 540;}
.ar-nudge { position:absolute;z-index:5;bottom:calc(22px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;padding:5px;border-radius:999px;background:rgba(8,20,29,.48);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.18); }
.ar-nudge button{border:0;background:rgba(255,255,255,.12);color:white;border-radius:999px;padding:7px 10px;font-weight: 500}.ar-nudge span{font-size:10px;opacity:.72;text-transform:uppercase;letter-spacing:.08em}
.ar-footnote { position:absolute;z-index:5;left:50%;bottom:calc(4px + env(safe-area-inset-bottom));transform:translateX(-50%);width:90%;text-align:center;font-size:8px;opacity:.62;pointer-events:none; }


/* V0.4 layout + interaction polish */
.workspace { align-items: start; }
.sky-card { align-self: start; min-width: 0; }
.details-card {
  min-height: 0;
  align-self: start;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #c9d7e0 transparent;
}
.details-card::-webkit-scrollbar { width: 8px; }
.details-card::-webkit-scrollbar-thumb { background: #c9d7e0; border-radius: 999px; border: 2px solid #fff; }
.details-card::-webkit-scrollbar-track { background: transparent; }
.detail-hero {
  position: sticky;
  top: 0;
  z-index: 8;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(225,232,238,.75);
}
#skyCanvas { touch-action: pan-y; }
.canvas-zoom {
  position: absolute;
  z-index: 7;
  right: 20px;
  top: 18px;
  display: grid;
  gap: 7px;
}
.canvas-zoom button {
  width: 39px;
  height: 39px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.94);
  color: #40586a;
  font-size: 21px;
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(31,63,84,.06);
  backdrop-filter: blur(10px);
}
.canvas-zoom button:hover { border-color: #bcd2df; color: var(--blue); background: #fff; }

.ar-calibrate-button {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(8,20,29,.58);
  color: #fff;
  padding: 9px 15px;
  font-size: 11px;
  font-weight: 500;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.ar-calibration {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 18px 14px calc(18px + env(safe-area-inset-bottom));
  background: rgba(3,10,16,.32);
  backdrop-filter: blur(4px);
}
.ar-calibration-card {
  width: min(520px,100%);
  margin: 0 auto;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 23px;
  background: rgba(9,22,32,.94);
  color: #fff;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  backdrop-filter: blur(24px);
}
.ar-calibration-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.ar-calibration-head > div { display: grid; gap: 4px; }
.ar-calibration-head span { font-size: 9px; letter-spacing: .12em; opacity: .58; }
.ar-calibration-head strong { font-size: 18px; font-weight: 500; }
.ar-calibration-head button {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07); color: #fff; font-size: 22px;
}
.ar-calibration-card p { margin: 15px 0; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.78); }
.ar-cardinal-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.ar-cardinal-grid button {
  border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(255,255,255,.07);
  color: #fff; padding: 12px 8px; display: grid; gap: 3px; place-items: center;
}
.ar-cardinal-grid button:active { background: rgba(255,255,255,.16); }
.ar-cardinal-grid b { font-size: 17px; font-weight: 500; }
.ar-cardinal-grid span { font-size: 9px; opacity: .64; }
.ar-reset { width: 100%; margin-top: 10px; border: 0; border-radius: 12px; padding: 11px 12px; background: #fff; color: #1d668f; font-size: 11px; font-weight: 500; }
.ar-calibration-card small { display: block; margin-top: 11px; font-size: 9.5px; line-height: 1.5; color: rgba(255,255,255,.55); }
.ar-footnote { bottom: calc(7px + env(safe-area-inset-bottom)); }

@media (min-width: 1200px) {
  .ar-button { display: none; }
  .motion-view-button { display: none; }
}
@media (max-width: 1199px) {
  .motion-view-button { display: block; }
}
@media (max-width: 1100px) {
  .workspace { grid-template-columns: 1fr; }
  .details-card { min-height: 360px; height: auto !important; overflow: visible; scrollbar-gutter: auto; }
  .detail-hero { position: static; }
  .canvas-wrap { min-height: 650px; height: 68vh; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid .stat-card:first-child { grid-column: span 2; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar { height: 70px; padding: 0 16px; }
  .brand { padding-right: 12px; border: 0; }
  .brand img { width: 128px; }
  .topbar-title { display: none; }
  .location-pill { max-width: 50%; padding: 9px 11px; font-size: 12px; }
  #locationLabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .page-shell { width: min(100% - 20px, 1580px); padding-top: 31px; }
  .intro-row { display: block; margin-bottom: 24px; }
  .live-badge { display: inline-block; margin-top: 17px; }
  h1 { font-size: 38px; }
  .lede { font-size: 16px; }
  .stat-grid { grid-template-columns: 1fr; gap: 11px; }
  .stat-grid .stat-card:first-child { grid-column: auto; }
  .stat-card { min-height: 108px; padding: 18px; grid-template-columns: 56px 1fr; gap: 15px; }
  .stat-icon { width: 54px; height: 54px; border-radius: 16px; }.stat-icon svg{width:28px;height:28px}.stat-copy>strong{font-size:29px}.stat-copy>span{font-size:12px}.stat-copy>small{font-size:11px}
  .panel { border-radius: 21px; }
  .panel-head { align-items: flex-start; flex-direction: column; padding: 20px 17px 14px; }
  .panel-head h2 { font-size: 24px; }
  .sky-actions { width: 100%; }
  .ar-button { flex:0 0 auto; min-height:43px; }
  .view-switch { flex:1; }
  .view-switch button { flex: 1; font-size:11.5px; padding:10px 7px; white-space: nowrap; }
  .filter-row { padding: 0 17px 13px; }
  .filter-chip { font-size:12px;padding:8px 10px; }
  .canvas-wrap { min-height: 610px; height: 70vh; max-height: 720px; }
  .compass-marker { width: 38px; height: 38px; font-size: 15px; font-weight: 600; border-color: rgba(172,201,217,.96); background: rgba(255,255,255,.94); box-shadow: 0 6px 20px rgba(31,63,84,.11); }
  .splash-logo { width: min(168px, 48vw); }
  .splash-product { font-size: 29px; }
  .splash-tagline { font-size: 12.5px; }
  .canvas-hint { display:none; }
  .canvas-zoom { right: 12px; top: 12px; gap: 6px; }
  .canvas-zoom button { width: 38px; height: 38px; border-radius: 11px; }
  .data-badge { right: 12px; bottom: 12px; font-size:10px; padding:7px 9px; }
  .motion-badge { left: 12px; top: 12px; max-width: calc(100% - 24px); }
  .details-card { min-height: 330px; }
  .satellite-visual { height: 210px; }
  .image-credit-row { margin: 6px 18px 0; }
  .detail-section { margin-left: 17px; margin-right: 17px; }
  .fact-list li { font-size: 13px; }
  .spec-list li { grid-template-columns: minmax(0,1fr) minmax(105px,1.1fr); padding: 11px 12px; }
  footer { flex-direction: column; gap: 5px; font-size:10px; }
  .modal-card { padding:27px 22px; }
  .ar-info { grid-template-columns:auto 1fr; }.ar-info button{grid-column:1/3;grid-row:auto;width:100%;}.ar-info .constellation-badge{grid-row:1/3}
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}


@keyframes splashSkyIn { from { opacity:0; transform:translateY(9px); letter-spacing:.60em; } to { opacity:1; transform:none; letter-spacing:.42em; } }
@keyframes splashTagIn { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:none; } }
