.review-body {
  background: var(--bg);
}

.compact-head { padding: 10px 16px 0; }
.compact-head .primary-nav { margin: 0 0 8px; }

.review-page { max-width: 880px; padding-top: 4px; padding-bottom: 48px; }

.queue { display: grid; gap: 10px; }

.queue-card {
  display: block;
  background: var(--paper);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
}

.queue-card:hover { box-shadow: 0 8px 20px rgba(29, 25, 22, 0.08); }

.queue-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.po-num { font-size: 18px; letter-spacing: -0.03em; }
.queue-company { margin: 4px 0 0; font-weight: 650; }
.queue-meta, .queue-styles { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--field);
  color: var(--muted);
}

.status-submitted { background: #f3e3c4; color: #7a4e12; }
.status-in_review { background: #e4eef8; color: #21507a; }
.status-sent_to_mockup { background: var(--ok-soft); color: var(--ok); }

.po-sheet {
  background: #fffdf8;
  border-radius: 8px;
  box-shadow: var(--shadow), 0 0 0 1px #eadfcf;
  padding: 18px 22px 12px;
}

.po-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 14px;
}

.po-kicker {
  margin: 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-deep);
}

.po-top h1 {
  margin: 2px 0 4px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.po-meta { margin: 0; color: var(--muted); font-size: 13px; }

.po-dates {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  min-width: 160px;
}

.po-dates .in-hands span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.po-dates .in-hands strong {
  display: block;
  margin-top: 2px;
  font-size: 26px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.po-dates .submitted {
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 12px;
  font-weight: 500;
}

.alert-strip {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8efe0;
  box-shadow: inset 0 0 0 1px #e4c48a;
}

.alert-strip-title {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #7a4e12;
}

.alert-strip ul,
.flag-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.alert-strip li,
.flag-list li {
  color: #7a4e12;
  font-size: 13px;
  font-weight: 650;
  padding: 2px 0;
}

.flag-list {
  margin-top: 10px;
}

.flag-list.compact { margin-top: 4px; }

.po-section { padding: 12px 0; border-top: 1px solid var(--line); }
.po-section:first-of-type { border-top: 0; padding-top: 0; }

.section-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.section-bar.tight { margin-bottom: 2px; }

.section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-approve {
  font: inherit;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-approve[aria-pressed="true"],
.is-approved > .section-bar .btn-approve {
  background: var(--ok-soft);
  border-color: var(--ok);
  color: var(--ok);
}

.po-section.is-approved,
.style-card.is-approved {
  box-shadow: inset 3px 0 0 var(--ok);
  padding-left: 10px;
}

.styles-total {
  margin: 4px 0 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.client-po {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 700;
}

.style-card {
  margin-top: 16px;
  padding: 12px 0 4px;
}

.style-facts {
  display: grid;
  gap: 10px;
  margin: 8px 0 16px;
}

.style-facts > div { min-width: 0; }

.style-facts dt {
  margin: 0 0 2px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.style-facts dd {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.25;
}

.color-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(29, 25, 22, 0.18);
  flex: 0 0 22px;
}

.garment-type {
  background: #ece4d6;
  font-weight: 700;
}

.style-files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.file-card { min-width: 0; }

.file-role {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.file-role select {
  width: 100%;
}

.deco-headline {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.pantone-board {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin: 16px 0 0;
}

.pantone-chip {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pantone-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ece4d6;
  box-shadow: inset 0 0 0 1px rgba(29, 25, 22, 0.16);
  flex: 0 0 36px;
}

.pantone-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 14px;
  border: 1px solid #d8ccb8;
  border-radius: 999px;
  background: #f3eee6;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.po-section h2 {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.po-section h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.client-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.client-name {
  margin: 0;
  font-family: inherit;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.3;
}

.client-email, .ship-note, .style-desc, .file-inline, .missing-art {
  margin: 2px 0 0;
  font-family: inherit;
  font-style: normal;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.client-block, .ship-block { min-width: 0; }

.ship-note { grid-column: 1 / -1; }

.art-row { margin-top: 8px; }

.style-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 10px;
}

.art-thumb {
  display: flex;
  flex-direction: column;
  min-height: 236px;
  text-decoration: none;
  color: inherit;
  background: #f3eee6;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}

.art-thumb img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #fff;
}

.art-thumb span,
.art-thumb em,
.art-thumb strong {
  display: block;
  padding: 6px 8px 0;
  font-size: 11px;
  line-height: 1.3;
}

.art-thumb span {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.art-thumb em {
  padding-bottom: 8px;
  font-style: normal;
  color: #7a4e12;
  font-weight: 650;
}

.art-thumb-file {
  justify-content: center;
  text-align: center;
}

.art-thumb-file strong {
  font-size: 22px;
  letter-spacing: 0.04em;
  padding-top: 36px;
}

.docs-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.style-qty {
  margin: 4px 0 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.preview-empty,
.style-preview .file-chip {
  min-height: 168px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f3eee6;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--soft);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
  padding: 12px;
}

.preview-empty {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 650;
}

.size-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 0;
}

.size-chips span,
.size-chips label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3eee6;
  font-size: 13px;
}

.size-chips .qty-input {
  width: 48px;
  padding: 2px 4px;
  text-align: center;
}

.art-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.art-lines li {
  display: grid;
  gap: 2px;
  padding: 14px 0;
  font-size: 14px;
  border-top: 1px solid var(--line);
}

.art-lines li:first-child { border-top: 0; padding-top: 0; }

.section-edit {
  margin-top: 8px;
  padding: 10px;
  border-radius: 10px;
  background: #f7f1e8;
}

.edit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.edit-grid label { margin: 0; }
.edit-grid .wide { grid-column: 1 / -1; }

.edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.service-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.check {
  display: flex;
  gap: 6px;
  font-weight: 500;
  margin: 0 0 4px;
}

.review-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.btn-secondary, .btn-ghost-link {
  font: inherit;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.po-sheet input[type="text"],
.po-sheet input[type="email"],
.po-sheet input[type="number"],
.po-sheet input[type="date"],
.po-sheet select,
.po-sheet textarea {
  padding: 8px 10px;
}

@media (max-width: 720px) {
  .po-top, .client-view, .edit-grid, .service-cols { grid-template-columns: 1fr; display: grid; }
  .deco-headline { font-size: 22px; }
  .pantone-name { font-size: 18px; }
  .po-dates { align-items: flex-start; text-align: left; min-width: 0; }
  .review-actions { flex-direction: column; align-items: stretch; }
}
