/* Shared card families and the compact shell use one DOM and one account state.
   This sheet is last so older page-specific breakpoints cannot reopen a sidebar. */
:root {
  --card-poster-width: clamp(148px, 12vw, 194px);
  --card-landscape-width: clamp(228px, 21vw, 344px);
  --card-radius: 12px;
  --card-gap: 16px;
  --compact-dock-height: 60px;
}
.mobile-action-dock { display: none; }
.mobile-context-title { display: none; }
#sidebar-catalog-categories { display: none; }
/* A stationary cursor is not a hover request when the compact sheet becomes a
   desktop rail. Restore ordinary hover after real pointer movement or Tab. */
body:not(.mobile-shell-active).shell-pointer-pending #app-sidebar {
  width: calc(var(--page-gutter, 32px) + 72px) !important; max-width: none !important; padding-right: 12px !important;
  background: var(--canvas, #090a0c) !important; box-shadow: none !important;
}
body:not(.mobile-shell-active).shell-pointer-pending #app-sidebar :is(.sidebar-label, .sidebar-context-label, .sagas-nav-label) { opacity: 0 !important; visibility: hidden !important; }
body #app-sidebar .sidebar-action:is([data-nav='favorites'], [data-nav='discover'], [data-nav='sync'], [data-nav='guide']) { display: none; }
/* Preserve the provider quality controls and only enlarge their effective area. */
body #player-screen #player-surface .player-toolbar #player-back,
body #app-sidebar #sidebar-toggle { min-height: 44px; height: auto; }
body #player-screen #player-surface .player-toolbar #player-back { min-width: 44px; padding-block: 10px; }
body :is(.home-shelves .hs-cell, .home-shelves .hs-skeleton-card) { flex-basis: var(--card-poster-width); }
body :is(.home-shelves .hs-poster, #catalog-discovery .dx-title-cell .dx-poster) { aspect-ratio: 2 / 3; border-radius: var(--card-radius); }
body :is(.home-shelves .hs-row, .channel-row) { gap: var(--card-gap); padding-top: 6px; padding-bottom: 18px; }
body :is(.home-shelves .hs-card-title, #catalog-discovery .dx-title-cell .dx-card-copy strong, #streaming-services .ss-card-title) {
  display: -webkit-box; min-height: 2.8em; max-height: 2.8em; line-height: 1.4;
  overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere;
}
body .channel-item[data-kind='live'] .channel-artwork { aspect-ratio: 16 / 9; }
body .channel-item[data-kind='live'] .channel-artwork img { object-fit: contain; }
body :is(.hs-card, .dx-title-cell button, .ss-card):focus-visible { outline: 2px solid var(--accent-bright, #ff304c); outline-offset: 3px; }
body :is(.hs-row, .sg-discovery-row, .sg-actor-row, .channel-row) { scroll-padding-inline: 6px; }
body .topbar :is(#header-discover, #header-together) {
  display: inline-grid; place-items: center; flex: 0 0 44px; min-width: 44px; width: 44px; min-height: 44px; height: 44px;
  padding: 0; border: 0; background: transparent; color: var(--text-muted); box-shadow: none;
}
body .topbar :is(#header-discover, #header-together):is(:hover, :focus-visible) { background: transparent; box-shadow: none; color: var(--text); }
body .topbar :is(#header-discover, #header-together) svg { width: 21px; height: 21px; transition: transform 140ms ease; }
body .topbar :is(#header-discover, #header-together):hover svg { transform: translateY(-1px); }

body.mobile-shell-active {
  --header-height: var(--mobile-header-height, 64px);
  --page-gutter: clamp(16px, 2.2vw, 32px);
  --card-gap: 12px;
  --card-poster-width: clamp(112px, 30vw, 152px);
  --card-landscape-width: clamp(216px, 70vw, 320px);
}
html:has(body.mobile-shell-active) {
  --mobile-dock-reserve: calc(var(--mobile-dock-height, 60px) + max(10px, env(safe-area-inset-bottom, 0px)) + 20px);
  scroll-padding-bottom: var(--mobile-dock-reserve);
}
body.mobile-shell-active .shell,
body.mobile-shell-active.login-visible .shell {
  width: 100%; min-width: 0; max-width: none;
  padding: var(--app-header-height, 64px) max(var(--page-gutter), env(safe-area-inset-right, 0px)) var(--mobile-dock-reserve) max(var(--page-gutter), env(safe-area-inset-left, 0px));
}
body.mobile-shell-active :is(.app-main, .catalog-content) { min-width: 0; margin-left: 0; padding-inline: 0; max-width: 100%; }
body.mobile-shell-active .topbar {
  position: fixed; inset: 0 0 auto; z-index: 80;
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: 4px; width: 100%; height: auto; min-height: 60px;
  padding: max(6px, env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) 6px max(8px, env(safe-area-inset-left, 0px));
  background: var(--canvas, #090a0c); border-bottom: 1px solid var(--line-soft); box-shadow: none;
  transition: transform 160ms var(--motion-ease, ease), opacity 160ms ease;
}
body.mobile-shell-active.mobile-header-hidden .topbar { transform: translateY(-105%); opacity: 0; pointer-events: none; }
body.mobile-shell-active .topbar :is(.brand, .header-tools, .mobile-search-toggle, #change-account) { display: none !important; }
body.mobile-shell-active .topbar #mobile-menu { display: none !important; }
body.mobile-shell-active .topbar .catalog-tabs {
  display: flex; flex: 1 1 auto; flex-wrap: nowrap; align-items: center; gap: 6px;
  min-width: 0; width: auto; margin: 0; padding: 0 4px;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; scroll-padding-inline: 4px; touch-action: pan-x pan-y pinch-zoom;
}
body.mobile-shell-active .topbar .catalog-tabs::-webkit-scrollbar { display: none; }
body.mobile-shell-active .topbar .catalog-tabs button {
  display: inline-flex; flex: 0 0 auto; flex-direction: row; align-items: center; justify-content: center;
  min-width: 72px; width: auto; max-width: none; min-height: 48px; height: auto; padding: 11px 15px; margin: 0;
  border: 1px solid var(--line, #ffffff19); border-radius: 12px;
  font-size: .8125rem; line-height: 1.4; white-space: nowrap; word-break: normal; overflow-wrap: normal;
  background: var(--surface, #141518); color: var(--text-muted); box-shadow: none;
  transition: color 140ms ease, border-color 140ms ease;
}
body.mobile-shell-active .topbar .catalog-tabs .mobile-nav-icon { display: none; }
body.mobile-shell-active .topbar .catalog-tabs .tab-label { display: inline; width: auto; max-width: none; white-space: nowrap; overflow-wrap: normal; }
body.mobile-shell-active .topbar .catalog-tabs button[aria-pressed='true'] { color: var(--text); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 48%, transparent); }
body.mobile-shell-active .topbar .catalog-tabs button[aria-pressed='true']::after { content: none; }
body.mobile-shell-active .mobile-action-dock {
  position: fixed; z-index: 100; display: grid; grid-template-columns: repeat(6, minmax(44px, 1fr)); align-items: center; gap: 0;
  left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: max(10px, env(safe-area-inset-bottom, 0px));
  width: auto; max-width: 460px; height: var(--compact-dock-height); min-height: 60px; margin-inline: auto; padding: 5px;
  border: 1px solid #ffffff1b; border-radius: 22px;
  background: #191a1eec; color: var(--text-muted); box-shadow: 0 8px 30px #0005;
}
@supports (backdrop-filter: blur(1px)) { body.mobile-shell-active .mobile-action-dock { background: #191a1edc; backdrop-filter: blur(8px); } }
body.mobile-shell-active #mobile-action-dock :is(button, #tab-favorites) {
  position: relative; display: grid; place-items: center; align-self: center;
  width: 100%; min-width: 44px; max-width: none; height: 48px; min-height: 48px; margin: 0; padding: 0;
  border: 0; border-radius: 15px; background: transparent !important; color: var(--text-muted); box-shadow: none !important; font-size: 0;
}
body.mobile-shell-active #mobile-action-dock :is(button, #tab-favorites):is(:hover, :active) { background: transparent; box-shadow: none; transform: none; }
body.mobile-shell-active .mobile-action-dock :is(.mobile-dock-icon, .mobile-nav-icon) { display: block; width: 23px; height: 23px; margin: 0; }
body.mobile-shell-active .mobile-action-dock svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; transition: opacity 140ms ease, transform 140ms ease; }
body.mobile-shell-active .mobile-action-dock :is(.tab-label, #favorites-count) { display: none; }
body.mobile-shell-active #mobile-action-dock button[aria-pressed='true'] { color: var(--accent-bright, #ff304c); background: #e3133212; }
body.mobile-shell-active .mobile-action-dock button[aria-pressed='true']::after { content: ''; position: absolute; bottom: 2px; left: calc(50% - 2px); width: 4px; height: 4px; background: currentColor; border-radius: 50%; }

body.mobile-shell-active .mobile-action-dock #tab-favorites[data-count]:not([data-count=''])::before { content: attr(data-count); position: absolute; right: 5px; top: 2px; min-width: 15px; height: 15px; line-height: 15px; border-radius: 8px; color: var(--text); background: var(--surface-elevated); font-size: 9px; }
body.mobile-shell-active:is(.player-open, .mobile-keyboard-open, .mobile-layer-open) .mobile-action-dock,
body.mobile-shell-active:has(dialog[open]) .mobile-action-dock { display: none; }
/* The unique contextual hosts move here. No compact drawer or duplicate tree. */
#compact-context-navigation { display: none; }
body.mobile-shell-active #app-sidebar.app-sidebar,
body.mobile-shell-active #sidebar-backdrop { display: none !important; }
body.mobile-shell-active #compact-context-navigation { position: relative; z-index: 2; display: grid; gap: 8px; min-width: 0; margin: 12px 0 16px; background: var(--canvas, #090a0c); }
body.mobile-shell-active #compact-context-navigation:empty,
body.mobile-shell-active #compact-context-navigation:not(:has(> :not([hidden]))) { display: none; }
body.mobile-shell-active.series-page-active #compact-context-navigation { display: none; }
body.mobile-shell-active #compact-context-navigation > :is(#sidebar-services, #sidebar-live, #sidebar-sports, #sidebar-catalog-categories),
body.mobile-shell-active #compact-context-navigation :is(.sagas-primary-nav, .sagas-secondary-actions) {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; min-width: 0; width: 100%; margin: 0; padding: 3px 1px 5px;
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x pan-y pinch-zoom;
  scroll-padding-inline: 1px;
}
body.mobile-shell-active #compact-context-navigation > [hidden] { display: none !important; }
body.mobile-shell-active #compact-context-navigation ::-webkit-scrollbar { display: none; }
body.mobile-shell-active #compact-context-navigation :is(.service-nav-button, .sidebar-family, .sidebar-sport-item, .sagas-nav-button, .category-nav-button) {
  position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 7px;
  width: auto; min-width: 44px; min-height: 44px; height: auto; margin: 0; padding: 8px 12px;
  border: 1px solid var(--line, #ffffff19); border-radius: 999px; background: var(--surface, #141518); color: var(--text-muted); box-shadow: none;
  font-size: .8125rem; line-height: 1.3; white-space: nowrap; overflow-wrap: normal; transform: none;
}
body.mobile-shell-active #compact-context-navigation :is(.sidebar-context-label, .sagas-nav-label) { display: inline; position: static; width: auto; min-width: 0; opacity: 1; visibility: visible; white-space: nowrap; }
body.mobile-shell-active #compact-context-navigation button[aria-pressed='true'] { color: var(--accent-bright, #ff304c); border-color: transparent; background: transparent; }
body.mobile-shell-active #compact-context-navigation button::after { content: none; }
body.mobile-shell-active #compact-context-navigation :is(.sidebar-context-icon, .sagas-nav-icon) { flex: 0 0 18px; width: 18px; height: 18px; }
body.mobile-shell-active #compact-context-navigation .category-nav-button .sidebar-context-icon { display: none; }
body.mobile-shell-active #compact-context-navigation .service-logo { width: 56px; height: 24px; flex: 0 0 56px; }
body.mobile-shell-active #compact-context-navigation .service-nav-button .sidebar-context-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
body.mobile-shell-active #compact-context-navigation .sidebar-context-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
body.mobile-shell-active #compact-context-navigation #sidebar-sagas { display: grid; gap: 6px; min-width: 0; }
body.mobile-shell-active #compact-context-navigation :is(.sagas-nav-heading, .sagas-nav-footnote, [data-sagas-nav='sync']) { display: none; }
body.mobile-shell-active #compact-context-navigation .sagas-secondary-nav { min-width: 0; padding: 0; margin: 0; border: 0; }
body.mobile-shell-active :is(.series-page, .catalog-content, #sagas-hub, #sports-hub) { scroll-margin-bottom: var(--mobile-dock-reserve); }
body.mobile-shell-active :is(input, select, textarea) { font-size: max(16px, 1rem); }
body.mobile-shell-active :is(button, summary) { scroll-margin-bottom: var(--mobile-dock-reserve); }
body.mobile-shell-active :is(button, input, select, textarea, a, [tabindex]):focus-visible { scroll-margin-top: calc(var(--app-header-height, 64px) + 12px); scroll-margin-bottom: var(--mobile-dock-reserve); }
body.mobile-shell-active :is(.hs-arrow, .ss-arrow, .sg-shelf-arrow, .channel-shelf-arrow) { display: none !important; }
body.mobile-shell-active .home-shelves .hs-shelf-heading { display: flex; align-items: center; gap: 12px; }
body.mobile-shell-active .home-shelves .hs-shelf-title { font-size: clamp(1.05rem, 2.6vw, 1.4rem); }
body.mobile-shell-active .home-shelves .hs-shelf-tools { flex-shrink: 0; }
body.mobile-shell-active .home-shelves .hs-see-all { min-height: 44px; padding-inline: 8px; }
body.mobile-shell-active :is(.home-shelves .hs-row, .channel-row, .ss-row, .sg-discovery-row) { touch-action: pan-x pan-y pinch-zoom; }
body.mobile-shell-active .home-shelves .hs-cell { width: var(--card-poster-width); }
body.mobile-shell-active #catalog-discovery .dx-filters { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
body.mobile-shell-active #catalog-discovery :is(input, select) { min-height: 48px; min-width: 0; }
/* Shorter hero with natural copy height. A larger font can grow the block. */
body.mobile-shell-active #content-presentation :is(.cp-hero, [data-view='favorites'] .cp-hero),
body.mobile-shell-active #streaming-services .ss-hero {
  min-height: clamp(330px, 56svh, 480px); height: auto; padding-top: 32px; padding-bottom: 22px;
}
/* Compact heroes no longer reserve the desktop heading's absolute space.
   Keep the heading in flow so wrapped filters and larger text grow safely. */
body.mobile-shell-active #content-presentation [data-view='favorites'] > .cp-favorites-heading {
  position: relative; inset: auto; min-height: 0; padding-top: 20px; gap: 16px;
}
body.mobile-shell-active #content-presentation .cp-favorites-heading > div { min-width: 0; max-width: 100%; }
body.mobile-shell-active #content-presentation :is(.cp-hero-copy, [data-view='favorites'] .cp-hero-copy) { display: flex; flex-direction: column; gap: 12px; width: min(600px, 76%); }
body.mobile-shell-active #content-presentation :is(.cp-title-slot, .cp-meta-slot, .cp-plot-slot, .cp-playback-slot) { min-height: 0; height: auto; grid-template-rows: none; }
body.mobile-shell-active #content-presentation :is(.cp-hero-title, [data-view='favorites'] .cp-hero-title) { font-size: clamp(2rem, 4.8vw, 3.25rem); line-height: 1.08; max-height: none; }
body.mobile-shell-active #content-presentation .cp-plot { min-height: 0; height: auto; max-height: none; font-size: .875rem; line-height: 1.5; -webkit-line-clamp: 2; }
body.mobile-shell-active #content-presentation .cp-meta { min-height: 0; height: auto; white-space: normal; line-height: 1.5; }
body.mobile-shell-active #content-presentation .cp-episode-state { white-space: normal; }
body.mobile-shell-active #content-presentation .cp-title-art { max-height: 90px; height: auto; object-position: left center; }
body.mobile-shell-active #content-presentation .cp-hero-pagination { min-height: 28px; height: auto; }
body.mobile-shell-active #content-presentation .cp-actions { display: flex; flex-wrap: wrap; gap: 8px; height: auto; }
body.mobile-shell-active #content-presentation .cp-actions .cp-action { min-height: 48px; padding: 10px 16px; font-size: .875rem; height: auto; line-height: 1.4; white-space: normal; }
body.mobile-shell-active #content-presentation .cp-actions :is(.cp-save, .cp-movie-seen-toggle) { flex: 0 0 48px; width: 48px; min-width: 48px; min-height: 48px; height: 48px; }
body.mobile-shell-active :is(#content-presentation .cp-scroll, #streaming-services .ss-scroll-cue) { display: none; }
body.mobile-shell-active #streaming-services .ss-hero-copy { width: min(600px, 76%); padding: 0; }
body.mobile-shell-active #streaming-services .ss-hero-title { font-size: clamp(2rem, 4.8vw, 3.25rem); }
body.mobile-shell-active #streaming-services .ss-description { font-size: .875rem; min-height: 0; -webkit-line-clamp: 2; }
body.mobile-shell-active #streaming-services .ss-actions .ss-button { min-height: 48px; }
body.mobile-shell-active :is(.cp-dot, .ss-dot) { min-width: 44px; min-height: 44px; }
body.mobile-shell-active dialog:not(#player-screen):not(#mobile-search-dialog):not(#mobile-context-dialog) { width: min(620px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: calc(var(--mobile-visual-height, 100dvh) - 32px); padding: 24px; margin: auto; overflow: auto; overscroll-behavior: contain; }
body.mobile-shell-active dialog:not(#player-screen) :is(button, select, input) { min-height: 44px; }
body.mobile-shell-active dialog:not(#player-screen) { animation-duration: 180ms; }
body.mobile-shell-active #player-screen #player-surface .player-toolbar { flex-wrap: wrap; min-height: 56px; }
body.mobile-shell-active #player-screen #player-surface .player-toolbar #player-back { flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 0; font-size: 0; }
body.mobile-shell-active #player-screen #player-surface .player-toolbar #player-back::before { content: '←'; font-size: 24px; line-height: 1; }
body.mobile-shell-active #player-screen #player-surface .player-toolbar #player-title { flex: 1 1 120px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Split view / phone: a complete poster plus a glimpse of its neighbour. */
@media (max-width: 600px) {
  body.mobile-shell-active .login-screen { display: block; padding: 16px 0; }
  body.mobile-shell-active .login-copy { display: none; }
  body.mobile-shell-active #channel-login { width: 100%; max-width: 480px; margin: 0 auto; padding: 22px 18px; border-radius: 20px; gap: 16px; }
  body.mobile-shell-active #channel-login .login-heading h2 { font-size: 1.7rem; }
  body.mobile-shell-active #channel-login .actions { gap: 12px; }
  body.mobile-shell-active #content-presentation :is(.cp-hero, [data-view='favorites'] .cp-hero), body.mobile-shell-active #streaming-services .ss-hero { min-height: clamp(320px, 56svh, 470px); padding-top: 32px; }
  body.mobile-shell-active #content-presentation :is(.cp-hero-copy, [data-view='favorites'] .cp-hero-copy), body.mobile-shell-active #streaming-services .ss-hero-copy { width: 100%; }
  body.mobile-shell-active #content-presentation :is(.cp-hero-title, [data-view='favorites'] .cp-hero-title), body.mobile-shell-active #streaming-services .ss-hero-title { font-size: clamp(1.75rem, 7.2vw, 2.75rem); }
  body.mobile-shell-active #content-presentation .cp-hero::before { background: linear-gradient(0deg, var(--canvas) 4%, #090a0cdd 38%, #090a0c55 80%), linear-gradient(90deg, #090a0c99, transparent); }
  body.mobile-shell-active #content-presentation .cp-actions .cp-action-primary { flex: 1 1 calc(100% - 56px); }
  body.mobile-shell-active #content-presentation .cp-actions .cp-action-secondary { flex: 1 1 auto; }
  body.mobile-shell-active #content-presentation .cp-favorites-filters { flex-wrap: wrap; gap: 4px; }
  body.mobile-shell-active dialog:not(#player-screen):not(#mobile-search-dialog):not(#mobile-context-dialog) { padding: 20px; }
}
/* Tablet portrait and landscape deliberately expose more posters with one size. */
@media (min-width: 601px) and (max-width: 900px) {
  body.mobile-shell-active { --card-poster-width: calc((100vw - 2 * var(--page-gutter) - 4 * var(--card-gap)) / 5.15); }
  body.mobile-shell-active .login-screen { display: block; padding-block: 24px; }
  body.mobile-shell-active .login-copy { display: none; }
  body.mobile-shell-active #channel-login { width: min(100%, 500px); margin-inline: auto; padding: 28px; }
}
@media (min-width: 901px) {
  body.mobile-shell-active { --card-poster-width: calc((100vw - 2 * var(--page-gutter) - 6 * var(--card-gap)) / 7.15); }
  body.mobile-shell-active #content-presentation :is(.cp-hero, [data-view='favorites'] .cp-hero), body.mobile-shell-active #streaming-services .ss-hero { min-height: clamp(310px, 51svh, 430px); }
  body.mobile-shell-active .login-screen { min-height: 0; padding-block: 24px; }
}
@media (max-height: 540px) {
  body.mobile-shell-active .mobile-action-dock { --compact-dock-height: 54px; bottom: max(6px, env(safe-area-inset-bottom, 0px)); }
  body.mobile-shell-active #content-presentation :is(.cp-hero, [data-view='favorites'] .cp-hero), body.mobile-shell-active #streaming-services .ss-hero { min-height: 0; padding-top: 20px; padding-bottom: 20px; }
}
/* Large screen focus never changes a card's dimensions or clips its neighbours. */
@media (min-width: 1600px) {
  :root { --card-poster-width: clamp(190px, 11.8vw, 240px); --card-gap: 20px; }
  body :is(.home-shelves .hs-card-title, #catalog-discovery .dx-title-cell .dx-card-copy strong) { font-size: 15px; }
  body :is(.hs-row, .channel-row) { padding-block: 8px 22px; }
  body :is(button, a, [tabindex]):focus-visible { outline-width: 3px; outline-offset: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  body.mobile-shell-active .topbar, .mobile-action-dock svg, body .topbar :is(#header-discover, #header-together) svg { transition: none; }
  body.mobile-shell-active .mobile-action-dock button:active svg, body .topbar :is(#header-discover, #header-together):hover svg { transform: none; }
}

/* Pending is local to the requested icon/tab; current stays on published content. */
.mobile-action-dock button[data-pending='true']::before,
.catalog-tabs button[data-pending='true']::before { content: ''; position: absolute; box-sizing: border-box; width: 13px; height: 13px; right: 3px; top: 3px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; background: transparent; animation: ui-control-pending 700ms linear infinite; }
body.mobile-shell-active #mobile-action-dock :is(button, #tab-favorites)[data-pending='true']::before { content: ''; left: 50%; top: 50%; right: auto; width: 18px; height: 18px; min-width: 18px; min-height: 18px; padding: 0; translate: -50% -50%; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; background: transparent; animation: ui-control-pending 700ms linear infinite; }
body.mobile-shell-active #mobile-action-dock button[data-pending='true'] :is(.mobile-dock-icon, .mobile-nav-icon) { visibility: hidden; }
.catalog-tabs button { position: relative; }
.navigation-progress-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.navigation-status { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding-block: 8px; color: var(--text-muted); font-size: .875rem; }
.navigation-status[hidden] { display: none; }
.navigation-status:not([hidden]) ~ #library-notice[data-reason='catalog-navigation-failed'] { display: none; }
.navigation-status button { min-height: 44px; padding: 8px 12px; }
body.mobile-shell-active #sync-dialog[open] { animation: compact-panel-enter 180ms var(--motion-ease, ease) both; }
@keyframes compact-panel-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { body.mobile-shell-active #sync-dialog[open], .mobile-action-dock button[data-pending='true']::before, .catalog-tabs button[data-pending='true']::before, body.mobile-shell-active #mobile-action-dock :is(button, #tab-favorites)[data-pending='true']::before { animation: none; } }
