:root {
  font-family: Arial, "PingFang HK", "Noto Sans TC", sans-serif;
  color: #202626;
  background: #faf9f4;
  line-height: 1.55;
  font-size: 16px;
  --yellow: #ffb700;
  --line: #deded6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid #ed0000;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 7%;
  background: var(--yellow);
  border-bottom: 1px solid #d69900;
  gap: 20px;
}
.brand {
  color: #ed0000;
  font-size: 36px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -1.5px;
  line-height: 1;
}
.brand span {
  display: block;
  color: #202626;
  font-size: 16px;
  letter-spacing: 4px;
  margin-top: 5px;
}
.brand-name {
  font-size: 18px;
  text-align: right;
}
.eyebrow {
  font-size: 16px;
  letter-spacing: 1.5px;
  font-weight: 700;
}
.customer {
  max-width: 620px;
  padding: 46px 24px 60px;
  margin: auto;
}
.intro {
  margin-bottom: 36px;
}
h1 {
  font-size: clamp(28px, 8.1vw, 40px);
  line-height: 1.35;
  margin: 16px 0;
  letter-spacing: -1px;
}
.intro h1 span {
  display: block;
}
.intro-tagline {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 26px;
}
h2 {
  font-size: 22px;
  line-height: 1.4;
  margin: 0;
}
p {
  margin: 14px 0;
}
small,
.english {
  font-size: 16px;
  color: #5d635f;
}
section {
  margin-bottom: 30px;
}
form section {
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.step > span {
  font-size: 16px;
  font-weight: 700;
  border: 1px solid #202626;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.step small {
  display: block;
  letter-spacing: 1px;
  font-weight: 400;
  margin-top: 3px;
}
.upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1.5px dashed #83897e;
  background: #fff;
  padding: 30px 20px;
  align-items: center;
  text-align: center;
  cursor: pointer;
}
.upload strong {
  font-size: 20px;
}
.upload input {
  width: 100%;
  margin-top: 10px;
}
.upload input::file-selector-button {
  border: 0;
  background: #eeeee6;
  padding: 10px;
  border-radius: 3px;
  cursor: pointer;
}
.thumbnails {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.thumbnails img {
  width: 84px;
  height: 100px;
  object-fit: cover;
  border-radius: 3px;
}
.stars {
  border: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  margin: 22px 0;
}
.stars label {
  display: grid;
  grid-template-columns: 21px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}
.stars input {
  width: 21px;
  height: 21px;
  margin: 0;
  accent-color: #202626;
}
.stars span[aria-hidden] {
  font-size: 26px;
  line-height: 1;
  letter-spacing: 1px;
  color: #92968b;
}
.stars label:has(input:checked) {
  background: #fff7d7;
  border-color: #b98200;
}
.stars label:has(input:checked) span[aria-hidden] {
  color: #ac6800;
}
.stars label:has(input:focus-visible) {
  outline: 3px solid #ed0000;
  outline-offset: 3px;
}
.reward {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 16px;
  border: 1px solid var(--line);
  margin: 12px 0;
  background: #fff;
  border-radius: 5px;
  cursor: pointer;
}
.reward:has(input:checked) {
  border: 2px solid #202626;
  background: #fff7dc;
  padding: 19px 15px;
}
.reward > span {
  flex: 1;
  min-width: 0;
}
.reward strong {
  display: block;
  font-size: 19px;
  margin-bottom: 8px;
}
.reward > span > span {
  display: block;
  color: #5d635f;
  font-size: 16px;
}
.reward .option-label {
  color: #202626;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.reward .reward-description {
  color: #202626;
}
.reward .english {
  margin-top: 6px;
}
.reward b {
  font-size: 16px;
}
.reward-benefit {
  display: block;
  margin: 20px 0 10px;
}
.reward-terms [role="listitem"] {
  display: block;
  padding-left: 16px;
  position: relative;
  margin: 6px 0;
}
.reward-terms [role="listitem"]::before {
  content: "•";
  position: absolute;
  left: 0;
}
.reward input,
input[type="checkbox"] {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  accent-color: #202626;
}
.reward:has(input:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
}
label[for="store"] {
  display: block;
  margin: 20px 0 8px;
}
select,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="datetime-local"],
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #92988c;
  border-radius: 3px;
  padding: 10px 12px;
  background: white;
  color: #202626;
}
.permission label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.permission p {
  padding-left: 37px;
  color: #5d635f;
}
.primary,
.secondary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
  width: 100%;
  padding: 14px 20px;
  border: 0;
  border-radius: 3px;
  background: #202626;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.primary {
  background: var(--yellow);
  color: #202626;
}
#submit {
  text-align: left;
}
#submit span[lang="en"] {
  display: block;
  margin-top: 4px;
}
.footnote {
  text-align: center;
  color: #5d635f;
}
.receipt {
  border-top: 5px solid var(--yellow);
  background: white;
  padding: 26px;
}
.receipt h2 {
  margin-top: 15px;
}
.receipt img {
  display: block;
  max-width: 100%;
  width: 280px;
  margin: 20px auto;
}
.code {
  display: block;
  overflow-wrap: anywhere;
  padding: 16px;
  background: #fff7dc;
  border: 1px dashed #ac6800;
  font-size: 21px;
  font-weight: 700;
}
.receipt .secondary {
  margin-top: 25px;
}
#message:not(:empty) {
  padding: 15px;
  border-left: 3px solid var(--yellow);
  background: white;
  overflow-wrap: anywhere;
}
footer {
  padding: 28px;
  text-align: center;
  color: #5d635f;
  border-top: 1px solid var(--line);
}
.preview {
  padding: 10px 90px 10px 16px;
  background: #202626;
  color: white;
  font-size: 16px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.admin {
  max-width: 1250px;
  margin: auto;
  padding: 35px 24px;
}
.admin h1 {
  font-size: 32px;
}
.admin nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.admin button:not(.primary) {
  min-height: 44px;
  padding: 10px 16px;
  background: white;
  border: 1px solid #92988c;
  border-radius: 4px;
}
.admin .panel {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.admin .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.admin label {
  display: block;
  margin: 12px 0;
}
.admin .check-result {
  background: #fff7dc;
  padding: 18px;
  margin: 18px 0;
  overflow-wrap: anywhere;
}
.admin details {
  margin: 20px 0;
}
.admin summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 700;
}
.scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 16px;
}
th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  color: #5d635f;
  font-weight: 600;
}
td code {
  overflow-wrap: anywhere;
}
.status {
  display: inline-block;
  padding: 3px 8px;
  background: #f0efe8;
  border-radius: 3px;
  white-space: nowrap;
}
.admin .photos {
  display: flex;
  gap: 6px;
}
.admin .photos img {
  width: 60px;
  height: 70px;
  object-fit: cover;
}
.empty {
  padding: 25px;
  color: #5d635f;
}
.admin .stock-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
  flex-wrap: wrap;
}
.stock-row input {
  width: 110px;
}
.stock-row span {
  flex: 1;
  min-width: 180px;
}
@media (max-width: 620px) {
  header {
    padding: 18px 22px;
  }
  header > .eyebrow {
    display: none;
  }
  header:has(.brand-name) {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .customer {
    padding: 32px 20px 40px;
  }
  .reward {
    gap: 10px;
  }
  .reward b {
    font-size: 16px;
  }
  .reward strong {
    font-size: 18px;
  }
  .admin {
    padding: 25px 16px;
  }
  .admin .grid {
    grid-template-columns: 1fr;
  }
  .admin .panel {
    padding: 16px;
  }
}
@media print {
  [data-annotation-ui],
  .preview,
  button {
    display: none !important;
  }
  body {
    background: white;
  }
  main.customer {
    max-width: 600px;
    padding: 20px;
  }
  section {
    break-inside: avoid;
  }
  .intro {
    margin-bottom: 20px;
  }
  h1 {
    font-size: 28px;
  }
  header {
    padding: 15px;
  }
  form section {
    padding-top: 16px;
    margin-bottom: 18px;
  }
  form section[data-section="reward"] {
    break-inside: auto;
  }
  .reward {
    break-inside: avoid;
  }
  .step {
    break-after: avoid;
  }
  #submit {
    display: flex !important;
  }
  footer {
    padding: 6px 20px;
  }
  .footnote {
    margin-bottom: 0;
  }
  .staff-simple button {
    display: inline-flex !important;
  }
  .staff-simple .photo-enlarge {
    display: block !important;
  }
  .review-card {
    break-inside: avoid;
  }
}

.upload {
  position: relative;
}
.upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.upload:has(input:focus-visible) {
  outline: 3px solid #ed0000;
}
.intro {
  margin-bottom: 28px;
}
.customer {
  padding-top: 32px;
}
.reward {
  padding: 16px 14px;
}
.reward:has(input:checked) {
  padding: 15px 13px;
}
.permission p {
  margin-bottom: 0;
}

.brand img {
  display: block;
  width: 88px;
  height: 80px;
  object-fit: contain;
}
header {
  padding-top: 10px;
  padding-bottom: 10px;
}

.photo-dialog {
  max-width: min(90vw, 900px);
  max-height: 90vh;
  border: 0;
  padding: 18px;
  border-radius: 6px;
}
.photo-dialog::backdrop {
  background: #000a;
}
.photo-dialog img, .photo-dialog video {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  margin-top: 14px;
}
.photo-dialog button {
  padding: 10px 16px;
}
.pdp-preview {
  max-width: 1100px;
  margin: auto;
  padding: 36px 20px;
}
.placement-card {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  background: #f4f2eb;
}
.price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.demo-price {
  font-size: 28px;
}
.details-position {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.related-position {
  border-style: dashed;
}
/* Staff workspace: scoped so customer and PDP layouts remain independent. */
.staff-workspace {
  background: #f6f3e7;
  --staff-muted: #62665e;
  --staff-border: #dddcd2;
}
.staff-workspace ::selection {
  background: #ffe29a;
  color: #202626;
}
.staff-workspace input,
.staff-workspace textarea {
  caret-color: #775500;
}
.staff-brandbar {
  justify-content: flex-start;
  background: #fff;
  border-top: 4px solid var(--yellow);
  border-bottom: 1px solid var(--staff-border);
  padding: 12px max(24px, calc((100vw - 1112px) / 2));
  gap: 16px;
}
.staff-brandbar .brand img {
  width: 48px;
  height: 48px;
}
.staff-brand-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.staff-brand-title span {
  color: var(--staff-muted);
}
.staff-workspace .preview {
  padding-right: 132px;
}
.staff-workspace .staff-simple {
  max-width: 1160px;
  padding: 28px 24px 60px;
}
.staff-workspace .staff-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}
.staff-workspace .staff-heading h1 {
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0;
}
.staff-workspace .staff-heading p {
  margin: 6px 0 0;
  color: var(--staff-muted);
}
.staff-workspace .text-link {
  color: #384137;
  font-weight: 600;
}
.staff-workspace .staff-tabs {
  margin: 0 0 28px;
  padding: 0;
  gap: 6px;
  border-bottom: 1px solid #c8cabf;
  align-items: stretch;
}
.staff-workspace button {
  transition:
    background-color 0.15s,
    border-color 0.15s;
}
.staff-workspace button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.staff-workspace button[aria-busy="true"] {
  cursor: progress;
}
.staff-workspace button:not(:disabled):hover {
  background-color: #f0eee4;
}
.staff-workspace button.primary:not(:disabled):hover {
  background-color: #eaa800;
}
.staff-workspace
  :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid #785800;
  outline-offset: 3px;
}
.staff-workspace .staff-tabs button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  border: 0;
  border-radius: 6px 6px 0 0;
  background: transparent;
  border-bottom: 3px solid transparent;
  padding: 14px 20px;
  min-width: 180px;
  color: #52594f;
  text-align: left;
}
.staff-workspace .staff-tabs button[aria-pressed="true"] {
  color: #202626;
  background: #fff;
  border-color: #b78100;
  font-weight: 700;
}
.staff-workspace svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.staff-workspace .nav-english {
  display: block;
  font-weight: 400;
  color: var(--staff-muted);
}
.staff-workspace .nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  padding: 1px 6px;
  border-radius: 4px;
  background: #f6e6bb;
  font-variant-numeric: tabular-nums;
}
.staff-workspace #setup-tab {
  border: 0;
  background: transparent;
  color: #52594f;
  margin-left: auto;
  min-width: 0;
  font-weight: 400;
  align-self: stretch;
}
.staff-workspace .staff-tools {
  display: flex;
  align-items: center;
  gap: 20px;
}
.staff-workspace .staff-tools a {
  text-underline-offset: 4px;
}
.staff-workspace #setup-tab[aria-pressed="true"] {
  background: #fff;
  color: #202626;
}
.staff-workspace .review-intro {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
}
.staff-workspace .review-intro h2 {
  font-size: 21px;
}
.staff-workspace .review-intro p {
  margin: 5px 0 0;
  color: var(--staff-muted);
  max-width: 65ch;
}
.staff-workspace #refresh {
  display: flex;
  align-items: center;
  gap: 8px;
  border-color: var(--staff-border);
  flex: none;
}
.staff-workspace .review-filters {
  margin: 0;
  gap: 4px;
  border-bottom: 1px solid var(--staff-border);
}
.staff-workspace .review-filters button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 12px 16px;
  color: #5d6357;
}
.staff-workspace .review-filters button[aria-pressed="true"] {
  background: transparent;
  color: #202626;
  border-color: #202626;
  font-weight: 700;
}
.staff-workspace .review-filters span {
  margin-left: 8px;
  font-variant-numeric: tabular-nums;
}
.staff-workspace .moderation-note {
  margin: 8px 0 16px;
  color: #62665e;
}
.staff-workspace .moderation-note summary {
  font-weight: 400;
  padding: 10px 0;
}
.staff-workspace .moderation-note p {
  max-width: 65ch;
}
.staff-workspace .review-cards {
  display: grid;
  gap: 24px;
}
.staff-workspace .review-cards[aria-busy="true"] {
  opacity: 0.6;
  pointer-events: none;
}
.staff-workspace .review-loading {
  background: #fff;
  padding: 80px 24px;
  text-align: center;
}
.staff-workspace .review-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  padding: 0;
  overflow: hidden;
  border-color: var(--staff-border);
  border-radius: 6px;
  background: #fff;
}
.staff-workspace .review-card:focus {
  outline-offset: 4px;
}
.staff-workspace .review-media {
  padding: 24px;
  background: #eeede5;
  min-width: 0;
}
.staff-workspace .review-photo-grid {
  margin: 0;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.staff-workspace .review-photo-grid[data-count="1"] {
  grid-template-columns: minmax(0, 1fr);
}
.staff-workspace .staff-simple button.photo-enlarge {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.staff-workspace .photo-enlarge img, .staff-workspace .photo-enlarge video {
  width: 100%;
  height: 200px;
  aspect-ratio: auto;
  object-fit: contain;
  background: #e2e1d8;
  border-radius: 0;
}
.staff-workspace .review-photo-grid[data-count="1"] .photo-enlarge img, .staff-workspace .review-photo-grid[data-count="1"] .photo-enlarge video {
  height: 285px;
}
.staff-workspace .enlarge-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 4px 9px;
  border-radius: 3px;
  background: #fff;
  color: #202626;
  font-size: 16px;
}
.staff-workspace .review-photo label {
  display: flex;
  min-height: 44px;
  gap: 8px;
  margin: 8px 0 0;
  cursor: pointer;
  font-weight: 400;
  flex-wrap: wrap;
}
.staff-workspace .review-photo label span:last-child {
  margin-left: auto;
  color: var(--staff-muted);
}
.staff-workspace .review-photo input {
  width: 20px;
  height: 20px;
  accent-color: #202626;
  margin: 0;
  flex: none;
}
.staff-workspace .media-note {
  margin: 8px 0 0;
  color: var(--staff-muted);
}
.staff-workspace .review-decision {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.staff-workspace .review-card-heading {
  display: block;
}
.staff-workspace .review-card-heading h3 {
  font-size: 21px;
  margin: 0 0 6px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.staff-workspace .review-date {
  margin: 0;
  color: var(--staff-muted);
}
.staff-workspace .review-rating {
  margin: 16px 0;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #715400;
}
.staff-workspace .permission-ok {
  margin: 0;
  color: #28603f;
}
.staff-workspace .permission-private {
  margin: 0;
  border-radius: 4px;
}
.staff-workspace .review-reward {
  margin: 14px 0 22px;
  color: var(--staff-muted);
}
.staff-workspace .review-actions {
  display: block;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--staff-border);
}
.staff-workspace .selection-count {
  margin: 0 0 10px;
  color: var(--staff-muted);
}
.staff-workspace .review-actions .primary {
  width: 100%;
  justify-content: center;
  min-height: 52px;
}
.staff-workspace .review-actions details {
  margin: 2px 0 0;
}
.staff-workspace .review-actions summary {
  text-align: center;
  padding: 12px 0;
  color: #51594d;
  font-weight: 400;
}
.staff-workspace .review-actions select {
  width: 100%;
}
.staff-workspace .review-actions details button {
  width: 100%;
}
.staff-workspace .review-decision > .text-link {
  margin-top: 16px;
}
.staff-workspace .empty-review {
  padding: 60px 24px;
  border: 1px solid var(--staff-border);
  border-radius: 6px;
  background: #fff;
}
.staff-workspace .empty-review h2 {
  font-size: 21px;
}
.staff-workspace #feedback {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #edf4ec;
  border: 1px solid #bad1b9;
  padding: 12px 16px;
  margin: 0 0 20px;
  border-radius: 4px;
}
.staff-workspace #feedback[data-kind="error"] {
  background: #fff0eb;
  border-color: #e4b9ab;
}
.staff-workspace #feedback[data-kind="info"] {
  background: #fff7df;
  border-color: #dfce9c;
}
.staff-workspace #message {
  padding: 0;
  border: 0;
  background: transparent;
  margin: 0;
  flex: 1;
}
.staff-workspace #dismiss-message {
  padding: 8px;
  border: 0;
  background: transparent;
  flex: none;
}
.staff-workspace .customer-search {
  margin: 28px 0 12px;
}
.staff-workspace .customer-search label {
  margin-bottom: 10px;
  font-weight: 700;
}
.staff-workspace .search-controls {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.staff-workspace .search-controls input {
  flex: 1;
  min-width: 0;
  margin: 0;
  background: white;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid #8c9082;
  border-radius: 4px;
  font: inherit;
  color: var(--ink);
}
.staff-workspace .search-controls button {
  width: auto;
  margin: 0;
  flex: none;
}
.staff-workspace .customer-search p {
  margin: 10px 0 0;
  color: var(--staff-muted);
}
.staff-workspace .search-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 18px 0;
}
.staff-workspace .search-examples > span {
  color: var(--staff-muted);
  margin-right: 6px;
}
.staff-workspace .search-examples button {
  padding: 9px 14px;
  background: transparent;
}
.staff-workspace .search-summary {
  min-height: 24px;
  margin: 28px 0 16px;
  color: var(--staff-muted);
}
.staff-workspace .search-summary[data-error] {
  color: #923e26;
}
.staff-workspace .customer-empty {
  padding: 50px 24px;
  border-top: 1px solid var(--staff-border);
  text-align: center;
}
.staff-workspace .customer-empty h3 {
  font-size: 22px;
  margin: 0 0 10px;
}
.staff-workspace .customer-empty p {
  color: var(--staff-muted);
  max-width: 64ch;
  margin: auto;
}
.staff-workspace .customer-record {
  background: white;
  border: 1px solid var(--staff-border);
  border-radius: 6px;
  margin: 0 0 24px;
  overflow: hidden;
  break-inside: avoid;
}
.staff-workspace .customer-record-heading {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--staff-border);
}
.staff-workspace .customer-record-heading h3 {
  font-size: 20px;
  margin: 0 0 5px;
  overflow-wrap: anywhere;
}
.staff-workspace .customer-record-heading p {
  margin: 0;
  color: var(--staff-muted);
  overflow-wrap: anywhere;
}
.staff-workspace .customer-order {
  text-align: right;
}
.staff-workspace .customer-order strong {
  display: block;
  margin-bottom: 5px;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.staff-workspace .customer-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 28px;
  gap: 24px;
}
.staff-workspace .customer-stages li {
  min-width: 0;
  border-top: 2px solid #d7d9ce;
  padding-top: 16px;
}
.staff-workspace .customer-stages li[data-state="done"] {
  border-top-color: #506c40;
}
.staff-workspace .customer-stages li[data-state="attention"] {
  border-top-color: #923e26;
}
.staff-workspace .customer-stages h4 {
  font-size: 18px;
  margin: 0;
}
.staff-workspace .customer-stages span {
  color: var(--staff-muted);
}
.staff-workspace .customer-stages strong {
  display: block;
  margin: 18px 0 8px;
}
.staff-workspace .customer-stages [data-state="done"] strong {
  color: #405933;
}
.staff-workspace .customer-stages [data-state="attention"] strong {
  color: #923e26;
}
.staff-workspace .customer-stages p {
  margin: 0;
  color: var(--staff-muted);
  font-variant-numeric: tabular-nums;
}
.staff-workspace .customer-reward-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px 28px;
  border-top: 1px solid var(--staff-border);
  background: #fafaf6;
}
.staff-workspace .customer-reward-line span {
  color: var(--staff-muted);
}
.staff-workspace .customer-code-details {
  margin: 0;
  padding: 0 28px 12px;
  border-top: 1px solid var(--staff-border);
}
.staff-workspace .customer-code-details code {
  display: block;
  overflow-wrap: anywhere;
  user-select: all;
}
.staff-workspace .customer-code-details p {
  color: var(--staff-muted);
  margin: 8px 0;
}
.staff-workspace .status-data-note {
  margin-top: 28px;
  color: var(--staff-muted);
}
.staff-workspace .status-data-note summary {
  font-weight: 400;
}
.staff-workspace .status-data-note p {
  max-width: 75ch;
}
.staff-workspace #setup-screen > details {
  background: #fff;
  border: 1px solid var(--staff-border);
  border-radius: 6px;
  margin: 12px 0;
  padding: 4px 20px;
}
.staff-workspace #setup-screen .panel {
  border: 0;
  padding: 16px 0;
}
.staff-workspace #setup-screen summary {
  min-height: 48px;
}
.staff-workspace #setup-screen .review-intro {
  display: block;
}
.staff-workspace .stock-row {
  padding: 18px 0;
}
@media (max-width: 720px) {
  .staff-brandbar {
    padding: 12px 18px;
  }
  .staff-workspace .staff-simple {
    padding: 22px 16px 40px;
  }
  .staff-workspace .staff-heading {
    display: block;
    margin-bottom: 20px;
  }
  .staff-workspace .staff-heading > a {
    display: inline-block;
    max-width: none;
    margin-top: 12px;
  }
  .staff-workspace .staff-heading h1 {
    font-size: 26px;
  }
  .staff-workspace .staff-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 22px;
  }
  .staff-workspace .staff-tabs button {
    min-width: 0;
    gap: 8px;
    padding: 12px;
  }
  .staff-workspace .staff-tools {
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
  }
  .staff-workspace .staff-tools a {
    font-size: 16px;
  }
  .staff-workspace #setup-tab {
    margin-left: auto;
    min-height: 44px;
    padding: 8px 4px;
  }
  .staff-workspace .review-intro {
    align-items: flex-start;
  }
  .staff-workspace #refresh {
    padding: 10px;
  }
  .staff-workspace #refresh span {
    display: none;
  }
  .staff-workspace .review-filters {
    flex-wrap: nowrap;
    gap: 0;
    justify-content: space-between;
  }
  .staff-workspace .review-filters button {
    padding: 10px 5px;
  }
  .staff-workspace .review-filters span {
    margin-left: 4px;
  }
  .staff-workspace .review-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .staff-workspace .review-media {
    padding: 18px;
  }
  .staff-workspace .review-photo-grid[data-count="1"] .photo-enlarge img, .staff-workspace .review-photo-grid[data-count="1"] .photo-enlarge video {
    height: 230px;
  }
  .staff-workspace .photo-enlarge img, .staff-workspace .photo-enlarge video {
    height: 175px;
  }
  .staff-workspace .review-decision {
    padding: 20px;
  }
  .staff-workspace .review-rating {
    margin: 12px 0;
  }
  .staff-workspace .search-controls {
    flex-wrap: wrap;
  }
  .staff-workspace .search-controls input {
    flex-basis: 100%;
  }
  .staff-workspace .search-controls .primary {
    flex: 1;
  }
  .staff-workspace .search-examples {
    gap: 8px;
  }
  .staff-workspace .search-examples > span {
    flex-basis: 100%;
  }
  .staff-workspace .customer-record-heading {
    display: block;
    padding: 20px;
  }
  .staff-workspace .customer-record-heading h3 {
    font-size: 18px;
  }
  .staff-workspace .customer-order {
    text-align: left;
    margin-top: 16px;
  }
  .staff-workspace .customer-stages {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 20px;
    gap: 0;
  }
  .staff-workspace .customer-stages li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 2px 16px;
    padding: 20px 0;
    border-top-width: 1px;
  }
  .staff-workspace .customer-stages li:first-child {
    border-top: 0;
  }
  .staff-workspace .customer-stages h4 {
    grid-column: 1;
    font-size: 17px;
  }
  .staff-workspace .customer-stages span {
    grid-column: 1;
  }
  .staff-workspace .customer-stages strong {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }
  .staff-workspace .customer-stages p {
    grid-column: 2;
    grid-row: 2;
  }
  .staff-workspace .customer-reward-line {
    padding: 18px 20px;
  }
  .staff-workspace .customer-code-details {
    padding: 0 20px 12px;
  }
  .staff-workspace #feedback {
    flex-wrap: wrap;
    padding: 12px;
  }
  .staff-workspace #feedback #message {
    flex-basis: 80%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .staff-workspace button {
    transition: none;
  }
}
@media print {
  .staff-workspace .staff-tabs,
  .staff-workspace .review-filters,
  .staff-workspace .moderation-note,
  .staff-workspace .pagination,
  .staff-workspace #refresh,
  .staff-workspace #feedback {
    display: none !important;
  }
  .staff-workspace .staff-simple {
    padding: 16px 0;
  }
  .staff-workspace .staff-brandbar {
    border-top: 4px solid var(--yellow);
    padding: 8px 0;
  }
  .staff-workspace .staff-heading {
    margin-bottom: 16px;
  }
  .staff-workspace .review-card {
    grid-template-columns: 1fr 1fr;
  }
  .staff-workspace .review-decision,
  .staff-workspace .review-media {
    padding: 16px;
  }
  .staff-workspace .photo-enlarge img, .staff-workspace .photo-enlarge video {
    max-height: 230px;
  }
}

/* The purchased-item picker and review editors share the existing customer palette. */
.ordered-items { margin-top:16px; border-top:1px solid var(--line); }
.ordered-item { display:flex; align-items:center; gap:14px; padding:18px 0; border-bottom:1px solid var(--line); cursor:pointer; }
.ordered-item input { width:22px; height:22px; accent-color:#121212; flex-shrink:0; }
.ordered-item img { width:76px; height:92px; object-fit:contain; background:#fff; flex-shrink:0; }
.ordered-item>span { min-width:0; overflow-wrap:anywhere; }
.ordered-item strong, .ordered-item .english { display:block; }
.ordered-item .english { margin-top:6px; }
.select-all { background:transparent; color:#121212; border:0; padding:12px 0; text-decoration:underline; text-underline-offset:4px; min-height:44px; }
.item-review { margin:26px 0; padding:0 0 28px; border:0; border-bottom:1px solid var(--line); min-width:0; }
.item-review>legend { font-size:20px; font-weight:700; padding:0 0 18px; overflow-wrap:anywhere; }
.item-review .upload { padding:22px 14px; }
.item-review .upload strong { font-size:17px; }
.item-stars { border:0; padding:0; margin:24px 0; display:flex; gap:8px; min-width:0; }
.item-stars legend { margin-bottom:12px; font-weight:700; }
.item-stars label { position:relative; flex:1; min-width:0; cursor:pointer; }
.item-stars input { position:absolute; width:1px; height:1px; opacity:0; }
.item-stars span { display:block; min-height:48px; padding:12px 0; text-align:center; border:1px solid #83897e; background:#fff; border-radius:4px; font-weight:700; }
.item-stars input:checked+span { background:var(--yellow); border-color:#121212; }
.item-stars input:focus-visible+span { outline:3px solid #ed0000; outline-offset:3px; }
.comment-label { display:block; font-weight:700; }
.comment-label textarea { display:block; width:100%; margin-top:10px; padding:12px; border:1px solid #83897e; border-radius:4px; resize:vertical; background:white; color:#202626; }
.comment-label textarea:focus-visible { outline:3px solid #ed0000; outline-offset:3px; }
.comment-label textarea::placeholder { color:#5d635f; }
@media(max-width:400px) { .ordered-item { gap:10px; } .ordered-item img { width:62px; height:80px; } .item-stars { gap:6px; } }

@media print { .item-review, .ordered-item, .item-stars, .comment-label { break-inside:avoid; } }

.review-photo video { display: block; width: 100%; height: 240px; object-fit: contain; background: #171717; }
