:root {
  color-scheme: dark;
  --page: #101214;
  --surface: #171a1d;
  --surface-hi: #1d2226;
  --line: #30363b;
  --text: #f4f4ef;
  --muted: #a9b0b4;
  --accent: #ffbc86;
  --ink: #171310;
  --sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 78px; }
body { margin: 0; min-width: 290px; background: var(--page); color: var(--text); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; }
button { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p, dl, dd { margin: 0; }
img { display: block; }
.wrap { width: min(1300px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; top: -100px; left: 16px; padding: 9px 14px; background: var(--accent); color: var(--ink); }
.skip-link:focus { top: 12px; }

.masthead { position: relative; z-index: 1; border-bottom: 1px solid #303438; background: #111315; }
.nav-shell { width: min(1300px, calc(100% - 96px)); height: 66px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; font-size: 25px; font-weight: 720; letter-spacing: -.07em; white-space: nowrap; }
.wordmark-icon { display: grid; place-items: center; width: 29px; height: 29px; overflow: hidden; position: relative; color: var(--accent); border: 1px solid #77543d; border-radius: 7px; background: #282019; }
.wordmark-icon::before { content: ""; width: 13px; height: 9px; position: absolute; border: 1px solid currentColor; border-radius: 50%; transform: rotate(-43deg) scaleX(1.24); }
.wordmark-icon::after { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: currentColor; transform: translate(6px, -5px); }
.wordmark-icon i { height: 1px; width: 10px; background: currentColor; transform: translate(-3px, 3px) rotate(-44deg); }
nav { display: flex; align-items: center; gap: clamp(17px, 3vw, 41px); }
nav a, .nav-edition { color: #dce0df; font-size: 13px; font-weight: 575; text-decoration: none; white-space: nowrap; }
nav a:hover, .nav-edition:hover { color: var(--accent); }
.nav-edition { border: 1px solid #535456; padding: 8px 11px; border-radius: 5px; }
.nav-edition span { padding-left: 5px; color: var(--accent); }

.hero { position: relative; overflow: hidden; background: #181a1c; border-bottom: 1px solid #474342; }
.hero-media, .hero-shade { inset: 0; position: absolute; }
.hero-media { left: 28%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.hero-shade {
  background: linear-gradient(90deg, #101315 0%, #101315 24%, rgba(16,19,21,.92) 35%, rgba(16,19,21,.41) 57%, rgba(16,19,21,0) 82%),
              linear-gradient(0deg, #101315 0%, rgba(16,19,21,0) 34%);
}
.hero-inner { min-height: clamp(490px, 47vw, 665px); position: relative; display: flex; align-items: center; padding-block: 74px 88px; }
.hero-copy { max-width: 680px; position: relative; }
.kicker { display: flex; align-items: center; gap: 10px; color: var(--accent); font: 650 11px/1.4 var(--mono); letter-spacing: .115em; }
.kicker > span { height: 1px; width: 20px; background: currentColor; }
h1, h2 { text-wrap: balance; }
h1 { margin-top: 17px; font-size: clamp(51px, 7.0vw, 104px); font-weight: 650; line-height: .99; letter-spacing: -.079em; }
h1 em { display: inline-block; margin-top: 5px; color: #ffd2ac; font-style: normal; }
.hero-summary { margin-top: 24px; max-width: 455px; color: #ced3d2; font-size: clamp(15px, 1.45vw, 19px); line-height: 1.55; }
.hero-actions { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-find { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; color: #e1e3df; font-size: 13px; text-underline-offset: 4px; }
.hero-find:hover { color: var(--accent); }
.button {
  display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 10px;
  padding: 0 15px; color: var(--text); border: 1px solid #46494b; border-radius: 5px;
  background: #222628; text-decoration: none; font-size: 13px; font-weight: 700; text-align: center;
}
.button:hover { border-color: #78716b; background: #303438; }
.button:disabled { opacity: .58; }
.button.primary { color: var(--ink); background: var(--accent); border-color: #ffd0ab; }
.button.primary:hover:not(:disabled) { background: #ffd1ae; }
.button.glass { background: #191a1bb8; color: #f4f4ef; border-color: #66615d; }
.button.glass:hover { background: #35312d; }
.button.small { min-height: 35px; padding-inline: 11px; font-size: 12px; }
.triangle { width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid currentColor; }
.photo-credit { position: absolute; bottom: 20px; right: 0; text-align: right; color: #e2dcce; display: grid; gap: 1px; font: 10px/1.5 var(--mono); letter-spacing: .045em; }
.photo-credit a { color: #c1c5c3; text-underline-offset: 3px; letter-spacing: 0; }

.snapshot { background: #17191a; border-bottom: 1px solid var(--line); }
.snapshot-grid { display: grid; grid-template-columns: .90fr 1fr 1fr .9fr; align-items: stretch; min-height: 94px; }
.snapshot-grid > div { display: flex; flex-direction: column; gap: 3px; padding: 15px 23px; justify-content: center; border-left: 1px solid var(--line); }
.snapshot-grid > div:first-child { padding-left: 0; border-left: 0; }
.snapshot-grid strong { font: 550 clamp(23px, 2.5vw, 35px)/1.03 var(--mono); letter-spacing: -.08em; }
.snapshot-grid span { color: var(--muted); font-size: 12px; }
.snapshot-grid .snapshot-right { align-items: center; flex-direction: row; justify-content: end; padding-right: 0; gap: 10px; }
.snapshot-right span { font: 10px/1.6 var(--mono); letter-spacing: .04em; white-space: nowrap; }
.snapshot-right span b { color: var(--text); font-weight: 500; letter-spacing: 0; }
.snapshot-grid .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.brief-strip { border-bottom: 1px solid var(--line); background: #131619; }
.brief-inner { display: grid; grid-template-columns: max-content 1fr max-content; gap: 14px; align-items: center; padding-block: 10px; }
.brief-inner a { text-decoration: none; font-size: 12px; }
.brief-inner a:first-child { color: var(--accent); font: 600 10px var(--mono); letter-spacing: .06em; }
.brief-inner a:last-child { color: var(--muted); font-size: 11px; }
.brief-inner a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.brief-inner a:nth-child(2) { color: #e3e1df; }

.section { padding-block: 62px; border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 19px; margin-bottom: 22px; }
.section-head h2, .edition h2 { margin-block: 7px 5px; font-size: clamp(33px, 4.3vw, 62px); line-height: 1.08; letter-spacing: -.07em; font-weight: 640; }
.section-head > div > p:not(.kicker), .edition p:not(.kicker) { color: var(--muted); }
.text-link { display: inline-flex; gap: 7px; align-items: center; padding: 0; border: 0; background: none; color: var(--accent); font-size: 12px; font-weight: 650; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.scope-link { margin-bottom: 4px; white-space: nowrap; }

.archive-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: clip; }
.filters { padding: 19px; display: grid; grid-template-columns: minmax(140px,1.52fr) minmax(145px, 1.03fr) minmax(129px,.74fr) minmax(120px,.76fr); gap: 11px; border-bottom: 1px solid var(--line); }
.filters > div { display: grid; gap: 5px; min-width: 0; }
.filters label { font-size: 12px; color: #e0e4e2; font-weight: 620; }
.filters input, .filters select { min-width: 0; width: 100%; border: 1px solid #42494e; padding: 7px 9px; background: #111416; border-radius: 5px; height: 39px; color: var(--text); font-size: 13px; }
.filters input::placeholder { color: #9aa2a4; }
.table-actions { display: flex; justify-content: space-between; align-items: center; padding: 11px 19px; min-height: 43px; color: var(--muted); font-size: 12px; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th { color: var(--muted); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .07em; background: #121619; padding: 9px 14px; }
th:first-child, td:first-child { padding-left: 19px; }
td { padding: 11px 14px; border-bottom: 1px solid #2b3235; vertical-align: middle; }
td:nth-child(2) { min-width: 128px; }
td:nth-child(3) { min-width: 120px; }
td div { font-size: 13px; }
td small, .news-meta { color: var(--muted); font-size: 11px; }
td small { display: block; margin-top: 2px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #1b1f22; }
.mission-link { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 655; }
.mission-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.data-badges { display: flex; gap: 4px; flex-wrap: wrap; }
.data-badge { display: inline-block; border: 1px solid #3c4749; border-radius: 4px; padding: 2px 5px; color: #c6d2cf; background: #202625; font: 10px/1.4 var(--mono); white-space: nowrap; }
.data-badge.video { color: #ffcca9; background: #2c231d; border-color: #594638; }
.empty { padding: 20px; color: var(--muted); }
.pagination { display: flex; align-items: center; justify-content: end; gap: 12px; border-top: 1px solid var(--line); padding: 12px 19px; color: var(--muted); font: 11px var(--mono); }
.pagination button:disabled:hover { background: #222628; border-color: #46494b; }

.milestones { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.milestone { position: relative; min-height: 148px; background: radial-gradient(ellipse at 115% 10%, #403126, transparent 87%), var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 17px 36px 17px 16px; display: grid; align-content: center; gap: 5px; text-decoration: none; }
.milestone:hover { border-color: #8d674c; }
.milestone span { color: var(--accent); font: 10px var(--mono); letter-spacing: .05em; }
.milestone strong { line-height: 1.14; letter-spacing: -.035em; font-size: clamp(18px,2vw,26px); }
.milestone small { color: var(--muted); font-size: 12px; }
.milestone i { position: absolute; top: 14px; right: 15px; color: var(--accent); font-style: normal; }
.technology { margin-top: 17px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 13px; }
.technology details, .preview { border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.technology summary, .preview summary { cursor: pointer; padding: 13px 14px; font-size: 14px; font-weight: 620; }
.technology details[open] summary, .preview[open] summary { color: var(--accent); }
.technology details p, .preview p { padding: 0 14px 12px; color: #c1c7c7; font-size: 13px; }
.technology details a { margin: 0 14px 13px; }
.preview p a { color: var(--accent); text-underline-offset: 3px; }

.switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; background: #131617; border: 1px solid #3b4042; border-radius: 6px; }
.news-switch { flex-wrap: wrap; }
.switch button { color: var(--muted); background: transparent; padding: 5px 9px; min-height: 34px; border: 0; border-radius: 4px; font-size: 12px; font-weight: 645; white-space: nowrap; }
.switch button[aria-pressed=true] { background: #38342e; color: #ffe2cc; }
.switch button:hover { color: var(--text); }
.feed-status { margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.news-grid { display: grid; grid-template-columns: minmax(0,1.35fr) repeat(2,minmax(0,1fr)); gap: 11px; }
.story { padding: 16px; display: grid; gap: 9px; align-content: start; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); min-height: 143px; }
.story.lead { background: radial-gradient(ellipse at 110% 0%, #483125, transparent 80%), var(--surface); grid-row: span 2; padding: 22px; }
.story h3 { font: 600 21px/1.15 var(--serif); letter-spacing: -.027em; }
.story.lead h3 { font-size: clamp(26px,2.95vw,43px); }
.story h3 a { text-decoration: none; }
.story h3 a:hover { color: var(--accent); }
.news-meta { font: 10px/1.4 var(--mono); text-transform: uppercase; }
.story-tag { color: var(--accent); font: 10px var(--mono); letter-spacing: .05em; }
.feed-credit { margin-top: 13px; }

.edition { background: #1c1816; border-block: 1px solid #4c3f35; padding-block: 51px; margin-top: 43px; }
.edition-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(268px,.47fr); align-items: center; gap: 28px; }
.edition h2 { max-width: 660px; color: #fce4d1; }
.edition-list { padding-left: 20px; margin: 13px 0 0; color: #ded0c4; font-size: 14px; }
.edition-list li + li { margin-top: 4px; }
.buy-panel { display: grid; justify-items: start; gap: 12px; padding: 20px; background: #251e1a; border: 1px solid #6a5140; border-radius: 8px; }
.buy-panel p { font: 11px var(--mono); letter-spacing: .09em; }
.buy-panel .price { font: 530 35px/1.1 var(--mono); letter-spacing: -.08em; color: #ffdabd; }
.price span { font: 12px var(--sans); letter-spacing: 0; color: var(--muted); }
#offer-price { font: inherit; letter-spacing: inherit; color: inherit; }
.buy-panel .button { width: 100%; }
.buy-panel small { color: var(--muted); margin-top: -4px; }
.after-edition { display: grid; gap: 8px; padding-block: 25px; }
.site-footer { border-top: 1px solid var(--line); padding-block: 24px; color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 12px; }

dialog {
  width: min(900px,calc(100% - 36px)); max-height: min(92dvh,885px); padding: 0;
  color: var(--text); background: #191d1f; border: 1px solid #51595b; border-radius: 10px;
  box-shadow: 0 24px 140px #000b;
}
dialog::backdrop { background: #07090be0; }
.dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 17px 20px 12px; }
.dialog-header h2 { margin-block: 4px 2px; font-size: clamp(26px, 4vw, 43px); line-height: 1.08; letter-spacing: -.06em; }
.dialog-header > div > p:last-child { color: var(--muted); font-size: 12px; }
.mission-tabs { margin: 0 20px 12px; max-width: calc(100% - 40px); flex-wrap: wrap; }
#mission-content { padding: 0 20px 19px; }
.video-frame, .replay-frame { display: block; width: 100%; aspect-ratio: 16/9; min-height: 200px; border-radius: 6px; border: 1px solid #353e40; background: #0c1012; }
.replay-frame { min-height: 370px; }
.video-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 9px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.video-tools select { min-width: 0; max-width: min(100%,400px); border: 1px solid var(--line); padding: 5px; background: #121517; color: var(--text); border-radius: 5px; }
.mission-media-note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.mission-description { margin-bottom: 12px; max-width: 72ch; color: #cdd3d3; }
.mission-description h3 { color: var(--text); line-height: 1.2; letter-spacing: -.025em; font-size: 20px; margin-bottom: 5px; }
.mission-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin-bottom: 15px; }
.mission-facts div { border: 1px solid var(--line); background: #131719; border-radius: 5px; padding: 8px; min-width: 0; }
.mission-facts dt { color: var(--muted); font: 10px var(--mono); margin-bottom: 3px; }
.mission-facts dd { font-size: 13px; overflow-wrap: anywhere; }
.stage-list { list-style: none; padding: 0; margin: 5px 0 12px; }
.stage-list li { display: flex; gap: 5px 12px; justify-content: space-between; flex-wrap: wrap; padding-block: 7px; border-top: 1px solid var(--line); font-size: 13px; }
.stage-list li span { color: var(--muted); }
.mission-sources { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 950px) {
  .wrap, .nav-shell { width: calc(100% - 60px); }
  .hero-media { left: 19%; }
  .hero-inner { min-height: 480px; }
}
@media (max-width: 720px) {
  .wrap, .nav-shell { width: calc(100% - 34px); }
  .nav-shell { gap: 8px; height: 58px; }
  nav { gap: 13px; }
  .nav-edition, nav a { font-size: 11px; }
  .nav-edition { padding: 6px; }
  .hero-media { left: 12%; }
  .hero-shade { background: linear-gradient(90deg, #101315 0%, #101315de 17%, #10131576 65%, #10131510 100%), linear-gradient(0deg,#101315 0%, #10131500 36%); }
  .hero-inner { min-height: 450px; padding-block: 65px 73px; }
  .snapshot-grid { grid-template-columns: repeat(2,1fr); min-height: 0; }
  .snapshot-grid > div { min-height: 71px; padding: 10px 9px 9px 13px; }
  .snapshot-grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .snapshot-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .snapshot-grid .snapshot-right { justify-content: flex-start; }
  .snapshot-grid span { font-size: 11px; }
  .section { padding-block: 38px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 9px; }
  .filters { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 11px; }
  td, th { padding-inline: 8px; }
  td:first-child, th:first-child { padding-left: 11px; }
  td:nth-child(2) { min-width: 0; }
  td:nth-child(3) { min-width: 0; }
  .table-actions { padding-inline: 11px; }
  .milestones { grid-template-columns: 1fr; }
  .milestone { min-height: 94px; }
  .news-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .story.lead { grid-column: 1/-1; grid-row: auto; }
  .edition { padding-block: 32px; margin-top: 25px; }
  .edition-grid { grid-template-columns: 1fr; gap: 17px; }
  .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 450px) {
  .wordmark { gap: 6px; font-size: 20px; }
  .wordmark-icon { width: 23px; height: 23px; }
  nav { gap: 8px; }
  .nav-edition span { display: none; }
  .hero-inner { min-height: 430px; }
  .hero-media { left: 0; }
  .hero-media img { object-position: 54% center; }
  h1 { font-size: clamp(44px, 10.5vw, 58px); }
  .hero-summary { margin-top: 18px; }
  .hero-actions { margin-top: 17px; }
  .hero-actions .button { min-height: 40px; padding-inline: 10px; }
  .brief-inner { grid-template-columns: 1fr; gap: 3px; }
  .brief-inner a:last-child { display: none; }
  .technology, .news-grid { grid-template-columns: 1fr; }
  .story { min-height: 0; }
  .story.lead { padding: 16px; }
  td:nth-child(3), th:nth-child(3) { display: none; }
  td div, .mission-link { font-size: 12px; }
  .dialog-header, #mission-content { padding-inline: 11px; }
  .mission-tabs { margin-inline: 11px; max-width: calc(100% - 22px); }
  .mission-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button, nav a, .milestone { transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
}

.topic-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; margin-bottom: 13px; }
.topic-picks { display: flex; flex-wrap: wrap; gap: 5px; }
.topic-picks button[aria-pressed=true], #saved-filter[aria-pressed=true], #save-flight[aria-pressed=true] { color: #ffe5cf; border-color: #846349; background: #392d24; }
.topic-controls p, .mission-personal p { color: var(--muted); font-size: 12px; }
.topic-catalog { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.topic-card { min-width: 0; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: var(--surface); }
.topic-art { position: relative; height: 132px; background: linear-gradient(108deg,#212833,#554037); }
.topic-art img { width: 100%; height: 100%; object-fit: cover; }
.topic-art small { position: absolute; right: 0; bottom: 0; padding: 2px 6px; background: #0e1115d9; color: #e0dfd9; font-size: 9px; }
.topic-card-body { display: grid; align-content: start; gap: 6px; padding: 13px 14px 15px; }
.topic-card h3 { font-size: 20px; line-height: 1.1; letter-spacing: -.035em; }
.topic-card p, .habitat p { color: var(--muted); font-size: 13px; }
.habitat { margin-top: 16px; padding: 18px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; border: 1px solid #5a4940; border-radius: 8px; background: #211c19; }
.habitat h3 { margin: 5px 0 7px; font: 650 clamp(22px,3vw,34px)/1.1 var(--serif); }
.habitat-switch { margin-top: 10px; flex-wrap: wrap; }
.habitat-list { display: grid; gap: 6px; margin: 9px 0 10px; }
.habitat-list div { border-top: 1px solid #514235; padding-top: 6px; display: grid; grid-template-columns: 86px 1fr; gap: 7px; }
.habitat-list dt { color: var(--text); font-size: 12px; font-weight: 650; }
.habitat-list dd { font-size: 12px; color: #c7bcb1; }
.mission-personal { display: flex; padding: 11px 20px; align-items: center; gap: 9px 13px; flex-wrap: wrap; border-top: 1px solid var(--line); }
@media (max-width: 720px) { .topic-catalog { grid-template-columns: repeat(2,minmax(0,1fr)); } .habitat { grid-template-columns: 1fr; } }
@media (max-width: 450px) { .topic-catalog { grid-template-columns: 1fr; } .mission-personal { padding-inline: 11px; } }
@media (max-width: 365px) { .nav-edition { display: none; } }

.flight-shelf { padding-block: clamp(24px, 3vw, 37px); }
.shelf-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.shelf-head h2 { font-size: clamp(21px, 3vw, 31px); letter-spacing: -.035em; }
.panel-rail { display:block; position:relative; min-width:0; }
.panel-track { overflow-x:auto; overscroll-behavior-inline:contain; scroll-snap-type:x mandatory; scrollbar-width:none; }
.panel-track::-webkit-scrollbar { display:none; }
.rail-buttons { position:absolute; inset:0 8px; display:flex; justify-content:space-between; align-items:center; pointer-events:none; }
.rail-buttons[hidden] { display:none; }
.rail-buttons button { display:grid; place-items:center; width:44px; height:44px; border-radius:50%; color:white; background:#101417ed; border:1px solid #cad1d299; font:inherit; font-size:24px; line-height:1; cursor:pointer; pointer-events:auto; }
.rail-buttons button:is(:hover,:focus-visible) { color:#131719; background:var(--accent); border-color:var(--accent); }
.rail-buttons button[aria-disabled=true] { opacity:.4; cursor:default; }
@media (hover:hover) and (pointer:fine) {
  .panel-rail:not(:hover):not(:focus-within) .rail-buttons { opacity:0; }
  .panel-rail:not(:hover):not(:focus-within) .rail-buttons button { pointer-events:none; }
}
.shelf-track { display:grid; grid-auto-flow:column; grid-auto-columns:max(205px,25%); gap:10px; padding:2px 3px 9px; }
.shelf-card { min-width: 0; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); scroll-snap-align: start; text-decoration: none; }
.shelf-card:hover { border-color: #a87551; background: var(--surface-hi); }
.shelf-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #222830; }
.shelf-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 51%; }
.shelf-art small { position: absolute; right: 0; bottom: 0; background: #11181bcf; color: #e6e6df; padding: 2px 5px; font-size: 8px; }
.shelf-info { padding: 10px; display: grid; gap: 3px; }
.shelf-info strong { font-size: 15px; line-height: 1.2; }
.shelf-info small { color: var(--muted); font-size: 11px; }
