
:root {
  --bg: #000;
  --panel: #161617;
  --panel-2: #1d1d1f;
  --panel-3: #262628;
  --line: #2c2c2e;
  --line-strong: #48484a;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --faint: #86868b;
  --accent: #f5f5f7;
  --accent-text: #000;
  --radius: 22px;
  --radius-sm: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.47;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

::selection { background: var(--text); color: var(--bg); }

code {
  font-family: var(--mono); font-size: 0.85em; color: #d2d2d7;
  background: #ffffff0f; border-radius: 6px; padding: 0.05em 0.35em;
}

/* Top bar */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  padding-top: env(safe-area-inset-top);
  padding-left: max(clamp(1rem, 4vw, 2.5rem), env(safe-area-inset-left));
  padding-right: max(clamp(1rem, 4vw, 2.5rem), env(safe-area-inset-right));
  background: #000000b8;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid #ffffff14;
}

.brand { display: flex; align-items: center; gap: 0.6rem; color: inherit; text-decoration: none; flex-shrink: 0; }

/* Toolbar search */
.toolbar-search { flex: 1; max-width: 560px; min-width: 0; }
.toolbar-search .query-input {
  width: 100%; min-height: 38px; padding: 0.4rem 0.9rem 0.4rem 2.2rem;
  font-family: var(--font); font-size: 0.9rem;
  background: #ffffff14 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23a1a1a6' stroke-width='1.8'%3E%3Ccircle cx='6' cy='6' r='4.8'/%3E%3Cpath d='M9.6 9.6 13 13' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0.8rem center;
  border: 1px solid transparent; border-radius: 10px;
}
.toolbar-search .query-input:focus { background-color: #ffffff1f; border-color: #ffffff40; box-shadow: 0 0 0 3px #ffffff18; }

.toolbar-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.tool-btn {
  font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer;
  color: var(--muted); background: transparent;
  border: 1px solid transparent; border-radius: 999px;
  min-height: 32px; padding: 0.25rem 0.75rem;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.tool-btn:hover:not([disabled]) { color: var(--text); background: var(--panel-2); }
.tool-btn[aria-expanded="true"] { color: var(--text); background: var(--panel-3); }
.tool-btn[disabled] { opacity: 0.4; cursor: default; }

.help-btn {
  font: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer;
  color: var(--muted); background: var(--panel-2);
  border: 1px solid var(--line-strong); border-radius: 999px;
  min-height: 32px; padding: 0.25rem 0.75rem;
  display: inline-flex; align-items: center; gap: 0.35rem;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.help-btn::before {
  content: "?"; display: inline-flex; align-items: center; justify-content: center;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  font-size: 0.72rem; font-weight: 700; line-height: 1;
  background: var(--panel-3); color: var(--text);
}
.help-btn:hover, .help-btn[aria-expanded="true"] {
  color: var(--text); background: var(--panel-3); border-color: var(--text);
}
.brand-mark {
  width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle, var(--text) 0 22%, transparent 23% 52%, var(--text) 53% 64%, transparent 65%);
}
.brand-name {
  font-size: 1.02rem; font-weight: 700; letter-spacing: -0.02em;
}
.brand-name .brand-blinkit { font-weight: 700; letter-spacing: -0.02em; }
.brand-name .brand-spherex { font-weight: 600; opacity: 0.88; font-size: 0.92em; }

.badge {
  font-size: 0.75rem; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.2rem 0.7rem;
  white-space: nowrap;
}

/* Page title */
.page-head { padding-top: clamp(0.75rem, 2vw, 1.1rem); }
.eyebrow { margin: 0 0 0.5rem; color: var(--muted); font-size: 0.85rem; font-weight: 600; letter-spacing: 0; }
.page-title {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
}

body.guide-open { overflow: hidden; }

.guide-modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
}
.guide-modal[hidden] { display: none !important; }

.guide-backdrop {
  position: absolute; inset: 0; border: 0; padding: 0; margin: 0;
  background: #000000b3;
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  backdrop-filter: blur(12px) saturate(120%);
  cursor: pointer;
}

.guide-dialog {
  position: relative; z-index: 1;
  width: min(100%, 420px);
  max-height: min(88vh, 560px); overflow: auto;
  padding: 1.35rem 1.35rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: 0 24px 80px #000000a8;
  animation: guide-in 0.28s var(--ease);
}
@keyframes guide-in {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.guide-close {
  position: absolute; top: 0.65rem; right: 0.65rem;
  width: 2rem; height: 2rem; border: 0; border-radius: 50%;
  font-size: 1.35rem; line-height: 1; color: var(--muted);
  background: var(--panel-2); cursor: pointer;
}
.guide-close:hover { color: var(--text); background: var(--panel-3); }

.onboard-title {
  margin: 0 2rem 0.35rem 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.025em;
}
.guide-lead {
  margin: 0 0 0.85rem; color: var(--muted); font-size: 0.9rem; line-height: 1.45;
}
.onboard-steps {
  margin: 0 0 1.1rem; padding-left: 1.2rem; color: var(--muted);
  font-size: 0.9rem; line-height: 1.55;
}
.onboard-steps li { margin-bottom: 0.45rem; }
.onboard-steps strong { color: var(--text); font-weight: 600; }
.onboard-actions {
  display: flex; flex-direction: column; gap: 0.5rem;
}
.onboard-actions .btn-primary { width: 100%; min-height: 48px; }
.onboard-actions .btn-small { align-self: center; min-height: 40px; }

/* Page layout: inspector (sky map, settings) on the left, content (flipbook, timeline) on the right.
   The content comes first in the HTML so it stays first on phones, where the inspector is a sheet. */
.page { padding-bottom: 2rem; }

.split {
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding: 0 clamp(1rem, 4vw, 2.5rem) 1.25rem;
  max-width: 1440px;
  margin: 0 auto;
}
.split.inspector-closed { grid-template-columns: minmax(0, 1fr); }
.split.inspector-closed .inspector { display: none; }

.content { display: grid; gap: 1.25rem; min-width: 0; grid-column: 2; grid-row: 1; }
.inspector { grid-column: 1; grid-row: 1; }
.split.inspector-closed .content { grid-column: 1; }

/* Below the two columns, so the sticky inspector stops before it. */
.wide-row { padding: 0 clamp(1rem, 4vw, 2.5rem); max-width: 1440px; margin: 0 auto; }
.timeline-panel {
  margin-top: 0.25rem;
  padding: clamp(1.1rem, 2.5vw, 1.75rem) clamp(1rem, 4vw, 2.5rem);
}
.timeline-panel .flip-head { margin-bottom: 0.65rem; }
.timeline-panel .flip-head h3 { margin: 0; font-size: 1.25rem; font-weight: 600; }
.workspace-detail { display: grid; gap: 2.25rem; min-width: 0; }
.workspace-detail > .diffview { margin-top: 0; padding-top: 0; border-top: 0; }

.inspector {
  position: sticky;
  top: 68px;
  max-height: calc(100vh - 80px);
  overflow: auto;
  overscroll-behavior: contain;
  margin-top: clamp(1rem, 3vw, 1.75rem);
}
.inspector > * { flex-shrink: 0; }
.inspector-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.inspector-head .panel-title { margin: 0; font-size: 1.05rem; }
.inspector-close { display: none; }
.inspector .aladin { height: 360px; min-height: 0; }
.inspector .map-help { margin: 0; font-size: 0.76rem; }
.inspector-group { display: grid; gap: 0.45rem; }
.inspector-group .inset-card-title { margin: 0; }

/* Go to a position: one row of coordinates, suggested objects in a pop-up */
.finder { min-width: 0; }
.finder-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.finder-coords { display: flex; flex: 1 1 420px; flex-wrap: wrap; align-items: center; gap: 0.5rem; min-width: 0; }
.finder .coord-units { width: auto; flex: none; margin: 0; padding: 2px; }
.finder .coord-units .tab { flex: none; min-height: 30px; padding: 0.2rem 0.7rem; font-size: 0.8rem; }
.finder .inset-input { flex: 1 1 120px; width: auto; min-width: 0; min-height: 36px; padding: 0.35rem 0.7rem; font-size: 0.88rem; }
.finder .btn-small { min-height: 36px; }
/* The degrees check only shows while typing coordinates, or when they cannot be read. */
.finder-preview { display: none; margin: 0.35rem 0 0; min-height: 0; font-size: 0.75rem; color: var(--muted); }
.finder:has(.finder-coords:focus-within) .finder-preview:not(:empty),
.finder-preview.error:not(:empty) { display: block; }

.finder-browse { position: relative; flex: none; }
.finder-browse > summary { list-style: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.finder-browse > summary::-webkit-details-marker { display: none; }
.finder-browse > summary::after { content: "▾"; font-size: 0.75rem; color: var(--muted); }
.finder-browse[open] > summary { background: var(--accent); color: var(--accent-text); }
.finder-browse[open] > summary::after { color: inherit; }
.finder-popover {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
  width: min(380px, calc(100vw - 2rem));
  display: grid; gap: 0.5rem; padding: 0.6rem;
  background: var(--panel-2); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); box-shadow: 0 16px 48px #000000b3;
}
.finder .catalog-filter { margin: 0; flex: none; width: 100%; }
.finder .catalog-list { max-height: 20rem; }
.sheet-backdrop { display: none; }
body.sheet-locked { overflow: hidden; }

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 2.5vw, 1.75rem);
}
.panel-title {
  margin: 2rem 0 0.8rem;
  font-size: 1.3rem; font-weight: 600; letter-spacing: -0.022em;
  color: var(--text);
}
.panel-title:first-child { margin-top: 0; }

/* Sky map panel: grouped settings, slightly smaller type */
.panel.inspector.sky-panel {
  padding: clamp(0.95rem, 2vw, 1.2rem);
}
.sky-panel { display: flex; flex-direction: column; gap: 0.75rem; }

.sky-panel .segmented .tab { min-height: 34px; font-size: 0.82rem; }
.sky-panel .inset-card { padding: 0.72rem 0.8rem 0.85rem; }
.sky-panel .inset-input,
.sky-panel .inset-select {
  min-height: 42px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}
.sky-panel .query-input { font-size: 0.9rem; }
.sky-panel .btn-block { min-height: 42px; font-size: 0.9rem; }
.sky-panel .setup-footnote { font-size: 0.74rem; line-height: 1.4; }
.sky-panel .field-caption { font-size: 0.74rem; }
.sky-panel .inset-card-title { font-size: 0.72rem; margin-bottom: 0.55rem; }
.sky-panel .inset-value { font-size: 0.84rem; }
.sky-panel .inset-disclosure summary { font-size: 0.84rem; }
.sky-panel .status-banner { font-size: 0.82rem; }

.segmented {
  display: flex; width: 100%; gap: 3px; padding: 3px;
  background: var(--panel-2); border-radius: 12px;
  border: 1px solid var(--line);
}
.segmented .tab { flex: 1; min-height: 36px; font-size: 0.86rem; padding: 0.35rem 0.5rem; }
.segmented-compact { margin-bottom: 0.85rem; }

.inset-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.9rem 1rem;
}
.inset-card-title {
  margin: 0 0 0.75rem; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
}

.inset-input, .inset-select {
  width: 100%;
  background: #00000055;
  border: 1px solid #ffffff14;
  border-radius: 11px;
  min-height: 46px;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.inset-input:focus, .inset-select:focus {
  background: #00000099;
  border-color: #ffffff40;
  box-shadow: 0 0 0 4px #ffffff18;
}
.query-input { font-family: var(--font); font-size: 1.02rem; letter-spacing: -0.01em; }

.btn-block {
  width: 100%; min-height: 48px; margin-top: 0.15rem;
  font-size: 1rem; font-weight: 600;
}
.setup-footnote { margin: 0; font-size: 0.78rem; line-height: 1.45; color: var(--faint); }

.field-caption {
  display: block; font-size: 0.78rem; font-weight: 500;
  color: var(--muted); margin-bottom: 0.35rem; letter-spacing: -0.01em;
}
.coord-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.coord-result {
  margin: 0.25rem 0 0.35rem; min-height: 2.75rem;
  padding: 0.55rem 0.7rem; border-radius: 10px;
  background: #00000066; border: 1px solid #ffffff10;
  font-family: var(--mono); font-size: 0.8rem; line-height: 1.45;
  color: #e8e8ed;
}
.coord-preview.error {
  font-family: var(--font); font-size: 0.85rem; font-weight: 500;
  color: var(--text); border-color: var(--line-strong);
  border-left: 3px solid var(--text); padding-left: 0.65rem;
}

.view-card { padding-top: 0.95rem; }
.inset-row { display: grid; gap: 0.55rem; padding: 0.15rem 0; }
.inset-row-label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem;
}
.inset-value {
  font-family: var(--mono); font-size: 0.88rem; font-weight: 600; color: var(--text);
  white-space: nowrap;
}
.inset-row-select {
  grid-template-columns: 1fr;
  gap: 0.4rem;
}
.inset-select {
  font-family: var(--font); font-size: 0.92rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%23a1a1a6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2rem;
}
.inset-divider {
  display: block; height: 1px; margin: 0.65rem 0;
  background: var(--line); border: 0;
}

.status-banner {
  margin-top: 0; padding: 0.55rem 0.75rem; border-radius: 10px;
  background: #ffffff08; border: 1px solid #ffffff0c;
}
.status-banner:empty { display: none; padding: 0; border: 0; background: none; }
.status-banner.info { background: #ffffff06; }
.status-banner.ok { border-color: #ffffff18; }
.status-banner.warn, .status-banner.error { background: #ffffff0a; }

.inset-disclosure summary {
  list-style: none; cursor: pointer; font-weight: 600; font-size: 0.88rem;
  padding: 0.55rem 0; color: var(--text);
}
.inset-disclosure summary::-webkit-details-marker { display: none; }
.inset-disclosure summary::after {
  content: "›"; float: right; color: var(--muted); transform: rotate(90deg);
  font-size: 1.1rem; line-height: 1;
}
.inset-disclosure[open] summary::after { transform: rotate(-90deg); }

.panel-title-section { margin-top: 0.5rem; font-size: 1.1rem; }
.panel-title-tight { margin-top: 0.5rem; margin-bottom: 0.5rem; font-size: 1rem; }
/* Official targets: whole section in one bordered box; open for full catalog */
.targets-strip {
  min-width: 0;
  padding: 0.85rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.targets-dropdown { margin: 0; }
.targets-dropdown-summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
}
.targets-dropdown-summary::-webkit-details-marker { display: none; }
.targets-dropdown-summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  margin-top: -0.15rem;
  transition: transform 0.2s var(--ease);
}
.targets-dropdown[open] > .targets-dropdown-summary::after {
  transform: rotate(-135deg);
  margin-top: 0.15rem;
}
.targets-strip-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.022em;
}
.targets-dropdown-body {
  margin-top: 0.75rem;
  padding: 0;
  background: transparent;
  border: 0;
}
.targets-strip-lead {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 52rem;
}
/* Closed: plain name-only subtext under the section title */
.targets-name-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin: 0.35rem 0 0;
  padding: 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--muted);
}
.targets-dropdown[open] ~ .targets-name-sub { display: none; }
.targets-name-link {
  font: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  min-height: auto;
  border-radius: 0;
}
.targets-name-link:hover { color: var(--text); text-decoration: underline; }
.targets-name-link[aria-pressed="true"] {
  color: var(--text);
  font-weight: 600;
}
.det-legend { display: inline-flex; align-items: center; gap: 0.25rem; vertical-align: middle; }
.det-legend .det-chip { font-size: 0.62rem; padding: 0.12rem 0.35rem; pointer-events: none; }
.label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }
.help { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.muted { color: var(--muted); margin: 0; }

.search-row { display: flex; gap: 0.5rem; }
.search-with-suggest { position: relative; }

.query-suggestions {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px);
  margin: 0; padding: 0.35rem 0; list-style: none;
  max-height: 14rem; overflow: auto;
  background: var(--panel-2); border: 1px solid var(--line-strong);
  border-radius: 12px; box-shadow: 0 12px 40px #00000080;
}
.query-suggestions li { margin: 0; }
.query-suggestions button {
  width: 100%; text-align: left; font: inherit; cursor: pointer;
  border: 0; background: transparent; color: var(--text);
  padding: 0.5rem 0.85rem; min-height: auto; border-radius: 0;
}
.query-suggestions button:hover, .query-suggestions button:focus-visible {
  background: var(--panel-3); outline: none;
}
.query-suggestions .suggest-name { font-weight: 600; display: block; }
.query-suggestions .suggest-meta {
  font-size: 0.78rem; color: var(--muted); display: block; margin-top: 0.15rem;
}
.suggest-badge {
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--accent-text);
  background: var(--accent); border-radius: 999px; padding: 0.08rem 0.45rem; margin-left: 0.35rem;
}

.catalog-filter {
  width: 100%; margin-bottom: 0.6rem; font-family: var(--font);
}
.catalog-list {
  display: grid; gap: 0.35rem; list-style: none; margin: 0; padding: 0;
  max-height: 16rem; overflow: auto;
}
.catalog-list .catalog-item button {
  width: 100%; text-align: left; font: inherit; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel-2);
  color: var(--text); border-radius: 10px; padding: 0.45rem 0.7rem; min-height: auto;
}
.catalog-list .catalog-item button:hover { border-color: var(--line-strong); background: var(--panel-3); }
.catalog-list .catalog-item .catalog-hint { font-size: 0.78rem; color: var(--muted); margin-top: 0.12rem; }

input[type="text"], select {
  font: inherit; color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 0.6rem 0.85rem;
  min-height: 44px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
input[type="text"] { flex: 1; min-width: 0; font-family: var(--mono); font-size: 0.95rem; }
input[type="text"]::placeholder { color: var(--faint); font-family: var(--font); }
input[type="text"]:focus, select:focus { border-color: var(--text); outline: none; box-shadow: 0 0 0 3px #ffffff2e; }
select { width: 100%; }

button:focus-visible, .target:focus-visible, input[type="range"]:focus-visible, input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--text); outline-offset: 2px;
}

input[type="range"] { width: 100%; accent-color: var(--text); min-height: 32px; }

/* Buttons: pills, white for the main action */
.btn {
  font: inherit; font-weight: 500; cursor: pointer; letter-spacing: -0.01em;
  border-radius: 999px; border: 0;
  padding: 0.55rem 1.15rem; min-height: 44px;
  background: var(--panel-3); color: var(--text);
  transition: background-color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.btn:hover { background: #333336; }
.btn-primary { background: var(--accent); color: var(--accent-text); min-width: 72px; }
.btn-primary:hover { background: #fff; opacity: 0.86; }
.btn[disabled] { opacity: 0.45; cursor: progress; }
.btn-small { padding: 0.35rem 0.9rem; min-height: 36px; font-size: 0.85rem; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.1rem; }

/* Search: by name or by coordinates */
.coord-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.5rem; align-items: end; }
.coord-grid .label { margin-bottom: 0.3rem; }
.coord-grid input[type="text"] { width: 100%; }
.coord-units { margin-top: 0.7rem; }
.coord-preview { margin: 0.6rem 0 0; min-height: 1.3em; font-family: var(--mono); font-size: 0.88rem; color: var(--text); }
.coord-preview.error { font-family: var(--font); font-weight: 600; border-left: 2px solid var(--text); padding-left: 0.7rem; }

/* Messages: told apart by words and weight, not colour */
.status { min-height: 1.4rem; margin-top: 0.9rem; font-size: 0.88rem; }
.status:empty { display: none; }
.status.info { color: var(--muted); }
.status.ok { color: var(--text); }
.status.warn, .status.error { color: var(--text); border-left: 2px solid var(--text); padding-left: 0.7rem; }
.status.error { font-weight: 600; }

/* Official targets */
.targets { display: grid; gap: 0.55rem; list-style: none; margin: 0; padding: 0; }
.targets-row {
  grid-auto-flow: column;
  grid-auto-columns: minmax(172px, 1fr);
  gap: 0.65rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  padding-bottom: 0.25rem;
}
.targets-row > li { scroll-snap-align: start; }

.target {
  display: grid; gap: 0.25rem; text-align: left;
  width: 100%;
  font: inherit; color: var(--text); cursor: pointer;
  background: #ffffff0d;
  border: 1px solid #ffffff26;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 #ffffff12, 0 6px 18px #00000073;
  padding: 0.85rem 0.95rem;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.target:hover { background: #ffffff17; border-color: #ffffff3d; }
.target:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.target[aria-pressed="true"] {
  background: #ffffff1c;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px #ffffff40, 0 6px 18px #00000073;
}
.target-name { font-weight: 600; font-size: 1.02rem; letter-spacing: -0.02em; line-height: 1.25; }
.target-kind {
  color: var(--text);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  opacity: 0.72;
}
.target-hint {
  color: var(--muted); font-size: 0.8rem; line-height: 1.4; margin-top: 0.1rem;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.targets-row .target { min-height: 100%; padding: 0.75rem 0.85rem; align-content: start; }
.targets-row .target-hint { -webkit-line-clamp: 2; }
.targets-row .target-name { font-size: 0.95rem; }
.target-dets { margin-top: 0.35rem; }
.target-det-guide {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 0.45rem;
  border-top: 1px solid #ffffff12;
}
.target-det-tier {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  gap: 0.3rem 0.4rem;
  align-items: center;
}
.target-det-tier-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}
.target-det-tier[data-rating="recommended"] .target-det-tier-label { color: var(--text); opacity: 0.85; }
.target-det-tier-chips { display: flex; flex-wrap: wrap; gap: 0.22rem; }
.target-det-open { box-shadow: 0 0 0 1.5px var(--text); }
.targets-row .det-chip {
  font-size: 0.62rem;
  padding: 0.14rem 0.34rem;
  border-radius: 5px;
}
.det-group { display: inline-flex; align-items: center; gap: 0.25rem; }
.det-group-label { color: var(--faint); font-size: 0.7rem; margin-right: 0.1rem; }
.det-chip {
  display: inline-block; font-family: var(--mono); font-size: 0.7rem; line-height: 1;
  padding: 0.2rem 0.4rem; border-radius: 6px; border: 1px solid transparent; white-space: nowrap;
}
.det-recommended { background: var(--accent); color: var(--accent-text); font-weight: 600; }
.det-try { border-color: var(--line-strong); color: var(--text); }
.det-not { color: var(--faint); text-decoration: line-through; border-color: var(--line); }
.selection { background: var(--panel-2); border-radius: var(--radius-sm); padding: 0.6rem 0.7rem; }
.selection-empty { margin: 0; font-size: 0.82rem; line-height: 1.4; }

.position-summary { display: flex; flex-direction: column; gap: 0.2rem; margin: 0 0 0.35rem; }
.position-line {
  margin: 0;
  display: grid;
  grid-template-columns: 1.65rem minmax(0, 1fr);
  gap: 0.25rem 0.4rem;
  align-items: baseline;
}
.position-line-meta .position-from {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.position-view { cursor: help; border-bottom: 1px dotted #ffffff2a; }
.position-k {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.position-v {
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.28;
  color: var(--text);
  overflow-wrap: anywhere;
}
.position-from { font-family: var(--font); font-size: 0.78rem; font-weight: 500; }
.position-hint {
  margin: 0 0 0 0.15rem;
  padding-left: 2.3rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.position-foot {
  margin: 0.2rem 0 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--faint);
}

.share-row { display: flex; gap: 0.35rem; align-items: center; flex-wrap: wrap; }
.sky-panel .share-row { margin-top: 0.1rem; }
/* Sky map */
.inline-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--muted); min-width: 0; max-width: 100%; }
.inline-label select { width: auto; min-width: 0; max-width: 100%; min-height: 36px; padding: 0.3rem 0.6rem; border-radius: 10px; }

.aladin {
  position: relative;
  width: 100%;
  height: min(62vh, 640px);
  min-height: 320px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}
.map-message {
  position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 1rem;
  color: var(--muted); text-align: center;
}
.map-help { margin-top: 0.6rem; }
/* Aladin's own controls (coordinate box, zoom, full screen) restyled to match. */
#aladin .aladin-input, #aladin .aladin-btn {
  font-family: var(--font); color: var(--text); min-height: 0;
  background: #000000b3; border: 1px solid #ffffff3d; border-radius: 10px; box-shadow: none;
}
#aladin .aladin-input-text { font-family: var(--mono); color: var(--text); }
#aladin option { background: #000; color: var(--text); }

/* Flipbook: picture with its playback controls underneath, overlays and notes beside it */
.diffview { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.flip-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 1rem; margin-bottom: 0.9rem; }
.flip-head h2, .flip-head h3 { margin: 0; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.022em; }
.flip-summary { color: var(--muted); font-size: 0.85rem; }

.flip-body { display: grid; grid-template-columns: minmax(260px, 520px) minmax(220px, 1fr); gap: 1.5rem; align-items: start; }
.flip-main { display: grid; gap: 0.75rem; min-width: 0; contain: layout; }
.flip-main .flip-label { min-height: 1.4em; }

/* The frame is a few dozen pixels; scale it up without smoothing so each SPHEREx pixel stays a square. */
/* Stripes show through transparent pixels: places where the SPHEREx file has no value. */
.flip-stage {
  position: relative; width: 100%; aspect-ratio: 1;
  background: repeating-linear-gradient(45deg, #1c1c1e 0 4px, #0a0a0a 4px 8px);
  border-radius: var(--radius-sm); overflow: hidden;
  /* Keep flips inside the stage so the rest of the page doesn’t jump. */
  contain: layout paint size;
  flex-shrink: 0;
}
.flip-stage:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.flip-layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  image-rendering: pixelated;
}
.flip-target {
  position: absolute; left: 50%; top: 50%; width: 18%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border: 1.5px dashed #ffffffcc; border-radius: 50%; pointer-events: none;
}
.flip-compass, .flip-scale {
  position: absolute; bottom: 0.5rem; font-size: 0.72rem; font-weight: 600; color: var(--text);
  background: #000000a6; border-radius: 8px; padding: 0.15rem 0.45rem;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.flip-compass { left: 0.5rem; }
/* JS sets the width to exactly 1 arcminute of the frame; no side padding so the bar stays exact. */
.flip-scale { right: 0.5rem; display: grid; justify-items: center; gap: 0.15rem; padding: 0.15rem 0; line-height: 1; }
.flip-scale-bar { display: block; width: 100%; height: 2px; background: var(--text); }
.flip-message {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 0.6rem; margin: 0; padding: 1.25rem;
  color: var(--muted); text-align: center; font-size: 0.9rem; background: #0a0a0a;
}
.flip-message .btn { justify-self: center; }

.flip-side { display: grid; gap: 0.85rem; min-width: 0; }
/* Fixed label/legend height so visit text changes don’t shove the page. */
.flip-label {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.35;
  min-height: 3.6em;
  max-height: 3.6em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.flip-summary {
  min-height: 1.25em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Segmented control */
.flip-modes { display: inline-flex; flex-wrap: wrap; justify-self: start; gap: 2px; padding: 3px; background: var(--panel-2); border-radius: 999px; }
.stack-visits { border: 0; margin: 0; padding: 0; }
.stack-visits legend { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.4rem; }
.stack-visit-list { display: grid; gap: 0.35rem; }
.tab {
  font: inherit; font-size: 0.85rem; font-weight: 500; cursor: pointer; color: var(--muted);
  background: transparent; border: 0; border-radius: 999px; padding: 0.3rem 0.95rem; min-height: 32px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--accent-text); background: var(--accent); }

.flip-controls { display: grid; gap: 0.6rem; }
.flip-controls .btn[disabled], .flip-side input[disabled] { cursor: not-allowed; }
.button-row, .inline-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; cursor: pointer; }
/* White box + black tick (native accent-color is hard to see on dark mobile UI). */
.check input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  flex: none;
  border: 1.5px solid #ffffff66;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  vertical-align: middle;
}
.check input[type="checkbox"]:checked {
  border-color: #fff;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3.2 8.2l3.1 3.1 6.5-6.5'/%3E%3C/svg%3E");
  background-size: 78% 78%;
  background-position: center;
  background-repeat: no-repeat;
}
.check input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
.flip-note { margin: 0; }
.flip-note-alert {
  display: block;
  margin-top: 0.55rem;
  padding: 0.55rem 0.7rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1.5px;
  background: #ffffff12;
  border-left: 3px solid var(--text);
  border-radius: 0 10px 10px 0;
  line-height: 1.45;
}
.flip-files { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.flip-files details { font-size: 0.83rem; width: 100%; }
.flip-files summary { cursor: pointer; color: var(--text); }
.files-visit { margin: 0.6rem 0 0.2rem; font-weight: 600; }
.files-list { margin: 0; padding-left: 1.1rem; overflow-wrap: anywhere; }
.files-list a { color: inherit; }
.flip-cautions {
  font-size: 0.83rem; padding: 0.8rem 0.95rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: #ffffff08;
}
.flip-cautions strong { color: var(--text); font-weight: 600; }
.flip-cautions ul { margin: 0.35rem 0 0; padding-left: 1.1rem; color: #d2d2d7; }

/* Gaia markers: positioned in percent of the frame by js/flipbook.js and js/diffview.js. */
.gaia-layer { position: absolute; inset: 0; pointer-events: none; }
.gaia-mark, .gaia-trail, .diff-ring {
  position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
}
.gaia-mark { border: 1.25px solid #ffffffb3; box-shadow: 0 0 0 1px #000000b3; }
.gaia-target { border: 3px solid #fff; }
.gaia-trail { width: 5px; height: 5px; background: #fff; opacity: 0.8; box-shadow: 0 0 0 1px #000000b3; }
.wise-mark {
  position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%);
  border: 1.25px solid #ffb45a; box-shadow: 0 0 0 1px #000000b3;
}
.wise-target { border-width: 3px; }

.flip-det-bar { display: flex; flex-wrap: wrap; gap: 0.25rem; width: 100%; }
.flip-det-bar .det-switch.det-active { background: var(--accent); color: #000; font-weight: 600; }
.flip-flag-legend {
  margin: 0.35rem 0 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
  min-height: 1.4em;
  max-height: 2.8em;
  overflow: hidden;
}
.composite-legend {
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.85rem;
  margin: 0.15rem 0 0.35rem; font-size: 0.8rem; color: var(--muted);
}
.composite-legend span { font-weight: 600; }
.comp-blue { color: #6ea8ff; }
.comp-green { color: #5dffa0; }
.comp-red { color: #ff6b6b; }
.comp-white { color: #f5f5f7; }
.flag-legend-title { margin: 0 0 0.25rem; font-weight: 600; color: #d2d2d7; }
.flag-legend { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.15rem; }
.flag-name { font-weight: 600; color: var(--text); }
.fov-slow-note { margin: 0.35rem 0 0; }
.fov-preset { margin-top: 0.45rem; }
.map-catalog-toggles { margin-top: 0.65rem; }
.data-releases { margin: 0; }
.data-new-releases {
  margin: 0.45rem 0 0;
  padding: 0.45rem 0.55rem;
  border-left: 3px solid var(--accent, #c4a35a);
  background: color-mix(in srgb, var(--panel-2, #1c1c1e) 88%, transparent);
  color: #e8e4d8;
  font-size: 0.82rem;
}
.flip-data-as-of {
  margin: 0.15rem 0 0.65rem;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* Proof */
.proof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.proof-card { background: var(--panel-2); border-radius: var(--radius-sm); padding: 1rem 1.1rem; }
.proof-card h4 { margin: 0 0 0.5rem; font-size: 0.78rem; font-weight: 600; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.proof-card ul { margin: 0; padding-left: 1.1rem; font-size: 0.85rem; color: #d2d2d7; display: grid; gap: 0.3rem; }
.proof-verdict { margin: 0 0 0.6rem; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.022em; }
.proof-verdict[data-status="disagrees"] { text-decoration: underline; text-underline-offset: 0.2em; }
#proof-method { margin-top: 0.6rem; }

@media (max-width: 640px) {
  .proof-grid { grid-template-columns: 1fr; }
}

/* Before / After / Difference */
#diff-panels { display: grid; gap: 0.7rem; }
.stepper { display: flex; align-items: center; gap: 0.3rem; }
.btn-step { width: 36px; padding: 0; font-size: 1.05rem; line-height: 1; }
.btn-step[disabled] { cursor: not-allowed; opacity: 0.3; }
#diff-panels .help { margin: 0; }
.diff-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; }
.diff-panel { margin: 0; display: grid; gap: 0.35rem; }
.diff-panel figcaption { font-size: 0.78rem; color: var(--muted); }
.diff-stage { cursor: crosshair; touch-action: none; }
.diff-cursor { position: absolute; outline: 2px solid #fff; box-shadow: 0 0 0 3px #000c; pointer-events: none; }
.diff-ring { border: 2px dashed; }
.diff-ring::after {
  content: attr(data-label); position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%);
  font-size: 0.7rem; font-weight: 800; line-height: 1.2; color: inherit; text-shadow: 0 0 3px #000, 0 0 3px #000;
}
/* Ring colours match the difference map: A where a star was (blue), B where it went (orange). */
.ring-a { border-color: #8fb8ff; color: #8fb8ff; }
.ring-b { border-color: #ffb36b; color: #ffb36b; }
.diff-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; font-size: 0.78rem; color: var(--muted); }
.diff-bar {
  width: 140px; height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, #468cff, #12141a 50%, #ff6e28);
}
.diff-stripes {
  width: 18px; height: 10px; border-radius: 3px; margin-left: 0.6rem;
  background: repeating-linear-gradient(45deg, #1c1c1e 0 3px, #0a0a0a 3px 6px);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.spot-view { display: grid; gap: 0.6rem; }
.spot-title { margin: 0.4rem 0 0; font-size: 1rem; font-weight: 600; letter-spacing: -0.015em; }
.spot-list { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; font-size: 0.82rem; }
.spot-item {
  width: 100%; text-align: left; font: inherit; color: var(--text); cursor: pointer;
  background: var(--panel-2); border: 0; border-radius: 10px; padding: 0.5rem 0.75rem;
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.spot-item:hover { background: var(--panel-3); }
.spot-item[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--text); }
#spot-detail-title { text-transform: none; letter-spacing: -0.01em; color: var(--text); font-size: 0.9rem; }
.spot-why { margin: 0 0 0.6rem; font-size: 0.88rem; }
.spot-sub { display: block; margin-top: 0.4rem; font-size: 0.8rem; font-weight: 600; }
#spot-detail ul { margin: 0.25rem 0 0.4rem; }
#spot-jpl { margin-top: 0.6rem; justify-self: start; }
.spot-jpl-result { margin-top: 0.6rem; font-size: 0.85rem; }
.spot-jpl-result .proof-verdict { font-size: 1.05rem; margin: 0 0 0.3rem; }
.spot-mark {
  position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%);
  outline: 1.5px solid #fff; box-shadow: 0 0 0 1px #000b; pointer-events: none;
}
.spot-mark::after {
  content: attr(data-label); position: absolute; left: 100%; top: -0.2em; margin-left: 2px;
  font-size: 0.65rem; font-weight: 700; color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000;
}
.diff-readout { margin: 0; font-family: var(--mono); font-size: 0.8rem; min-height: 2.4em; overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .diff-grid { grid-template-columns: 1fr; }
}

/* Scientist view: raw detector pixels drawn on a canvas by js/scientist.js. Category colours are in js/pixels.js. */
.sci-toggle { justify-self: start; }
.sci-toggle[aria-expanded="true"] { background: var(--accent); color: var(--accent-text); }
.tab[aria-pressed="true"] { color: var(--accent-text); background: var(--accent); }
.sci-view { container-type: inline-size; }
.sci-view > .help { margin: 0 0 0.8rem; }
.sci-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
.sci-layout { display: grid; grid-template-columns: minmax(240px, 460px) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.sci-figure { margin: 0; display: grid; gap: 0.45rem; min-width: 0; }
.sci-figure figcaption { font-size: 0.78rem; color: var(--muted); }
.sci-caption-row { display: flex; gap: 0.6rem; align-items: flex-start; }
.sci-compass { flex: none; width: 48px; height: 48px; overflow: visible; }
.sci-compass line { stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
.sci-compass text { fill: var(--text); font: 700 9px var(--font); text-anchor: middle; dominant-baseline: central; }
.sci-canvas {
  display: block; width: 100%; height: auto; border-radius: var(--radius-sm); background: #0a0a0a;
  image-rendering: pixelated; cursor: crosshair; touch-action: none;
}
.sci-canvas:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.sci-pixel { display: grid; gap: 0.5rem; min-width: 0; }
.sci-pixel h4 { margin: 0; }
.sci-cat { margin: 0; font-size: 0.85rem; color: #d2d2d7; }
.sci-cat strong { color: var(--text); }
.sci-cat .sci-swatch { margin-right: 0.4rem; vertical-align: -1px; }
.sci-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.3rem 0.8rem; margin: 0; font-size: 0.82rem; }
.sci-dl dt { color: var(--muted); }
.sci-dl dd { margin: 0; font-family: var(--mono); overflow-wrap: anywhere; }
.sci-sub { margin: 0.2rem 0 0; font-size: 0.78rem; color: var(--muted); }
.sci-binary { display: block; padding: 0.45rem 0.6rem; font-size: 0.8rem; color: var(--faint); background: #0a0a0a; overflow-wrap: anywhere; }
.sci-binary .on { color: var(--text); font-weight: 700; background: #ffffff2e; border-radius: 2px; }
.sci-flaglist { margin: 0; padding-left: 1.1rem; font-size: 0.82rem; color: #d2d2d7; display: grid; gap: 0.25rem; }
.sci-flaglist strong { color: var(--text); font-family: var(--mono); font-weight: 600; }
.sci-use { color: var(--muted); }
.sci-rejected { color: var(--text); font-weight: 600; }
.sci-legend { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.sci-chip {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 32px; padding: 0.3rem 0.8rem;
  font: inherit; font-size: 0.8rem; color: var(--text); cursor: pointer;
  background: var(--panel-2); border: 0; border-radius: 999px;
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.sci-chip:hover { background: var(--panel-3); }
.sci-chip[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--text); }
.sci-chip[disabled] { opacity: 0.45; cursor: default; }
.sci-count { color: var(--muted); font-family: var(--mono); font-size: 0.76rem; }
.sci-swatch {
  display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 3px;
  background: var(--sw); box-shadow: inset 0 0 0 1px #0000004d;
}
.sci-stripes { background: repeating-linear-gradient(45deg, #48484a 0 2px, #0a0a0a 2px 4px); box-shadow: inset 0 0 0 1px var(--line-strong); }
.sci-bits-wrap { display: grid; gap: 0.4rem; }
.sci-bits-wrap .help { margin: 0; }
.sci-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sci-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.sci-table th, .sci-table td { text-align: left; padding: 0.4rem 0.55rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.sci-table th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.sci-table td { color: #d2d2d7; }
.sci-table td.num { font-family: var(--mono); white-space: nowrap; }
.sci-table tr.zero td { color: var(--faint); }
.sci-bitbtn {
  font: inherit; font-family: var(--mono); color: var(--text); cursor: pointer;
  background: var(--panel-2); border: 0; border-radius: 8px; padding: 0.2rem 0.5rem; min-height: 28px;
}
.sci-bitbtn:hover { background: var(--panel-3); }
.sci-bitbtn[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--text); }
.sci-bitbtn[disabled] { color: var(--faint); cursor: default; background: transparent; }
.sci-how { font-size: 0.85rem; }
.sci-how summary { cursor: pointer; font-weight: 600; }
.sci-how .about-list { margin: 0.6rem 0 0; font-size: 0.83rem; }
#sci-method { margin: 0; }

@container (max-width: 640px) {
  .sci-layout { grid-template-columns: minmax(0, 1fr); }
}

/* Inside one visit (js/visitflip.js) and the planted-mover card (js/recovery.js). */
.iv-view { container-type: inline-size; }
.iv-view > .help { margin: 0 0 0.8rem; }
.iv-body { display: grid; gap: 0.9rem; }
.iv-layout { display: grid; grid-template-columns: minmax(240px, 440px) minmax(260px, 1fr); gap: 1.25rem; align-items: start; }
.iv-figure { margin: 0; display: grid; gap: 0.45rem; min-width: 0; }
.iv-figure figcaption { margin: 0; font-size: 0.78rem; }
.iv-side { display: grid; gap: 0.8rem; min-width: 0; }
.iv-side .proof-card h4 { margin: 0 0 0.4rem; }
.iv-side ul { margin: 0; padding-left: 1.1rem; font-size: 0.82rem; display: grid; gap: 0.25rem; }
.iv-mark { outline-color: #ffd60a; }
.iv-mark::after { color: #ffd60a; }
#iv-method { margin: 0; }
.rec-view { display: grid; gap: 0.5rem; }
.rec-view .help, .rec-view .proof-verdict { margin: 0; }
.rec-view .proof-verdict { font-size: 1rem; line-height: 1.4; }
.rec-table tbody th { color: var(--text); font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.rec-table td { font-family: var(--mono); white-space: nowrap; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@container (max-width: 720px) {
  .iv-layout { grid-template-columns: minmax(0, 1fr); }
  .iv-figure { max-width: 460px; }
}

/* Light curve: SVG charts drawn by js/lightcurve.js. */
#lc-body, #spec-body { display: grid; gap: 0.9rem; }
#spec-view .help { margin: 0; }
#lc-view .help, #lc-where { margin: 0; }
.lc-figure { margin: 0; display: grid; gap: 0.4rem; }
.lc-figure figcaption { font-size: 0.78rem; color: var(--muted); }
.lc-svg { width: 100%; height: auto; display: block; background: #0a0a0a; border-radius: var(--radius-sm); }
.lc-frame { fill: none; stroke: var(--line-strong); }
.lc-grid { stroke: var(--line); stroke-dasharray: 2 4; }
.lc-tick { fill: var(--faint); font-size: 11px; font-family: var(--font); }
.lc-axis { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.lc-line { fill: none; stroke-width: 1.2; opacity: 0.5; }
.lc-band { stroke: var(--line-strong); stroke-dasharray: 5 4; }
.tl-row { cursor: pointer; }
.tl-row:focus { outline: none; }
.tl-hit { fill: transparent; }
.tl-row:hover .tl-hit, .tl-row:focus .tl-hit { fill: #1c1c1e; }
.tl-current .tl-hit { fill: #232325; }
.tl-current .tl-label { fill: var(--text); font-weight: 600; }
.tl-visit { fill: #3a3a3c; }
.tl-current .tl-visit { fill: #636366; }
.tl-image { stroke: var(--text); stroke-width: 1; }
.tl-one { stroke: var(--faint); }
.tl-many { stroke: #ffb36b; stroke-width: 1.5; }
.term {
  font: inherit; color: var(--text); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline dotted; text-underline-offset: 3px;
}
.term[aria-expanded="true"] { text-decoration-style: solid; }
.term-hint {
  margin: 0.35rem 0 0.6rem; padding: 0.55rem 0.75rem; border-radius: var(--radius-sm);
  background: var(--panel-3); color: var(--text);
}
.tl-legend { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin: 0.5rem 0 0; }
.tl-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.tl-legend i { display: inline-block; width: 2px; height: 0.9rem; background: var(--text); }
.tl-legend .tl-one { background: var(--faint); }
.tl-legend .tl-many { background: #ffb36b; }
.tl-frame { fill: var(--text); }
.lc-point line { stroke-width: 1.5; }
.lc-point circle { stroke-width: 1.8; }
.lc-blue { color: hsl(260, 85%, 72%); font-weight: 600; }
.lc-red { color: hsl(0, 85%, 66%); font-weight: 600; }
.lc-key::before {
  content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  margin-right: 0.3rem; background: var(--key);
}
.lc-list { font-size: 0.83rem; }
.lc-list strong { font-weight: 600; }
.lc-list ul { margin: 0.35rem 0 0; padding-left: 1.1rem; color: #d2d2d7; }

/* About page */
.about {
  display: grid; gap: 1.25rem;
  max-width: 860px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem) 2rem;
}
.about-steps, .about-list { margin: 0 0 1rem; padding-left: 1.25rem; display: grid; gap: 0.75rem; color: var(--muted); }
.about-steps strong, .about-list strong { color: var(--text); font-weight: 600; }
.about a { color: var(--text); text-underline-offset: 2px; }

.site-footer {
  max-width: 980px; margin: 0 auto;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem) calc(2rem + env(safe-area-inset-bottom));
  color: var(--faint); font-size: 0.75rem; line-height: 1.6; text-align: center;
}

@media (max-width: 1100px) {
  .flip-body { grid-template-columns: minmax(0, 1fr); }
  .flip-main { max-width: 560px; }
}
/* One column: the inspector becomes a bottom sheet, opened from the toolbar. */
@media (max-width: 900px) {
  .split, .split.inspector-closed { grid-template-columns: minmax(0, 1fr); }
  .split .content { grid-column: 1; min-width: 0; }
  .split .inspector, .split.inspector-closed .inspector {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 60;
    max-height: min(88vh, 88dvh); margin: 0;
    border-radius: var(--radius) var(--radius) 0 0;
    border-top: 1px solid var(--line-strong);
    box-shadow: 0 -24px 60px #000000b3;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    transform: translateY(105%); visibility: hidden;
    transition: transform 0.32s var(--ease), visibility 0s linear 0.32s;
  }
  .split.sheet-open .inspector {
    transform: none; visibility: visible;
    transition: transform 0.32s var(--ease), visibility 0s;
  }
  .inspector-head {
    position: sticky; top: calc(-1 * clamp(0.95rem, 2vw, 1.2rem)); z-index: 2;
    margin: calc(-1 * clamp(0.95rem, 2vw, 1.2rem)) calc(-1 * clamp(0.95rem, 2vw, 1.2rem)) 0;
    padding: 0.95rem clamp(0.95rem, 2vw, 1.2rem) 0.65rem;
    background: var(--panel);
  }
  .inspector-head::before {
    content: ""; position: absolute; top: 0.45rem; left: 50%; width: 40px; height: 5px;
    margin-left: -20px; border-radius: 3px; background: var(--line-strong);
  }
  .inspector-close { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 1rem; }
  .inspector .aladin { height: min(46vh, 46dvh); }
  .sheet-backdrop {
    display: block; position: fixed; inset: 0; z-index: 55;
    border: 0; padding: 0; margin: 0; cursor: pointer;
    background: #00000099;
  }
  .finder-bar { flex-direction: column; align-items: stretch; gap: 0.55rem; }
  .finder-coords {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 0.45rem;
    width: 100%;
    flex: none;
  }
  .finder-coords .coord-units { grid-column: 1 / -1; width: 100%; justify-content: stretch; }
  .finder-coords .coord-units .tab { flex: 1 1 0; }
  .finder-coords .inset-input { width: 100%; min-width: 0; flex: none; }
  .finder-browse { width: 100%; }
  .finder-browse > summary { width: 100%; justify-content: center; min-height: 44px; }
  .finder-popover { left: 0; right: 0; width: auto; }
  .page-title { font-size: clamp(1.35rem, 5.5vw, 1.75rem); line-height: 1.2; }
  .content, .panel, .workspace-detail, .diffview, .flip-side, .flip-cautions {
    min-width: 0;
  }
  .help, .flip-cautions, .flip-cautions li, .status-banner, .selection,
  .diff-legend, .proof-card, .spot-why {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (max-width: 640px) {
  /* Don’t sticky the tall two-row header — it covered targets while scrolling. */
  .site-header {
    position: relative;
    flex-wrap: wrap;
    row-gap: 0.5rem;
    column-gap: 0.4rem;
    padding-top: max(0.5rem, env(safe-area-inset-top));
    padding-bottom: 0.6rem;
    padding-left: max(0.9rem, env(safe-area-inset-left));
    padding-right: max(0.9rem, env(safe-area-inset-right));
  }
  .toolbar-search { order: 3; flex-basis: 100%; max-width: none; }
  .toolbar-search .query-input { min-height: 44px; font-size: 16px; /* avoid iOS zoom */ }
  .toolbar-actions {
    gap: 0.3rem;
    margin-left: auto;
    flex-shrink: 1;
    min-width: 0;
  }
  .tool-btn {
    min-height: 40px;
    padding: 0.35rem 0.55rem;
    font-size: 0.78rem;
  }
  /* Keep Help from clipping: icon only */
  .help-btn {
    flex: none;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    justify-content: center;
    font-size: 0;
    gap: 0;
    overflow: hidden;
  }
  .help-btn::before { font-size: 0.85rem; width: 1.35rem; height: 1.35rem; }
  .flip-main { max-width: none; width: 100%; }
  .split, .wide-row, .timeline-panel {
    padding-left: max(0.9rem, env(safe-area-inset-left));
    padding-right: max(0.9rem, env(safe-area-inset-right));
  }
  .timeline-panel { padding-top: 1rem; padding-bottom: 1rem; }
  .content { gap: 0.9rem; }
  .page-head { padding-top: 0.35rem; }
  .panel { padding: 1rem 0.95rem; border-radius: 16px; }
  .status-banner { margin-top: 0.35rem; font-size: 0.82rem; }
  .targets-strip { padding: 0.7rem 0.85rem; }
  .targets-strip-title { font-size: 0.98rem; }
  .targets-strip-lead {
    font-size: 0.78rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .targets-name-sub {
    gap: 0.4rem 0.55rem;
    font-size: 0.84rem;
    margin-top: 0.55rem;
  }
  .targets-name-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: #ffffff12;
    border: 1px solid #ffffff22;
  }
  .targets-name-link[aria-pressed="true"] {
    background: #ffffff22;
    border-color: #ffffff55;
    text-decoration: none;
  }
  .targets-row {
    grid-auto-flow: column;
    grid-auto-columns: minmax(72%, 1fr);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 0.55rem;
    padding-bottom: 0.35rem;
  }
  .targets-row > li { scroll-snap-align: center; }
  .targets-row .target { padding: 0.7rem 0.8rem; }
  .targets-row .target-hint { -webkit-line-clamp: 2; }
  .flip-head {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }
  .flip-head h2 { font-size: 1.15rem; }
  .flip-det-bar {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.3rem;
  }
  .flip-det-bar .btn-small {
    flex: none;
    width: 100%;
    min-height: 40px;
    padding-inline: 0.2rem;
  }
  .flip-modes {
    width: 100%;
    border-radius: 14px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .flip-modes::-webkit-scrollbar { display: none; }
  .flip-modes .tab {
    flex: 0 0 auto;
    white-space: nowrap;
    text-align: center;
    min-height: 40px;
    padding: 0.4rem 0.75rem;
  }
  .button-row, .inline-row { gap: 0.45rem 0.65rem; }
  .button-row .btn { min-height: 40px; }
  .inline-row { flex-wrap: wrap; }
  .inline-label { flex: 1 1 100%; }
  .inline-label select { flex: 1; width: auto; max-width: none; }
  .flip-label {
    font-size: 0.82rem;
    line-height: 1.35;
    min-height: 3.2em;
    max-height: 3.2em;
    overflow-wrap: anywhere;
  }
  .flip-stage { width: 100%; max-width: 100%; }
  .flip-note { font-size: 0.8rem; overflow-wrap: anywhere; }
  .diff-legend {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .diff-bar { width: min(100%, 220px); }
  .guide-modal, .six-eyes-lightbox {
    padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right))
      max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
    align-items: flex-end;
  }
  .guide-dialog, .six-eyes-lb-card {
    width: 100%;
    max-height: min(90vh, 90dvh);
    border-radius: 18px 18px 12px 12px;
  }
  .six-eyes-lb-nav { width: 2.75rem; height: 2.75rem; }
  .proof-grid { grid-template-columns: 1fr; }
  .workspace-detail { gap: 1.35rem; }
  .sky-panel .inline-label { flex-wrap: wrap; }
}

@media (max-width: 520px) {
  .targets-row { grid-auto-columns: 82%; }
  .brand-name .brand-spherex { display: none; }
  .coord-grid { grid-template-columns: 1fr; }
  .coord-grid .btn { grid-column: 1; }
}

@media (max-width: 480px) {
  .field-grid { grid-template-columns: 1fr; }
  .coord-grid { grid-template-columns: 1fr; }
  .coord-fields { grid-template-columns: 1fr; }
  .badge { display: none; }
  /* Charts stay readable; scroll sideways instead of crushing. */
  #tl-chart, #lc-time, #lc-wl, #spec-chart {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  .lc-svg { min-width: 560px; }
  .files-list li { padding: 0.3rem 0; }
  .files-list a { display: inline-block; padding: 0.35rem 0.2rem; min-height: 40px; }
  .site-header {
    column-gap: 0.35rem;
    padding-left: max(0.85rem, env(safe-area-inset-left));
    padding-right: max(0.85rem, env(safe-area-inset-right));
  }
  .tool-btn { padding: 0.3rem 0.55rem; font-size: 0.78rem; }
  .flip-det-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .six-eye { min-width: 132px; }
  .six-eyes-lb-meta { grid-template-columns: 1fr; }
  .six-eyes-spec { padding: 0.75rem; }
  input[type="text"], select { font-size: 16px; }
  .finder-coords { grid-template-columns: 1fr; }
  .finder-coords .btn { width: 100%; }
}

/* Six Eyes — wavelength discovery (deep per detector) */
.six-eyes { margin-top: 1.25rem; }
.six-eyes-lead {
  margin: 0 0 1rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.six-eyes-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.65rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.15rem 0.1rem 0.85rem;
  margin: 0 -0.1rem 0.35rem;
}
.six-eye {
  flex: 1 1 0;
  min-width: min(148px, 28vw);
  max-width: 200px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  display: grid;
  gap: 0.45rem;
  transition: transform 0.22s var(--ease);
}
.six-eye:hover:not([disabled]) { transform: translateY(-2px); }
.six-eye:focus-visible { outline: none; }
.six-eye-frame {
  display: block;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0a0a0a;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 0 transparent;
  transition: box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.six-eye.is-active .six-eye-frame,
.six-eye[aria-pressed="true"] .six-eye-frame {
  border-color: #f5f5f7;
  box-shadow: 0 0 0 2px #f5f5f7, 0 8px 28px #00000080;
}
.six-eye-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
  background: #000;
}
.six-eye-miss {
  display: grid;
  place-items: center;
  color: var(--faint);
  font-size: 0.85rem;
  font-weight: 600;
}
.six-eye-cap {
  display: grid;
  gap: 0.1rem;
  padding: 0 0.1rem;
}
.six-eye-cap strong {
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.six-eye-cap span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
}
.six-eye-meta { color: var(--faint) !important; }
.six-eye[disabled] { opacity: 0.45; cursor: default; }

.six-eyes-spec {
  margin-top: 0.35rem;
  padding: 1rem;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.six-eyes-spec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.65rem;
}
.six-eyes-spec-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.six-eyes-hover {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}
#six-eyes-spectrum {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  background: #0a0a0a;
}
.six-eyes-limits {
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
  color: var(--faint);
  font-size: 0.78rem;
  line-height: 1.4;
}
.six-eyes-spec-explain {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.six-eyes-spec-explain strong { color: var(--text); font-weight: 600; }

/* Six Eyes large-view card */
.six-eyes-lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.six-eyes-lightbox[hidden] { display: none !important; }
.six-eyes-lb-backdrop {
  position: absolute; inset: 0; border: 0; padding: 0; margin: 0;
  background: #000000cc;
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  cursor: pointer;
}
.six-eyes-lb-card {
  position: relative; z-index: 1;
  width: min(100%, 560px);
  max-height: min(92vh, 820px);
  overflow: auto;
  padding: 1.25rem 1.25rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: 0 28px 90px #000000c0;
  animation: guide-in 0.28s var(--ease);
}
.six-eyes-lb-close {
  position: absolute; top: 0.7rem; right: 0.7rem;
  width: 2rem; height: 2rem; border: 0; border-radius: 50%;
  font-size: 1.35rem; line-height: 1; color: var(--muted);
  background: var(--panel-2); cursor: pointer; z-index: 2;
}
.six-eyes-lb-close:hover { color: var(--text); background: var(--panel-3); }
.six-eyes-lb-nav {
  position: absolute; top: 52%; transform: translateY(-50%);
  width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%;
  font-size: 1.6rem; line-height: 1; color: var(--text);
  background: #ffffff18; cursor: pointer; z-index: 2;
  backdrop-filter: blur(8px);
  transition: background 0.2s var(--ease), opacity 0.2s var(--ease);
}
.six-eyes-lb-nav:hover:not([disabled]) { background: #ffffff28; }
.six-eyes-lb-nav[disabled] { opacity: 0.25; cursor: default; }
.six-eyes-lb-prev { left: 0.55rem; }
.six-eyes-lb-next { right: 0.55rem; }
.six-eyes-lb-head { margin: 0 2.2rem 0.75rem 0; }
.six-eyes-lb-kicker {
  margin: 0 0 0.2rem; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint);
}
.six-eyes-lb-head h3 {
  margin: 0; font-size: 1.55rem; font-weight: 700; letter-spacing: -0.03em;
}
.six-eyes-lb-band { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.92rem; }
.six-eyes-lb-stage {
  margin: 0 auto 0.9rem;
  max-width: 420px;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
}
.six-eyes-lb-stage img {
  width: 100%; height: 100%; object-fit: contain;
  image-rendering: pixelated; display: block;
}
.six-eyes-lb-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.75rem;
  margin: 0 0 0.75rem;
}
.six-eyes-lb-meta div {
  background: var(--panel-2);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
}
.six-eyes-lb-meta dt {
  margin: 0; font-size: 0.68rem; color: var(--faint);
  text-transform: uppercase; letter-spacing: 0.03em;
}
.six-eyes-lb-meta dd {
  margin: 0.15rem 0 0; font-size: 0.88rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.six-eyes-lb-hint {
  margin: 0; text-align: center; color: var(--faint); font-size: 0.75rem;
}

@media (max-width: 720px) {
  .six-eye { min-width: 132px; max-width: none; flex: 0 0 auto; }
  .six-eyes-lb-card { width: min(100%, 420px); padding: 1rem; }
  .six-eyes-lb-meta { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
