/* NO GROUND Sky+ (web app pages). Uses the site tokens from styles.css. */
body.sp { padding-bottom: calc(78px + env(safe-area-inset-bottom)); min-height: 100vh; }
.sp-top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: rgba(7, 11, 22, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.sp-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--fg); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: 0.01em; }
.sp-brand img { width: 30px; height: 30px; }
.sp-brand b { color: var(--accent); font-weight: 800; }
.sp-place {
  display: inline-flex; align-items: center; gap: 6px; max-width: 58%;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass-2);
  color: var(--text); font: 600 13px/1.2 var(--body); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sp-place svg { width: 14px; height: 14px; flex: none; fill: var(--accent); }
.sp-main { width: 100%; max-width: 640px; margin: 0 auto; padding: 18px 16px 8px; }
.sp-kicker { margin: 0 0 4px; color: var(--accent); font: 700 12px/1.3 var(--body); letter-spacing: 0.12em; text-transform: uppercase; }
.sp-h1 { margin: 0 0 14px; font: 800 30px/1.1 var(--display); color: var(--fg); }
.sp-sunrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.sp-sun { padding: 10px 8px; border-radius: 14px; background: var(--glass-2); border: 1px solid var(--line); text-align: center; }
.sp-sun span { display: block; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; }
.sp-sun strong { display: block; color: var(--fg); font: 700 16px/1.3 var(--body); margin-top: 2px; }
.sp-card { margin: 0 0 14px; padding: 16px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); }
.sp-card h2 { margin: 0 0 10px; font: 800 18px/1.25 var(--display); color: var(--fg); }
.sp-moon { display: flex; align-items: center; gap: 16px; }
.sp-moon svg { width: 84px; height: 84px; flex: none; }
.sp-moon h2 { margin-bottom: 4px; }
.sp-moon p { margin: 0; color: var(--text); font-size: 14.5px; line-height: 1.5; }
.sp-moon .sp-pct { color: var(--accent-2); font-weight: 700; }
.sp-list { list-style: none; margin: 0; padding: 0; }
.sp-list li { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.sp-list li:first-child { border-top: 0; padding-top: 2px; }
.sp-dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 4px; flex: none; box-shadow: 0 0 10px currentColor; }
.sp-list strong { display: block; color: var(--fg); font-size: 15.5px; }
.sp-list span { display: block; color: var(--text); font-size: 14px; line-height: 1.45; }
.sp-list .sp-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 154, 46, 0.14); color: var(--accent-2); font: 700 11px/1.6 var(--body); vertical-align: 1px; }
.sp-muted { color: var(--muted); font-size: 13.5px; margin: 8px 0 0; }
.sp-ad { display: none; }
html.sp-slots .sp-ad::before { content: "Ad space (after AdSense approval)"; }
html.sp-slots .sp-ad, .sp-ad.sp-ad-on { margin: 0 0 14px; min-height: 100px; border-radius: 14px; border: 1px dashed var(--line-2); display: grid !important; place-items: center; color: var(--dim); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.sp-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 50px; padding: 12px 18px; border-radius: 14px; border: 1px solid transparent;
  font: 700 16px/1.2 var(--body); text-decoration: none; cursor: pointer;
}
.sp-btn-main { background: var(--accent); color: #1A0E00; }
.sp-btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.sp-btn + .sp-btn { margin-top: 10px; }
.sp-cta { margin: 4px 0 14px; }
.sp-support { margin: 0 0 14px; padding: 16px; border-radius: var(--radius); border: 1px solid rgba(255, 154, 46, 0.35); background: linear-gradient(160deg, rgba(255, 154, 46, 0.10), rgba(13, 23, 50, 0.55)); }
.sp-support h2 { margin: 0 0 6px; font: 800 17px/1.3 var(--display); color: var(--fg); }
.sp-support p { margin: 0 0 12px; font-size: 14.5px; }
.sp-foot { color: var(--dim); font-size: 12.5px; text-align: center; margin: 6px 0 12px; }

/* bottom tab bar */
.sp-tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  background: rgba(7, 11, 22, 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.sp-tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--muted); text-decoration: none; font: 600 11px/1.1 var(--body); }
.sp-tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sp-tabs a[aria-current="page"] { color: var(--accent); }
.sp-tabs a.sp-soon { opacity: 0.45; pointer-events: none; }

/* welcome sheet (first open only) */
.sp-welcome { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; background: rgba(3, 5, 12, 0.72); }
.sp-welcome-box {
  width: 100%; max-width: 520px; max-height: 100%; overflow: auto;
  padding: 26px 20px calc(20px + env(safe-area-inset-bottom));
  border-radius: 26px 26px 0 0; border: 1px solid var(--line-2); border-bottom: 0;
  background: radial-gradient(500px 260px at 80% -10%, rgba(138, 108, 255, 0.22), transparent 70%), #0A1022;
  animation: sp-up .35s ease-out;
}
@keyframes sp-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sp-welcome-mark { width: 58px; height: 58px; display: block; margin: 0 0 14px; }
.sp-welcome h2 { margin: 0 0 8px; font: 800 26px/1.15 var(--display); color: var(--fg); }
.sp-welcome h2 b { color: var(--accent); }
.sp-welcome p { margin: 0 0 12px; font-size: 15.5px; color: var(--text); }
.sp-feats { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.sp-feats li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: var(--fg); }
.sp-feats li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.sp-welcome .sp-free { padding: 12px 14px; border-radius: 14px; background: rgba(255, 154, 46, 0.10); border: 1px solid rgba(255, 154, 46, 0.3); margin-bottom: 16px; }
.sp-welcome .sp-free p { margin: 0; font-size: 14.5px; }
.sp-welcome .sp-link { display: block; margin-top: 14px; text-align: center; color: var(--accent-2); font-size: 14px; }

/* place picker */
.sp-sheet { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-start; justify-content: center; background: rgba(3, 5, 12, 0.7); padding: calc(60px + env(safe-area-inset-top)) 12px 12px; }
.sp-sheet-box { width: 100%; max-width: 520px; padding: 16px; border-radius: 20px; background: #0A1022; border: 1px solid var(--line-2); }
.sp-sheet input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--fg); font: 500 16px var(--body); }
.sp-sheet ul { list-style: none; margin: 10px 0 0; padding: 0; max-height: 50vh; overflow: auto; }
.sp-sheet li button { width: 100%; text-align: left; padding: 11px 6px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--fg); font: 500 15px var(--body); cursor: pointer; }
.sp-sheet li button span { color: var(--muted); }

/* install page */
.sp-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 14px; background: var(--glass-2); border: 1px solid var(--line); margin: 0 0 14px; }
.sp-seg button { padding: 10px; border-radius: 10px; border: 0; background: none; color: var(--muted); font: 700 14.5px var(--body); cursor: pointer; }
.sp-seg button[aria-pressed="true"] { background: var(--accent); color: #1A0E00; }
.sp-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.sp-steps li { counter-increment: s; position: relative; padding: 12px 0 12px 46px; border-top: 1px solid var(--line); font-size: 15px; color: var(--text); }
.sp-steps li:first-child { border-top: 0; }
.sp-steps li::before { content: counter(s); position: absolute; left: 0; top: 10px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 154, 46, 0.15); color: var(--accent); font: 800 15px var(--display); }
.sp-steps strong { color: var(--fg); }
.sp-ico { display: inline-grid; place-items: center; width: 26px; height: 26px; margin: 0 3px; border-radius: 7px; background: var(--glass-2); border: 1px solid var(--line-2); vertical-align: -7px; }
.sp-ico svg { width: 16px; height: 16px; fill: none; stroke: var(--fg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sp-done { text-align: center; padding: 22px 16px; }
.sp-done h2 { margin: 0 0 6px; }
[hidden] { display: none !important; }

/* live pages */
.sp-lead { margin: -4px 0 14px; font-size: 16px; color: var(--text); }
.sp-lead strong { color: var(--accent-2); }
.sp-map { display: block; width: 100%; border-radius: 12px; background: radial-gradient(120% 90% at 50% 50%, #0E1838, #070B16); }
.sp-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12.5px; }
.sp-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: -6px; }
.sp-legend i.sp-ring { background: none; border: 2px solid #63D3FF; width: 10px; height: 10px; }
.sp-card p { margin: 0 0 8px; }
.sp-big { margin: 0 0 6px; font: 800 34px/1.1 var(--display); }
.sp-k3 { color: #57D39A; } .sp-k2 { color: #F2BA55; } .sp-k1 { color: var(--accent-2); } .sp-k0 { color: var(--muted); }
.sp-chart { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; height: 150px; align-items: end; margin: 6px 0 26px; }
.sp-bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; border-radius: 4px; }
.sp-bar-night { background: rgba(150, 175, 255, 0.07); }
.sp-bar i { display: block; width: 100%; border-radius: 3px 3px 0 0; }
.sp-bar b { position: absolute; bottom: -18px; font: 600 10px var(--body); color: var(--muted); }
.sp-bar em { position: absolute; top: -2px; left: 0; font: 700 10px var(--body); font-style: normal; color: var(--dim); white-space: nowrap; }
.sp-launches li { display: block; }
.sp-launch span { display: block; }
.sp-count { margin-top: 4px; color: var(--accent-2) !important; font: 700 15px/1.4 var(--body) !important; font-variant-numeric: tabular-nums; }
.sp-about { color: var(--muted) !important; font-size: 13.5px !important; margin-top: 4px; }
.sp-watch { display: inline-block; margin-top: 8px; color: var(--accent-2); font-weight: 700; font-size: 14px; }
.sp-tag-ok { background: rgba(87, 211, 154, 0.14); color: #57D39A; } .sp-tag-warn { background: rgba(255, 93, 122, 0.14); color: #FF8A9E; }
.sp-hubs { display: grid; gap: 10px; margin-bottom: 14px; }
.sp-hub { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.sp-hub i { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: 0 0 12px currentColor; }
.sp-hub span { flex: 1; font-size: 14px; } .sp-hub strong { display: block; color: var(--fg); font: 800 17px/1.3 var(--display); }
.sp-hub em { font-style: normal; color: var(--accent); font-size: 22px; } .sp-hub.sp-soon { opacity: .5; pointer-events: none; } .sp-hub.sp-soon em { font-size: 12px; color: var(--muted); }
.sp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.sp-fig { margin: 0; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.sp-fig img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #05070d; }
.sp-fig figcaption { padding: 8px 10px 10px; background: var(--glass); font-size: 12.5px; line-height: 1.4; color: var(--text); }
.sp-fig figcaption strong { display: block; color: var(--fg); font-size: 13.5px; }
.sp-fig-big { margin-bottom: 10px; } .sp-fig-big figcaption { font-size: 13.5px; }
.sp-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 14px; }
.sp-strip button { padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #000; cursor: pointer; }
.sp-strip img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.sp-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.sp-cal-h { font: 700 11px var(--body); color: var(--dim); }
.sp-cal-d { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; border-radius: 8px; }
.sp-cal-d em { font-style: normal; font-size: 11px; color: var(--muted); }
.sp-cal-d.sp-today { background: rgba(255, 154, 46, 0.14); outline: 1px solid rgba(255, 154, 46, 0.5); }
.sp-planet { margin: 0 auto 10px; width: 62%; max-width: 280px; }
.sp-planet img { display: block; width: 100%; height: auto; mix-blend-mode: screen; }
.sp-pimg { width: 48px; height: 48px; flex: none; object-fit: contain; mix-blend-mode: screen; }
.sp-label { display: block; margin-bottom: 6px; color: var(--fg); font-weight: 700; }
.sp-input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--fg); font: 500 16px var(--body); color-scheme: dark; }
.sp-mono { font-variant-numeric: tabular-nums; font-size: 30px; }
.sp-newslist { display: grid; gap: 10px; margin-bottom: 14px; }
.sp-news { display: flex; gap: 12px; padding: 12px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 13.5px; line-height: 1.45; }
.sp-news img { width: 96px; height: 96px; border-radius: 10px; object-fit: cover; flex: none; }
.sp-news em { display: block; font-style: normal; color: var(--accent); font: 700 11px/1.4 var(--body); text-transform: uppercase; letter-spacing: .06em; }
.sp-news strong { display: block; color: var(--fg); font: 800 15.5px/1.3 var(--display); margin: 2px 0 4px; }

/* ===================================================================== merged app (v6): one header and one tab bar on every page
   app.css (Grok's app shell) gives the layout: fixed .app, .topbar, scrolling .view/.scroll, .tabbar */
:root { --glass: rgba(13, 23, 50, 0.58); }
.brand { text-decoration: none; color: inherit; min-width: 0; }
.tabbar { grid-template-columns: repeat(5, 1fr) !important; }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .68rem; font-weight: 600; color: var(--muted); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.tabbar a.on { color: var(--accent); }
.tabbar svg.ico-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.tabbar svg.ico-line .fill { fill: currentColor; stroke: none; }
.top-place { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 38vw; border: 1px solid var(--line-2); background: var(--glass-2); border-radius: 999px; padding: 5px 10px; font-size: .72rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.top-place span { overflow: hidden; text-overflow: ellipsis; }
.top-place svg { width: 13px; height: 13px; fill: var(--accent); flex: none; }
.top-actions { min-width: 0; }
@media (max-width: 380px) { .top-red span { display: none; } .proto-tag { display: none; } }
.scroll > .sp-main, .scroll .sp-main { padding: 2px 2px 8px; max-width: none; }
.sp-back { display: inline-block; margin: 0 0 10px; color: var(--accent-2); font: 700 13px/1.4 var(--body); text-decoration: none; }
.sp-more { display: inline-block; margin-top: 8px; color: var(--accent-2); font-weight: 700; font-size: 13.5px; text-decoration: none; }
.sp-h2 { margin: 18px 0 10px; font: 800 20px/1.25 var(--display); color: var(--fg); }
.sp-sheet-title { margin: 0 0 10px; font: 800 18px/1.3 var(--display); color: var(--fg); }
.sp-sheet-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.sp-sheet .sp-btn:disabled { opacity: .6; }
#view-sky .sp-support, #view-sky .sp-ad { margin-top: 14px; }
#eva-live:empty::before { content: "No spacewalks or station events listed right now."; display: block; color: var(--muted); font-size: .8rem; padding: 4px 0; }
.sp-main a:not(.sp-btn):not(.sp-hub):not(.sp-news) { color: var(--accent-2); }
.sp-btn-ghost { color: var(--fg); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.brand strong { white-space: nowrap; }
.topbar:has(.top-place) .proto-tag { display: none; }
.topbar:has(.top-place) .top-red { padding: 5px 9px; }
.topbar:has(.top-place) .top-red span { display: none; }

/* ===================================================================== 3D Universe (universe.html) */
.sp-new { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: #1A0E00; font: 800 10px/1.6 var(--body); letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; }
#view-universe.active { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
.uni-stage { position: relative; height: calc(100% - 46px); min-height: 520px; overflow: hidden; background: #03050c; }
.uni-stage canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; outline: none; }
.uni-top { position: absolute; top: 10px; left: 14px; right: 64px; pointer-events: none; }
.uni-top .sp-back { pointer-events: auto; margin-bottom: 4px; }
.uni-k { color: var(--accent); font: 800 11px/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.uni-top h1 { margin: 2px 0 3px; font: 800 22px/1.15 var(--display); color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.85); }
.uni-top p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--text); text-shadow: 0 1px 8px rgba(0,0,0,.95); max-width: 320px; }
.uni-tools { position: absolute; right: 10px; top: 46px; display: grid; gap: 8px; }
.uni-tools button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(10,16,34,.8); color: var(--fg); font: 700 22px/1 var(--body); cursor: pointer; }
.uni-hint { position: absolute; left: 10px; right: 10px; bottom: 156px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; pointer-events: none; }
.uni-hint span { padding: 6px 12px; border-radius: 999px; background: rgba(10,16,34,.8); border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; color: var(--fg); }
.uni-card { position: absolute; left: 12px; right: 12px; bottom: 148px; z-index: 3; padding: 14px 16px 12px; border-radius: 16px; background: rgba(13,23,50,.96); border: 1px solid var(--line-2); box-shadow: 0 18px 50px -20px #000; }
.uni-card h2 { margin: 0 28px 6px 0; font: 800 17px/1.25 var(--display); color: #fff; }
.uni-card p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.45; color: var(--text); }
.uni-card em { font-style: normal; color: var(--accent-2); font-weight: 700; }
.uni-card .sp-more { margin-top: 2px; }
.uni-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--fg); font-size: 18px; cursor: pointer; }
.uni-bottom { position: absolute; left: 10px; right: 10px; bottom: 10px; }
.uni-note { margin: 0 2px 6px; text-align: right; font-size: 10.5px; color: var(--dim); text-shadow: 0 1px 4px #000; }
.uni-ladder { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-bottom: 8px; }
.uni-ladder button { padding: 6px 0 5px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(10,16,34,.8); color: var(--muted); font: 700 9.5px/1.15 var(--body); cursor: pointer; }
.uni-ladder button b { display: block; font: 800 13px/1.2 var(--display); color: var(--fg); }
.uni-ladder button.on { border-color: var(--accent); background: rgba(255,154,46,.16); color: var(--accent-2); }
.uni-ladder button.on b { color: var(--accent); }
.uni-ro { padding: 8px 10px; border-radius: 14px; background: rgba(10,16,34,.86); border: 1px solid var(--line-2); min-height: 50px; display: flex; align-items: center; }
.uni-time { display: flex; align-items: center; gap: 10px; width: 100%; }
.uni-play { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--accent); color: #1a1000; font: 900 13px/1 var(--body); cursor: pointer; }
.uni-tl { flex: 1; min-width: 0; font-size: 12.5px; color: var(--fg); font-weight: 700; }
.uni-tl input { display: block; width: 100%; margin: 4px 0 0; accent-color: var(--accent); }
.uni-now { flex: none; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--fg); font: 700 12px var(--body); cursor: pointer; }
.uni-dist { font-size: 12.5px; color: var(--text); padding: 6px 2px; }
.uni-dist strong { color: #fff; }
.uni-below { background: var(--bg); padding-bottom: 28px; }
.uni-peek { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 46px; padding-top: 7px; border-top: 1px solid var(--line); background: var(--bg-2, #0b1224); color: var(--muted); font: 700 .78rem/1.2 var(--body); }
.uni-peek span { width: 38px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.28); }
.uni-below .sp-main { padding: 6px 14px 8px; }

/* Lightweight Voyager-only model card. */
.voyager-model-card { padding:0; margin:0 0 14px; overflow:hidden; }
.voyager-model-space { height:264px; position:relative; background:linear-gradient(rgba(2,5,14,.55),rgba(2,5,14,.75)),url('../img/realsky-eq-4k.jpg') center 52% / auto 420px; }
.voyager-model-space canvas { width:100%; height:100%; display:block; touch-action:none; cursor:grab; }
.voyager-model-space canvas:active { cursor:grabbing; touch-action:none; }
.voyager-model-space canvas:focus-visible { outline:2px solid var(--accent); outline-offset:-3px; }
.voyager-drag { position:absolute; bottom:10px; left:12px; color:#bdc8db; font-size:11px; pointer-events:none; }
.voyager-model-card figcaption { padding:12px 14px; }
.voyager-model-card figcaption strong { font-size:15px; }
.voyager-model-card figcaption p { font-size:12px; line-height:1.45; margin:5px 0 10px; color:var(--text); }
.voyager-model-card figcaption button { min-height:36px; padding:7px 12px; font-size:12px; }
.voyager-model-card figcaption small { display:block; color:var(--muted); font-size:10px; line-height:1.4; margin-top:10px; }

/* In-app browser escape (Facebook / Instagram / Messenger). Small top hint only; the map stays usable. */
.sp-iab { position: fixed; left: 0; right: 0; top: 0; z-index: 200; pointer-events: none; padding: 4px 10px 0; }
.sp-iab-arrow { position: absolute; top: 2px; right: 6px; width: 46px; height: 38px; color: var(--accent); filter: drop-shadow(0 2px 6px rgba(0,0,0,.55)); animation: sp-iab-nudge 1.4s ease-in-out infinite; }
.sp-iab-arrow svg { display: block; width: 100%; height: 100%; }
.sp-iab-bar { pointer-events: auto; display: flex; align-items: center; gap: 8px; margin: 30px auto 0; padding: 8px 6px 8px 14px; border-radius: 18px; background: rgba(16, 23, 42, .96); border: 1px solid var(--line-2); color: var(--fg); font: 500 .82rem/1.35 var(--body); box-shadow: 0 18px 40px -18px #000; animation: sp-iab-in .3s ease-out; max-width: 520px; }
.sp-iab-bar p { flex: 1; min-width: 0; margin: 0; }
.sp-iab-bar b { color: var(--accent-2); font-weight: 700; }
.sp-iab-x { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.sp-iab-x:hover, .sp-iab-x:focus-visible { color: var(--fg); }
html.red-all .sp-iab { filter: brightness(.85); }
body.sp-iab-on .sp-offer { top: calc(env(safe-area-inset-top, 0px) + 118px); }
@keyframes sp-iab-nudge {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(3px, -4px); }
}
@keyframes sp-iab-in {
  from { transform: translateY(-12px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-iab-arrow { animation: none; }
  .sp-iab-bar { animation: none; }
}
