@font-face {
  font-family: DM;
  src: url("/fonts/dm-sans.woff2");
}
@font-face {
  font-family: Cormorant;
  src: url("/fonts/cormorant-garamond.woff2");
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  color: #342d27;
  background: #f5f1e8;
  font-family: DM, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.48;
}
button,
.button {
  padding: 11px 18px;
  border: 1px solid #c8bda8;
  border-radius: 9px;
  background: #fffdf6;
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
}
button:hover:not(:disabled),
.button:hover {
  border-color: #7f6232;
  background: #eee6d6;
}
.primary {
  background: #443629;
  color: #fffaf1;
  border-color: #443629;
}
.primary:hover:not(:disabled) {
  background: #655038;
}
.text-button {
  border: 0;
  background: transparent;
  padding: 7px;
  color: #654f32;
}
.masthead {
  min-height: 98px;
  padding: 14px 16px;
  border-bottom: 1px solid #ddd4c4;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background: #faf7f0;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  letter-spacing: 0.16em;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.brand-emblem {
  width: 52px;
  height: 46px;
  object-fit: contain;
  flex: none;
}
.wordmark small {
  display: block;
  letter-spacing: 0.02em;
  font-size: 11px;
  font-weight: 400;
  margin-top: 4px;
  color: #7a7064;
}
.account-tools {
  grid-column: 3;
  justify-self: end;
}
.account-tools button {
  font-size: 13px;
  white-space: nowrap;
}
.ui-icon {
  width: 19px;
  height: 19px;
  flex: none;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #957b43;
  outline-offset: 3px;
}
main {
  max-width: 1250px;
  margin: 0 auto;
  padding: 36px 5vw 80px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #837157;
  font-weight: 600;
  margin: 0 0 10px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: Cormorant, Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
}
h1 {
  font-size: 52px;
  margin-bottom: 12px;
}
h2 {
  font-size: 32px;
  margin-bottom: 14px;
}
h3 {
  font-size: 25px;
  margin-bottom: 10px;
}
.muted,
small {
  color: #776c5d;
}
.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 9.6px;
}
.hero h1 {
  font-weight: 700;
  font-size: 26px;
  margin: 0;
}
.badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border-radius: 20px;
  background: #e9e2d3;
  white-space: nowrap;
}
.steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 1000px;
  justify-self: center;
}
.steps button {
  min-height: 54px;
  background: #f0eadd;
  border-color: transparent;
  border-radius: 9px;
  padding: 10px 8px;
  gap: 8px;
  color: #75674f;
  font-size: 14px;
}
.steps button[aria-current="step"] {
  color: #352a20;
  background: #e8ddc5;
  box-shadow: inset 0 3px #957b43;
}
.step-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.steps i {
  flex: none;
  font-style: normal;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
}
@media (max-width: 1400px) {
  .masthead {
    gap: 16px;
  }
  .steps button {
    flex-direction: column;
    font-size: 12px;
  }
}
@media (max-width: 1400px) {
  .masthead {
    grid-template-columns: 1fr auto;
  }
  .account-tools {
    grid-column: 2;
  }
  .steps {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
.panel {
  background: #fffdf8;
  border: 1px solid #e0d7c7;
  border-radius: 16px;
  padding: 26px;
  margin-bottom: 20px;
}
.panel-head,
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.panel-head {
  margin-bottom: 18px;
}
.panel-head p {
  margin: 0;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.full {
  grid-column: 1/-1;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cfc3b1;
  background: #fffef9;
  border-radius: 7px;
  margin-top: 6px;
  color: #302a24;
}
textarea {
  min-height: 95px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid #9b7d43;
  outline-offset: 3px;
}
label small {
  display: block;
  font-weight: 400;
  margin-top: 5px;
}
.auth {
  max-width: 560px;
  margin: 35px auto;
}
.auth .actions {
  margin-top: 22px;
}
.error {
  padding: 12px 14px;
  background: #f8e6e2;
  border: 1px solid #e7b8ad;
  border-radius: 8px;
  color: #803e34;
  overflow-wrap: anywhere;
}
.notice {
  padding: 15px 18px;
  border: 1px solid #d8c9aa;
  background: #f5eedc;
  border-radius: 10px;
  font-size: 13px;
}
.notice p:last-child {
  margin-bottom: 0;
}
.upload {
  border: 1px dashed #b5a382;
  padding: 20px;
  border-radius: 10px;
  background: #faf6ed;
}
.upload input {
  border: 0;
  background: transparent;
  padding-left: 0;
}
.table-wrap {
  overflow: auto;
  max-height: 450px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #e9e2d4;
  vertical-align: top;
}
th {
  font-weight: 500;
  background: #f5f0e6;
  position: sticky;
  top: 0;
}
td img {
  width: 42px;
  height: 48px;
  object-fit: contain;
}
td .text-button {
  padding: 0;
}
td strong {
  font-weight: 500;
}
.photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  border: 1px solid #e2d8c8;
  border-radius: 12px;
  padding: 17px;
  min-width: 0;
}
.product-card h3 {
  font-size: 23px;
}
.product-card small {
  display: block;
}
.product-card .thumbs {
  display: flex;
  gap: 7px;
  overflow: auto;
  margin: 15px 0;
}
.thumb {
  padding: 5px;
  flex: 0 0 66px;
  border-radius: 8px;
  position: relative;
}
.thumb img {
  width: 54px;
  height: 66px;
  object-fit: contain;
}
.thumb[aria-pressed="true"] {
  border: 2px solid #a88643;
}
.thumb em {
  position: absolute;
  bottom: 1px;
  left: 1px;
  right: 1px;
  font-size: 8px;
  font-style: normal;
  background: #f4e9cf;
  line-height: 14px;
  border-radius: 3px;
}
.photo-upload {
  font-size: 12px;
}
.photo-upload input {
  font-size: 11px;
  padding: 5px;
}
.preview-frame {
  width: 100%;
  height: 650px;
  border: 1px solid #dbd2c2;
  border-radius: 12px;
  background: #eee7d8;
}
.portrait {
  max-width: 390px;
  height: 730px;
  margin: auto;
  display: block;
}
.summary {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 20px 0;
}
.summary b {
  display: block;
  font-size: 26px;
  font-weight: 500;
}
.summary small {
  font-size: 12px;
}
.checks {
  padding-left: 20px;
  font-size: 14px;
}
.checks li {
  padding: 5px 0;
}
.job {
  border-bottom: 1px solid #e4dccd;
  padding: 15px 0;
  font-size: 13px;
}
.job:last-child {
  border: 0;
}
.job p {
  margin: 4px 0;
}
.job a {
  color: #76602e;
}
.job-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  line-height: 1.7;
}
.job-summary {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.job-summary > * + * {
  border-left: 1px solid #c8bda9;
  padding-left: 12px;
}
.job-heading time {
  margin-left: auto;
  color: #756b5d;
  font-size: 12px;
}
.job-details > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 44px;
  cursor: pointer;
  color: #76602e;
  list-style: none;
  font-weight: 600;
}
.job-details > summary::-webkit-details-marker { display: none; }
.job-details > summary span { font-size: 22px; line-height: 1; }
.job-details[open] > summary span { transform: rotate(90deg); }
.job-details > summary:focus-visible { outline: 2px solid #76602e; outline-offset: 2px; }
.job-detail-content { padding-bottom: 8px; }
@media (max-width: 600px) {
  .job-heading { flex-direction: column; gap: 4px; }
  .job-heading time { margin-left: 0; }
  .job-summary { gap: 4px 8px; }
  .job-summary > * + * { padding-left: 8px; }
}
#status {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 22px;
  border-radius: 12px;
  background: #3c332a;
  color: #fff;
  max-width: 90vw;
  z-index: 100;
  box-shadow: 0 5px 25px #0002;
}
dialog {
  max-width: 850px;
  width: calc(100% - 30px);
  border: 1px solid #c8bda8;
  border-radius: 16px;
  padding: 25px;
  max-height: 90dvh;
  overflow: auto;
  color: inherit;
  background: #fffdf8;
}
dialog::backdrop {
  background: #2c251a88;
}
dialog h2 {
  margin: 0;
}
dialog form {
  margin-top: 20px;
}
dialog .actions {
  margin-top: 20px;
  justify-content: flex-end;
}
.inline-note {
  font-size: 12px;
  color: #776c5d;
  margin-top: 16px;
}
ul {
  overflow-wrap: anywhere;
}
@media (max-width: 750px) {
  .masthead {
    padding: 12px;
  }
  .wordmark {
    font-size: 14px;
  }
  .brand-emblem {
    width: 42px;
    height: 38px;
  }
  main {
    padding: 25px 16px 60px;
  }
  h1 {
    font-size: 39px;
  }
  h2 {
    font-size: 28px;
  }
  .hero h1 {
    font-size: 19.5px;
  }
  .hero {
    gap: 12px;
    align-items: flex-start;
  }
  .hero .badge {
    font-size: 9px;
  }
  .steps {
    gap: 2px;
  }
  .steps button {
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .step-label {
    flex-direction: column;
    gap: 5px;
  }
  .steps button {
    padding: 9px 3px;
    font-size: 11px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .photos {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .panel {
    padding: 17px;
    border-radius: 12px;
  }
  .product-card {
    padding: 12px;
  }
  .summary {
    gap: 22px;
  }
  .preview-frame {
    height: 650px;
  }
  .auth {
    margin-top: 15px;
  }
  .panel-head .actions {
    width: 100%;
  }
  .panel-head .actions > * {
    flex: 1;
  }
  .product-card h3 {
    font-size: 21px;
  }
  .row {
    align-items: flex-start;
  }
  .checks {
    padding-left: 18px;
  }
}
@media (max-width: 390px) {
  .photos {
    grid-template-columns: 1fr;
  }
  .hero {
    display: block;
  }
  .hero .badge {
    display: inline-block;
    margin-top: 3.6px;
  }
}

/* Catalogue pages flow with the document rather than a nested scroll box. */
.catalogue-table {
  max-height: none;
}
.catalogue-table .edit-cell {
  position: sticky;
  right: 0;
  background: #fffdf8;
}
.catalogue-table th.edit-cell {
  background: #f5f0e6;
  z-index: 1;
}
.edit-product {
  min-height: 44px;
  padding: 9px 16px;
  background: #443629;
  color: #fffaf1;
  border-color: #443629;
  box-shadow: 0 2px 4px #44362918;
  white-space: nowrap;
}
.edit-product:hover:not(:disabled) {
  background: #655038;
  color: #fffaf1;
}
.catalogue-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 20px;
  font-size: 13px;
  color: #776c5d;
}
.catalogue-pagination > div {
  display: flex;
  gap: 8px;
}
#catalogue-title {
  scroll-margin-top: 20px;
}

@media (max-width: 750px) {
  .catalogue-table table,
  .catalogue-table tbody {
    display: block;
  }
  .catalogue-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .catalogue-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 18px 0;
    border-bottom: 1px solid #e9e2d4;
  }
  .catalogue-table td {
    border: 0;
    padding: 0;
    overflow-wrap: anywhere;
  }
  .catalogue-table td.product-cell {
    grid-column: 1;
    grid-row: 2;
  }
  .catalogue-table td.edit-cell {
    position: static;
    grid-column: 2;
    grid-row: 2;
  }
  .catalogue-table td[data-label] {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 16px;
  }
  .catalogue-table td[data-label]::before {
    content: attr(data-label);
    color: #776c5d;
  }
}

@media (max-width: 750px) {
  .catalogue-table td.category-cell {
    grid-row: 1;
  }
}

main:has(> .hero) {
  padding-top: 10.8px;
}
@media (max-width: 750px) {
  main:has(> .hero) {
    padding-top: 7.5px;
  }
}

@media (max-width: 750px) {
  input:not([type="file"]),
  select,
  textarea {
    font-size: 16px;
  }
  .product-card .thumbs {
    flex-wrap: wrap;
    overflow: visible;
  }
}
@media (max-width: 600px) {
  .photos {
    grid-template-columns: minmax(0, 1fr);
  }
}

.account-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
#publication-indicator {
  padding: 8px 10px;
  min-height: 44px;
  gap: 6px;
  font-size: 12px;
  border-color: #c6b28a;
  background: #f4eddf;
}
.publication-change-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
}
.publication-change-icon img { width: 100%; height: 100%; display: block; }
.change-count {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #342d27;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  font-weight: 700;
}
.change-count-large { font-size: 9px; }
#publication-indicator.has-changes,
.publication-summary.has-changes {
  background: #fff0cc;
  border-color: #b6872a;
  color: #65440d;
}
#publication-indicator.has-changes {
  background: #f4eddf;
  border-color: #c6b28a;
  color: #342d27;
}
/* The circular icon is the control; no enclosing button tile. */
#publication-indicator,
#publication-indicator.has-changes,
#publication-indicator:hover:not(:disabled) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.publication-summary {
  text-transform: none;
  min-height: 36px;
}
.publication-change-list {
  padding: 0;
  list-style: none;
}
.publication-change-list li {
  padding: 18px 0;
  border-bottom: 1px solid #e0d7c7;
  overflow-wrap: anywhere;
}
.change-field {
  display: block;
  font-size: 13px;
  color: #776c5d;
  margin: 4px 0 10px;
}
.change-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.change-values > div {
  min-width: 0;
  background: #f5f0e6;
  padding: 10px;
  border-radius: 8px;
}
.change-values small {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
}
.change-values p {
  margin: 4px 0 0;
  white-space: pre-wrap;
  font-size: 14px;
}
#publication-details {
  width: min(680px, calc(100vw - 24px));
}
#publication-details .row {
  align-items: flex-start;
  flex-wrap: nowrap;
}
#publication-details h2 {
  font-size: 28px;
}
#publication-details .close-publication {
  flex-shrink: 0;
}
@media (max-width: 1300px) {
  .publication-label {
    display: none;
  }
}
@media (max-width: 600px) {
  .masthead {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 6px;
  }
  .wordmark {
    gap: 6px;
    font-size: 12px;
    letter-spacing: 0.1em;
  }
  .brand-emblem {
    width: 34px;
    height: 34px;
  }
  .wordmark small {
    font-size: 10px;
  }
  .account-tools {
    gap: 2px;
  }
  .account-tools button {
    font-size: 12px;
    padding: 7px 5px;
    gap: 4px;
  }
  #publication-indicator {
    padding: 7px 5px;
  }
  .change-values {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  #publication-details h2 {
    font-size: 24px;
  }
}

/* Publication counts stay readable in a narrow portrait viewport. */
.publish-count-group {
  margin: 14px 0;
}
.publish-count-group h4 {
  margin: 0 0 7px;
  font-size: 14px;
}
.publish-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  max-width: 520px;
}
.publish-counts > div {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  padding: 10px 5px;
  border: 1px solid #ded5c3;
  border-radius: 10px;
  background: #f8f5ec;
}
.publish-counts dt {
  font-size: 13px;
  color: #51493c;
}
.publish-counts dd {
  margin: 0 0 3px;
  font-size: 23px;
  line-height: 1.15;
  font-weight: 700;
  color: #2b483c;
}
.job .publish-stage {
  margin: 9px 0;
  font-weight: 600;
}
.job .publish-voice {
  margin: 12px 0 7px;
  line-height: 1.6;
}

.products-intro-title, #catalogue-title {font-size:25.6px}
.view-product {min-height:44px; white-space:nowrap; margin-left:8px}
#product-preview {padding:0;border:0;background:transparent;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;overflow:hidden;box-shadow:none}
#product-preview iframe {border:0;width:100%;height:100%;display:block}
@media(max-width:750px){.catalogue-table td.edit-cell{grid-column:1/-1;grid-row:auto;display:flex;gap:8px}.view-product{margin:0}}
@media(max-width:700px){.products-intro-title,#catalogue-title{font-size:22.4px}}

/* Keep tablet and mobile tabs on shared number, icon and label baselines. */
@media (max-width: 1400px) {
  .steps {grid-template-columns:repeat(6,minmax(0,1fr));max-width:100%;padding-bottom:5px}
  .steps button {
    display: grid;
    grid-template-rows: 22px auto;
    align-content: start;
    justify-items: center;
    gap: 6px;
    min-width: 0;
  }
  .step-label {
    display: grid;
    grid-template-rows: 20px 2.8em;
    align-items: start;
    justify-items: center;
    gap: 5px;
    width: 100%;
    min-width: 0;
    line-height: 1.4;
  }
  .step-label svg { width: 20px; height: 20px; }
  .step-label > span { text-align: center; }
}

/* All six destinations stay visible without horizontal scrolling on phones. */
@media (max-width: 700px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    padding-bottom: 0;
    gap: 6px;
  }
  .steps button { padding: 8px 4px; }
  .steps .step-label { grid-template-rows: 20px auto; }
}

.orders-panel h2{font-size:26px}
.order-filters{display:flex;gap:16px;flex-wrap:wrap;margin:16px 0}
.order-filters label{flex:1;min-width:140px}
.merchant-order{padding:18px;border:1px solid #ded5c3;border-radius:12px;margin:12px 0;overflow-wrap:anywhere}
.merchant-order summary{cursor:pointer;min-height:44px;display:flex;align-items:center;text-decoration:underline}
.order-badges{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.order-environment{font-size:13px;font-weight:600;padding:5px 9px;border-radius:14px;background:#e2eee8;color:#234436}
.order-environment.is-sandbox{background:#f7ebc8;color:#674b11}
.order-total{margin:14px 0}
.merchant-order .checkout-totals{font-size:14px}
.merchant-order ul { padding-left: 20px; }
.merchant-order .inline-note { font-size: 14px; }
.merchant-order .sandbox-status { font-weight: 600; }
.merchant-order .checkout-totals dd { white-space: nowrap; flex: none; }
.orders-panel button { min-height: 44px; }
@media (max-width: 750px) {
  .orders-panel .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .orders-panel .actions button { font-size: 14px; padding: 10px; }
  .orders-panel .catalogue-pagination > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .order-filters select { font-size: 16px; }
}
@media (max-width: 600px) {
  .order-filters { flex-direction: column; }
  .merchant-order { padding: 12px; }
}
@media (max-width: 420px) {
  .orders-panel .actions { grid-template-columns: 1fr; }
}

@media (max-width: 750px) {
  .panel-head .catalogue-file-actions {flex-wrap: nowrap; gap: 8px;}
  .catalogue-file-actions .button {
    font-size: 11px;
    padding: 10px 7px;
    white-space: nowrap;
    min-width: 0;
    min-height: 44px;
  }
}

.catalogue-file-actions .button {
  background: #eee4cf;
  border: 1px solid #a38b5d;
  color: #443622;
  font-weight: 600;
  box-shadow: 0 2px 0 #b9a67e;
  border-radius: 8px;
}
.catalogue-file-actions .button:hover {
  background: #e3d4b5;
  border-color: #80683d;
  color: #302619;
}
.catalogue-file-actions .button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #b9a67e;
}

.catalogue-table thead th {
  font-weight: 700;
}
@media (max-width: 750px) {
  .catalogue-table td[data-label]::before {
    font-weight: 700;
  }
}

/* The checkout rehearsal scrolls as one dialog, including on small phones. */
dialog.checkout-preview{width:min(740px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:24px;overflow:auto;overscroll-behavior:contain}
.checkout-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.checkout-heading h2{margin:0;font-size:28px}.checkout-heading .eyebrow{margin:0 0 4px}
.checkout-close{font-size:24px;min-width:44px;min-height:44px;padding:0;flex:none}
.checkout-products{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.checkout-preview fieldset{border:1px solid #ddd4c4;padding:16px;border-radius:10px;margin:16px 0}
.checkout-preview legend{padding:0 6px;font-weight:600}
.checkout-choice{display:flex;align-items:flex-start;gap:10px;border:1px solid #ddd4c4;border-radius:9px;padding:12px;min-width:0;cursor:pointer}
.checkout-choice input{width:20px;min-width:20px;height:20px;margin:3px 0;accent-color:#443629}
.checkout-choice span{min-width:0;overflow-wrap:anywhere}.checkout-choice small{display:block;color:#70634f}
.checkout-choice:has(input:disabled){opacity:.65;cursor:default}
.checkout-lines>div,.checkout-totals>div{display:flex;justify-content:space-between;align-items:baseline;gap:18px;padding:10px 0;border-bottom:1px solid #ddd4c4}
.checkout-lines strong{white-space:nowrap}.checkout-totals dd{margin:0;text-align:right}
.checkout-total{font-weight:700}.checkout-review{scroll-margin-top:18px}.checkout-review h3{font-size:23px}
.checkout-review details{padding:12px 0;overflow-wrap:anywhere}.checkout-review .notice{margin:16px 0}
.checkout-error{color:#8c3028}.checkout-review .primary{width:100%}
@media(max-width:600px){dialog.checkout-preview{padding:16px}.checkout-products{grid-template-columns:1fr}.checkout-heading h2{font-size:25px}.checkout-totals{font-size:14px}.checkout-review .notice{padding:14px}.checkout-review ul{padding-left:19px}}
.checkout-heading{position:sticky;top:-24px;z-index:1;background:#fffdf6;padding:12px 0;border-bottom:1px solid #ddd4c4}
@media(max-width:600px){.checkout-heading{top:-16px}}
/* Sandbox orders share the checkout dialog, with readable compact history. */
.sandbox-checkout .sandbox-feedback:not(:empty){padding:12px;border:1px solid #d7c9a5;border-radius:8px;background:#f5f0e4}
.sandbox-orders-heading,.sandbox-order-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.sandbox-orders-heading{margin-top:24px}.sandbox-orders-heading h3{margin:0;font-size:23px}
.sandbox-order{padding:16px;border:1px solid #d7c9a5;border-radius:12px;margin:12px 0;overflow-wrap:anywhere;scroll-margin-top:100px}
.sandbox-order ul{padding-left:20px}.sandbox-status{font-size:13px;background:#ede6d5;border-radius:14px;padding:5px 9px}
.sandbox-checkout select{max-width:100%;width:100%}.sandbox-checkout [data-create]{width:100%}
.sandbox-checkout .sandbox-bag-total{font-weight:600}.sandbox-checkout .checkout-totals{font-size:14px}
@media(max-width:600px){.sandbox-order{padding:12px}.sandbox-order [data-cancel]{width:100%}.sandbox-orders-heading button{font-size:14px}}

/* Stacked account actions keep their labels visible at every screen size. */
.account-tools {gap:10px;align-items:center;}
.account-tools #publication-indicator,.account-tools #logout,.account-tools #header-signin {display:grid;grid-template-rows:48px auto;justify-items:center;align-items:center;gap:3px;padding:0 4px;min-height:66px;}
.account-tools .publication-label,.account-tools .account-action-label {display:block;font-size:10px;line-height:1.3;font-weight:500;}
.account-tools #logout > svg,.account-tools #header-signin > svg {width:23px;height:23px;}
.account-tools:has(#publication-indicator:not([hidden])) #logout {border-left:1px solid #d5c8af;border-radius:0;padding-left:14px;}
.published-tick {width:19px;height:19px;color:#348354;}
@media(max-width:600px){.account-tools{gap:5px}.account-tools #publication-indicator,.account-tools #logout,.account-tools #header-signin{padding-right:0;padding-left:0}.account-tools:has(#publication-indicator:not([hidden])) #logout{padding-left:9px}.account-tools .publication-label,.account-tools .account-action-label{font-size:9px}.publication-change-icon{width:44px;height:44px}}

/* Champagne navigation number badges. */
.steps .portal-tab > i { border-color: #b49a60; color: #654c2d; background: #f7f0df; }
.steps .portal-tab[aria-current="step"] > i { border-color: #96763d; background: #d9c28f; color: #50391e; }

/* Corner badges leave icons and labels centered at every viewport. */
.steps .portal-tab .step-label { display:grid; grid-template-rows:20px auto; justify-items:center; align-items:start; gap:5px; line-height:1.4; text-align:center; }

/* Publication badge: a readable status, distinct from the change-count emblem. */
.hero .publication-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  white-space: normal;
  font-size: 16.5px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 9px 15px;
  border-radius: 999px;
}
.hero .publication-summary svg { width: 20px; height: 20px; flex: 0 0 auto; }
.hero .publication-summary.is-published { background: #226443; border-color: #226443; color: #fff; }
.hero .publication-summary.is-published:hover { background: #184d32; border-color: #184d32; color: #fff; }
.hero .publication-summary.is-publishing { background: #805313; border-color: #805313; color: #fff; }
.hero .publication-summary.is-publishing:hover { background: #64400e; border-color: #64400e; color: #fff; }
@keyframes publication-status-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) { .publication-spinner { animation: publication-status-spin 1.3s linear infinite; } }
@media (max-width: 600px) { .hero .publication-summary { font-size: 13.5px; } }
