/* Interior families in the preview2 language. Opt in through extra_css; keep
   translation inner HTML and all media/theme behavior in their source markup. */
#main.ps-page { padding: 0; overflow-wrap: anywhere; }
#main.ps-page .wrap { width: 100%; max-width: 1200px; padding-inline: var(--bolt-gutter); }
#main.ps-page .page-head { padding-block: clamp(56px, 8vw, 104px) 0; border: 0; }
#main.ps-page .page-head .wrap::after { content: none; }
#main.ps-page .page-head h1 { max-width: 16ch; margin-bottom: 24px; }
#main.ps-page .lede { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; text-wrap: pretty; }
#main.ps-page .sec { padding-block: var(--sec) 0; }
#main.ps-page .page-head + .sec { padding-top: clamp(48px, 6vw, 80px); }
#main.ps-page .look { min-height: 44px; height: auto; white-space: normal; padding: 10px 16px; border-radius: var(--bolt-radius-pill); background: var(--tile); box-shadow: var(--lift-sm); }
#main.ps-page .ps-page-head { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 20px; text-align: center; margin-bottom: clamp(48px, 6vw, 80px); }
#main.ps-page .ps-page-head :is(h2, p, .look) { margin: 0; grid-column: 1; grid-row: auto; justify-self: center; }
#main.ps-page .ps-page-head h2 { max-width: 20ch; }
#main.ps-page .ps-page-head .lede { max-width: 48ch; }
/* Remove the former per-item entrances. The shared hero entrance is the one
   authored reveal; cards, screenshots and the log remain readable while scrolling. */
#main.ps-page :is(.rv, .rv-stagger > *, .gallery li, .inv, .stamp) { animation: none; clip-path: none; opacity: 1; }

/* Features: three existing content groups become lifted tiles. The existing
   group headings are pill labels, with no new words or inline-key changes. */
#main.features-page .groups { grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 20px; border: 0; padding: 0; }
#main.features-page .group { min-inline-size: 0; gap: 28px; }
#main.features-page .group h3 { align-self: start; max-width: 100%; width: fit-content; margin: 0; padding: 6px 14px; border-radius: var(--bolt-radius-pill); background: var(--wash); color: var(--accent-text); font: 600 14px/1.3 var(--sans); letter-spacing: -.005em; }
#main.features-page .group ul { gap: 28px; }
#main.features-page .group h4 { font: 750 23px/1.18 var(--sans); letter-spacing: -.02em; margin-bottom: 10px; text-wrap: balance; }
#main.features-page .group p { font-size: 17px; line-height: 1.55; }
#main.features-page .index-foot { margin-top: 32px; gap: 20px 32px; }
#main.features-page .index-foot .also { font-size: 16px; max-width: 58ch; }
#main.features-page .index-foot .ps-btn { padding-inline: 24px; white-space: normal; gap: 12px; }
#main.features-page .index-foot .arr { width: 20px; height: 20px; flex: none; }
#main.features-page #logbook { overflow: visible; }
#main.features-page .paper-sec { gap: clamp(40px, 6vw, 80px); }
#main.features-page .paper-sec > * { min-inline-size: 0; }
#main.features-page #log-title { max-width: 15ch; margin-bottom: 24px; }
#main.features-page .paper-points { margin-top: 32px; }
#main.features-page .paper-points b { font: 650 18px/1.3 var(--sans); }
#main.features-page .paper-points p { font-size: 16px; }
/* A quiet logbook on the same tile/paper as the home note, readable in both
   themes. Drop inherited paper stacks, stamp overlap and scroll transforms. */
#main.features-page .inv-stage { perspective: none; padding: 0; }
#main.features-page .inv { background: var(--tile); color: var(--ink); box-shadow: var(--lift); border-radius: 10px; transform: none; padding: clamp(20px, 3vw, 36px); }
#main.features-page .inv::before { content: none; }
#main.features-page .inv-top { flex-wrap: wrap; border-color: var(--rule-2); }
#main.features-page .inv-top b { font: 750 23px/1.2 var(--sans); }
#main.features-page .inv-top .t { font: 650 17px/1.3 var(--sans); text-transform: none; letter-spacing: 0; }
#main.features-page .inv-top :is(span, .t span) { font: 400 13px/1.5 var(--sans); color: var(--muted); letter-spacing: 0; }
#main.features-page .inv :is(th, td) { border-color: var(--rule); }
#main.features-page .inv th { color: var(--muted); font: 600 12px/1.4 var(--sans); letter-spacing: 0; text-transform: none; }
#main.features-page .inv td small { color: var(--muted); font-size: 12px; }
#main.features-page .inv td:last-child { white-space: normal; }
#main.features-page .inv .tot .grand { border-color: var(--rule-2); font: 650 16px/1.3 var(--sans); }
#main.features-page .inv .tot .grand span:last-child { color: var(--accent-text); }
#main.features-page .stamp { position: static; width: fit-content; max-width: 100%; margin: 24px 0 0 auto; padding: 10px 16px; border: 1px solid var(--rule-2); border-radius: var(--bolt-radius-control); color: var(--accent-text); background: var(--wash); transform: none; mix-blend-mode: normal; text-transform: none; font: 750 24px/1.1 var(--sans); letter-spacing: -.02em; }
#main.features-page .stamp small { font: 500 12px/1.5 var(--mono); letter-spacing: 0; }
#main.features-page .gallery { gap: 20px; padding-inline: max(var(--bolt-gutter), calc((100% - 1200px) / 2 + var(--bolt-compact-gutter))); scroll-padding-inline: max(var(--bolt-gutter), calc((100% - 1200px) / 2 + var(--bolt-compact-gutter))); scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent; padding-bottom: 24px; }
#main.features-page .gallery::-webkit-scrollbar { display: block; height: 6px; }
#main.features-page .gallery li { width: min(280px, 76vw); min-inline-size: 0; }
#main.features-page .gallery .device { width: 100%; padding: 24px 28px 0; border-radius: 28px; background: var(--well); box-shadow: inset 0 0 0 1px var(--rule); }
#main.features-page .gallery figcaption { margin-top: 20px; padding-inline: 4px; font-size: 16px; }
#main.features-page .gallery figcaption b { font: 750 23px/1.18 var(--sans); text-transform: none; letter-spacing: -.02em; color: var(--ink); margin-bottom: 10px; }

/* Demo: retain each original phone, both video tags and their poster logic.
   Lift the frames on wells; captions have the same voice as feature cards. */
#main.demo-page .clips { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: start; }
#main.demo-page .clip { width: 100%; min-inline-size: 0; overflow: visible; }
#main.demo-page .clip .phone { width: 100%; padding: 8px; border-radius: 36px; background: var(--tile); box-shadow: var(--lift); }
#main.demo-page .clip .screen { border-radius: 28px; }
#main.demo-page .clip figcaption { font-size: 16px; line-height: 1.55; margin-top: 28px; padding-inline: 4px; }
#main.demo-page .clip figcaption b { color: var(--ink); font: 750 23px/1.18 var(--sans); text-transform: none; letter-spacing: -.02em; margin-bottom: 10px; }

/* Close as open page space, matching the home. Reset the old dark panel's local
   aliases so the shared theme and official paired Store badges stay in charge. */
#main.ps-page .closing { padding-block: var(--sec) clamp(88px, 10vw, 140px); overflow: visible; }
#main.ps-page .cta-panel { background: none; color: var(--ink); padding: 0; border-radius: 0; overflow: visible; --muted: inherit; --text: inherit; --rule-2: inherit; --accent: inherit; --accent-hover: inherit; --on-accent: inherit; --accent-text: inherit; --accent-wash: inherit; }
#main.ps-page .cta-panel h2 { font-size: clamp(44px, 7.4vw, 104px); max-width: 16ch; margin-bottom: 24px; }
#main.ps-page .cta-panel h2 .accent { color: var(--accent-text); }
#main.ps-page .cta-panel p { color: var(--muted); font-size: 18px; line-height: 1.55; }
#main.ps-page .cta-panel .avail { font-size: 15px; margin-top: 24px; }
#main.ps-page .cta-row { flex-wrap: wrap; gap: 14px 22px; }
#main.ps-page .ps-text-link { white-space: normal; text-align: center; }
#main.ps-page .qr { color: var(--ink); }
@media (min-width: 760px) { #main.ps-page .wrap { padding-inline: var(--bolt-compact-gutter); } }
@media (max-width: 1079px) {
  #main.features-page .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #main.features-page .group:first-child { grid-row: span 2; }
  #main.features-page .paper-sec { grid-template-columns: minmax(0, 1fr); }
  #main.features-page #log-title { max-width: 22ch; }
  #main.features-page .inv-stage { max-width: 620px; width: 100%; justify-self: center; }
  #main.demo-page .clips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 28px; }
}
@media (max-width: 599px) {
  #main.features-page .groups, #main.demo-page .clips { grid-template-columns: minmax(0, 1fr); }
  #main.features-page .group:first-child { grid-row: auto; }
  #main.demo-page .clip { max-width: 340px; justify-self: center; }
  #main.demo-page .clip .phone { width: min(280px, 100%); margin-inline: auto; }
  #main.features-page .inv { padding: 20px 14px; }
  #main.features-page .inv.log :is(th, td):nth-child(2) { width: 32px; }
}
#main.ps-page :is(h1, h2, h3, h4):lang(de) { hyphens: auto; }
#main.ps-page :is(h1, h2):is(:lang(ja), :lang(ko), :lang(zh)) { line-height: 1.15; word-break: normal; }

/* The Japanese menu and app labels need the small-phone chrome at 390 px too.
   Keep this opt-in override here so other rollout families retain their shell. */
@media (min-width: 380px) and (max-width: 439px) {
  body:has(.ps-page) .nav-bar { padding-left: 10px; gap: 4px; }
  body:has(.ps-page) .nav .brand .logo { height: 18px; }
  body:has(.ps-page) .nav .btn-small { padding-inline: 10px; font-size: 14px; }
  body:has(.ps-page) .nav .site-menu summary { padding-inline: 6px; }
}

/* Support and legal: preserve the authored reading order and inline HTML. */
#main.read-page .page-head .wrap { max-width: 1100px; }
#main.read-page .page-head h1 { max-width: 20ch; }
#main.read-page .page-head .meta { color: var(--muted); margin-bottom: 20px; font-size: 15px; }
#main.read-page .page-head .lede { max-width: 68ch; }
#main.read-page .doc { max-width: 1100px; grid-template-columns: 220px minmax(0, 68ch); gap: clamp(32px, 5vw, 64px); padding-block: 56px 0; }
#main.read-page .doc.single { grid-template-columns: minmax(0, 68ch); justify-content: center; }
#main.read-page .prose { min-inline-size: 0; max-width: 68ch; font-size: 17px; line-height: 1.65; }
#main.read-page .prose > :is(p, ul, ol) { max-width: none; }
#main.read-page .prose :is(p, li) { color: var(--ink); }
#main.read-page .prose h2 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.16; letter-spacing: -.025em; margin-block: 56px 18px; }
#main.read-page .prose h3 { line-height: 1.25; margin-block: 32px 12px; }
#main.read-page .summary-box, #main.legal-page .page-head .lede { border: 0; border-radius: var(--bolt-radius-tray); background: var(--tile); box-shadow: var(--lift); padding: clamp(20px, 3vw, 32px); }
#main.read-page .summary-box h2 { font-size: 23px; margin-block: 0 16px; }
#main.read-page .summary-box li { margin-block: 12px; }
#main.read-page .contact-card { gap: 20px; }
#main.read-page .ps-btn, #main.system-page .ps-btn { padding-inline: 24px; white-space: normal; text-align: center; }
#main.read-page .rail { top: 110px; max-height: calc(100dvh - 140px); padding: 20px 12px; border-radius: 20px; background: var(--well); scrollbar-width: thin; scrollbar-color: var(--rule-2) transparent; overscroll-behavior: contain; }
#main.read-page .rail h2 { font: 650 16px/1.4 var(--sans); letter-spacing: -.01em; text-transform: none; padding-inline: 12px; margin-bottom: 12px; }
#main.read-page .rail ol { border: 0; }
#main.read-page .rail a { min-height: 44px; padding: 10px 12px; margin: 0; border: 0; border-radius: var(--bolt-radius-control); font-size: 15px; color: var(--ink); }
#main.read-page .toc { background: var(--well); border: 0; border-radius: 20px; }
#main.read-page .toc a { display: block; min-height: 44px; padding-block: 8px; }
#main.read-page .table-scroll { max-inline-size: 100%; border: 0; border-radius: 20px; background: var(--tile); box-shadow: var(--lift-sm); overscroll-behavior-x: contain; }
#main.read-page table { min-inline-size: 480px; line-height: 1.55; }
#main.read-page thead th { font: 650 15px/1.4 var(--sans); text-transform: none; letter-spacing: 0; color: var(--ink); background: var(--well); }
#main.read-page :is(th, td) { padding: 16px 20px; }
#main.read-page .note { border: 0; background: var(--well); border-radius: 20px; padding: 24px; }
#main.read-page .closing { padding-block: clamp(72px, 9vw, 120px); }
#main.read-page .closing .wrap { max-width: 1100px; }
#main.read-page .cta-panel h2 { font-size: clamp(32px, 4vw, 48px); max-width: 22ch; }

/* Native FAQ rows: retain the existing plus, now in the preview2 wash disc. */
#main.support-page .prose details { margin-block: 12px; border: 0; border-radius: 20px; background: var(--tile); box-shadow: var(--lift-sm); }
#main.support-page .prose summary { min-height: 64px; align-items: center; gap: 16px; padding: 20px 22px; font: 650 18px/1.4 var(--sans); letter-spacing: -.01em; }
#main.support-page .prose summary::after { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: var(--bolt-radius-pill); background: var(--wash); transition: transform var(--bolt-motion-snappy) var(--bolt-ease-out); }
#main.support-page .prose details > div { padding: 0 22px 22px; }
#main.support-page .prose details p { color: var(--muted); }

/* Functional fallbacks: a single quiet tile, retaining every app/store link. */
#main.system-page { padding: clamp(48px, 8vw, 104px) var(--bolt-gutter); }
#main.system-page > .wrap { max-width: 800px; padding: clamp(28px, 5vw, 64px); border-radius: var(--bolt-radius-tray); background: var(--tile); box-shadow: var(--lift); }
#main.system-page h1 { max-width: 14ch; margin-inline: auto; }
#main.system-page .lede { max-width: 52ch; }
#main.system-page .plate-lost { width: min(140px, 40vw); animation: none; }
@media (hover: hover) and (pointer: fine) {
  #main.read-page .rail a:hover { background: var(--wash); color: var(--accent-text); }
  #main.support-page .prose summary:hover { color: var(--accent-text); }
}
@media (max-width: 959px) {
  #main.read-page .doc { grid-template-columns: minmax(0, 68ch); justify-content: center; gap: 32px; }
  /* Legal already has a complete mobile contents list; Support has only a rail. */
  #main.support-page .rail { display: block; position: static; max-height: none; }
  #main.support-page .rail ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 519px) {
  #main.support-page .rail ol { grid-template-columns: minmax(0, 1fr); }
  #main.read-page .cta-row > a, #main.system-page .cta-row > a { width: 100%; }
  #main.read-page .contact-card .ps-btn { width: 100%; font-size: 16px; padding-inline: 12px; }
}
@media print {
  /* Legal is printed: override saved/system dark aliases as well as surfaces. */
  body:has(#main.read-page) { color-scheme: only light; background: Canvas; color: CanvasText; }
  #main.read-page { color-scheme: only light; --ink: CanvasText; --text: CanvasText; --muted: CanvasText; --accent-text: CanvasText; --tile: Canvas; --well: Canvas; --wash: Canvas; color: CanvasText; background: Canvas; }
  #main.read-page :is(.rail, .toc, .closing), .ps-footer { display: none !important; }
  #main.read-page .sky::before { display: none; }
  #main.read-page .page-head { padding-block: 0 24px; }
  #main.read-page .doc { display: block; padding-block: 0; }
  #main.read-page .prose { max-width: none; font-size: 11pt; }
  #main.read-page :is(.summary-box, .table-scroll), #main.read-page .page-head .lede { box-shadow: none; padding: 0; background: Canvas; }
  #main.read-page .table-scroll { overflow: visible; }
  #main.read-page table { min-inline-size: 0; }
  #main.read-page :is(h2, h3) { break-after: avoid; }
  #main.read-page :is(tr, .summary-box) { break-inside: avoid; }
}

/* Catalog/discovery: builders opt in; metadata retains its original sentence. */
#main.catalog-page .page-head .wrap { max-width: 1200px; }
#main.catalog-page .page-head h1 { max-width: 24ch; }
#main.catalog-page .page-head .lede { max-width: 68ch; }
#main.catalog-page .crumbs { margin-top: 24px; }
#main.catalog-page .crumbs a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; }
#main.catalog-page .stage-jump { gap: 10px; }
#main.catalog-page .stage-jump a { min-height: 44px; height: auto; padding: 12px 16px; border: 0; border-radius: var(--bolt-radius-pill); background: var(--tile); box-shadow: var(--lift-sm); font-family: var(--sans); line-height: 1.3; white-space: normal; transition: background-color var(--bolt-motion-snappy) var(--bolt-ease); }
#main.catalog-page .group-head { align-items: center; flex-wrap: wrap; gap: 12px 20px; padding: 0; margin-bottom: 28px; border: 0; }
#main.catalog-page .group-head .sec-title { margin: 0; padding: 8px 16px; border-radius: var(--bolt-radius-pill); background: var(--wash); color: var(--accent-text); font: 600 15px/1.4 var(--sans); letter-spacing: 0; }
#main.catalog-page .group-head .count { font-size: 15px; }
#main.catalog-page .prog-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
#main.catalog-page .prog-grid > li { min-inline-size: 0; }
#main.catalog-page .prog-card { min-inline-size: 0; min-height: 44px; gap: 16px; padding: 28px; border: 0; border-radius: var(--bolt-radius-tray); background: var(--tile); color: var(--ink); box-shadow: var(--lift-sm); overflow: visible; transition: background-color var(--bolt-motion-snappy) var(--bolt-ease); }
#main.catalog-page .prog-card h3 { font-size: 23px; line-height: 1.2; }
#main.catalog-page .prog-card p { font-size: 16px; line-height: 1.55; }
#main.catalog-page .prog-card .card-facts { font-size: 14px; line-height: 2.5; color: var(--muted); }
/* Chips in a wrapping row: the builder's ", " and "." between them stay in the text for assistive tech and
   copy-paste, but take no space, since the pills already separate the facts. */
#main.catalog-page .card-facts:has(.catalog-chip) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0; line-height: 1.4; }
#main.catalog-page .card-facts:has(.catalog-chip) .catalog-chip { font-size: 14px; }
#main.catalog-page .catalog-chip { display: inline; padding: 6px 10px; border-radius: var(--bolt-radius-pill); background: var(--well); color: var(--ink); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
#main.catalog-page .trade-foot { color: var(--accent-text); }
#main.catalog-page .facts { margin-top: 32px; border: 0; }
#main.catalog-page .facts ul { display: flex; flex-wrap: wrap; gap: 10px; }
#main.catalog-page .facts li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 10px 16px; border: 0; border-radius: var(--bolt-radius-pill); background: var(--well); }
#main.catalog-page .facts b { margin: 0; font: 650 15px/1.5 var(--sans); letter-spacing: 0; }
#main.catalog-page .facts span { font-size: 14px; }
#main.catalog-page .sec-head { display: block; max-width: 68ch; margin-bottom: 40px; }
#main.catalog-page .sec-head .lede { margin-top: 18px; }
#main.program-page .sec { padding-top: 56px; }
#main.catalog-page .sec-head + .sec-head { margin-top: 56px; }
#main.catalog-page .sec-title { font-size: clamp(28px, 3.4vw, 40px); }
#main.catalog-page .week-grid { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 20px; }
#main.catalog-page .workout { min-inline-size: 0; padding: 24px; border-radius: var(--bolt-radius-tray); background: var(--tile); box-shadow: var(--lift-sm); }
#main.catalog-page .workout h3 { margin-bottom: 20px; font-size: 23px; }
#main.catalog-page .table-scroll { min-inline-size: 0; max-inline-size: 100%; border: 0; border-radius: 20px; background: var(--tile); box-shadow: var(--lift-sm); overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--rule-2) var(--tile); }
#main.catalog-page .workout .table-scroll { border-radius: var(--bolt-radius-control); box-shadow: none; }
#main.catalog-page table { min-inline-size: 0; font-size: 15px; line-height: 1.55; }
#main.catalog-page :is(th, td) { padding: 14px 16px; }
#main.catalog-page thead th { font: 650 14px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--well); }
#main.catalog-page .workout td:first-child { min-width: 140px; }
#main.catalog-page .workout td a { display: inline-flex; align-items: center; min-height: 44px; }
#main.catalog-page .workout td:last-child { font: 500 14px/1.5 var(--sans); }
#main.catalog-page .catalog-notes { padding: 20px 28px 20px 44px; border-radius: var(--bolt-radius-tray); background: var(--tile); box-shadow: var(--lift-sm); }
#main.catalog-page .catalog-notes li { padding-inline-start: 4px; margin-block: 12px; }
#main.catalog-page .rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: none; padding: 0; border: 0; list-style: none; }
#main.catalog-page .rows li { min-inline-size: 0; margin: 0; }
#main.catalog-page .rows a { display: flex; align-items: center; min-height: 56px; height: 100%; padding: 16px 20px; border: 0; border-radius: 20px; background: var(--tile); color: var(--ink); box-shadow: var(--lift-sm); text-decoration: none; font-weight: 600; }
#main.catalog-page .other-links h2 { margin-bottom: 24px; }
#main.catalog-page .summary-box .ps-btn { margin-block: 16px 4px; text-decoration: none; }
#main.catalog-page .fine-print { margin-top: 32px; max-width: 68ch; }
#main.catalog-page .closing { padding-block: clamp(72px, 9vw, 120px); }
#main.catalog-page .cta-panel h2 { font-size: clamp(32px, 4vw, 48px); max-width: 22ch; }
/* Compare's existing three links are its index cards; all prose keeps a measure. */
#main.compare-index .doc { max-width: 1200px; grid-template-columns: minmax(0, 1fr); }
#main.compare-index .prose { max-width: none; }
#main.compare-index .prose > :is(p, .summary-box) { max-width: 68ch; }
#main.compare-index .prose > h2:first-of-type { width: fit-content; padding: 8px 16px; font: 600 15px/1.4 var(--sans); letter-spacing: 0; background: var(--wash); color: var(--accent-text); border-radius: var(--bolt-radius-pill); }
#main.compare-index .rows a { padding: 28px; font-size: 23px; }
@media (min-width: 760px) {
  #main.catalog-page .prog-grid, #main.catalog-page .week-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #main.catalog-page .other-links .rows, #main.compare-index .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  #main.catalog-page .prog-grid, #main.compare-index .rows { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 519px) {
  #main.catalog-page .prog-card { padding: 24px 20px; }
  #main.catalog-page .workout { padding: 20px 12px; }
  #main.catalog-page .cta-row > a { width: 100%; }
}
@media (hover: hover) and (pointer: fine) {
  #main.catalog-page .prog-card:hover { transform: none; box-shadow: var(--lift-sm); background: var(--well); }
  #main.catalog-page .rows a:hover, #main.catalog-page .stage-jump a:hover { background: var(--wash); color: var(--accent-text); }
}
@media (prefers-reduced-motion: reduce) {
  #main.catalog-page .rows a:active { transform: none; }
}
@media print {
  body:has(#main.catalog-page) { color-scheme: only light; background: Canvas; color: CanvasText; }
  #main.catalog-page { color-scheme: only light; --ink: CanvasText; --text: CanvasText; --muted: CanvasText; --accent-text: CanvasText; --tile: Canvas; --well: Canvas; --wash: Canvas; color: CanvasText; background: Canvas; }
  #main.catalog-page :is(.stage-jump, .closing), #main.catalog-page .sky::before { display: none; }
  #main.catalog-page .page-head { padding-block: 0 24px; }
  #main.catalog-page :is(.sec, .doc) { padding-block: 24px 0; }
  #main.catalog-page :is(.prog-card, .workout, .table-scroll, .catalog-notes, .rows a) { box-shadow: none; break-inside: avoid; }
  #main.catalog-page .table-scroll { overflow: visible; }
  #main.catalog-page table { min-width: 0; }
  #main.catalog-page :is(h2, h3) { break-after: avoid; }
}
