:root {
  --s-cream: #FBF6EF;
  --s-sand: #F3E8DB;
  --s-sand-hover: #EFE0CF;
  --s-sage: #EEF1EA;
  --s-ink: #2A201B;
  --s-muted: #6E5D53;
  --s-terra: #C0583A;
  --s-terra-hover: #A2452B;
  --s-border: #E9DDD0;
  --s-dash: #E0B8A6;
  --s-card: #FFFFFF;
  --radius-lg: 24px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--s-cream);
  color: var(--s-ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.page-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

/* Minimal top bar */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--s-ink);
  text-decoration: none;
  line-height: 1;
}

.wordmark span {
  color: var(--s-terra);
}

.role-switch {
  display: inline-flex;
  background: var(--s-sand);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--s-border);
}

.role-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--s-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  min-height: 36px;
}

.role-btn.active {
  background: var(--s-card);
  color: var(--s-ink);
  box-shadow: 0 1px 4px rgba(42, 32, 27, 0.08);
}

.dot-ping {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--s-terra);
  display: inline-block;
}

/* Cards */
.card-customer {
  max-width: 500px;
  margin: 0 auto;
  background: var(--s-card);
  border: 1px solid var(--s-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: 0 10px 30px rgba(42, 32, 27, 0.04);
}

.card-studio {
  max-width: 720px;
  margin: 0 auto;
  background: var(--s-card);
  border: 1px solid var(--s-border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: 0 10px 30px rgba(42, 32, 27, 0.04);
}

@media (max-width: 520px) {
  .card-customer,
  .card-studio {
    padding: 22px 18px;
    border-radius: 20px;
  }
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--s-muted);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.hero-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--s-ink);
}

.hero-title em {
  color: var(--s-terra);
  font-style: italic;
}

/* Pet pill switcher */
.pet-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.pet-pill {
  appearance: none;
  border: 1px solid var(--s-border);
  background: var(--s-cream);
  color: var(--s-muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}

.pet-pill.active {
  background: var(--s-sand);
  border-color: var(--s-terra);
  color: var(--s-ink);
}

.state-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C7B9AC;
}

.state-dot.review { background: var(--s-terra); }
.state-dot.proof { background: #D97706; }
.state-dot.ready { background: #3D6B4F; }

/* Upload dropzone */
.dropzone {
  border: 1.5px dashed var(--s-dash);
  background: var(--s-cream);
  border-radius: var(--radius-md);
  padding: 32px 18px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dropzone:hover,
.dropzone.dragover {
  background: var(--s-sand);
  border-color: var(--s-terra);
}

.drop-plus {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--s-sand);
  color: var(--s-terra);
  font-size: 22px;
  line-height: 38px;
  margin: 0 auto 10px;
  font-weight: 500;
}

.drop-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--s-ink);
}

.drop-sub {
  font-size: 13px;
  color: var(--s-muted);
  margin-top: 4px;
}

.sample-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.text-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px 2px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--s-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.text-link:hover {
  color: var(--s-terra);
}

/* Soft notice boxes */
.note-box {
  border-radius: 14px;
  padding: 13px 15px;
  font-size: 13.5px;
  line-height: 1.45;
  margin-bottom: 16px;
}

.note-sand {
  background: var(--s-sand);
  color: var(--s-ink);
}

.note-sage {
  background: var(--s-sage);
  color: #264230;
}

/* Photo preview row */
.preview-card {
  border: 1px solid var(--s-border);
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--s-cream);
  margin-top: 14px;
}

.preview-row {
  display: flex;
  gap: 14px;
  align-items: center;
}

.thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--s-border);
  background: #FFFFFF;
  flex-shrink: 0;
}

.preview-meta {
  font-size: 13.5px;
  color: var(--s-ink);
}

.preview-meta .muted {
  display: block;
  font-size: 12.5px;
  color: var(--s-muted);
  margin-top: 3px;
}

/* Buttons */
.btn-pill {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease, transform 0.08s ease;
}

.btn-pill:active {
  transform: scale(0.99);
}

.btn-pill:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-terra {
  background: var(--s-terra);
  color: #FFFFFF;
}

.btn-terra:hover:not(:disabled) {
  background: var(--s-terra-hover);
}

.btn-sand {
  background: var(--s-sand);
  color: var(--s-ink);
}

.btn-sand:hover:not(:disabled) {
  background: var(--s-sand-hover);
}

.btn-full {
  width: 100%;
  margin-top: 16px;
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.btn-row .btn-pill {
  flex: 1 1 160px;
}

/* Proof image */
.proof-img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--s-border);
  display: block;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.proof-img.zoomed {
  transform: scale(1.06);
  cursor: zoom-out;
  box-shadow: 0 18px 36px rgba(42, 32, 27, 0.18);
}

.consent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--s-cream);
  border: 1px solid var(--s-border);
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  min-height: 46px;
}

.consent-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--s-terra);
}

.input-pill {
  width: 100%;
  border: 1px solid var(--s-border);
  background: var(--s-cream);
  border-radius: 12px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--s-ink);
  min-height: 44px;
}

/* Studio 2-column grid */
.studio-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.status-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--s-sand);
  color: var(--s-ink);
}

.status-tag.ready {
  background: var(--s-sage);
  color: #264230;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 680px) {
  .studio-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.studio-photo-box {
  background: var(--s-cream);
  border: 1px solid var(--s-border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.studio-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #FFFFFF;
}

.studio-actions {
  display: grid;
  gap: 10px;
}

.chip-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.chip {
  appearance: none;
  border: 1px solid var(--s-border);
  background: var(--s-cream);
  color: var(--s-ink);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.chip.active {
  background: var(--s-terra);
  border-color: var(--s-terra);
  color: #FFFFFF;
}

.toast-bar {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--s-sage);
  color: #264230;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Quiet <details> */
details.quiet-details {
  margin-top: 16px;
  border-top: 1px solid var(--s-border);
  padding-top: 12px;
  font-size: 12.5px;
  color: var(--s-muted);
}

details.quiet-details summary {
  cursor: pointer;
  font-weight: 600;
}

.mono-small {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  margin-top: 8px;
  line-height: 1.55;
  word-break: break-all;
}

/* Editorial quiet footer */
.site-footer {
  max-width: 720px;
  margin: 26px auto 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--s-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(42, 32, 27, 0.45);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  background: var(--s-card);
  border: 1px solid var(--s-border);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 24px 48px rgba(42, 32, 27, 0.18);
}

.hidden {
  display: none !important;
}
