/* Sky Patrol V3 site styles (site-core). Tokens in tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html { font-family: var(--font-sans); font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  color: var(--text); background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text);
  line-height: 1.5; font-size: var(--fs-14); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--accent-soft-2); }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
p { margin: 0 0 var(--s3); }
code, kbd, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.mono { font-size: .95em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
kbd { font: 600 11px/1 var(--font-mono); padding: 3px 5px; border-radius: 3px; border: 1px solid var(--border-input);
  background: var(--surface); color: var(--text); white-space: nowrap; }
code { font-size: .92em; background: var(--surface-3); border-radius: 3px; padding: 1px 4px; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- skip link + nav */
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--accent); color: var(--text-on-accent);
  padding: 8px 14px; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 8px; color: var(--text-on-accent); }

.nav { position: sticky; top: 0; z-index: 40; height: var(--nav-h); background: var(--nav-bg); color: var(--nav-text); }
.nav__in { margin: 0 auto; height: 100%; display: flex; align-items: center; gap: var(--s1); padding: 0 var(--gutter) 0 4px; }
.nav__brand { display: flex; align-items: center; gap: 6px; color: var(--nav-text); text-decoration: none; margin-right: 10px;
  white-space: nowrap; height: 100%; }
.nav__brand:hover { color: var(--nav-text); }
.nav__brand img { width: 72px; height: 45px; }
.nav__brand b { font-weight: 300; font-size: var(--fs-16); letter-spacing: .01em; }
.badge-v3 { font: 600 11px/1 var(--font-sans); letter-spacing: .04em; padding: 3px 5px; border-radius: 2px; background: var(--v2-primary); color: #fff; }
.nav__links { display: flex; height: 100%; }
.nav__link { color: var(--nav-text); text-decoration: none; font-size: var(--fs-14); font-weight: 300; padding: 0 8px 3px; margin: 1px 4px; height: calc(100% - 2px); display: flex;
  align-items: center; white-space: nowrap; transition: background var(--dur); }
.nav__link:hover { background: var(--nav-hover); color: var(--nav-text); }
.nav__link[aria-current="page"] { color: var(--nav-text); font-weight: 400; box-shadow: inset 0 -3px 0 var(--v2-primary-line); }
.nav__link[aria-current="page"]:hover { background: var(--nav-hover); }
.nav__spacer { flex: 1; min-width: 8px; }
.nav__search { position: relative; width: 300px; max-width: 34vw; }
.nav__icon { display: inline-grid; place-items: center; background: none; border: 1px solid transparent; color: var(--nav-text);
  height: 34px; min-width: 34px; border-radius: var(--radius); padding: 0 6px; }
.nav__icon:hover { border-color: rgb(255 255 255 / .3); }
.nav__icon svg { width: 18px; height: 18px; }
.nav__menu-btn, .nav__search-btn { display: none; }
.nav-menu { position: fixed; z-index: 45; top: var(--nav-h); left: 0; right: 0; background: var(--nav-bg); border-top: 1px solid rgb(255 255 255 / .1);
  padding: var(--s2) 0; box-shadow: var(--shadow-pop); }
.nav-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 var(--gutter); color: var(--nav-text); text-decoration: none; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { background: var(--nav-hover); }

/* ---------------------------------------------------------------- banners */
.banners:empty { display: none; }
.banner { display: flex; align-items: flex-start; gap: var(--s3); padding: 10px var(--gutter); font-size: var(--fs-14); border-bottom: 1px solid var(--border); }
.banner__in { max-width: var(--col-max); margin: 0 auto; width: 100%; display: flex; gap: var(--s3); align-items: flex-start; }
.banner__icon { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.banner__text { flex: 1; min-width: 0; }
.banner__text b { font-weight: 700; margin-right: 6px; }
.banner--info { background: var(--v2-info); color: #fff; border-bottom-color: var(--v2-info-line); }
.banner--warning { background: var(--v2-warn); color: var(--v2-warn-text); border-bottom-color: var(--v2-warn); }
.banner--error { background: var(--v2-error); color: #fff; border-bottom-color: var(--v2-error-line); }
.banner--offline { background: var(--surface-3); color: var(--text); }
.banner a { color: inherit; font-weight: 600; }
.banner__close { flex: none; background: none; border: 1px solid transparent; color: inherit; border-radius: var(--radius); height: 26px; min-width: 26px; line-height: 1; }
.banner__close:hover { border-color: currentColor; }

/* ---------------------------------------------------------------- page frame */
main { flex: 1 0 auto; width: 100%; display: flex; flex-direction: column; }
.page { max-width: var(--col-max); margin: 0 auto; padding: 0 var(--gutter) 15px; background: var(--surface); min-height: 100%; }
.page:focus { outline: none; }
.page { display: flow-root; flex: 1 0 auto; width: 100%; }
.title { font-weight: 300; font-size: var(--fs-24); line-height: 1.3; color: var(--v2-title); }
.title b, .title strong { font-weight: 600; }
.subtitle { color: var(--text-2); font-size: var(--fs-15); margin: var(--s1) 0 0; }
.section-label { font-size: var(--fs-12); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin: var(--s6) 0 var(--s3); }
.crumbs { font-size: var(--fs-13); color: var(--text-2); margin: 0 0 var(--s2); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--accent); }

/* ---------------------------------------------------------------- cards + panels */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 0; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 0; min-width: 0; }
.panel__head { display: flex; align-items: center; gap: var(--s2); min-height: 40px; padding: 8px 15px; border-bottom: 1px solid var(--border);
  font-weight: 600; font-size: var(--fs-14); background: var(--surface); color: var(--text); }
.panel__head .aside { margin-left: auto; font-weight: 400; color: var(--text-2); font-size: var(--fs-12); }
.panel__body { padding: 15px; }
.callout { border: 1px solid var(--v2-primary-line); border-radius: 0; overflow: hidden; background: var(--surface); }
.callout > h2, .callout > h3 { margin: 0; background: var(--v2-primary); color: #fff; font-size: var(--fs-14); font-weight: 600; padding: 10px 15px; min-height: 40px; }
.callout > div, .callout > p { margin: 0; padding: 15px; font-size: var(--fs-14); }
.note { display: flex; gap: var(--s2); align-items: flex-start; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface-2); font-size: var(--fs-13); color: var(--text-2); }
.note--warn { border-color: var(--warning); background: var(--warning-soft); color: var(--text); }
.pending { outline: 1px dashed var(--warning); outline-offset: 2px; border-radius: 2px; }

/* ---------------------------------------------------------------- controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; border: 1px solid var(--v2-btn-line);
  background: var(--v2-btn); color: var(--text); border-radius: 0; padding: 4px 10px; font-weight: 400; font-size: var(--fs-12);
  line-height: 1.5; white-space: nowrap; text-decoration: none; transition: background var(--dur), border-color var(--dur); }
.btn:hover { background: var(--v2-btn-hover); border-color: var(--v2-btn-line); color: var(--text); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--v2-primary); border-color: var(--v2-primary); color: #fff; }
.btn--primary:hover { background: var(--v2-primary-hover); border-color: var(--v2-primary-hover); color: #fff; }
.btn--ghost { border-color: transparent; background: transparent; }
.btn--ghost:hover { background: var(--v2-btn); border-color: transparent; }
.btn--sm { min-height: 26px; padding: 2px 8px; font-size: var(--fs-12); }
.btn--icon { padding: 4px 7px; }
.btn svg { width: 15px; height: 15px; flex: none; }
.btn .caret { width: 10px; height: 10px; opacity: .7; }
.seg { display: inline-flex; border: 1px solid var(--v2-tab-line); border-radius: 0; overflow: hidden; background: var(--v2-tab); flex: none; }
.seg > button { border: 0; border-right: 1px solid var(--v2-tab-line); background: transparent; color: var(--text); font-weight: 400; font-size: var(--fs-13);
  padding: 4px 11px; min-height: 30px; white-space: nowrap; transition: background var(--dur); }
.seg > button:last-child { border-right: 0; }
.seg > button:hover { background: var(--v2-tab-hover); }
.seg > button[aria-pressed="true"], .seg > button[aria-selected="true"] { background: var(--v2-primary); color: #fff; font-weight: 600; }
.toggle { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-input); border-radius: var(--radius-pill);
  padding: 3px 11px 3px 9px; min-height: 30px; font-size: var(--fs-13); background: var(--surface); color: var(--text); white-space: nowrap;
  transition: opacity var(--dur), background var(--dur); }
.toggle:hover { background: var(--surface-2); }
.toggle[aria-pressed="false"] { color: var(--text-2); background: var(--surface-2); border-style: dashed; }
.toggle[aria-pressed="false"] .sw, .toggle[aria-pressed="false"] .tri { opacity: .35; }
.toggle .cnt { color: var(--text-2); font-variant-numeric: tabular-nums; }
.sw { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.sw--ring { background: transparent !important; border: 1.6px solid currentColor; }
.tri { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 9px solid var(--nondet); flex: none; }
.input, .select { min-height: 32px; border: 1px solid var(--border-input); background: var(--surface); color: var(--text); border-radius: 0;
  padding: 4px 10px; font-size: var(--fs-13); }
.input:focus, .select:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.input--num { font-family: var(--font-mono); width: 11ch; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-13); cursor: pointer; min-height: 24px; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }

.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface-2); border-radius: 0;
  padding: 2px 8px; min-height: 26px; font-size: var(--fs-12); color: var(--text); text-decoration: none; white-space: nowrap; }
a.chip:hover, button.chip:hover { border-color: var(--accent); color: var(--accent); }
button.chip { cursor: pointer; }
.chip b { font-weight: 700; color: var(--text-2); font-size: var(--fs-11); text-transform: uppercase; letter-spacing: .05em; }
.chip svg { width: 13px; height: 13px; }
.chip--note { border-style: dashed; color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.flag { display: inline-block; font: 700 10px/16px var(--font-sans); letter-spacing: .03em; padding: 0 5px; border-radius: 3px; margin-right: 3px;
  background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.flag--stored { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.flag--position { background: var(--warning-soft); color: var(--text); border-color: transparent; }
.flag--decile { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

/* ---------------------------------------------------------------- popovers, menus, sheets, toasts */
.pop { position: fixed; z-index: 60; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop); min-width: 200px; max-width: min(420px, calc(100vw - 16px)); max-height: min(70vh, 560px); overflow: auto; }
.pop__head { display: flex; align-items: center; gap: 8px; padding: 10px 14px 6px; font-weight: 700; font-size: var(--fs-13); }
.pop__body { padding: 6px 14px 12px; }
.menu { list-style: none; margin: 0; padding: 6px 0; }
.menu [role="menuitem"], .menu .menu__item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; padding: 6px 14px; border: 0;
  background: none; color: var(--text); text-align: left; text-decoration: none; font-size: var(--fs-13); }
.menu [role="menuitem"]:hover, .menu [role="menuitem"]:focus-visible { background: var(--accent-soft); outline: none; }
.menu [role="menuitem"] svg { width: 16px; height: 16px; color: var(--text-2); flex: none; }
.menu__hint { margin-left: auto; color: var(--text-2); font-size: var(--fs-12); }
.menu__sep { height: 1px; background: var(--border); margin: 6px 0; }
.menu__label { padding: 8px 14px 2px; font-size: var(--fs-11); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); }
.sheet-scrim { position: fixed; inset: 0; z-index: 70; background: rgb(0 0 0 / .35); }
.sheet { position: fixed; z-index: 71; left: 0; right: 0; bottom: 0; max-height: 80vh; overflow: auto; background: var(--surface);
  border-radius: 14px 14px 0 0; box-shadow: var(--shadow-pop); padding: 6px 0 calc(12px + env(safe-area-inset-bottom)); }
.sheet__grip { width: 40px; height: 4px; border-radius: 2px; background: var(--border-strong); margin: 6px auto 4px; }
.sheet__head { display: flex; align-items: center; padding: 4px 16px 8px; font-weight: 700; }
.sheet__head .btn { margin-left: auto; }
.sheet .menu [role="menuitem"] { min-height: 44px; font-size: var(--fs-14); }
.toasts { position: fixed; z-index: 80; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px;
  align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { pointer-events: auto; background: var(--text); color: var(--surface); padding: 9px 16px; border-radius: var(--radius-lg); box-shadow: var(--shadow-pop);
  font-size: var(--fs-13); animation: toast-in var(--dur) ease-out; }
.toast--error { background: var(--danger); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------------------------------------------------------------- tabs */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--v2-tab-line); padding: 0; overflow-x: auto; scrollbar-width: none; background: var(--surface); }
.tabs::-webkit-scrollbar { display: none; }
.tab { border: 0; border-right: 1px solid var(--v2-tab-line); background: var(--v2-tab); color: var(--text); font-weight: 400; font-size: var(--fs-14);
  padding: 0 10px; min-height: 44px; white-space: nowrap; margin-bottom: -1px; border-bottom: 1px solid var(--v2-tab-line); }
.tab:hover { background: var(--v2-tab-hover); }
.tab[aria-selected="true"] { background: var(--v2-tab-active); border-bottom-color: var(--v2-tab-active); }
.tab .cnt { color: var(--text-2); font-weight: 400; margin-left: 4px; }
.tabpanel:focus-visible { outline-offset: -2px; }

/* ---------------------------------------------------------------- search */
.search { position: relative; }
.search__row { display: flex; gap: var(--s2); align-items: stretch; }
.search__field { position: relative; flex: 1; min-width: 0; }
.search__input { width: 100%; height: 44px; font-size: var(--fs-16); color: var(--text); background: var(--surface); border: 1px solid var(--border-input);
  border-radius: 0; padding: 0 108px 0 40px; }
.search__input::placeholder { color: var(--text-3); }
.search__input:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.search__glass { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--text-2); pointer-events: none; }
.search__go { position: absolute; right: 5px; top: 5px; bottom: 5px; padding: 0 16px; border: 0; border-radius: 0; background: var(--v2-primary);
  color: #fff; font-weight: 400; font-size: var(--fs-14); }
.search__go:hover { background: var(--v2-primary-hover); }
.search__scope { margin-bottom: var(--s3); }
.search__hints { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: var(--s3); font-size: var(--fs-13); color: var(--text-2); align-items: center; }
.search__hints a { font-family: var(--font-mono); font-size: var(--fs-12); color: var(--text); text-decoration: none; background: var(--surface);
  border: 1px solid var(--border); border-radius: 0; padding: 2px 7px; }
.search__hints a:hover { border-color: var(--accent); color: var(--accent); }
.search__list { position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); overflow: hidden auto; max-height: min(60vh, 440px); padding: 4px 0; margin: 0; list-style: none; }
.search__opt { display: flex; align-items: center; gap: 10px; padding: 8px 14px; font-size: var(--fs-14); cursor: pointer; min-height: 40px; color: var(--text); }
.search__opt[aria-selected="true"] { background: var(--accent-soft); }
.search__opt .ico { width: 18px; height: 18px; flex: none; color: var(--text-2); }
.search__opt .main { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search__opt .main mark { background: none; color: inherit; font-weight: 700; }
.search__opt .sub { color: var(--text-2); font-size: var(--fs-12); margin-left: auto; white-space: nowrap; padding-left: 8px; }
.search__opt .kind { font-size: var(--fs-11); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2);
  border: 1px solid var(--border); border-radius: 3px; padding: 0 4px; flex: none; }
.search__group { padding: 8px 14px 2px; font-size: var(--fs-11); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); }
.search__status { padding: 10px 14px; font-size: var(--fs-13); color: var(--text-2); display: flex; gap: 8px; align-items: center; }
.search__status--error { color: var(--danger); }
.search--nav .search__input { height: 34px; font-size: var(--fs-13); padding: 0 34px 0 32px; background: rgb(255 255 255 / .08);
  border-color: rgb(255 255 255 / .22); color: var(--nav-text); }
.search--nav .search__input::placeholder { color: var(--nav-text-2); }
.search--nav .search__input:focus { background: var(--surface); color: var(--text); border-color: var(--border-input); }
.search--nav .search__input:focus::placeholder { color: var(--text-3); }
.search--nav .search__glass { left: 10px; width: 16px; height: 16px; color: var(--nav-text-2); }
.search--nav .search__input:focus ~ .search__glass { color: var(--text-2); }
.search--nav .search__go { display: none; }
.search--nav .search__kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: transparent; color: var(--nav-text-2);
  border-color: rgb(255 255 255 / .3); pointer-events: none; }
.search--nav .search__input:focus ~ .search__kbd { display: none; }
.search--nav .search__list { min-width: 380px; right: auto; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- home */
.search-card { background: var(--surface); border: 1px solid var(--border); border-radius: 0; padding: 15px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s4); }
.fact { background: var(--surface); border: 1px solid var(--border); border-radius: 0; padding: 10px 15px; }
.fact__v { font-size: var(--fs-24); font-weight: 300; font-variant-numeric: tabular-nums; line-height: 1.2; }
.fact__l { font-size: var(--fs-12); color: var(--text-2); margin-top: 2px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: transparent; margin: 0; flex: none; }
.site-footer__in { max-width: var(--col-max); margin: 0 auto; padding: 15px var(--gutter) 20px; background: var(--surface); border-top: 1px solid var(--border);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s5); font-size: var(--fs-12); color: var(--text-2); }
.site-footer p { margin: 0 0 var(--s2); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.logos { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: flex-end; }
.logos img { height: 44px; width: auto; background: #fff; border-radius: 0; padding: 4px; border: 1px solid var(--border); }
.release-line { font-family: var(--font-mono); font-size: var(--fs-12); color: var(--text-3); margin-top: var(--s2); display: flex; flex-wrap: wrap; gap: 2px 16px; }

/* ---------------------------------------------------------------- object header + stats */
.obj-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--s4); min-height: 44px; }
.obj-head h1 { font-weight: 300; font-size: var(--fs-32); line-height: 1.15; word-break: break-word; }
.obj-head .id { color: var(--text-2); font-size: var(--fs-15); }
.coords { font-family: var(--font-mono); font-size: var(--fs-13); color: var(--text-2); margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 2px 14px; }
.coords span { white-space: nowrap; }
.obj-chips { margin: var(--s3) 0 var(--s4); min-height: 28px; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s2); margin-bottom: var(--s4); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 0; padding: 8px 12px; min-height: 66px; min-width: 0; }
.stat__l { font-size: var(--fs-12); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat__v { font-size: var(--fs-20); font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
.stat__v small { font-size: var(--fs-13); font-weight: 400; color: var(--text-2); margin-left: 3px; }
.stat__v .sw { margin-right: 6px; vertical-align: 2px; }

/* ---------------------------------------------------------------- light-curve panel */
.lc-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: var(--s4); align-items: start; }
.lc-panel { overflow: visible; }
.toolbar { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--border); min-height: 48px; }
.toolbar__sep { flex: 1; }
.toolbar__group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.toolbar--sub { border-bottom: 1px solid var(--border); background: var(--surface-2); padding: 6px var(--s3); font-size: var(--fs-13); min-height: 44px; }
.toolbar--sub label { color: var(--text-2); }
.plot { position: relative; height: 420px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.plot canvas { position: absolute; left: 0; top: 0; }
.plot:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.plot-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--surface); color: var(--text); border: 1px solid var(--border);
  box-shadow: var(--shadow-pop); border-radius: var(--radius); padding: 7px 10px; font-size: var(--fs-12); line-height: 1.5; min-width: 180px; max-width: 280px; }
.plot-tip .t { font-weight: 700; font-size: var(--fs-13); display: flex; align-items: center; gap: 6px; }
.plot-tip .mono { font-size: 11px; color: var(--text-2); }
.plot-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: var(--s5); color: var(--text-2); font-size: var(--fs-14); }
.plot-msg > div { max-width: 460px; }
.plot-msg .btn { margin-top: var(--s3); }
.plot-msg .rid { display: block; font: var(--fs-12) var(--font-mono); margin-top: var(--s2); color: var(--text-3); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; padding: 6px var(--s3) 10px; font-size: var(--fs-12); color: var(--text-2); min-height: 36px; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend .hint { margin-left: auto; }
.lc-status { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0 var(--s3) 10px; font-size: var(--fs-12); color: var(--text-2); min-height: 28px; }
.lc-status .readout { color: var(--text); font-family: var(--font-mono); font-size: 11px; }
.flagpop { min-width: 320px; }
.flagpop table { width: 100%; border-collapse: collapse; font-size: var(--fs-13); }
.flagpop td { padding: 3px 4px; vertical-align: middle; }
.flagpop td.n { text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }
.flagpop .grp td { padding-top: 10px; font-size: var(--fs-11); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); }
.flagpop .presets { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 8px; }
.flagpop .sum { font-size: var(--fs-12); color: var(--text-2); margin-top: 8px; }
.peaks { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.peaks .chip { font-family: var(--font-mono); font-size: var(--fs-12); }
.progress { height: 3px; background: var(--surface-3); position: relative; overflow: hidden; }
.progress > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); transition: width var(--dur); }

/* ---------------------------------------------------------------- sky panel slot (site-sky renders inside) */
.sky-slot { min-height: 420px; position: relative; display: flex; flex-direction: column; }
.sky-slot__body { flex: 1; min-height: 380px; position: relative; background: #090b10; border-radius: 0 0 var(--radius-lg) var(--radius-lg); overflow: hidden; }
.sky-slot__msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #c9ced4; font-size: var(--fs-13); padding: var(--s4); }
.sky-slot__msg a { color: #7fd0f0; }
.sky-slot__msg .btn { background: transparent; color: #e6e8eb; border-color: rgb(255 255 255 / .35); }

/* ---------------------------------------------------------------- tables */
.tbl-wrap { overflow: auto; }
.vt { position: relative; overflow: auto; contain: strict; height: 420px; }
.vt__sizer { position: relative; width: 100%; }
.vt table, table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-12); }
.vt thead th, table.tbl th { position: sticky; top: 0; z-index: 2; background: var(--surface); text-align: left; font-weight: 700; border-bottom: 2px solid var(--border);
  padding: 8px; white-space: nowrap; font-size: var(--fs-12); }
.vt thead th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.vt thead th button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.vt thead th .arrow { width: 10px; opacity: .3; }
.vt thead th[aria-sort="ascending"] .arrow, .vt thead th[aria-sort="descending"] .arrow { opacity: 1; color: var(--accent); }
.vt td, table.tbl td { padding: 0 8px; height: 30px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.vt th.n, .vt td.n, table.tbl th.n, table.tbl td.n { text-align: right; font-variant-numeric: tabular-nums; }
.vt tbody tr td { background: var(--surface); }
.vt tbody tr:nth-child(odd) td { background: var(--v2-zebra); }
.vt tbody tr { cursor: pointer; }
.vt tbody tr:hover td { background: var(--v2-row-hover); }
.vt tbody tr[aria-selected="true"] td { background: var(--accent-soft-2); }
.vt tbody tr.is-hidden td { color: var(--text-3); }
.vt tbody tr.is-hidden td:first-child { box-shadow: inset 3px 0 0 var(--border-strong); }
.vt .pad td { height: auto; padding: 0; border: 0; background: none !important; }
.vt-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: center; padding: 8px; background: var(--v2-tfoot);
  font-size: var(--fs-12); color: var(--text-2); border-radius: 0; }
.vt-foot .grp { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.vt-list .vt__row { position: absolute; left: 0; right: 0; height: 52px; padding: 6px 14px; border-bottom: 1px solid var(--border); font-size: var(--fs-13); cursor: pointer; }
.vt-list .vt__row:nth-child(odd) { background: var(--v2-zebra); }
.vt-list .vt__row[aria-selected="true"] { background: var(--accent-soft-2); }
.vt-list .l1 { display: flex; gap: 8px; align-items: center; font-weight: 600; white-space: nowrap; overflow: hidden; }
.vt-list .l1 .sp { margin-left: auto; font-family: var(--font-mono); font-weight: 400; }
.vt-list .l2 { color: var(--text-2); font-size: var(--fs-12); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------- results */
.results-head { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: baseline; margin: var(--s4) 0 var(--s3); }
.results-head h1 { font-weight: 300; font-size: var(--fs-24); color: var(--v2-title); }
.results-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 15px; align-items: start; }
.results-grid .vt { height: auto; max-height: 560px; contain: content; }
.results-msg { padding: var(--s5); text-align: center; color: var(--text-2); }
.results-msg h2 { font-size: var(--fs-18); font-weight: 600; color: var(--text); margin-bottom: var(--s2); }
.star-link { font-weight: 600; text-decoration: none; }
.star-link:hover { text-decoration: underline; }
.cell-sub { display: block; font-size: var(--fs-11); color: var(--text-2); font-family: var(--font-mono); line-height: 1.2; }
.vt td.two { height: 42px; line-height: 1.3; }

/* ---------------------------------------------------------------- skeletons */
.sk { background: linear-gradient(90deg, var(--surface-3) 0, var(--surface-2) 40%, var(--surface-3) 80%); background-size: 300% 100%;
  animation: sk 1.4s infinite linear; border-radius: 4px; }
.sk-line { height: 12px; margin: 8px 0; }
.sk-title { height: 30px; width: 46%; margin: 6px 0 10px; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } * { scroll-behavior: auto !important; } }

/* ---------------------------------------------------------------- misc */
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; font-size: var(--fs-13); margin: 0; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.prose { max-width: 72ch; font-size: var(--fs-14); }
.prose h2 { font-size: var(--fs-18); font-weight: 600; margin: var(--s5) 0 var(--s2); }
.copyfield { display: flex; gap: 6px; align-items: stretch; }
.copyfield pre { flex: 1; margin: 0; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  font: 12px/1.55 var(--font-mono); overflow: auto; white-space: pre; }
.errbox { padding: var(--s5); text-align: center; }
.errbox h1, .errbox h2 { font-weight: 300; font-size: var(--fs-32); margin-bottom: var(--s3); }
.errbox p { color: var(--text-2); }
.kbd-help table { border-collapse: collapse; font-size: var(--fs-13); }
.kbd-help td { padding: 3px 10px 3px 0; vertical-align: top; }
.kbd-help h3 { font-size: var(--fs-12); text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); margin: 10px 0 4px; }
.kbd-help .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lc-grid { grid-template-columns: minmax(0, 1fr); }
  .results-grid { grid-template-columns: minmax(0, 1fr); }
  .sky-slot { min-height: 0; }
}
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__menu-btn { display: inline-grid; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__in { grid-template-columns: minmax(0, 1fr); }
  .logos { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .nav__search { display: none; }
  .nav__search.is-open { display: block; position: fixed; left: 0; right: 0; top: var(--nav-h); width: auto; max-width: none; padding: 8px var(--gutter);
    background: var(--nav-bg); box-shadow: var(--shadow-pop); }
  .nav__search.is-open .search__list { min-width: 0; right: 0; }
  .nav__search-btn { display: inline-grid; }
  .nav__brand b { font-size: var(--fs-18); }
  .title { font-size: var(--fs-24); }
  .obj-head h1 { font-size: var(--fs-24); }
  .search-card { padding: var(--s4); }
  .search__input { height: 48px; font-size: var(--fs-16); padding-right: 90px; padding-left: 40px; }
  .search__go { padding: 0 14px; font-size: var(--fs-14); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { min-height: 60px; padding: 8px 12px; }
  .stat__v { font-size: var(--fs-16); }
  .plot { height: 300px; }
  .toolbar { padding: 6px var(--s2); gap: 6px; }
  .toolbar .seg > button, .toolbar .btn, .toolbar .toggle { min-height: 44px; }
  .legend .hint { display: none; }
  .hide-sm { display: none !important; }
  .flagpop { min-width: 0; }
  .vt { height: 460px; }
  .kbd-help .cols { grid-template-columns: 1fr; }
}
@media (min-width: 761px) { .show-sm { display: none !important; } }
@media (max-width: 380px) { .stats { gap: 6px; } .stat { padding: 7px 10px; } }
@media print {
  .nav, .site-footer, .toolbar, .banners, .skip-link { display: none !important; }
  body { background: #fff; }
}

/* ---------------------------------------------------------------- LCPlot layers (any container) */
.lcplot { position: relative; overflow: hidden; }
.lcplot > canvas { position: absolute; left: 0; top: 0; }
.lcplot > .plot-tip { left: 0; top: 0; will-change: transform; }
.lcplot:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.plot-msg { z-index: 4; background: color-mix(in srgb, var(--surface) 82%, transparent); }
.plot-msg[hidden] { display: none; }
.plot-msg__title { font-size: var(--fs-18); font-weight: 600; color: var(--text); margin-bottom: var(--s2); display: flex; gap: 8px; align-items: center; justify-content: center; }
.plot-msg__title svg { width: 20px; height: 20px; color: var(--accent); }
.plot-msg p { margin: 0 0 var(--s2); }
.plot-tip .tip-flags { color: var(--danger); font-weight: 600; }
.plot-tip .tri { border-top-color: var(--nondet); }
.sw--diamond { width: 9px; height: 9px; border-radius: 1px; transform: rotate(45deg); border: 1.5px solid var(--text-2); background: transparent; }
.toggle--flags .sw--ring { color: var(--text-2); }
.legend kbd { margin: 0 2px; }
.linkbtn { all: unset; cursor: pointer; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; display: inline-flex; gap: 4px; align-items: center; }
.linkbtn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.select--sm { min-height: 30px; font-size: var(--fs-13); max-width: 210px; }
.seg--sm > button, .seg--sm > a { min-height: 26px; padding: 2px 9px; font-size: var(--fs-12); }
.seg > a { display: inline-flex; align-items: center; border-right: 1px solid var(--v2-tab-line); color: var(--text); text-decoration: none; font-weight: 400; padding: 4px 10px; }
.seg > a:last-child { border-right: 0; }
.seg > a:hover { background: var(--v2-tab-hover); color: var(--text); }
.seg > a[aria-current="true"] { background: var(--v2-primary); color: #fff; }
.toolbar--sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.toolbar--sub[hidden] { display: none; }
.toolbar--sub .progress { flex: 1 1 120px; max-width: 200px; }
.peaks { flex: 1 1 100%; }
.peaks .chip b { color: var(--accent); }
.peaks .alias { font-family: var(--font-sans); font-size: var(--fs-11); color: var(--warning-text); background: var(--warning-soft); border-radius: 3px; padding: 0 4px; }

/* search additions */
.search--hero .search__glass { left: 14px; }
.search__status:empty { display: none; }
.search__status--busy::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--accent);
  animation: spin .8s linear infinite; flex: none; }
.search__note { display: flex; gap: 8px; align-items: center; margin: var(--s3) 0 0; padding: 8px 12px; border-radius: var(--radius); background: var(--accent-soft);
  color: var(--text); font-size: var(--fs-13); }
.search__note svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.nav__search-ph { display: flex; align-items: center; gap: 8px; width: 100%; height: 34px; padding: 0 8px 0 10px; border: 1px solid rgb(255 255 255 / .22);
  background: rgb(255 255 255 / .08); color: var(--nav-text-2); border-radius: var(--radius); font-size: var(--fs-13); text-align: left; }
.nav__search-ph svg { width: 16px; height: 16px; flex: none; }
.nav__search-ph span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nav__search-ph kbd { background: transparent; color: var(--nav-text-2); border-color: rgb(255 255 255 / .3); }
.nav__search .search { width: 100%; }

/* home */
h2.panel__head { margin: 0; font-size: var(--fs-14); font-weight: 600; }

/* star page */
.obj-nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-height: 20px; margin: 0 0 var(--s2); font-size: var(--fs-13); }
.obj-nav:empty { display: none; }
.obj-head h1 .id b { font-weight: 600; color: var(--text); font-family: var(--font-mono); font-size: .95em; }
.obj-name { font-weight: 300; }
.star-tabs { margin-top: var(--s4); }
.tabpanel { min-height: 120px; }
.tbl-note { margin: 0; padding: 8px var(--s3); font-size: var(--fs-12); color: var(--text-2); border-bottom: 1px solid var(--border); }
.bandtag { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.bandtag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.vt .flags .flag { margin-right: 2px; }
.vt__empty { text-align: center; color: var(--text-2); height: 60px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); }
.h3 { font-size: var(--fs-13); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin: 0 0 var(--s2); }
table.tbl td { height: 28px; }
.small { font-size: var(--fs-12); margin-top: var(--s2); }
code.wrap { word-break: break-all; white-space: normal; }
.pop .copyfield { flex-direction: column; max-width: min(560px, 92vw); }
.pop .copyfield .btn { align-self: flex-start; }
.pop .copyfield p { margin: 6px 0 0; font-size: var(--fs-12); }
.sky-slot:empty { background: var(--surface); }

/* results + status + errors */
.results-head .coords { width: 100%; align-items: center; }
.results-table { overflow: hidden; }
.results-table .vt-foot { border-top: 1px solid var(--border); font-size: var(--fs-12); color: var(--text-2); }
.results-table .vt-foot a { display: inline-flex; gap: 4px; align-items: center; }
.results-table .vt-foot svg { width: 14px; height: 14px; }
.warn { color: var(--warning-text); background: var(--warning-soft); padding: 1px 6px; border-radius: 3px; }
.sky-reveal { width: 100%; min-height: 44px; }
.errbox h2 svg { width: 26px; height: 26px; color: var(--accent); vertical-align: -3px; }
.errbox--soon, .results-body > .errbox { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.errbox--404 { max-width: 560px; margin: var(--s6) auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.errbox__links { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; }
.errbox .rid { font: var(--fs-12) var(--font-mono); color: var(--text-3); }
.status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s4); }
.state { font-size: var(--fs-12); font-weight: 700; padding: 1px 8px; border-radius: var(--radius-pill); background: var(--info-soft); color: var(--ok); text-transform: uppercase; letter-spacing: .05em; }
.state[data-state="loading"] { background: var(--accent-soft); color: var(--accent); }
.state[data-state="unavailable"] { background: var(--danger-soft); color: var(--danger); }
.banner--info a { color: #fff; }

@media (max-width: 1180px) { .status-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .toolbar .select--sm { min-height: 44px; max-width: 160px; }
  .toolbar .seg > a { min-height: 44px; }
  .obj-head h1 .id { display: block; font-size: var(--fs-13); }
  .results-head .seg { margin-top: 6px; }
}
@media (max-width: 760px) {
  .stat__v { white-space: normal; overflow: visible; line-height: 1.25; }
  .stat__v small { display: block; margin: 2px 0 0; font-size: var(--fs-12); }
}

/* Plot zoom toolbar (LCPlot): appears on hover/focus, always visible on touch screens */
.lcplot > .plot-tools { position: absolute; z-index: 4; display: flex; gap: 2px; padding: 2px; border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--border);
  opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.lcplot:hover > .plot-tools, .lcplot:focus-within > .plot-tools, .lcplot > .plot-tools:focus-within { opacity: 1; pointer-events: auto; }
/* touch screens: no hover, so the toolbar would sit on the data permanently; it appears after a tap on the
   plot (which focuses it) and hides again when focus leaves */
@media (hover: none) { .lcplot:hover:not(:focus-within) > .plot-tools { opacity: 0; pointer-events: none; } }
.plot-tools > .plot-tool { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0;
  border-radius: calc(var(--radius) - 1px); background: transparent; color: var(--text-2); cursor: pointer; }
.plot-tools > .plot-tool:hover:not(:disabled) { background: var(--surface-2, rgba(127,127,127,.12)); color: var(--text); }
.plot-tools > .plot-tool:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.plot-tools > .plot-tool:disabled { opacity: .35; cursor: default; }

/* ---- review fixes 2026-11-10 ---- */
/* programmatic focus on a results/page heading (route change) shows no ring; keyboard focus still does */
h1:focus:not(:focus-visible), [tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
/* header search messages: a dropdown card under the bar, readable on the dark header */
.nav__search .search__status:not(:empty) { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
  background: var(--surface); color: var(--text-2); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 6px 20px rgb(0 0 0 / .18); }
.nav__search .search__status--error:not(:empty) { color: var(--danger); }
/* hollow upper-limit triangle in the band colour (legend) */
.tri--open { width: 10px; height: 9px; border: 0; background: currentColor;
  clip-path: polygon(evenodd, 0 0, 100% 0, 50% 100%, 0 0, 22% 14%, 78% 14%, 50% 74%, 22% 14%); }
.sat-note { margin: 0 0 var(--s4); }
.sat-note > svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--warning); }
/* phones: the light curve comes first; the stat tiles become one scrolling strip under it */
@media (max-width: 600px) {
  .star-page { display: grid; grid-template-columns: minmax(0, 1fr); }
  .star-page > .lc-grid { order: 1; }
  .star-page > .stats { order: 2; display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; margin: var(--s3) 0; padding-bottom: 4px; }
  .star-page > .stats > .stat { flex: 0 0 auto; min-width: 42%; max-width: 75%; scroll-snap-align: start; }
  .star-page > .obj-chips { order: 3; }
  .star-page > .star-tabs { order: 4; }
}

/* ================================================================ V2 look (LOOKV2.md, 2026-11-12)
   Shared classes for every page; values from the V2 site's main.css (Bootswatch Yeti family).
   Colours that fail AA were darkened minimally in tokens.css (--v2-*). */
.v2-wrap { max-width: var(--col-max); margin: 0 auto; padding: 0 var(--gutter) 15px; background: var(--surface); }
.page.v2-wrap { padding-bottom: 15px; }
.v2-title { margin: 0 0 8px; padding: 17px 0 9px; border-bottom: 1px solid var(--border); font-size: 24px; font-weight: 300; line-height: 1.3;
  color: var(--v2-title); word-break: break-word; }
.v2-title b, .v2-title strong { font-weight: 600; }
.v2-title__sub { color: var(--text-3); font-size: 15px; font-weight: 600; padding-left: 6px; white-space: nowrap; }
.v2-panel { margin: 8px 0; border: 1px solid var(--border); background: var(--surface); min-width: 0; }
.v2-panel__head { display: flex; align-items: center; gap: 8px; min-height: 40px; margin: 0; padding: 9px 15px; font-size: 14px; font-weight: 600;
  line-height: 1.4; color: #fff; background: var(--v2-primary); }
.v2-panel__head .aside { margin-left: auto; font-size: 12px; font-weight: 400; }
.v2-panel__body { padding: 15px; font-size: 14px; }
.v2-panel__body > :last-child { margin-bottom: 0; }
.v2-panel--primary { border-color: var(--v2-primary-line); }
.v2-panel--primary > .v2-panel__head { background: var(--v2-primary); color: #fff; }
.v2-panel--message { border-color: var(--v2-info-line); }
.v2-panel--message > .v2-panel__head { background: var(--v2-info); color: #fff; }
.v2-panel--warn { border-color: var(--v2-warn); }
.v2-panel--warn > .v2-panel__head { background: var(--v2-warn); color: var(--v2-warn-text); }
.v2-panel--error { border-color: var(--v2-error-line); }
.v2-panel--error > .v2-panel__head { background: var(--v2-error); color: #fff; }
.v2-panel--debug { border-color: var(--v2-debug); }
.v2-panel--debug > .v2-panel__head { background: var(--v2-debug); color: #fff; }
.v2-panel--plain > .v2-panel__head { background: var(--surface); color: var(--text); font-size: 18px; font-weight: 400; min-height: 46px;
  padding: 9px 15px; border-bottom: 1px solid var(--border); }
.v2-panel__head a { color: inherit; }
.v2-panel__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 15px;
  border-top: 1px solid var(--border); }
/* object-ID tiles (V2 .object-panel) */
.v2-idtiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 30px; margin: 9px 0 10px; }
.v2-idtile { display: flex; flex-direction: column; justify-content: space-between; min-height: 74px; min-width: 0; background: var(--v2-tile);
  color: var(--v2-tile-text); }
.v2-idtile__k { display: block; min-height: 27px; padding: 3px 8px; border-bottom: 1px solid var(--v2-tile-line); font-size: 14px; font-weight: 600;
  color: var(--v2-tile-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.v2-idtile__k, .v2-idtile__k a { color: var(--v2-tile-text); text-decoration: underline; text-underline-offset: 2px; }
a.v2-idtile__k:hover, .v2-idtile__k a:hover { color: var(--v2-tile-text); text-decoration-thickness: 2px; }
a.v2-idtile__k:focus-visible, .v2-idtile__k a:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.v2-idtile__v { padding: 8px 7px; font-size: 20px; line-height: 1.3; color: var(--v2-tile-text); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
/* tabs (V2 .tab-button: white, #c1c1c1 right/bottom rules, active #f0f0f0 joins a #efefef body, hover #dcdcdc) */
.v2-tabs { display: flex; min-height: 47px; border-left: 1px solid var(--border); border-right: 1px solid var(--border); background: var(--surface);
  overflow-x: auto; scrollbar-width: none; }
.v2-tabs::-webkit-scrollbar { display: none; }
.v2-tab { flex: none; margin: 0; padding: 0 8px; min-height: 47px; border: 0; border-right: 1px solid var(--v2-tab-line); border-bottom: 1px solid var(--v2-tab-line);
  border-radius: 0; background: var(--v2-tab); color: var(--text); font-size: 14px; font-weight: 400; white-space: nowrap; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.v2-tab:hover { background: var(--v2-tab-hover); color: var(--text); }
.v2-tab[aria-selected="true"], .v2-tab[aria-current="page"] { background: var(--v2-tab-active); border-bottom-color: transparent; }
.v2-tab:focus-visible { outline-offset: -3px; }
.v2-tabs__fill { flex: 1; border-bottom: 1px solid var(--v2-tab-line); min-width: 0; }
.v2-tabbody { background: var(--v2-formbody); border: 1px solid var(--border); border-top: 0; padding: 15px; font-size: 12px; }
/* buttons (V2 .form-btn) */
.v2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 6px 10px; border: 1px solid var(--v2-btn-line);
  border-radius: 0; background: var(--v2-btn); color: var(--text); font-size: 12px; font-weight: 400; line-height: 1.5; white-space: nowrap;
  text-decoration: none; cursor: pointer; }
.v2-btn:hover { background: var(--v2-btn-hover); color: var(--text); }
.v2-btn--primary { background: var(--v2-primary); border-color: var(--v2-primary); color: #fff; }
.v2-btn--primary:hover { background: var(--v2-primary-hover); border-color: var(--v2-primary-hover); color: #fff; }
.v2-btn:disabled { opacity: .55; cursor: not-allowed; }
.v2-btn svg { width: 14px; height: 14px; flex: none; }
/* tables (V2 table/td/th) */
.v2-table { width: 100%; border: 1px solid var(--border); border-collapse: separate; border-spacing: 0; background: var(--surface); font-size: 12px; }
.v2-table th { padding: 8px; text-align: left; font-weight: 700; border-bottom: 2px solid var(--border); white-space: nowrap; }
.v2-table td { padding: 8px; border-bottom: 1px solid var(--border); }
.v2-table tbody tr:nth-child(odd) { background: var(--v2-zebra); }
.v2-table tbody tr:hover { background: var(--v2-row-hover); }
.v2-table tbody tr:last-child td { border-bottom: 0; }
.v2-table .n { text-align: right; font-variant-numeric: tabular-nums; }
.v2-table__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 8px; background: var(--v2-tfoot);
  border: 1px solid var(--border); border-top: 0; font-size: 12px; color: var(--text-2); }
/* logo strips (V2 .banner-section / .bottom-banner-section) */
.v2-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin: 8px 0; padding: 6px;
  background: var(--v2-strip); min-height: 210px; }
.v2-logo { flex: 0 1 300px; height: 198px; min-width: 0; display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden; }
.v2-logo img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
.v2-logo--banner img { width: 292px; height: 194px; }
/* form fields inside a V2 tab body */
.v2-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 30px; }
.v2-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: 12px; }
.v2-field > label { color: var(--text); }
.v2-field > input, .v2-field > select { height: 32px; padding: 6px 10px; border: 1px solid var(--border-input); border-radius: 0; background: var(--surface);
  color: var(--text); font-size: 13px; min-width: 0; }
.v2-field > input:focus, .v2-field > select:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.v2-field--wide { grid-column: 1 / -1; }
@media (max-width: 1140px) {
  .v2-logos { justify-content: space-around; }
  .v2-logo { flex-basis: 230px; height: 160px; }
  .v2-logo--banner img { width: 208px; height: 140px; }
  .v2-idtiles { gap: 10px 16px; }
  .v2-idtile__v { font-size: 17px; }
}
@media (max-width: 900px) { .v2-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 16px; } }
@media (max-width: 760px) {
  .v2-wrap { max-width: none; }
  .v2-idtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .v2-idtile { min-height: 64px; }
  .v2-idtile__k { font-size: 13px; }
  .v2-idtile__v { font-size: 16px; padding: 6px 7px; }
  .v2-title { font-size: 20px; padding: 12px 0 8px; }
  .v2-title__sub { font-size: 13px; padding-left: 0; display: block; white-space: normal; }
  .v2-logos { min-height: 0; gap: 6px; }
  .v2-logo { flex: 1 1 calc(33.333% - 6px); height: 96px; }
  .v2-logo--banner img { width: auto; height: auto; }
  .v2-form { grid-template-columns: minmax(0, 1fr); }
  .v2-tab { font-size: 13px; padding: 0 8px; min-height: 44px; }
  .v2-tabs { min-height: 44px; }
}

/* ---------------------------------------------------------------- home (V2 order) */
.home-search > .v2-tabs { border-left: 0; border-right: 0; }
.home-search > .v2-tabbody { border: 0; }
.home-search__label { display: block; margin: 0 0 8px; font-size: 12px; color: var(--text); }
.home-search .search__input { height: 40px; font-size: var(--fs-15); padding-left: 38px; }
.search--nogo .search__input { padding-right: 12px; }
.home-search .search__hints { margin-top: 10px; }
.home-search__foot { border-top: 1px solid var(--border); background: var(--surface); }
.home-search__hint { font-size: 13px; color: var(--text-2); min-width: 0; flex: 1 1 260px; }
.home-search__btns { display: flex; gap: 4px; margin-left: auto; }
.home-search__btns .v2-btn { min-width: 64px; }
.home-search__msg { margin: 10px 0 0; font-size: 13px; }
.home-search__msg:empty { display: none; }
.home-search__msg.search__status--error { color: var(--danger); }
.home-gaia { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.home-gaia .search__input { height: 32px; font-size: 13px; padding-left: 34px; }
.home-gaia .search__glass { left: 10px; width: 16px; height: 16px; }
.home-db { margin: 8px 0; padding: 10px 15px; border: 1px solid var(--border); font-size: 14px; line-height: 1.4; }
.home-db p { margin: 0; }
.home-db b { font-weight: 700; }
.home-db code { font-size: 12px; background: none; padding: 0; }
.home-new__list { margin: 0 0 10px; padding-left: 18px; font-size: 13px; color: var(--text-2); }
.home-new__list li { margin: 0 0 4px; }
.home-new__list b { color: var(--text); font-weight: 600; }
.home-new__links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; font-size: 13px; }
.home-new__links a { display: inline-flex; align-items: center; gap: 6px; }
.home-new__links svg { width: 16px; height: 16px; }
.home-logos--funders .v2-logo:first-child { padding: 0 8px; }
@media (max-width: 760px) {
  .home .v2-title { font-size: 22px; }
  .home-gaia { grid-template-columns: minmax(0, 1fr); }
  .home-search__foot { padding: 10px; }
  .home-search > .v2-tabbody { padding: 12px 10px; }
  .home-search__hint { flex-basis: 100%; }
  .home-search__btns { margin-left: 0; }
  .home-search__btns .v2-btn { min-height: 44px; min-width: 88px; }
}

/* ---------------------------------------------------------------- results (V2 table look) */
.results-head { display: block; margin: 0 0 10px; }
.results-head h1, .results-head h1.title { margin: 0 0 8px; padding: 17px 0 9px; border-bottom: 1px solid var(--border); font-size: 24px; font-weight: 300;
  line-height: 1.3; color: var(--v2-title); }
.results-head h1 b { font-weight: 600; }
.results-head .subtitle { margin: 0; color: var(--text-2); }
.results-head .coords { align-items: center; }
.results-table { border-color: var(--border); }
.results-table .vt thead th { border-bottom: 2px solid var(--border); }
.results-table .vt-foot { background: var(--v2-tfoot); border-top: 1px solid var(--border); color: var(--text); font-size: 13px; }
.results-count b { font-weight: 700; }
.results-body > .errbox { border-radius: 0; }
.star-link { font-weight: 400; text-decoration: underline; }
.star-link .mono { font-size: 12px; }
@media (max-width: 760px) {
  .results-head h1, .results-head h1.title { font-size: 20px; padding: 12px 0 8px; }
  .home-search > .v2-tabs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .home-search > .v2-tabs .v2-tab { justify-content: center; white-space: normal; text-align: center; line-height: 1.25; }
  .home-search > .v2-tabs .v2-tabs__fill { display: none; }
}
/* status page + errors */
.status-page .status-grid { margin-top: 10px; gap: 15px; }
.errbox--404 { border-radius: 0; margin-top: 32px; }
.errbox h1, .errbox h2 { font-size: var(--fs-24); color: var(--v2-title); }
@media (max-width: 760px) { .logos { gap: 8px; } .logos img { height: 34px; padding: 3px; } }

/* Fun V3 mark (Ben, 2026-11-13): big bold red, tilted, with a starburst glint; wiggles on hover. */
.badge-v3 { position: relative; display: inline-block; margin-left: 5px; padding: 0; background: none; border-radius: 0;
  font: italic 800 26px/1 var(--font-sans); letter-spacing: -.02em; color: #ff3b30; transform: rotate(-7deg);
  text-shadow: 0 0 10px rgba(255,59,48,.55), 1px 1px 0 #7a0c06; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.badge-v3::after { content: "\2726"; position: absolute; top: -7px; right: -9px; font: normal 400 11px/1 var(--font-sans); color: #ffd54a;
  text-shadow: 0 0 6px #ffd54a; animation: v3-glint 2.4s ease-in-out infinite; }
.nav__brand:hover .badge-v3 { transform: rotate(6deg) scale(1.18); }
@keyframes v3-glint { 0%,100% { opacity: .25; transform: scale(.7) rotate(0deg); } 50% { opacity: 1; transform: scale(1.25) rotate(45deg); } }
@media (prefers-reduced-motion: reduce) { .badge-v3, .badge-v3::after { animation: none; transition: none; } }
.v3-mark { font-weight: 800; font-style: italic; color: #d6001c; font-size: 1.25em; }
:root[data-theme="dark"] .v3-mark { color: #ff5a4f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .v3-mark { color: #ff5a4f; } }

/* Footer without logos (Ben, 2026-11-13): one tidy centred column. */
.site-footer__in { display: block; grid-template-columns: none; text-align: center; padding: 14px var(--gutter) 18px; font-size: 12px; }
.site-footer p { max-width: 760px; margin: 0 auto 8px; }
.site-footer nav { justify-content: center; margin-bottom: 8px; }
.site-footer .release-line { justify-content: center; opacity: .8; }

/* External version tabs in the header (V1.5, V2). */
.nav__link--ext small { font-size: 11px; opacity: .7; margin-left: 2px; }
.nav__link--ext::after { content: "\2197"; font-size: 10px; margin-left: 3px; opacity: .6; }
@media (max-width: 1250px) { .nav__link--ext small { display: none; } }

/* Cooler logo strips (Ben, 2026-11-13): same V2 arrangement, with depth, a starburst glow and hover lift. */
.home-logos { background: linear-gradient(180deg, #e6e6e6, #d8d8d8); padding: 10px; border-radius: 4px; }
.home-logos .v2-logo { border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 6px 16px rgba(0,0,0,.10);
  transition: transform .28s cubic-bezier(.3,1.5,.5,1), box-shadow .28s ease; }
.home-logos .v2-logo:hover { transform: translateY(-4px) scale(1.025); box-shadow: 0 2px 4px rgba(0,0,0,.2), 0 14px 30px rgba(0,0,0,.2); }
.home-logos .v2-logo--banner { background: #000; position: relative; }
.home-logos .v2-logo--banner::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle at 54% 50%, rgba(255,255,255,.55), rgba(140,190,255,.18) 18%, transparent 42%);
  animation: logo-pulse 3.6s ease-in-out infinite; }
@keyframes logo-pulse { 0%,100% { opacity: .15; transform: scale(.9); } 50% { opacity: .9; transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .home-logos .v2-logo, .home-logos .v2-logo--banner::after { transition: none; animation: none; } }
:root[data-theme="dark"] .home-logos { background: linear-gradient(180deg, #2a2d33, #1f2126); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .home-logos { background: linear-gradient(180deg, #2a2d33, #1f2126); } }

.account-page{max-width:1100px;margin:auto}.account-page label{display:flex;flex-direction:column;gap:6px;margin:14px 0}.account-page input,.account-page textarea{width:100%;box-sizing:border-box;padding:10px;font:inherit}.account-page textarea{font-family:monospace;overflow-wrap:anywhere}.account-page .panel{padding:20px}.account-page pre{overflow-x:auto}
