/* Shared chrome, board, sheets, fields, chips, toolbar. */

.phone {
  position: relative;
  width: 390px;
  height: 844px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.status-bar {
  flex: 0 0 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 8px;
}

.status-bar .indicators {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar {
  flex: 0 0 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.back,
.balance,
.close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
}

.close {
  background: var(--icon-bg);
  border-radius: var(--radius-pill);
}

.progress-pill {
  height: 28px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink);
}

.board-stage {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  min-height: 0;
}

.paper {
  position: relative;
  width: 358px;
  height: 530px;
  padding: 12px;
  background-color: var(--surface);
  background-image: url("img/paper-texture.jpg");
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-16);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.collage {
  position: relative;
  width: 334px;
  height: 506px;
  z-index: 1;
}

.photo {
  position: absolute;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 5px 5px 12px;
  background: var(--surface);
  border-radius: var(--radius-2);
  box-shadow: 0 2px 8px rgba(28, 20, 16, 0.16), 0 1px 2px rgba(28, 20, 16, 0.08);
}

.photo img {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 1px;
}

.slot {
  position: absolute;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plus);
}

.slot svg.dash {
  position: absolute;
  inset: 0;
  width: 52px;
  height: 52px;
}

.slot svg.plus-icon {
  position: relative;
  z-index: 1;
}

.tape {
  position: absolute;
  border-radius: 1px;
  z-index: 20;
  pointer-events: none;
}

.pin {
  position: absolute;
  width: 11px;
  height: 11px;
  z-index: 30;
  filter: drop-shadow(0 1px 2px rgba(28, 20, 16, 0.22));
}

.footer {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px 24px 8px;
}

.btn-primary,
.btn-ghost {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.action-pair {
  display: flex;
  gap: 12px;
  width: 100%;
}

.action-pair .btn-primary,
.action-pair .btn-ghost {
  flex: 1 1 0;
  width: auto;
}

.toolbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}

.footer .toolbar {
  width: calc(100% + 48px);
  margin: 0 -24px;
}

.tab {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 0 4px;
  color: var(--muted);
}

.tab.is-active {
  color: var(--accent);
}

.home-indicator {
  flex: 0 0 20px;
  height: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
}

.home-indicator.on-sheet {
  background: var(--surface);
}

.home-indicator .bar {
  width: 134px;
  height: 5px;
  border-radius: var(--radius-pill);
  background: var(--home-bar);
}

/* —— Overlay / sheet —— */
.app-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.phone.has-sheet .board-stage {
  overflow: hidden;
  align-items: flex-end;
  padding-top: 8px;
}

.dim {
  position: absolute;
  inset: 0;
  background: rgba(28, 20, 16, 0.42);
  pointer-events: none;
  z-index: 40;
}

.sheet {
  position: relative;
  z-index: 50;
  width: 390px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  box-shadow: var(--shadow-sheet);
  padding: 8px 0 0;
}

.sheet-handle {
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheet-handle span {
  width: 36px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: rgba(28, 20, 16, 0.16);
}

.sheet-header {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 24px;
}

.sheet-header h1 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  color: var(--ink);
}

.sheet-body {
  padding: 8px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sheet-actions {
  padding: 12px 24px 8px;
  background: var(--surface);
  position: relative;
  z-index: 1;
}

.step-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 16px;
}

.step-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--subtle);
}

.step-dots span.is-on {
  background: var(--accent);
}

/* Fields */
.field-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink);
}

.field {
  height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-12);
  color: var(--ink);
  width: 100%;
}

.field .ph {
  color: var(--plus);
}

.field.is-focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(154, 52, 18, 0.12);
  background: var(--surface);
}

.field.is-focus .caret {
  display: inline-block;
  width: 1.5px;
  height: 18px;
  margin-left: 1px;
  background: var(--accent);
  border-radius: 1px;
}

.field-with-count {
  display: flex;
  align-items: center;
  gap: 8px;
}

.field-with-count .field {
  flex: 1 1 auto;
}

.char-count {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  line-height: 14px;
  color: var(--muted);
  flex-shrink: 0;
  min-width: 32px;
  text-align: right;
}

/* Chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 8px 0 14px;
  background: var(--icon-bg);
  border-radius: var(--radius-pill);
  color: var(--ink);
  max-width: 100%;
}

.chip .x {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

/* Lettering cards */
.letter-scroller {
  display: flex;
  gap: 12px;
  padding: 4px 20px 12px;
  overflow: hidden;
}

.letter-card {
  position: relative;
  flex: 0 0 124px;
  width: 124px;
  height: 108px;
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

.letter-card.is-selected {
  border: 2px solid var(--accent);
  padding: 13.5px 11.5px 11.5px;
  background: #fff8f3;
}

.letter-card .sample {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink);
  width: 100%;
  min-height: 0;
  white-space: nowrap;
}

.letter-card .style-name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
  text-align: center;
  margin-top: 6px;
}

.letter-card.is-selected .style-name {
  color: var(--accent);
}

.letter-card .mark {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
}

.sample-house .place {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
}

.sample-house .date {
  font-family: "Caveat", cursive;
  font-weight: 500;
  font-size: 20px;
  line-height: 22px;
}

.sample-classic {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 22px;
}

.sample-story {
  font-family: "Patrick Hand", cursive;
  font-weight: 400;
  font-size: 18px;
  line-height: 22px;
}

.sample-oldmap {
  font-family: "IM FELL English", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
}

.sample-none {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
  color: var(--muted);
}

/* Focused polaroid in guided sheet */
.focus-photo {
  display: flex;
  justify-content: center;
  padding: 4px 0 8px;
}

.focus-photo figure {
  margin: 0;
  width: 196px;
  height: 152px;
  padding: 6px 6px 16px;
  background: var(--surface);
  border-radius: 2px;
  box-shadow: 0 6px 18px rgba(28, 20, 16, 0.16), 0 1px 3px rgba(28, 20, 16, 0.08);
  transform: rotate(-2deg);
  display: flex;
  flex-direction: column;
}

.focus-photo figure img {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  object-fit: cover;
  border-radius: 1px;
}

/* Places list */
.place-list {
  display: flex;
  flex-direction: column;
  margin: 0 -8px;
  max-height: 316px;
  overflow: hidden;
}

.place-row {
  display: flex;
  gap: 12px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}

.place-row.is-editing {
  background: #fff8f3;
  border-radius: 12px;
  border-bottom-color: transparent;
  margin-bottom: 4px;
}

.place-thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 64px;
  padding: 3px 3px 8px;
  background: var(--surface);
  border-radius: 2px;
  box-shadow: var(--shadow-photo);
}

.place-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1px;
}

.place-fields {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 2px;
}

.place-row:not(.is-editing) {
  align-items: center;
  padding: 8px 8px;
}

.place-row:not(.is-editing) .place-thumb {
  height: 56px;
  padding-bottom: 7px;
}

.place-row:not(.is-editing) .place-fields {
  gap: 2px;
  padding-top: 0;
}

.place-row:not(.is-editing) .field {
  height: 20px;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.place-row:not(.is-editing) .field .ph {
  font-size: 13px;
}

/* Note line */
.note-line {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}

.phone.places .app-body {
  flex: 1 1 260px;
  max-height: 300px;
}

.phone.places .sheet-actions {
  padding-top: 20px;
}

.phone.places .place-list {
  max-height: 308px;
}

/* —— Full step pages (Style, Mount, Submit) —— */
.step-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 0 0;
  overflow: hidden;
}

.step-body.center-stack {
  justify-content: center;
}

.top-bar .top-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 17px;
  line-height: 22px;
  color: var(--ink);
  text-align: center;
}

.step-footer {
  flex: 0 0 auto;
  padding: 12px 24px 8px;
}

/* Style grid */
.style-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 24px 16px;
}

.style-card {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  padding-bottom: 12px;
}

.style-card.is-selected {
  border: 2px solid var(--accent);
  background: #fff8f3;
}

.style-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.style-card .style-name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
  color: var(--muted);
  margin-top: 10px;
  padding: 0 8px;
}

.style-card.is-selected .style-name {
  color: var(--accent);
}

.style-card .mark {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 1px 2px rgba(28, 20, 16, 0.2));
}

/* Mount preview + chips */
.board-preview {
  height: 228px;
  margin: 4px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.board-preview-inner {
  width: 358px;
  height: 530px;
  transform: scale(0.42);
  transform-origin: center center;
  flex: 0 0 auto;
}

.board-preview.is-pins .tape {
  display: none;
}

.paper.is-kraft {
  background-color: #bb9c7b;
  background-image: url("img/board-kraft.jpg");
  background-size: cover;
}

.paper.is-charcoal {
  background-color: #54585b;
  background-image: url("img/board-charcoal.jpg");
  background-size: cover;
}

.color-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 4px 24px 12px;
}

.color-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.color-chip .swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  box-shadow: 0 1px 3px rgba(28, 20, 16, 0.12);
}

.color-chip .swatch.is-cream { background: #e6dcc4; }
.color-chip .swatch.is-kraft { background: #c4a07a; }
.color-chip .swatch.is-charcoal { background: #55585c; }

.color-chip.is-selected .swatch {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent);
}

.color-chip .chip-name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  line-height: 14px;
  color: var(--muted);
}

.color-chip.is-selected .chip-name {
  color: var(--ink);
}

.mount-row {
  display: flex;
  gap: 10px;
  padding: 0 24px 12px;
}

.mount-card {
  flex: 1 1 0;
  min-width: 0;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.mount-card.is-selected {
  border: 2px solid var(--accent);
  background: #fff8f3;
}

.mount-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.mount-card .mount-name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  color: var(--muted);
  padding: 8px 4px 10px;
}

.mount-card.is-selected .mount-name {
  color: var(--accent);
}

.section-label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink);
  padding: 0 24px 8px;
}

.note-block {
  padding: 0 24px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.note-box {
  height: 64px;
  align-items: flex-start;
  padding-top: 12px;
}

.note-block .char-count {
  align-self: flex-end;
}

/* Submit summary */
.summary {
  margin: 12px 24px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-row .k {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 20px;
  color: var(--muted);
}

.summary-row .v {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
  color: var(--ink);
  text-align: right;
}

.next-line {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
  text-align: center;
  padding: 0 32px 16px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px 16px;
}

.checkbox {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.checkbox-row .cb-label {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink);
}

.fine-print {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 11px;
  line-height: 14px;
  color: var(--muted);
  text-align: center;
  padding: 8px 24px 0;
}

/* —— Sign in —— */
.auth-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 8px 24px 0;
}

.auth-hero {
  width: 100%;
  height: 340px;
  margin: 8px 0 28px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--surface);
}

.auth-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.auth-brand {
  color: var(--ink);
  text-align: center;
}

.auth-tag {
  color: var(--muted);
  text-align: center;
  margin-top: 6px;
}

.auth-form {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 12px;
}

/* —— My maps —— */
.maps-header {
  padding: 8px 24px 16px;
}

.maps-header h1 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: -0.3px;
  color: var(--ink);
}

.map-list {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 24px 16px;
}

.map-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.map-card.is-ready {
  border-color: rgba(154, 52, 18, 0.28);
}

.map-thumb {
  flex: 0 0 80px;
  width: 80px;
  height: 94px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-photo);
}

.card-chevron {
  flex: 0 0 18px;
  color: var(--plus);
  margin-right: 2px;
}

.map-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.map-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.map-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  color: var(--ink);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.1px;
}

.status-chip.is-ready {
  background: rgba(154, 52, 18, 0.10);
  color: var(--accent);
}

.status-chip.is-progress {
  background: var(--icon-bg);
  color: var(--muted);
}

/* —— Being designed —— */
.wait-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 24px 0;
}

.wait-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: -0.3px;
  color: var(--ink);
  text-align: center;
  margin-bottom: 36px;
}

.stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 8px 28px;
}

.stepper-item {
  flex: 0 0 auto;
  width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.stepper-item .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--subtle);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.stepper-item.is-done .dot {
  background: var(--accent);
  border-color: var(--accent);
}

.stepper-item.is-current .dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(154, 52, 18, 0.16);
}

.stepper-item.is-todo .dot {
  background: var(--surface);
  border-color: var(--subtle);
}

.stepper-item .step-name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
  text-align: center;
}

.stepper-item.is-current .step-name,
.stepper-item.is-done .step-name {
  color: var(--ink);
}

.stepper-wrap {
  position: relative;
  padding: 0 4px 32px;
}

.stepper-wrap::before,
.stepper-wrap::after {
  content: "";
  position: absolute;
  top: 11px;
  height: 1.5px;
  z-index: 0;
}

.stepper-wrap::before {
  left: 48px;
  right: 48px;
  background: var(--line);
}

.stepper-wrap::after {
  left: 48px;
  width: calc((100% - 96px) / 2);
  background: var(--accent);
}

.wait-note {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 22px;
  color: var(--muted);
  text-align: center;
  padding: 0 12px;
}

/* —— Proof review —— */
.checkbox.is-checked {
  background: var(--accent);
  border-color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.proof-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 24px 8px;
  position: relative;
}

.proof-frame {
  position: relative;
  height: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.proof-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: top center;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  background: var(--surface);
}

.phone.has-sheet .proof-stage {
  align-items: flex-start;
  padding-top: 0;
}

.phone.has-sheet .proof-frame {
  width: 100%;
  height: 100%;
}

.phone.has-sheet .proof-frame img {
  max-width: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

.phone.sticker-preview .proof-stage {
  padding: 0;
}

.phone.sticker-preview .proof-frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.phone.sticker-preview .proof-frame img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
  box-shadow: none;
}

.proof-pin {
  position: absolute;
  width: 24px;
  height: 32px;
  transform: translate(-50%, -100%);
  z-index: 45;
  filter: drop-shadow(0 2px 3px rgba(28, 20, 16, 0.35));
  pointer-events: none;
}

.layout-row {
  display: flex;
  gap: 8px;
  padding: 0 24px 8px;
}

.layout-thumb {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.layout-thumb img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  display: block;
}

.layout-thumb.is-selected img {
  border: 2px solid var(--accent);
}

.layout-thumb .layout-letter {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  line-height: 14px;
  color: var(--muted);
}

.layout-thumb.is-selected .layout-letter {
  color: var(--accent);
}

.layout-row.is-two {
  justify-content: center;
}

.layout-row.is-two .layout-thumb {
  flex: 0 0 120px;
  max-width: 120px;
}

.lettering-row {
  display: flex;
  justify-content: center;
  padding: 2px 24px 10px;
}

.lettering-chip {
  height: 32px;
  padding: 0 12px 0 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.lettering-chip .k {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}

.lettering-chip .house-sample {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  line-height: 18px;
  color: var(--ink);
}

.lettering-chip .chip-caret {
  color: var(--plus);
}

.step-footer .action-pair {
  width: 100%;
}

/* Sticker preview grid */
.sticker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px 8px;
}

.sticker-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.sticker-art {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticker-art img {
  max-width: 86px;
  max-height: 86px;
  object-fit: contain;
  display: block;
}

.sticker-name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  line-height: 14px;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
}

.keep-redo {
  display: flex;
  gap: 4px;
}

.mini-pill {
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  line-height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.mini-pill.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}


.spot-row {
  display: flex;
  gap: 8px;
  padding-top: 0;
}

.spot-chip {
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
  display: flex;
  align-items: center;
}

.spot-chip.is-on {
  border-color: var(--accent);
  background: #fff8f3;
  color: var(--accent);
}

.free-line {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
}

.signoff-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 24px 0;
  gap: 20px;
}

.signoff-body .proof-frame img {
  width: 260px;
  max-width: 260px;
}

.signoff-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: -0.3px;
  color: var(--ink);
  text-align: center;
}

.signoff-body .checkbox-row {
  padding: 0;
  width: 100%;
  justify-content: center;
}

/* —— Sign-off gate —— */
.btn-primary.is-disabled {
  opacity: 0.4;
}

/* —— Format —— */
.format-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 24px 0;
}

.format-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.format-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  padding-bottom: 12px;
}

.format-card.is-selected {
  border: 2px solid var(--accent);
  background: #fff8f3;
}

.format-card .thumb {
  aspect-ratio: 4 / 5;
  background: #efe8dc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
}

.format-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 2px;
  display: block;
  box-shadow: 0 2px 8px rgba(28, 20, 16, 0.12);
}

.format-card.is-framed .thumb {
  padding: 16px 14px;
}

.format-card.is-framed .frame {
  background: #1a1714;
  padding: 7px;
  box-shadow: 0 2px 8px rgba(28, 20, 16, 0.2);
  width: 100%;
  height: 100%;
  display: flex;
}

.format-card.is-framed .frame img {
  box-shadow: none;
  border-radius: 0;
}

.format-card .format-name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
  text-align: center;
  color: var(--ink);
  padding: 10px 8px 0;
}

.format-card .format-price {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  text-align: center;
  color: var(--muted);
  padding: 2px 8px 0;
}

/* —— Frame and ship —— */
.ship-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 4px 24px 0;
  gap: 12px;
}

.frame-preview {
  align-self: center;
  width: 168px;
  background: #1a1714;
  padding: 8px;
  box-shadow: var(--shadow-card);
}

.frame-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.frame-preview.has-mat .mat {
  background: #f3f4f8;
  padding: 18px;
}

.frame-preview.has-mat .mat img {
  display: block;
  width: 100%;
  height: auto;
}

.frame-row {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.frame-chip {
  flex: 1 1 0;
  height: 40px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
}

.frame-chip.is-on {
  border-color: var(--accent);
  background: #fff8f3;
  color: var(--ink);
}

.frame-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: 0 0 14px;
}

.frame-dot.is-black { background: #1a1714; }
.frame-dot.is-white {
  background: #fffbf6;
  box-shadow: inset 0 0 0 1px var(--line);
}
.frame-dot.is-oak { background: #8d5a32; }

.address-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.city-row {
  display: flex;
  gap: 8px;
}

.city-row .field.city { flex: 1 1 auto; }
.city-row .field.state { flex: 0 0 56px; }
.city-row .field.zip { flex: 0 0 80px; }

.ship-note {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
  text-align: center;
}

/* —— Pay —— */
.pay-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 24px 0;
  gap: 16px;
}

.pay-thumb {
  align-self: center;
  width: 96px;
  background: #1a1714;
  padding: 6px;
  box-shadow: var(--shadow-card);
}

.pay-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.test-badge {
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: var(--icon-bg);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  line-height: 14px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
}

.badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.top-bar .test-badge {
  flex-shrink: 0;
}

/* —— Paid / delivered —— */
.confirm-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 24px 0;
  gap: 12px;
}

.confirm-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: -0.3px;
  color: var(--ink);
  text-align: center;
}

.order-no {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
  color: var(--ink);
  text-align: center;
}

.confirm-next {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 22px;
  color: var(--muted);
  text-align: center;
  max-width: 300px;
}

.deliver-thumb {
  width: 200px;
  box-shadow: var(--shadow-card);
}

.deliver-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.deliver-thumb.is-framed {
  background: #1a1714;
  padding: 8px;
  width: 168px;
  border-radius: 0;
}

.deliver-thumb.is-framed img {
  border-radius: 0;
}

.track-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.track-status {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 17px;
  line-height: 24px;
  color: var(--ink);
}

.track-meta {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
}

/* —— Sale prices (customer) —— */
.price-was {
  text-decoration: line-through;
  color: var(--muted);
  font-weight: 400;
  margin-right: 6px;
}

.price-now {
  color: var(--accent);
  font-weight: 500;
}

.format-card .sale-label,
.pay-sale-label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  line-height: 14px;
  color: var(--accent);
  text-align: center;
  padding: 4px 8px 0;
}

.summary .pay-sale-label {
  text-align: left;
  padding: 12px 16px 0;
}

.summary-row .v .price-was {
  font-weight: 400;
  font-size: 13px;
}

/* —— Admin · Sale —— */
html.admin,
html.admin body,
body.admin {
  width: auto;
  max-width: none;
  height: auto;
  min-height: 100vh;
  overflow: auto;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

.admin-banner {
  background: var(--ink);
  color: var(--on-accent);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 8px 24px;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px 8px;
  max-width: none;
  margin: 0;
}

.admin-brand {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 28px;
  letter-spacing: -0.3px;
  color: var(--ink);
}

.admin-desk {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

.admin-main {
  max-width: 840px;
  margin: 0 auto;
  padding: 16px 48px 48px;
}

.admin-main h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 44px;
  line-height: 52px;
  letter-spacing: -0.6px;
  color: var(--ink);
  margin: 8px 0 24px;
}

.sale-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 24px 28px 22px;
  margin-bottom: 16px;
}

.sale-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.sale-product {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 28px;
  letter-spacing: -0.2px;
  color: var(--ink);
}

.sale-regular {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
  margin-top: 2px;
}

.sale-note {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  color: var(--muted);
  margin-top: 12px;
}

.sale-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.sale-price-row {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 12px;
}

.sale-price-row .field-block:first-child {
  flex: 0 0 220px;
  width: 220px;
}

.sale-grid .field-block.span-2 {
  grid-column: 1 / -1;
}

.sale-preview {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: #fff8f3;
  border: 1.5px solid rgba(154, 52, 18, 0.22);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 20px;
  color: var(--ink);
  align-self: end;
  width: max-content;
  white-space: nowrap;
}

.sale-preview .price-now {
  font-size: 17px;
  line-height: 22px;
}

.toggle {
  width: 48px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--subtle);
  position: relative;
  flex: 0 0 48px;
  margin-top: 2px;
}

.toggle.is-on {
  background: var(--accent);
}

.toggle .knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(28, 20, 16, 0.2);
}

.toggle.is-on .knob {
  left: 23px;
}

.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-wrap .toggle-label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink);
}


.admin-main .btn-primary {
  width: auto;
  min-width: 160px;
  padding: 0 28px;
  margin-top: 8px;
}

body.admin .field {
  white-space: nowrap;
}

body.admin .field-label {
  justify-content: flex-start;
  gap: 6px;
}

body.admin .field-label .opt {
  font-weight: 400;
  color: var(--muted);
}
