.production-tools,
[data-print-production] {
  box-sizing: border-box;
  min-width: 0;
  color: var(--ink, #3d3129);
}
.production-tools h3,
[data-print-production] h3 { margin: 0 0 .4rem; }
.manuscript .manuscript-imprint {
  display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem;
  border-top: 3px solid; border-bottom: 1px solid; padding: .5rem 0; font: inherit;
}
.manuscript .manuscript-imprint img {
  width: auto; max-width: 5rem; height: 1.6rem; object-fit: contain;
}
.production-tools [hidden],
[data-print-production] [hidden] { display: none !important; }
.brand-workspace { display: grid; gap: 1.3rem; max-width: 52rem; }
.brand-applied,
.brand-choice,
.brand-buttons,
.print-settings {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: .75rem 1rem;
}
.brand-applied {
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line, #e5dcd6);
}
.brand-applied p,.brand-status { margin: 0; }
.brand-applied p { color: var(--muted, #685a53); }
.brand-choice label { flex: 1 1 13rem; }
.brand-form,.brand-files { display: grid; gap: 1rem; }
.brand-files { gap: .35rem; }
.brand-files .text-action { justify-self: start; }
.brand-workspace label,.print-settings label {
  display: grid;
  align-content: start;
  gap: .35rem;
  font-weight: 600;
}
.brand-workspace :is(input,select),
.retailer-cover input[type=file],
[data-print-production] select {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  font: inherit;
}
.brand-workspace :is(input[type=text],select),
[data-print-production] select {
  min-height: 2.65rem;
  padding: .5rem .65rem;
  border: 1px solid var(--line, #d9cfc9);
  border-radius: .5rem;
  background: #fff;
  color: inherit;
}
.brand-workspace input[type=file],
.retailer-cover input[type=file] { display: block; width: 100%; padding: .4rem 0; font-weight: 400; }
.brand-workspace input[type=color] {
  width: 100%; height: 2.65rem; padding: .18rem;
  border: 1px solid var(--line, #d9cfc9); border-radius: .5rem; background: #fff;
}
.brand-palette { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)) minmax(7.5rem,1.6fr); gap: .65rem; }
.brand-palette > div { position: relative; min-width: 0; }
.brand-palette > div input[type=text] { padding-inline-start: 2.6rem; width: 100%; }
.brand-palette > div input[type=color] { position: absolute; bottom: .34rem; left: .35rem; width: 1.9rem; height: 1.9rem; padding: .1rem; }
.brand-preview {
  min-height: 6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow-wrap: anywhere;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line, #e5dcd6);
  border-inline-start: .45rem solid var(--profile-primary);
  border-radius: .55rem;
  background: #fff;
}
.brand-preview img { width: 4rem; height: 4rem; flex: none; object-fit: contain; }
.brand-preview p { margin: 0 0 .15rem; font: inherit; font-size: 1.2rem; font-weight: 700; }
.brand-preview span { font-size: .95rem; }
.brand-preview::after { content: ""; align-self: stretch; width: .3rem; margin-inline-start: auto; background: var(--profile-accent); }
.brand-status:not(:empty) {
  padding: .7rem .8rem; border-inline-start: 3px solid #739078;
  background: #f1f6f1; border-radius: .25rem;
}
.brand-status[role=alert]:not(:empty) { border-color: #ad452a; background: #fff2ec; }
.brand-workspace [data-reload] { justify-self: start; }
.retailer-cover, [data-print-production] { overflow-wrap: anywhere; }
.cover-comparison { margin: .9rem 0; }
.cover-comparison summary { cursor: pointer; font-weight: 600; }
.cover-comparison > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; max-width: 30rem; }
.cover-comparison figure { margin: .7rem 0 0; }
.cover-comparison figcaption { margin-bottom: .35rem; }
.cover-comparison img { display: block; width: 100%; height: auto; border: 1px solid var(--line, #e5dcd6); }
.print-report { margin: .8rem 0; }
.print-pages { max-width: 100%; overflow-x: auto; }
.print-pages table { width: 100%; border-collapse: collapse; }
.print-pages th,.print-pages td { padding: .4rem .55rem; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line, #e5dcd6); }
@media (max-width:550px) {
  .brand-buttons .button,.brand-choice label { flex: 1 1 100%; }
  .brand-palette { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .brand-palette label:last-child { grid-column: 1/-1; }
  .brand-preview { padding: .8rem; }
}
