:root {
  --v3-bg: #0b0c0f;
  --v3-sidebar: #101115;
  --v3-surface: #14161b;
  --v3-surface-raised: #191b21;
  --v3-surface-hover: #1e2128;
  --v3-line: rgba(255, 255, 255, 0.09);
  --v3-line-strong: rgba(255, 255, 255, 0.16);
  --v3-text: #f4f5f7;
  --v3-muted: #9a9faa;
  --v3-faint: #6f7480;
  --v3-accent: #9b8cff;
  --v3-teal: #4ed6b2;
  --v3-amber: #f2c85b;
  --v3-red: #ff7a82;
  --v3-blue: #6fb7ff;
  --v3-sidebar-width: 232px;
  --v3-content-max: 1680px;
}

html,
body,
#app {
  width: 100%;
  height: 100%;
}

html {
  background: var(--v3-bg);
  color-scheme: dark;
}

body {
  overflow: hidden;
  background: var(--v3-bg);
  color: var(--v3-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
summary,
input,
select {
  outline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--v3-accent);
}

.anx-shell {
  display: grid;
  grid-template-columns: var(--v3-sidebar-width) minmax(0, 1fr);
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--v3-bg);
}

.anx-shell.is-collapsed {
  grid-template-columns: 72px minmax(0, 1fr);
}

.anx-sidebar {
  position: relative;
  display: flex;
  width: auto;
  height: 100dvh;
  min-height: 0;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-right: 1px solid var(--v3-line);
  border-radius: 0;
  background: var(--v3-sidebar);
  padding: 18px 14px;
  box-shadow: none;
  backdrop-filter: none;
}

.anx-shell.is-collapsed .anx-sidebar {
  width: auto;
}

.anx-sidebar-head {
  gap: 10px;
  padding: 0 4px 22px;
}

.anx-brand {
  min-width: 0;
  color: var(--v3-text);
  text-decoration: none;
}

.anx-brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(155, 140, 255, 0.36);
  border-radius: 8px;
  background: #7668df;
  color: white;
  font-size: 15px;
  font-weight: 800;
  box-shadow: none;
}

.anx-brand span:last-child {
  min-width: 0;
}

.anx-brand strong,
.anx-brand small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anx-brand strong {
  font-size: 14px;
}

.anx-brand small {
  color: var(--v3-faint);
  font-size: 11px;
}

.anx-round-button,
.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  min-width: 44px;
  place-items: center;
  border: 1px solid var(--v3-line);
  border-radius: 8px;
  background: transparent;
  color: var(--v3-muted);
  cursor: pointer;
}

.anx-sidebar-head .anx-round-button {
  width: 32px;
  height: 32px;
  min-width: 32px;
}

.anx-round-button:hover,
.icon-button:hover {
  border-color: var(--v3-line-strong);
  background: var(--v3-surface-hover);
  color: var(--v3-text);
}

.anx-nav {
  display: grid;
  gap: 4px;
}

.anx-nav-item {
  min-height: 44px;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--v3-muted);
  font-size: 13px;
  font-weight: 600;
}

.anx-nav-item svg {
  width: 19px;
  height: 19px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.anx-nav-item:hover {
  background: var(--v3-surface);
  color: var(--v3-text);
}

.anx-nav-item.active {
  border-color: rgba(155, 140, 255, 0.2);
  background: rgba(155, 140, 255, 0.11);
  color: #ddd8ff;
}

.anx-profile {
  min-height: 56px;
  gap: 10px;
  border: 1px solid var(--v3-line);
  border-radius: 6px;
  background: var(--v3-surface);
  padding: 8px;
}

.anx-profile:hover {
  background: var(--v3-surface-hover);
}

.anx-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--v3-accent);
  color: #111217;
  font-weight: 800;
}

.anx-profile strong {
  color: var(--v3-text);
  font-size: 12px;
}

.anx-profile small {
  color: var(--v3-faint);
  font-size: 10px;
}

.anx-workspace {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: 64px minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
}

.anx-topbar {
  z-index: 20;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--v3-line);
  background: rgba(11, 12, 15, 0.94);
  padding: 0 24px;
  backdrop-filter: blur(16px);
}

.anx-route-title {
  min-width: 0;
}

.anx-route-title strong,
.anx-route-title span {
  display: block;
}

.anx-route-title strong {
  color: var(--v3-text);
  font-size: 14px;
}

.anx-route-title span {
  overflow: hidden;
  color: var(--v3-faint);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anx-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  color: var(--v3-faint);
  font-size: 11px;
}

.anx-status > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--v3-teal);
  font-weight: 700;
}

.anx-status i,
.live-chip i,
.telemetry-live i,
.heartbeat-meta i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--v3-teal);
}

.anx-main {
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  scrollbar-color: #3c404a transparent;
  scrollbar-width: thin;
}

.anx-main > * {
  width: min(100%, var(--v3-content-max));
  margin-inline: auto;
}

.page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.page-intro h1 {
  margin: 4px 0 3px;
  color: var(--v3-text);
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

.page-intro > div > p:last-child {
  margin: 0;
  color: var(--v3-muted);
  font-size: 14px;
}

.eyebrow {
  margin: 0;
  color: var(--v3-faint);
  font: 700 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-chip {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(78, 214, 178, 0.22);
  border-radius: 99px;
  background: rgba(78, 214, 178, 0.07);
  padding: 6px 10px;
  color: #9ae9d4;
  font-size: 11px;
  font-weight: 700;
}

.panel,
.anx-surface {
  border: 1px solid var(--v3-line);
  border-radius: 8px;
  background: var(--v3-surface);
  box-shadow: none;
}

.button {
  min-height: 44px;
  border-radius: 6px;
  font-weight: 700;
}

.button.primary {
  border-color: transparent;
  background: #ebe9f7;
  color: #111217;
}

.button.primary:hover {
  background: white;
}

.button.secondary,
.button.ghost {
  border-color: var(--v3-line-strong);
  background: transparent;
  color: var(--v3-text);
}

/* Operations */
.telemetry-hero-grid {
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.65fr);
  gap: 12px;
}

.telemetry-hero {
  min-height: 220px;
  padding: 20px;
}

.telemetry-side-stack {
  gap: 12px;
}

.telemetry-kicker,
.telemetry-inline-stats,
.telemetry-caption {
  color: var(--v3-faint);
  font: 600 10px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.telemetry-primary {
  gap: 18px;
  margin: 24px 0 18px;
}

.telemetry-primary > strong {
  font-size: 52px;
  letter-spacing: 0;
}

.telemetry-primary span {
  font-size: 11px;
}

.stage-pressure {
  height: 7px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 99px;
  background: #24272e;
}

.bottleneck-card {
  padding: 18px;
}

.bottleneck-identity > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 7px;
  background: var(--v3-surface-hover);
}

.bottleneck-identity svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.attention-card {
  min-height: 68px;
  border-radius: 8px;
}

.telemetry-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.telemetry-card {
  border-radius: 8px;
  background: var(--v3-surface);
  padding: 12px;
}

.telemetry-card strong {
  font-size: 20px;
}

.telemetry-detail-grid,
.cockpit-lower {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 12px;
  margin-top: 12px;
}

.pipeline-rail,
.library-telemetry,
.queue-workbench,
.live-log,
.platform-card {
  padding: 18px;
}

.rail-heading h2,
.queue-toolbar h2,
.section-title h2 {
  margin: 4px 0 0;
  font-size: 18px;
  letter-spacing: 0;
}

.rail-stages {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-top: 22px;
}

.rail-stage {
  position: relative;
  min-width: 0;
  border-top: 1px solid var(--v3-line-strong);
  padding: 18px 8px 0 0;
}

.rail-stage::before {
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border: 2px solid var(--v3-surface);
  border-radius: 50%;
  background: var(--v3-faint);
  content: "";
}

.rail-stage strong,
.rail-stage span,
.rail-stage small {
  display: block;
}

.rail-stage strong {
  margin-bottom: 3px;
  font-size: 18px;
}

.rail-stage span {
  color: var(--v3-text);
  font-size: 11px;
  font-weight: 700;
}

.rail-stage small {
  margin-top: 4px;
  color: var(--v3-faint);
  font-size: 9px;
  line-height: 1.35;
}

.queue-workbench {
  margin-top: 12px;
}

.queue-toolbar,
.queue-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.queue-toolbar p:not(.eyebrow) {
  margin: 5px 0 0;
  color: var(--v3-muted);
  font-size: 12px;
}

.activity-search input {
  width: min(340px, 36vw);
  min-height: 44px;
  border: 1px solid var(--v3-line);
  border-radius: 6px;
  background: #0f1014;
  padding: 10px 13px;
  color: var(--v3-text);
}

.operations-table {
  gap: 0;
  margin-top: 18px;
  border: 1px solid var(--v3-line);
  border-radius: 7px;
  overflow: hidden;
}

.operations-table-head,
.operations-row {
  grid-template-columns: minmax(240px, 1.45fr) 0.52fr minmax(150px, 0.8fr) 0.55fr 0.45fr;
  min-height: 58px;
  gap: 14px;
  padding: 10px 14px;
}

.operations-table-head {
  min-height: 36px;
  border-bottom: 1px solid var(--v3-line);
  background: #101115;
}

.operations-row {
  border-bottom: 1px solid var(--v3-line);
  border-radius: 0;
  background: transparent;
  color: var(--v3-text);
}

.operations-row:last-child {
  border-bottom: 0;
}

.operations-row:hover {
  background: var(--v3-surface-hover);
}

.operation-identity {
  min-width: 0;
}

.operation-identity strong,
.operation-identity small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operation-identity strong {
  font-size: 13px;
}

.operation-identity small,
.operation-eta,
.operations-row time {
  color: var(--v3-faint);
  font-size: 10px;
}

.operation-progress i {
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: #2a2d35;
}

.operation-progress i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--v3-accent);
}

.operation-progress small {
  display: block;
  margin-top: 5px;
  color: var(--v3-muted);
  font-size: 10px;
}

.queue-footer {
  margin-top: 14px;
  color: var(--v3-faint);
  font-size: 11px;
}

.text-link {
  color: #c8c1ff;
  text-decoration: none;
}

/* Library */
.library-intro {
  margin-bottom: 18px;
}

.anx-library {
  min-height: 0;
  gap: 0;
}

.anx-library-search {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 8px;
  margin: 0 0 18px;
}

.anx-library-search input {
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--v3-line);
  border-radius: 6px;
  background: #0f1014;
  color: var(--v3-text);
}

.anx-promoted {
  margin-bottom: 24px;
}

.anx-section-heading,
.anx-catalog-heading {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.anx-section-heading h3,
.anx-catalog-heading h3 {
  margin: 0;
  font-size: 16px;
}

.anx-section-heading span,
.anx-catalog-heading > span {
  color: var(--v3-faint);
  font-size: 11px;
}

.anx-catalog-heading > span {
  margin-left: auto;
}

.anx-filter {
  display: inline-flex;
  gap: 2px;
  border: 1px solid var(--v3-line);
  border-radius: 7px;
  background: #0f1014;
  padding: 3px;
}

.anx-filter-chip {
  min-height: 36px;
  border: 0;
  border-radius: 5px;
  padding: 6px 13px;
}

.anx-filter-chip[aria-pressed="true"] {
  background: var(--v3-surface-hover);
  color: var(--v3-text);
}

.anx-promoted-rail {
  gap: 12px;
  padding-bottom: 8px;
  scrollbar-color: #343842 transparent;
  scrollbar-width: thin;
}

.anx-poster-card-promoted {
  width: 132px;
  min-width: 132px;
}

.anx-title-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 22px 14px;
}

.anx-poster-card {
  min-width: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 0;
  color: var(--v3-text);
  text-align: left;
  cursor: pointer;
}

.anx-poster-card:hover .anx-poster,
.anx-poster-card:focus-visible .anx-poster {
  border-color: rgba(155, 140, 255, 0.62);
  transform: translateY(-3px);
}

.anx-poster-card:disabled {
  opacity: 0.66;
}

.anx-poster {
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--v3-line);
  border-radius: 6px;
  background: var(--v3-surface);
  box-shadow: none;
  transition: border-color 150ms ease, transform 150ms ease;
}

.anx-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.anx-poster-fallback {
  display: block;
  width: 100%;
  height: 100%;
  background: #20232b;
}

.anx-poster-copy {
  display: block;
  margin-top: 8px;
}

.anx-poster-copy strong,
.anx-poster-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anx-poster-copy strong {
  font-size: 12px;
  line-height: 1.35;
}

.anx-poster-copy small,
.anx-poster-stats {
  color: var(--v3-faint);
  font-size: 10px;
}

.anx-poster-stats {
  display: flex;
  gap: 8px;
  margin-top: 3px;
}

.anx-library-more {
  min-height: 64px;
  padding-top: 18px;
}

.utility-disclosure {
  width: min(100%, var(--v3-content-max));
  margin: 28px auto 0;
  background: transparent;
}

.utility-disclosure > summary {
  min-height: 48px;
  cursor: pointer;
  padding: 12px 14px;
}

/* Fixed title inspector: this removes the old page-height expansion bug. */
html.inspector-open,
html.player-open {
  overflow: hidden;
}

.anx-library-detail[hidden] {
  display: none;
}

.anx-library-detail {
  position: fixed;
  z-index: 300;
  inset: 0;
  margin: 0;
}

.library-inspector-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.library-inspector {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: min(820px, calc(100vw - 96px));
  max-height: min(860px, calc(100dvh - 48px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--v3-line-strong);
  border-radius: 8px;
  background: #0e0f13;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
  animation: inspectorIn 180ms ease-out;
}

.library-series-inspector {
  width: min(1120px, calc(100vw - 96px));
  height: min(860px, calc(100dvh - 48px));
}

.inspector-loading {
  display: grid;
  min-height: 100%;
  place-items: center;
}

.inspector-close {
  position: sticky;
  z-index: 12;
  top: 14px;
  display: grid;
  width: 44px;
  height: 44px;
  float: right;
  margin: 14px 14px -58px 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(10, 11, 14, 0.82);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.inspector-close svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.library-series-panel {
  min-height: 100%;
}

.library-series-heading {
  min-height: 280px;
  gap: 22px;
  padding: 64px 28px 26px;
  background: linear-gradient(90deg, rgba(14, 15, 19, 0.98), rgba(14, 15, 19, 0.56)), var(--series-backdrop, none) center / cover;
}

.library-series-poster {
  width: 128px;
  border-radius: 6px;
}

.library-series-copy h2 {
  margin: 5px 0;
  font-size: 28px;
  letter-spacing: 0;
}

.library-season-tabs {
  position: sticky;
  z-index: 9;
  top: 0;
  gap: 4px;
  border-block: 1px solid var(--v3-line);
  background: rgba(14, 15, 19, 0.94);
  padding: 10px 20px;
  backdrop-filter: blur(14px);
}

.library-season-tabs button {
  min-height: 40px;
  border-radius: 5px;
}

.library-season-panel {
  padding: 22px;
}

.library-episode-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px 14px;
}

.episode-thumbnail {
  border-radius: 6px;
}

.episode-card-copy {
  margin-top: 8px;
}

.episode-card-copy strong {
  font-size: 12px;
}

.episode-card-copy span,
.episode-card-meta,
.library-episode-card > p {
  color: var(--v3-faint);
  font-size: 10px;
}

.movie-detail-hero {
  position: relative;
  display: grid;
  min-height: 440px;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: end;
  gap: 26px;
  padding: 84px 34px 32px;
  background: linear-gradient(90deg, rgba(14, 15, 19, 0.99), rgba(14, 15, 19, 0.62)), var(--detail-backdrop, none) center / cover;
}

.movie-detail-poster {
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--v3-line-strong);
  border-radius: 6px;
  background: var(--v3-surface);
}

.movie-detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-detail-copy h2 {
  max-width: 680px;
  margin: 6px 0;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: 0;
}

.movie-detail-copy > p:not(.eyebrow) {
  color: var(--v3-muted);
  font-size: 13px;
}

.track-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 15px 0;
}

.track-summary span {
  border: 1px solid var(--v3-line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 9px;
  color: var(--v3-muted);
  font-size: 11px;
}

.track-summary span.missing,
.episode-card-meta .missing {
  color: var(--v3-red);
}

.play-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-inline: 18px;
}

.play-primary svg {
  width: 20px;
  fill: currentColor;
  stroke: currentColor;
}

.asset-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-block: 1px solid var(--v3-line);
  background: var(--v3-line);
}

.asset-facts > div {
  min-width: 0;
  background: #111217;
  padding: 18px 22px;
}

.asset-facts span,
.asset-facts strong {
  display: block;
}

.asset-facts span {
  margin-bottom: 5px;
  color: var(--v3-faint);
  font-size: 10px;
  text-transform: uppercase;
}

.asset-facts strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-disclosure {
  margin: 20px;
  border: 1px solid var(--v3-line);
  border-radius: 6px;
}

.identity-disclosure summary {
  min-height: 44px;
  cursor: pointer;
  padding: 12px 14px;
  color: var(--v3-muted);
  font-size: 12px;
  font-weight: 700;
}

.identity-disclosure dl {
  display: grid;
  gap: 10px;
  margin: 0;
  border-top: 1px solid var(--v3-line);
  padding: 14px;
}

.identity-disclosure dt {
  color: var(--v3-faint);
  font-size: 10px;
}

.identity-disclosure dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-size: 11px;
}

/* Player */
.player-panel {
  inset: 0;
  border: 0;
  border-radius: 0;
  background: #08090b;
}

.player-heading {
  flex: none;
  min-height: 76px;
  align-items: center;
  border-bottom: 1px solid var(--v3-line);
  padding: 12px 20px;
}

.player-heading h2 {
  font-size: 17px;
}

.player-panel video {
  min-height: 0;
  max-height: calc(100dvh - 164px);
}

.player-controls {
  border-top: 1px solid var(--v3-line);
  background: #101115;
}

@keyframes inspectorIn {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 18px)); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

@media (max-width: 1100px) {
  :root { --v3-sidebar-width: 72px; }
  .anx-sidebar .anx-brand > span:last-child,
  .anx-sidebar .anx-nav-label,
  .anx-sidebar .anx-profile > span:last-child,
  .anx-sidebar-head .anx-round-button { display: none; }
  .anx-sidebar-head { justify-content: center; padding-inline: 0; }
  .anx-nav-item { justify-content: center; padding-inline: 0; }
  .telemetry-hero-grid,
  .telemetry-detail-grid,
  .cockpit-lower { grid-template-columns: 1fr; }
  .telemetry-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .anx-shell,
  .anx-shell.is-collapsed {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) 68px;
  }
  .anx-sidebar {
    z-index: 100;
    grid-row: 2;
    width: 100%;
    height: 68px;
    flex-direction: row;
    align-items: center;
    border-top: 1px solid var(--v3-line);
    border-right: 0;
    padding: 8px 10px;
  }
  .anx-sidebar-head,
  .anx-profile { display: none; }
  .anx-nav {
    display: flex;
    width: 100%;
    justify-content: space-around;
    gap: 2px;
  }
  .anx-nav-item {
    width: 48px;
    min-height: 48px;
  }
  .anx-workspace { grid-row: 1; grid-template-rows: 56px minmax(0, 1fr); }
  .anx-topbar { padding-inline: 14px; }
  .anx-route-title span,
  .anx-status time { display: none; }
  .anx-main { padding: 16px 14px 24px; }
  .page-intro { align-items: flex-start; }
  .page-intro h1 { font-size: 26px; }
  .page-intro .live-chip { display: none; }
  .telemetry-primary { align-items: flex-start; flex-direction: column; }
  .telemetry-primary > strong { font-size: 42px; }
  .telemetry-inline-stats { align-items: flex-start; flex-direction: column; }
  .telemetry-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
  .queue-toolbar { align-items: stretch; flex-direction: column; }
  .queue-tools { width: 100%; }
  .activity-search { flex: 1; }
  .activity-search input { width: 100%; }
  .operations-table { border: 0; overflow: visible; }
  .operations-table-head { display: none; }
  .operations-row {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 0;
    margin-bottom: 8px;
    border: 1px solid var(--v3-line);
    border-radius: 7px;
    padding: 12px;
  }
  .operation-progress { grid-column: 1 / -1; }
  .operation-eta,
  .operations-row time { display: none; }
  .anx-library-search { grid-template-columns: 1fr auto; }
  .anx-library-search .button.secondary { display: none; }
  .anx-catalog-heading { flex-wrap: wrap; }
  .anx-catalog-heading > span { width: 100%; margin-left: 0; }
  .anx-title-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; }
  .anx-poster-copy strong { font-size: 11px; }
  .anx-poster-stats { display: none; }
  .library-inspector,
  .library-series-inspector {
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    transform: none;
    border: 0;
    border-radius: 0;
    animation: none;
  }
  .library-series-heading { min-height: 250px; padding: 64px 18px 22px; }
  .library-series-poster { width: 100px; }
  .library-series-copy h2 { font-size: 22px; }
  .library-season-panel { padding: 16px; }
  .library-episode-grid { grid-template-columns: 1fr; }
  .movie-detail-hero {
    min-height: 330px;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 16px;
    padding: 70px 18px 22px;
  }
  .movie-detail-copy h2 { font-size: 24px; }
  .asset-facts { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .anx-title-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .telemetry-strip { grid-template-columns: 1fr 1fr; }
  .movie-detail-hero { grid-template-columns: 92px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
