.operations-body {
  --bg: oklch(97.4% 0.004 95);
  --surface: oklch(99.6% 0.002 95);
  --surface-soft: oklch(98.8% 0.003 95);
  --text: oklch(20% 0.008 80);
  --muted: oklch(52% 0.012 80);
  --line: oklch(89% 0.008 90);
  --line-strong: oklch(80% 0.01 90);
  --accent: oklch(84% 0.17 96);
  --accent-dark: oklch(31% 0.07 90);
  --focus-ring: oklch(65% 0.14 95 / 0.42);
  --operations-sidebar: 72px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0;
}

.operations-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--operations-sidebar) minmax(0, 1fr);
}

.operations-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--operations-sidebar);
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.operations-brand {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  margin: 14px 0 22px;
  border-radius: 8px;
  background: var(--text);
  color: var(--surface);
  font-family: "Aptos Display", "PingFang SC", sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.operations-brand:hover { color: var(--surface); }
.operations-rail__nav { display: grid; gap: 8px; }

.operations-rail__link {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
}

.operations-rail__link:hover {
  border-color: var(--line);
  background: oklch(94% 0.006 90);
  color: var(--text);
}

.operations-rail__link.is-active {
  border-color: var(--line-strong);
  background: oklch(90% 0.008 90);
}

.operations-rail__link::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  z-index: 60;
  padding: 5px 8px;
  border-radius: 4px;
  background: var(--text);
  color: var(--surface);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 140ms;
}

.operations-rail__link:hover::after,
.operations-rail__link:focus-visible::after { opacity: 1; }

.operations-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.operations-account {
  position: relative;
  margin: auto 0 14px;
}

.operations-account summary {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  cursor: pointer;
  list-style: none;
}

.operations-account summary::-webkit-details-marker { display: none; }
.operations-account summary:hover { background: oklch(94% 0.006 90); }

.operations-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: oklch(30% 0.01 80);
  color: var(--surface);
  font-size: 12px;
}

.operations-account__menu {
  position: absolute;
  left: calc(100% + 10px);
  bottom: 0;
  z-index: 70;
  width: 220px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 10px 28px oklch(20% 0.008 80 / 0.12);
}

.operations-account__menu strong,
.operations-account__branch { display: block; }
.operations-account__branch { margin-top: 2px; color: var(--muted); font-size: 12px; }

.operations-branch-switcher { margin-top: 10px; }
.operations-branch-switcher label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.operations-branch-switcher select { width: 100%; min-height: 40px; border: 1px solid var(--line); background: var(--surface); }
.operations-account__menu form.button_to { margin-top: 10px; }
.operations-account__logout { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 5px; background: transparent; cursor: pointer; }
.operations-account__logout:hover { background: oklch(94% 0.006 90); }

.operations-workspace {
  grid-column: 2;
  min-width: 0;
}

.operations-workspace--tasks {
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-rows: 64px 50px minmax(0, 1fr);
  overflow: hidden;
}

.operations-workspace--tasks > #operations-dashboard { display: contents; }
.operations-workspace--tasks > turbo-cable-stream-source { display: none; }

.operations-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: oklch(97.4% 0.004 95 / 0.96);
}

.operations-topbar__title {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.operations-topbar h1 {
  margin: 0;
  font-family: "Aptos Display", "PingFang SC", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}

.operations-topbar__title span,
.operations-topbar__status { color: var(--muted); font-size: 12px; }
.operations-topbar__status {
  min-width: 0;
  max-width: 60%;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.operations-topbar__branch {
  min-width: 0;
  max-width: 22rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.operations-topbar__sync { flex: 0 0 auto; }
.operations-topbar__sync::before { content: "·"; margin-right: 8px; }
.operations-status-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--line-strong); }
.operations-status-dot.is-connected { background: oklch(46% 0.11 150); }

.operations-task-tabs {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.task-tab {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--text);
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
}

.task-tab:hover { border-color: var(--line); background: oklch(95% 0.006 90); color: var(--text); }
.task-tab.is-active { border-color: oklch(75% 0.14 96); background: var(--accent); }
.task-tab__count { min-width: 4ch; margin-left: 5px; text-align: right; font-variant-numeric: tabular-nums; }

.operations-content {
  min-width: 0;
  min-height: calc(100vh - 64px);
  padding: 22px 24px 40px;
}

.operations-task-tabs + .operations-content { min-height: calc(100vh - 114px); }

.operations-workspace--tasks > .operations-topbar,
.operations-workspace--tasks > .operations-task-tabs,
.operations-workspace--tasks > #operations-dashboard > .operations-topbar,
.operations-workspace--tasks > #operations-dashboard > .operations-task-tabs { position: relative; inset: auto; }

.operations-workspace--tasks > .operations-content,
.operations-workspace--tasks > #operations-dashboard > .operations-content {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.mobile-only { display: none; }

.mobile-overview {
  min-height: 100vh;
  padding: 18px 16px 30px;
}

.mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mobile-logo .operations-brand,
.mobile-logo .brand {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  margin: 0;
  min-width: 0;
  display: grid;
  place-items: center;
  gap: 0;
  border-radius: 8px;
  background: var(--text);
  color: var(--surface);
  font-family: "Aptos Display", "PingFang SC", sans-serif;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.mobile-logo h1 { font-size: 18px; }

.mobile-logo .date {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.readonly {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 4px;
  background: oklch(92% 0.008 90);
  color: var(--muted);
  font-size: 12px;
}

.mobile-shipping-search {
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}

.mobile-shipping-search__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.mobile-shipping-search__heading h2 {
  margin: 0;
  font-family: "Aptos Display", "PingFang SC", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.mobile-shipping-search__count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.mobile-shipping-search__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 8px;
}

.mobile-shipping-search__form input[type="search"] {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.mobile-shipping-search__form input[type="search"]:focus {
  border-color: var(--text);
  outline: 2px solid transparent;
}

.mobile-shipping-search__submit,
.mobile-shipping-result__link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--text);
  border-radius: 5px;
  background: var(--text);
  color: var(--surface);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.mobile-shipping-search__submit { cursor: pointer; }
.mobile-shipping-results { margin: 14px 0 0; padding: 0; list-style: none; }
.mobile-shipping-result { padding: 14px 0; border-top: 1px solid var(--line); }
.mobile-shipping-result__title { display: block; line-height: 1.5; overflow-wrap: anywhere; }
.mobile-shipping-result__facts { display: grid; gap: 5px; margin: 10px 0; }
.mobile-shipping-result__facts div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; }
.mobile-shipping-result__facts dt { color: var(--muted); font-size: 12px; }
.mobile-shipping-result__facts dd { min-width: 0; margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.mobile-shipping-result__link { width: 100%; }
.mobile-shipping-result__missing,
.mobile-shipping-search__empty { display: block; margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }

.today {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.today h2 {
  margin: 0;
  font-family: "Aptos Display", "PingFang SC", sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}

.today p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.today[data-status-tone="warning"] h2,
.today[data-status-tone="sync-error"] h2 { color: var(--bad-text); }

.mobile-queue-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 16px 0 20px;
  border-bottom: 1px solid var(--line);
}

.mobile-queue-summary__item {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 10px 8px;
  border-left: 2px solid var(--line-strong);
}

.mobile-queue-summary__label {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.mobile-queue-summary__count {
  min-width: 0;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.mobile-queue-summary__item[data-queue-key="errors"] .mobile-queue-summary__count { color: var(--bad-text); }

.mobile-exception-summary {
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--line);
}

.mobile-exception-summary__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.mobile-exception-summary__header > div,
.mobile-exception-summary__record { min-width: 0; }

.mobile-exception-summary h2 {
  margin: 0;
  font-family: "Aptos Display", "PingFang SC", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.mobile-exception-summary[data-exception-state="present"] h2 { color: var(--bad-text); }
.mobile-exception-summary__time { flex: 0 0 auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; line-height: 1.5; white-space: nowrap; }
.mobile-exception-summary__record { display: grid; gap: 3px; margin-top: 12px; padding: 12px; border-left: 3px solid var(--bad-text); background: var(--bad-bg); }
.mobile-exception-summary__title { overflow-wrap: anywhere; word-break: break-word; }
.mobile-exception-summary__step { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.mobile-exception-summary__message { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; word-break: break-word; }
.mobile-exception-summary__code { margin-right: 6px; color: var(--bad-text); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.mobile-exception-summary__guide { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }

.recent-changes { padding-top: 20px; }
.recent-changes__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 8px; }
.recent-changes__header h2 { margin: 0; font-family: "Aptos Display", "PingFang SC", sans-serif; font-size: 20px; font-weight: 600; line-height: 1.4; }
.recent-changes__count { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.recent-changes__list { margin: 0; padding: 0; list-style: none; }
.recent-change { display: grid; grid-template-columns: 6px minmax(0, 1fr); gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.recent-change > * { min-width: 0; }
.recent-change__marker { width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: var(--muted); }
.recent-change[data-recent-change-kind="published"] .recent-change__marker { background: oklch(52% 0.12 150); }
.recent-change[data-recent-change-kind="delisted"] .recent-change__marker { background: oklch(62% 0.13 75); }
.recent-change[data-recent-change-kind="exception"] .recent-change__marker { background: var(--bad-text); }
.recent-change__body { min-width: 0; }
.recent-change__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0; }
.recent-change__kind { color: var(--muted); font-size: 12px; font-weight: 600; }
.recent-change__time { flex: 0 0 auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; line-height: 1.5; white-space: nowrap; }
.recent-change__title { display: block; margin-top: 3px; font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; word-break: break-word; }
.recent-change__detail { margin: 2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.recent-changes__empty { margin: 0; padding: 18px 0; color: var(--muted); font-size: 13px; }

.unpublish-page {
  max-width: 1120px;
  margin: -22px auto 0;
  padding: 22px 24px 40px;
}

.unpublish-page__intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.unpublish-page__intro h2 {
  margin: 0;
  font-family: "Aptos Display", "PingFang SC", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.unpublish-page__intro p { margin: 3px 0 0; color: var(--muted); }
.unpublish-page__remaining { flex: 0 0 auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.unpublish-page__controls { display: flex; align-items: center; gap: 12px; }
.unpublish-page__remaining span { font-variant-numeric: tabular-nums; }

.unpublish-list { border-top: 1px solid var(--line); background: var(--surface); }
.unpublish-row { display: grid; grid-template-columns: 54px minmax(190px, 1.15fr) minmax(160px, 0.8fr) minmax(190px, 1fr) auto; gap: 14px; align-items: center; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.unpublish-row > * { min-width: 0; }
.unpublish-row__thumb { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 5px; background: var(--text); color: var(--surface); font-family: "Aptos Display", "PingFang SC", sans-serif; font-size: 22px; font-weight: 600; }
.unpublish-row__product strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; line-height: 1.45; }
.unpublish-row__account, .unpublish-row__offer-id { color: var(--muted); font-family: var(--font-mono); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.unpublish-row__offer-id { margin-top: 2px; }
.unpublish-row__reason { color: var(--bad-text); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.unpublish-row__reason small, .unpublish-row__signal small { display: block; color: var(--muted); font-size: 12px; }
.unpublish-row__signal { color: var(--text); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.unpublish-row__action { justify-self: end; white-space: nowrap; }
.unpublish-row.is-completed { opacity: 0.52; }
.unpublish-row__action:disabled { cursor: not-allowed; opacity: 0.55; }
.unpublish-row__action:disabled:hover { background: var(--danger-fill); color: var(--surface); }
.unpublish-empty { margin: 0; padding: 42px 20px; border-bottom: 1px solid var(--line); color: var(--muted); text-align: center; }

@media (max-width: 1100px) {
  .unpublish-row { grid-template-columns: 54px minmax(190px, 1fr) minmax(160px, 0.8fr) auto; }
  .unpublish-row__signal { grid-column: 2 / 4; }
  .unpublish-row__action { grid-column: 4; grid-row: 1 / span 2; align-self: center; }
}

@media (max-width: 640px) {
  .unpublish-page__intro { align-items: flex-start; flex-direction: column; }
  .unpublish-page__remaining { white-space: normal; }
}

.publish-review-layout {
  height: calc(100% + 62px);
  min-height: 0;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  margin: -22px -24px -40px;
  overflow: hidden;
}

.publish-queue {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  border-right: 1px solid var(--line);
  background: var(--surface-soft);
  overflow: hidden;
}

.publish-queue__header {
  min-height: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
}

.publish-queue__heading { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.publish-queue__header strong { font-size: 13px; font-weight: 600; }
.publish-queue__count { color: var(--muted); font-size: 12px; }
.publish-queue__controls { width: 100%; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.publish-queue__batch { min-height: 30px; padding-inline: 8px; font-size: 11px; white-space: nowrap; }
.publish-queue-filter { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.publish-queue-filter label { flex: 0 0 auto; margin: 0; font-size: 12px; }
.publish-queue-filter select { flex: 1; min-width: 0; width: auto; min-height: 32px; padding-block: 4px; font-size: 12px; }

.publish-queue__order {
  display: inline-flex;
  min-width: 0;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.publish-queue__order a {
  position: relative;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
  white-space: nowrap;
}

.publish-queue__order a:hover { color: var(--text); }
.publish-queue__order a.is-active { background: oklch(91% 0.008 90); color: var(--text); font-weight: 600; }

.publish-queue__order a[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  top: calc(100% + 2px);
  z-index: 60;
  width: max-content;
  max-width: 250px;
  padding: 5px 8px;
  border-radius: 4px;
  background: var(--text);
  color: var(--surface);
  font-size: 12px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms;
  white-space: normal;
}

.publish-queue__order a[data-tooltip]:hover::after,
.publish-queue__order a[data-tooltip]:focus-visible::after { opacity: 1; }

.publish-queue__list {
  min-height: 0;
  display: block;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.publish-queue__page { display: block; }
.publish-queue__loading {
  min-height: 52px;
  display: grid;
  place-items: center;
  padding: 12px 14px;
}

.publish-queue__spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: publish-queue-spin 700ms linear infinite;
}

@keyframes publish-queue-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .publish-queue__spinner { animation: none; }
}

.publish-queue__item {
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 11px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.publish-queue__item:hover { background: var(--surface); color: inherit; }
.publish-queue__item.is-selected { background: var(--surface); box-shadow: inset 3px 0 0 var(--text); }

.publish-queue__thumb {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--text);
  color: var(--surface);
  font-family: "Aptos Display", "PingFang SC", sans-serif;
  font-size: 22px;
  font-weight: 600;
}

.publish-queue__thumb-image { width: 100%; height: 100%; display: block; object-fit: cover; }

.publish-queue__copy { min-width: 0; }
.publish-queue__game {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.publish-queue__tier { color: var(--muted); font-size: 11px; font-weight: 400; }
.publish-queue__title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 550; line-height: 1.45; }
.publish-queue__meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; color: var(--muted); font-size: 12px; }
.publish-queue__profit { color: oklch(46% 0.11 150); font-variant-numeric: tabular-nums; }

.publish-detail {
  min-width: 0;
  min-height: 0;
  display: block;
  padding-bottom: 104px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.publish-detail__inner { max-width: 1120px; margin: 0 auto; padding: 22px 24px 30px; }
.publish-detail__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.publish-detail__heading > div { min-width: 0; }
.publish-detail__eyebrow { color: var(--muted); font-size: 12px; letter-spacing: 0; }
.publish-detail__title { max-width: 760px; margin: 4px 0 0; font-family: "Aptos Display", "PingFang SC", sans-serif; font-size: 20px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.publish-detail__upstream { flex: none; white-space: nowrap; }
.publish-detail__grid { display: grid; grid-template-columns: minmax(360px, 1.25fr) minmax(280px, 0.75fr); gap: 22px; align-items: start; }
.product-gallery { min-width: 0; }
.product-gallery__main { position: relative; width: 100%; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--text); cursor: zoom-in; }
.product-gallery__main:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.product-gallery__main-image { width: 100%; height: 100%; display: block; object-fit: cover; }
.product-gallery__count { position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 4px 8px; border-radius: 4px; background: oklch(18% 0.01 80 / 0.88); color: var(--surface); font-size: 12px; }
.product-gallery__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.product-gallery__thumb { min-width: 0; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 5px; background: var(--surface); cursor: pointer; }
.product-gallery__thumb:hover { border-color: var(--line-strong); }
.product-gallery__thumb.is-active { border-color: var(--text); }
.product-gallery__thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.image-skeleton {
  position: relative;
  background-color: var(--surface-soft);
}
.has-image-loading .image-skeleton::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(100deg, var(--surface-soft) 20%, var(--surface) 42%, var(--surface-soft) 64%);
  background-size: 200% 100%;
  animation: image-skeleton-shimmer 1.15s ease-in-out infinite;
  opacity: 1;
  pointer-events: none;
  transition: opacity 160ms ease;
}
.has-image-loading .image-skeleton > img { opacity: 0; transition: opacity 160ms ease; }
.has-image-loading .image-skeleton.is-loaded::before { animation: none; opacity: 0; }
.has-image-loading .image-skeleton.is-loaded > img { opacity: 1; }
@keyframes image-skeleton-shimmer {
  from { background-position: 180% 0; }
  to { background-position: -180% 0; }
}
.product-gallery__lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 24px; border: 0; background: transparent; overflow: hidden; }
.product-gallery__lightbox[open] { display: grid; place-items: center; }
.product-gallery__lightbox::backdrop { background: oklch(10% 0.005 80 / 0.92); }
.product-gallery__lightbox-image { max-width: 100%; max-height: calc(100dvh - 48px); display: block; object-fit: contain; }
.product-gallery__lightbox-close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; padding: 0; border: 1px solid oklch(100% 0 0 / 0.45); border-radius: 50%; background: oklch(10% 0.005 80 / 0.72); color: white; cursor: pointer; font-size: 28px; line-height: 1; }
.product-gallery__lightbox-close:hover, .product-gallery__lightbox-close:focus-visible { border-color: white; background: oklch(10% 0.005 80 / 0.92); outline: none; }
.product-gallery__state { aspect-ratio: 16 / 9; display: grid; place-items: center; align-content: center; gap: 4px; padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--text); color: var(--surface); text-align: center; }
.product-gallery__state-mark { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 18px; line-height: 1; }
.product-gallery__state h2 { max-width: 90%; margin: 0; font-family: "Aptos Display", "PingFang SC", sans-serif; font-size: 20px; overflow-wrap: anywhere; }
.product-gallery__state p { max-width: 36ch; margin: 0; color: oklch(88% 0.01 90); font-size: 12px; overflow-wrap: anywhere; }
.product-gallery--missing .product-gallery__state-mark { color: oklch(84% 0.17 96); }
.product-gallery--unavailable .product-gallery__state-mark { color: oklch(70% 0.16 25); }

@media (prefers-reduced-motion: reduce) {
  .has-image-loading .image-skeleton::before { animation: none; transition: none; }
  .has-image-loading .image-skeleton > img { transition: none; }
}
.product-info-panel { min-width: 0; border-top: 1px solid var(--line); }
.product-info-panel__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
.product-info-panel__header h3 { margin: 2px 0 0; font-size: 16px; font-weight: 600; }
.product-info-panel__eyebrow { color: var(--muted); font-size: 11px; }
.product-info-panel__status { flex: 0 0 auto; max-width: 46%; color: var(--muted); font-size: 11px; line-height: 1.4; text-align: right; overflow-wrap: anywhere; }
.product-info-panel__status--ready { color: oklch(46% 0.11 150); }
.product-info-panel__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.product-info-panel__metric { min-width: 0; }
.product-info-panel__metric span { display: block; color: var(--muted); font-size: 12px; }
.product-info-panel__metric strong { display: block; margin-top: 3px; overflow-wrap: anywhere; font-size: 17px; font-variant-numeric: tabular-nums; line-height: 1.35; }
.product-info-panel__metric--profit strong { color: oklch(46% 0.11 150); font-size: 22px; }
.product-info-panel__description { padding: 14px 0; border-bottom: 1px solid var(--line); }
.product-info-panel__description h3 { margin: 0; font-size: 13px; font-weight: 600; }
.product-info-panel__description p { max-height: 7rem; margin: 7px 0 0; overflow: auto; color: oklch(33% 0.01 80); font-size: 12px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.product-info-panel__placeholder { color: var(--muted) !important; }
.product-info-panel__account { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.product-info-panel__account span { color: var(--muted); }
.product-info-panel__account strong { overflow-wrap: anywhere; text-align: right; }
.product-info-panel__facts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; margin: 6px 0 0; }
.product-info-panel__facts dl > div { min-width: 0; padding: 3px 0; }
.product-info-panel__facts dt { color: var(--muted); font-size: 11px; }
.product-info-panel__facts dd { min-width: 0; margin: 1px 0 0; overflow-wrap: anywhere; font-size: 12px; line-height: 1.35; }
.product-info-panel__trace { border-bottom: 1px solid var(--line); }
.product-info-panel__trace > summary { display: flex; min-height: 44px; align-items: center; justify-content: space-between; cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 550; list-style: none; }
.product-info-panel__trace > summary::-webkit-details-marker { display: none; }
.product-info-panel__trace > summary::after { content: "+"; color: var(--text); font-size: 17px; font-weight: 400; }
.product-info-panel__trace[open] > summary::after { content: "\2212"; }
.product-info-panel__trace > dl { display: grid; gap: 7px; margin: 0; padding: 0 0 13px; }
.product-info-panel__trace > dl > div { min-width: 0; }
.product-info-panel__trace dt { color: var(--muted); font-size: 11px; }
.product-info-panel__trace dd { min-width: 0; margin: 1px 0 0; overflow-wrap: anywhere; font-size: 12px; line-height: 1.4; }
.publish-gallery-update { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.publish-gallery-update form { display: grid; grid-template-columns: auto minmax(240px, 1fr) auto; align-items: center; gap: 10px; }
.publish-gallery-update label { color: var(--muted); font-size: 12px; font-weight: 600; }
.publish-gallery-update input[type="url"] { min-width: 0; height: 38px; }
.publish-actionbar { position: fixed; z-index: 12; left: calc(var(--operations-sidebar) + 320px); right: 0; bottom: 0; min-height: 88px; display: grid; grid-template-columns: minmax(440px, 1fr) auto; align-items: center; gap: 18px; padding: 10px 24px; border-top: 1px solid var(--line); background: oklch(99.6% 0.002 95 / 0.98); box-shadow: 0 -8px 22px oklch(20% 0.008 80 / 0.05); }
.publish-actionbar__submission { min-width: 0; display: flex; align-items: center; gap: 16px; }
.publish-actionbar__submission-copy { flex: 0 0 auto; display: grid; gap: 2px; }
.publish-actionbar__submission-copy strong { font-size: 12px; }
.publish-actionbar__submission-copy span { color: var(--muted); font-size: 11px; }
.publish-actionbar__submission-fields { min-width: 0; flex: 1; display: flex; gap: 8px; }
.publish-actionbar__submission-fields input[type="text"] { min-width: 0; width: 100%; height: 38px; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface); }
.publish-actionbar__actions { display: flex; flex: 0 0 auto; gap: 8px; }
.publish-actionbar button:disabled { cursor: not-allowed; opacity: 0.5; }
.offer-detail-panel__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.offer-detail-panel__metrics > div { min-width: 0; padding: 16px 18px; border-right: 1px solid var(--line); }
.offer-detail-panel__metrics > div:first-child { padding-left: 0; }
.offer-detail-panel__metrics > div:last-child { border-right: 0; }
.offer-detail-panel__metrics span, .offer-detail-panel__body span { display: block; color: var(--muted); font-size: 12px; }
.offer-detail-panel__metrics strong { display: block; margin-top: 4px; overflow-wrap: anywhere; font-size: 18px; }
.offer-detail-panel__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 18px 0; }
.offer-detail-panel__body > div { min-width: 0; }
.offer-detail-panel__body strong { display: block; margin-top: 5px; overflow-wrap: anywhere; font-size: 13px; }
.offer-detail-panel__actions { min-height: 72px; grid-template-columns: minmax(0, 1fr) auto; }
.return-prompt-backdrop { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: oklch(20% 0.008 80 / 0.34); }
.return-prompt-backdrop[hidden] { display: none; }
.return-prompt-modal { width: min(520px, 100%); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 10px 28px oklch(20% 0.008 80 / 0.12); }
.return-prompt-modal__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.return-prompt-modal__header h3 { margin: 0; font-size: 16px; }
.return-prompt-modal__item { margin-top: 2px; color: var(--muted); font-size: 11px; }
.return-prompt-modal__close { width: 44px; height: 44px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font-size: 24px; line-height: 1; }
.return-prompt-modal__close:hover { border-color: var(--line); background: oklch(94% 0.006 90); color: var(--text); }
.return-prompt-modal__body { padding: 18px; }
.return-prompt-modal__scope { display: flex; gap: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); color: oklch(38% 0.01 80); font-size: 13px; line-height: 1.55; }
.return-prompt-modal__label { display: block; margin: 16px 0 7px; font-weight: 600; }
.return-prompt-modal textarea { min-height: 132px; padding: 11px 12px; border-color: oklch(78% 0.01 90); line-height: 1.7; }
.return-prompt-modal__count { margin-top: 5px; color: var(--muted); font-size: 12px; text-align: right; }
.return-prompt-modal__actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); }
.return-prompt-modal__actions .button:disabled { cursor: not-allowed; opacity: 0.5; }
.publish-empty { max-width: 680px; margin: 8vh auto 0; padding: 42px 20px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); text-align: center; }
.publish-empty h2 { margin: 4px 0 8px; font-family: "Aptos Display", "PingFang SC", sans-serif; font-size: 20px; }
.publish-empty p:not(.eyebrow) { margin: 0 0 18px; color: var(--muted); }

@media (max-width: 1120px) {
  .publish-detail__grid { grid-template-columns: 1fr; }
  .product-info-panel { order: -1; }
  .publish-detail { padding-bottom: 150px; }
  .publish-actionbar { grid-template-columns: 1fr; gap: 8px; }
  .publish-actionbar__actions { justify-content: flex-end; }
}

@media (max-width: 960px) {
  .publish-review-layout { grid-template-columns: 286px minmax(0, 1fr); }
  .publish-detail__grid { grid-template-columns: 1fr; }
  .publish-detail__heading { margin-bottom: 10px; }
  .publish-detail__metrics { max-width: 520px; }
  .product-info-panel__facts dl { grid-template-columns: 1fr 1fr; }
  .publish-actionbar { left: calc(var(--operations-sidebar) + 286px); }
}

@media (max-width: 820px) {
  .operations-shell { display: none !important; }
  .mobile-only { display: block; }
  .operations-body { background: var(--surface); }
  .operations-shell { grid-template-columns: minmax(0, 1fr); padding-top: 64px; }
  .operations-rail { inset: 0 0 auto 0; width: auto; height: 64px; flex-direction: row; padding: 0 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .operations-brand { margin: 0 14px 0 0; }
  .operations-rail__nav { display: flex; gap: 4px; }
  .operations-rail__link::after { left: 50%; top: calc(100% + 8px); transform: translateX(-50%); }
  .operations-account { margin: 0 0 0 auto; }
  .operations-account__menu { left: auto; right: 0; bottom: auto; top: calc(100% + 8px); }
  .operations-workspace { grid-column: 1; }
  .operations-workspace--tasks { height: auto; display: block; overflow: visible; }
  .operations-topbar { position: static; padding: 0 16px; }
  .operations-content { padding: 18px 16px 32px; }
  .operations-workspace--tasks > .operations-content,
  .operations-workspace--tasks > #operations-dashboard > .operations-content { overflow: visible; }
  .publish-review-layout { height: auto; grid-template-columns: 1fr; margin: -18px -16px -32px; overflow: visible; }
  .publish-queue { display: block; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .publish-queue__list { overflow: visible; }
  .publish-detail { padding-bottom: 0; overflow: visible; }
  .publish-actionbar { position: sticky; left: auto; min-height: 64px; margin: 32px -16px -32px; padding: 12px 16px; }
  .publish-actionbar__submission { align-items: flex-start; flex-direction: column; gap: 8px; }
  .publish-actionbar__submission-fields { width: 100%; }
  .publish-actionbar__actions { flex-wrap: wrap; justify-content: flex-end; }
}

@media (max-width: 520px) {
  .publish-detail__heading { flex-direction: column; }
  .publish-gallery-update form { grid-template-columns: 1fr; }
  .publish-actionbar__submission-fields { flex-direction: column; }
  .publish-actionbar__submission-fields .button { width: 100%; }
  .publish-actionbar__actions { display: grid; grid-template-columns: 1fr; }
  .publish-actionbar__actions .button,
  .publish-actionbar__actions form,
  .publish-actionbar__actions form .button { width: 100%; }
}

@media (max-width: 520px) {
  .operations-topbar__title span,
  .operations-topbar__status span:last-child { display: none; }
  .operations-task-tabs { padding: 0 10px; }
  .task-tab { flex: 1; justify-content: center; padding-inline: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .operations-rail__link::after { transition-duration: 0.01ms; }
}
