/* Submission flow refresh: align the author intake with the 1320px service shell. */

body.publishing-app[data-page="submit"] [hidden] {
  display: none !important;
}

body.publishing-app[data-page="submit"] .workspace-layout {
  width: min(1320px, calc(100% - 52px));
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
}

body.publishing-app[data-page="submit"] .form-workspace {
  border-color: color-mix(in srgb, var(--rm-purple) 18%, var(--line));
  box-shadow: 0 18px 42px color-mix(in srgb, var(--rm-purple) 10%, transparent);
}

body.publishing-app[data-page="submit"] .form-step {
  padding-inline: clamp(30px, 4vw, 58px);
}

body.publishing-app[data-page="submit"] .simple-section-head {
  margin-bottom: 24px;
}

body.publishing-app[data-page="submit"] .upload-zone {
  min-height: 230px;
  padding: clamp(30px, 5vw, 52px) 24px;
  border-width: 2px;
  border-color: color-mix(in srgb, var(--rm-purple) 42%, var(--line));
  background: color-mix(in srgb, var(--rm-purple-soft, var(--brand-soft)) 24%, var(--surface));
}

body.publishing-app[data-page="submit"] .upload-zone [data-upload-title] {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
}

body.publishing-app[data-page="submit"] .simple-process-note {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--rm-aqua, #55c7bd) 11%, var(--surface));
}

body.publishing-app[data-page="submit"] .simple-process-note > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

body.publishing-app[data-page="submit"] .simple-process-note p,
body.publishing-app[data-page="submit"] .simple-process-note small {
  display: block;
  margin: 0;
}

body.publishing-app[data-page="submit"] .simple-process-note strong {
  font-size: 0.84rem;
}

body.publishing-app[data-page="submit"] .simple-process-note small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

body.publishing-app[data-page="submit"] .reference-help {
  display: block;
  margin-top: 16px;
  padding: 0;
}

body.publishing-app[data-page="submit"] .reference-help > summary {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

body.publishing-app[data-page="submit"] .reference-help > summary::-webkit-details-marker {
  display: none;
}

body.publishing-app[data-page="submit"] .reference-help > summary span,
body.publishing-app[data-page="submit"] .reference-help > summary small {
  display: block;
}

body.publishing-app[data-page="submit"] .reference-help > summary strong {
  font-size: 0.82rem;
}

body.publishing-app[data-page="submit"] .reference-help > summary small,
body.publishing-app[data-page="submit"] .reference-help-body p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.55;
}

body.publishing-app[data-page="submit"] .reference-help > summary b {
  color: var(--brand);
  font-size: 1.15rem;
}

body.publishing-app[data-page="submit"] .reference-help[open] > summary b {
  transform: rotate(45deg);
}

body.publishing-app[data-page="submit"] .reference-help-body {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
  border-top: 1px solid var(--line);
}

body.publishing-app[data-page="submit"] .reference-help-body > p {
  margin: 14px 0 0;
}

body.publishing-app[data-page="submit"] .upload-queue-card,
body.publishing-app[data-page="submit"] .processing-policy,
body.publishing-app[data-page="submit"] .classification-board,
body.publishing-app[data-page="submit"] .classification-result,
body.publishing-app[data-page="submit"] .cover-plan {
  border: 1px solid color-mix(in srgb, var(--rm-purple) 24%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--rm-purple-soft, var(--brand-soft)) 35%, var(--surface));
}

body.publishing-app[data-page="submit"] .upload-queue-card {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 16px 18px;
}

body.publishing-app[data-page="submit"] .upload-queue-head,
body.publishing-app[data-page="submit"] .upload-queue-copy,
body.publishing-app[data-page="submit"] .processing-policy-head,
body.publishing-app[data-page="submit"] .classification-progress-meta,
body.publishing-app[data-page="submit"] .classification-result-head,
body.publishing-app[data-page="submit"] .cover-plan-head,
body.publishing-app[data-page="submit"] .cover-panel-heading,
body.publishing-app[data-page="submit"] .bookmark-list-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

body.publishing-app[data-page="submit"] .upload-queue-head > div,
body.publishing-app[data-page="submit"] .classification-result-head > div,
body.publishing-app[data-page="submit"] .cover-plan-head > div,
body.publishing-app[data-page="submit"] .cover-panel-heading {
  display: grid;
  gap: 3px;
}

body.publishing-app[data-page="submit"] .queue-eyebrow,
body.publishing-app[data-page="submit"] .classification-kicker {
  color: var(--rm-purple);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.publishing-app[data-page="submit"] .upload-queue-head strong,
body.publishing-app[data-page="submit"] .classification-result-head h3 {
  font-size: 0.92rem;
}

body.publishing-app[data-page="submit"] .queue-state {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.65rem;
  font-weight: 850;
  white-space: nowrap;
}

body.publishing-app[data-page="submit"] .upload-queue-copy {
  align-items: center;
  color: var(--muted);
  font-size: 0.71rem;
}

body.publishing-app[data-page="submit"] .upload-queue-copy strong,
body.publishing-app[data-page="submit"] .classification-progress-meta strong {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

body.publishing-app[data-page="submit"] .upload-queue-card > small,
body.publishing-app[data-page="submit"] .classification-result-head p,
body.publishing-app[data-page="submit"] .cover-plan-head p,
body.publishing-app[data-page="submit"] .cover-panel-heading span {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

body.publishing-app[data-page="submit"] .queue-loading-bar,
body.publishing-app[data-page="submit"] .classification-loading-bar {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, var(--surface-muted));
}

body.publishing-app[data-page="submit"] .queue-loading-bar span,
body.publishing-app[data-page="submit"] .classification-loading-bar span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rm-coral), var(--rm-purple), var(--rm-aqua));
  animation: submit-loading-sweep 1.25s ease-in-out infinite;
}

body.publishing-app[data-page="submit"] .upload-queue-card progress,
body.publishing-app[data-page="submit"] .classification-board progress {
  display: block;
  width: 100%;
  height: 8px;
  accent-color: var(--brand);
}

@keyframes submit-loading-sweep {
  0% { transform: translateX(-115%); }
  100% { transform: translateX(285%); }
}

body.publishing-app[data-page="submit"] .processing-policy {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  padding: 20px;
}

body.publishing-app[data-page="submit"] .processing-policy-head h3,
body.publishing-app[data-page="submit"] .cover-plan-head h3 {
  margin: 0;
  font-size: 1rem;
}

body.publishing-app[data-page="submit"] .processing-policy-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

body.publishing-app[data-page="submit"] .processing-policy-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

body.publishing-app[data-page="submit"] .processing-policy-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

body.publishing-app[data-page="submit"] .processing-policy-steps li > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 850;
}

body.publishing-app[data-page="submit"] .processing-policy-steps strong,
body.publishing-app[data-page="submit"] .processing-policy-steps small {
  display: block;
}

body.publishing-app[data-page="submit"] .processing-policy-steps strong {
  font-size: 0.75rem;
}

body.publishing-app[data-page="submit"] .processing-policy-steps small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.48;
}

body.publishing-app[data-page="submit"] .processing-policy .paid-bookmark-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 0;
  border-style: dashed;
  background: color-mix(in srgb, var(--accent-soft) 48%, var(--surface));
}

body.publishing-app[data-page="submit"] .classification-board,
body.publishing-app[data-page="submit"] .classification-result {
  margin-top: 2px;
  padding: clamp(18px, 3vw, 26px);
}

body.publishing-app[data-page="submit"] .classification-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: start;
}

body.publishing-app[data-page="submit"] .classification-status-mark,
body.publishing-app[data-page="submit"] .cover-ai-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--brand);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 850;
}

body.publishing-app[data-page="submit"] .classification-status-mark.is-processing {
  animation: submit-mark-pulse 1.1s ease-in-out infinite;
}

@keyframes submit-mark-pulse {
  50% { transform: rotate(18deg) scale(1.05); }
}

body.publishing-app[data-page="submit"] .classification-status h3,
body.publishing-app[data-page="submit"] .classification-status p {
  margin: 3px 0 0;
}

body.publishing-app[data-page="submit"] .classification-status h3 {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  letter-spacing: -0.04em;
}

body.publishing-app[data-page="submit"] .classification-status p {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

body.publishing-app[data-page="submit"] .classification-progress-meta {
  align-items: center;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.7rem;
}

body.publishing-app[data-page="submit"] .classification-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

body.publishing-app[data-page="submit"] .classification-stages li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

body.publishing-app[data-page="submit"] .classification-stages li > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 850;
}

body.publishing-app[data-page="submit"] .classification-stages li > div {
  min-width: 0;
}

body.publishing-app[data-page="submit"] .classification-stages strong,
body.publishing-app[data-page="submit"] .classification-stages small {
  display: block;
}

body.publishing-app[data-page="submit"] .classification-stages strong {
  overflow: hidden;
  font-size: 0.67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.publishing-app[data-page="submit"] .classification-stages small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.59rem;
  line-height: 1.35;
}

body.publishing-app[data-page="submit"] .classification-stages b {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
}

body.publishing-app[data-page="submit"] .classification-stages li.is-active,
body.publishing-app[data-page="submit"] .classification-stages li.is-complete {
  border-color: color-mix(in srgb, var(--brand) 38%, var(--line));
  background: color-mix(in srgb, var(--brand-soft) 52%, var(--surface));
}

body.publishing-app[data-page="submit"] .classification-stages li.is-active > span,
body.publishing-app[data-page="submit"] .classification-stages li.is-complete > span {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

body.publishing-app[data-page="submit"] .classification-stages li.is-active b {
  color: var(--brand);
}

body.publishing-app[data-page="submit"] .classification-stages li.is-complete b {
  color: var(--success);
}

body.publishing-app[data-page="submit"] .classification-boundary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

body.publishing-app[data-page="submit"] .classification-boundary > span {
  color: var(--brand);
  font-size: 1rem;
}

body.publishing-app[data-page="submit"] .classification-boundary p {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

body.publishing-app[data-page="submit"] .classification-boundary strong {
  color: var(--text);
}

body.publishing-app[data-page="submit"] .classification-result {
  margin-top: 14px;
  border-color: color-mix(in srgb, var(--success) 32%, var(--line));
  background: color-mix(in srgb, var(--success-soft) 45%, var(--surface));
}

body.publishing-app[data-page="submit"] .classification-count-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

body.publishing-app[data-page="submit"] .classification-count-grid > div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

body.publishing-app[data-page="submit"] .classification-count-grid span,
body.publishing-app[data-page="submit"] .classification-count-grid small,
body.publishing-app[data-page="submit"] .bookmark-list-head span {
  color: var(--muted);
  font-size: 0.62rem;
}

body.publishing-app[data-page="submit"] .classification-count-grid strong {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

body.publishing-app[data-page="submit"] .bookmark-list-head {
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

body.publishing-app[data-page="submit"] .bookmark-list-head > div {
  display: grid;
  gap: 3px;
}

body.publishing-app[data-page="submit"] .bookmark-list-head strong {
  font-size: 0.78rem;
}

body.publishing-app[data-page="submit"] .bookmark-result-list {
  display: grid;
  gap: 7px;
  max-height: 310px;
  margin: 10px 0 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

body.publishing-app[data-page="submit"] .bookmark-result-list li {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

body.publishing-app[data-page="submit"] .bookmark-result-list .bookmark-kind {
  padding: 4px 6px;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.6rem;
  font-weight: 850;
}

body.publishing-app[data-page="submit"] .bookmark-result-list strong {
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

body.publishing-app[data-page="submit"] .bookmark-result-list span,
body.publishing-app[data-page="submit"] .bookmark-result-list small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.publishing-app[data-page="submit"] .bookmark-result-list small {
  justify-self: end;
  color: var(--success);
  font-weight: 800;
}

body.publishing-app[data-page="submit"] .bookmark-result-list .bookmark-empty {
  display: block;
  padding: 16px;
  color: var(--muted);
  text-align: center;
  font-size: 0.7rem;
}

body.publishing-app[data-page="submit"] .json-panel {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

body.publishing-app[data-page="submit"] .json-panel summary,
body.publishing-app[data-page="submit"] .manual-asset-tools > summary {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 13px;
  cursor: pointer;
  font-size: 0.69rem;
  font-weight: 800;
  list-style: none;
}

body.publishing-app[data-page="submit"] .json-panel summary::-webkit-details-marker,
body.publishing-app[data-page="submit"] .manual-asset-tools > summary::-webkit-details-marker {
  display: none;
}

body.publishing-app[data-page="submit"] .json-panel summary span,
body.publishing-app[data-page="submit"] .manual-asset-tools > summary span {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 600;
}

body.publishing-app[data-page="submit"] .json-panel summary b,
body.publishing-app[data-page="submit"] .manual-asset-tools > summary b {
  color: var(--brand);
  font-size: 1rem;
  line-height: 1;
}

body.publishing-app[data-page="submit"] .json-panel[open] summary,
body.publishing-app[data-page="submit"] .manual-asset-tools[open] > summary {
  border-bottom: 1px solid var(--line);
  color: var(--brand);
}

body.publishing-app[data-page="submit"] .json-panel pre {
  max-height: 270px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

body.publishing-app[data-page="submit"] .manual-asset-tools {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-muted) 52%, var(--surface));
}

body.publishing-app[data-page="submit"] .manual-asset-tools-body {
  padding: 0 15px 15px;
}

body.publishing-app[data-page="submit"] .manual-asset-tools-body > p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.5;
}

body.publishing-app[data-page="submit"] .cover-plan {
  display: grid;
  gap: 16px;
  margin-top: 26px;
  padding: 20px;
}

body.publishing-app[data-page="submit"] .cover-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

body.publishing-app[data-page="submit"] .cover-mode-card {
  position: relative;
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 112px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
}

body.publishing-app[data-page="submit"] .cover-mode-card input,
body.publishing-app[data-page="submit"] .cover-template-card input {
  position: absolute;
  opacity: 0;
}

body.publishing-app[data-page="submit"] .cover-mode-card:has(input:checked),
body.publishing-app[data-page="submit"] .cover-mode-card.is-active {
  border-color: var(--brand);
  background: var(--surface-tint);
}

body.publishing-app[data-page="submit"] .cover-mode-card:has(input:focus-visible),
body.publishing-app[data-page="submit"] .cover-template-card:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

body.publishing-app[data-page="submit"] .cover-mode-card .choice-check {
  position: absolute;
  top: 11px;
  right: 11px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.65rem;
  opacity: 0;
}

body.publishing-app[data-page="submit"] .cover-mode-card:has(input:checked) .choice-check,
body.publishing-app[data-page="submit"] .cover-mode-card.is-active .choice-check {
  opacity: 1;
}

body.publishing-app[data-page="submit"] .cover-mode-badge {
  justify-self: start;
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 0.58rem;
  font-weight: 850;
}

body.publishing-app[data-page="submit"] .cover-mode-badge.is-paid {
  background: var(--accent-soft);
  color: var(--accent);
}

body.publishing-app[data-page="submit"] .cover-mode-badge.is-upload {
  background: var(--brand-soft);
  color: var(--brand);
}

body.publishing-app[data-page="submit"] .cover-mode-card strong {
  font-size: 0.76rem;
}

body.publishing-app[data-page="submit"] .cover-mode-card small {
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.4;
}

body.publishing-app[data-page="submit"] .cover-panel[hidden],
body.publishing-app[data-page="submit"] .classification-result[hidden],
body.publishing-app[data-page="submit"] .upload-queue-card[hidden],
body.publishing-app[data-page="submit"] .queue-loading-bar[hidden],
body.publishing-app[data-page="submit"] .classification-loading-bar[hidden] {
  display: none;
}

body.publishing-app[data-page="submit"] .cover-template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
}

body.publishing-app[data-page="submit"] .cover-template-card {
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

body.publishing-app[data-page="submit"] .cover-template-card.is-active,
body.publishing-app[data-page="submit"] .cover-template-card:has(input:checked) {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

body.publishing-app[data-page="submit"] .cover-template-card img {
  display: block;
  width: 78px;
  height: 108px;
  border-radius: 5px;
  object-fit: cover;
}

body.publishing-app[data-page="submit"] .cover-template-card > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body.publishing-app[data-page="submit"] .cover-template-card strong {
  font-size: 0.72rem;
}

body.publishing-app[data-page="submit"] .cover-template-card small {
  color: var(--muted);
  font-size: 0.62rem;
}

body.publishing-app[data-page="submit"] .cover-template-card > b {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.59rem;
  opacity: 0;
}

body.publishing-app[data-page="submit"] .cover-template-card.is-active > b,
body.publishing-app[data-page="submit"] .cover-template-card:has(input:checked) > b {
  opacity: 1;
}

body.publishing-app[data-page="submit"] .cover-ai-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent-soft) 38%, var(--surface));
}

body.publishing-app[data-page="submit"] .cover-ai-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  font-size: 0.95rem;
}

body.publishing-app[data-page="submit"] .cover-ai-panel strong {
  font-size: 0.78rem;
}

body.publishing-app[data-page="submit"] .cover-ai-panel p {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.45;
}

body.publishing-app[data-page="submit"] .cover-ai-panel .field {
  margin: 0;
}

body.publishing-app[data-page="submit"] .cover-ai-panel .field > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 800;
}

body.publishing-app[data-page="submit"] .cover-ai-panel .field > span small {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 600;
}

body.publishing-app[data-page="submit"] .cover-ai-panel input {
  min-height: 40px;
  font-size: 0.72rem;
}

body.publishing-app[data-page="submit"] .badge-good {
  color: #1f6d5d;
}

html[data-theme="dark"] body.publishing-app[data-page="submit"] .badge-good {
  color: #9cefe0;
}

@media (max-width: 1040px) {
  body.publishing-app[data-page="submit"] .workspace-layout {
    width: min(1320px, calc(100% - 52px));
    grid-template-columns: 1fr;
  }

  body.publishing-app[data-page="submit"] .workspace-layout .form-workspace {
    grid-row: 1;
  }

  body.publishing-app[data-page="submit"] .workspace-layout .submission-summary {
    grid-row: 2;
  }
}

@media (max-width: 900px) {
  body.publishing-app[data-page="submit"] .workspace-layout {
    display: flex;
    width: min(1320px, calc(100% - 30px));
    flex-direction: column;
    gap: 24px;
    padding-block: 24px 72px;
  }

  body.publishing-app[data-page="submit"] .workspace-layout .form-workspace,
  body.publishing-app[data-page="submit"] .workspace-layout .submission-summary {
    width: 100%;
    order: initial;
    border-radius: var(--radius);
  }

  body.publishing-app[data-page="submit"] .workspace-layout .form-workspace {
    order: 1;
  }

  body.publishing-app[data-page="submit"] .workspace-layout .submission-summary {
    order: 2;
    margin: 0;
  }

  body.publishing-app[data-page="submit"] .processing-policy-steps,
  body.publishing-app[data-page="submit"] .classification-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.publishing-app[data-page="submit"] .cover-template-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body.publishing-app[data-page="submit"] .workspace-layout {
    width: calc(100% - 30px);
    padding-block: 18px 56px;
  }

  body.publishing-app[data-page="submit"] .form-step {
    padding: 26px 18px;
  }

  body.publishing-app[data-page="submit"] .processing-policy,
  body.publishing-app[data-page="submit"] .classification-board,
  body.publishing-app[data-page="submit"] .classification-result,
  body.publishing-app[data-page="submit"] .cover-plan {
    padding: 15px;
  }

  body.publishing-app[data-page="submit"] .processing-policy-steps,
  body.publishing-app[data-page="submit"] .classification-stages,
  body.publishing-app[data-page="submit"] .cover-mode-grid {
    grid-template-columns: 1fr;
  }

  body.publishing-app[data-page="submit"] .classification-status,
  body.publishing-app[data-page="submit"] .cover-ai-panel {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body.publishing-app[data-page="submit"] .classification-status > [data-classification-state],
  body.publishing-app[data-page="submit"] .cover-ai-panel > .paid-badge {
    grid-column: 2;
    justify-self: start;
  }

  body.publishing-app[data-page="submit"] .classification-count-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.publishing-app[data-page="submit"] .bookmark-result-list li {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  body.publishing-app[data-page="submit"] .bookmark-result-list small {
    grid-column: 3;
    justify-self: start;
  }

  body.publishing-app[data-page="submit"] .cover-template-card {
    grid-template-columns: 72px minmax(0, 1fr) auto;
  }

  body.publishing-app[data-page="submit"] .cover-template-card img {
    width: 72px;
    height: 98px;
  }

  body.publishing-app[data-page="submit"] .json-panel summary span,
  body.publishing-app[data-page="submit"] .manual-asset-tools > summary span {
    display: none;
  }
}

body.publishing-app[data-page="submit"] .classification-rate-card {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface));
}

.classification-rate-card__head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.classification-rate-card h4 {
  margin: 3px 0 2px;
  color: var(--text);
  font-size: 0.78rem;
}

.classification-rate-card p {
  max-width: 54em;
  margin: 0;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.45;
}

.classification-rate-card__head > strong {
  flex: 0 0 auto;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 1.45rem;
  line-height: 1;
  white-space: nowrap;
}

.classification-rate-card__head > strong small {
  margin-left: 2px;
  font-size: 0.7rem;
}

.classification-rate-card progress {
  width: 100%;
  height: 7px;
  accent-color: var(--accent);
}

.classification-rate-card__parser {
  color: var(--muted);
  font-size: 0.59rem;
  line-height: 1.4;
}

@media (max-width: 620px) {
  body.publishing-app[data-page="submit"] .classification-rate-card {
    padding: 12px;
  }

  .classification-rate-card__head {
    gap: 8px;
  }

  .classification-rate-card__head > strong {
    font-size: 1.2rem;
  }
}
.cover-catalog-link { display: inline-flex; align-items: center; gap: .35rem; min-height: 42px; padding: .6rem .85rem; border: 1px solid var(--line, #ded8cf); border-radius: 999px; color: inherit; font-size: .85rem; font-weight: 800; text-decoration: none; }
.cover-catalog-link:hover { border-color: currentColor; }
.cover-template-grid:has(.cover-template-selected) { grid-template-columns: minmax(0, 320px); }
.cover-template-selected { width: 100%; }
.cover-catalog-help { margin: .7rem 0 0; color: var(--muted, #746e78); font-size: .8rem; line-height: 1.5; }
.cover-mode-card.is-disabled { opacity: .58; cursor: not-allowed; }
@media (max-width: 620px) { .cover-panel-heading { align-items: flex-start; flex-direction: column; } .cover-template-grid:has(.cover-template-selected) { grid-template-columns: minmax(0, 1fr); } }
