.catalog-discovery { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.catalog-discovery .chip { gap: 7px; color: var(--accent-ink); }
.catalog-discovery .chip svg { flex-shrink: 0; }
.discovery-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr)); gap: 12px; }
.discovery-card {
  display: grid; grid-template-columns: 57px minmax(0, 1fr); align-items: center; gap: 14px;
  padding: 13px; border: 1px solid var(--line); background: var(--surface);
}
.discovery-card:hover { background: #f5f0fc; border-color: #d5c5ef; }
.discovery-card .cover { width: 57px; }
.discovery-card h3 { font-size: 1rem; margin-bottom: 3px; overflow-wrap: anywhere; }
.discovery-card p, .discovery-card div > span, .cycle-index { color: var(--muted); font-size: .87rem; }
.discovery-card .cover-type span { color: inherit; font-size: 4.9cqw; }
.cycle-index { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 3px 0; }
.detail-cycle { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin: 0 0 12px; color: var(--muted); font-size: .875rem; }

.notice-trigger { flex-shrink: 0; position: relative; }
.notice-counter {
  position: absolute; inset: 0 -4px auto auto; min-width: 17px; min-height: 17px; padding: 0 4px;
  display: grid; place-items: center; color: #fff; background: #6040b1; font-size: .7rem;
}
.notice-counter[hidden] { display: none; }
.notice-row, .moderation-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.notice-new { border-color: #cfc0eb; background: #f9f6ff; }
.notice-row .history-info a:hover { text-decoration: underline; }

.moderation-draft { color: #535167; background: #edeaf3; }
.moderation-pending { color: #61429e; background: #ece5fa; }
.moderation-changes { color: #884131; background: #f9e6e0; }
.moderation-approved { color: #345b3e; background: #e6f0e5; }
.moderation-note { padding: 16px; margin: 0 0 18px; border: 1px solid var(--line); background: #faf7fe; }
.moderation-note h2 { margin-top: 8px; font-size: 1.12rem; }
.moderation-note p, .moderation-comment { white-space: pre-wrap; overflow-wrap: anywhere; }
.moderation-note p { margin: 8px 0; }
.manuscript-preview { max-width: 100%; }
.manuscript-meta { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 18px; align-items: start; }
.manuscript-meta p { margin: 5px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-chapters { display: grid; gap: 8px; }
.review-chapters details { min-width: 0; padding: 10px 13px; border: 1px solid var(--line); }
.review-chapters summary { padding: 4px 0; font-weight: 750; cursor: pointer; overflow-wrap: anywhere; }
.review-chapters .studio-preview { max-height: 460px; overflow: auto; overflow-wrap: anywhere; }
.moderation-form { margin-top: 17px; max-width: 100%; }
.collection-picker { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.collection-order { margin: 0; padding-left: 1.5rem; }
.collection-order li { padding: 5px; border-bottom: 1px solid var(--line); }
.collection-order li > span { overflow-wrap: anywhere; }
.collection-order li .row-actions { display: inline-flex; vertical-align: middle; }
.collection-order .icon-button { min-width: 34px; min-height: 34px; }
.cycle-fields { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.push-profile { grid-column: 1 / -1; gap: 16px; container-type: inline-size; }
.push-heading { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.push-heading .metric-icon { flex: 0 0 37px; height: 37px; }
.push-heading p { margin-top: 5px; color: var(--muted); font-size: .9rem; line-height: 1.45; overflow-wrap: anywhere; }
.push-profile [data-push-options] { margin: 0; padding: 0; min-width: 0; border: 0; display: grid; gap: 8px; }
.push-profile .push-choice { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); cursor: pointer; }
.push-choice:has(input:checked) { border-color: #d7c7ed; background: #faf7ff; }
.push-choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.push-choice:has(input:disabled) { opacity: .65; cursor: default; }
.push-choice-copy { display: grid; min-width: 0; gap: 3px; overflow-wrap: anywhere; }
.push-choice-copy strong { font-size: .94rem; }
.push-choice-copy small { color: var(--muted); font-weight: 550; font-size: .82rem; line-height: 1.4; }
.push-choice input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.push-switch { position: relative; width: 42px; height: 24px; background: #81778d; transition: background .18s; }
.push-switch::before { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; transition: transform .18s; }
.push-choice input:checked + .push-switch { background: var(--accent); }
.push-choice input:checked + .push-switch::before { transform: translateX(18px); }
.push-device { display: grid; gap: 11px; align-items: center; padding: 11px 12px; background: #f6f3fa; }
.push-device h3 { font-size: .91rem; }
.push-device p { margin-top: 2px; color: var(--muted); font-size: .83rem; line-height: 1.45; overflow-wrap: anywhere; }
.push-device .button { min-height: 44px; }

@container (min-width: 550px) {
  .push-profile [data-push-options] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .push-device { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (max-width: 680px) {
  .catalog-filters .catalog-filter:last-child { grid-column: 1 / -1; }
  .moderation-row, .notice-row { grid-template-columns: auto minmax(0, 1fr); }
  .moderation-row > :last-child, .notice-row > .badge { grid-column: 2; justify-self: start; }
  .manuscript-meta { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; }
  .collection-picker { grid-template-columns: minmax(0, 1fr); }
  .collection-picker .button { justify-self: start; }
}
