.studio-body { background: var(--paper); }
.studio-body .site-header { position: relative; z-index: 4; }
.studio-nav { display: flex; align-items: center; gap: clamp(0.65rem, 2.5vw, 1.35rem); }
.studio-example-link { white-space: nowrap; }
#account-open { max-width: min(13rem, 42vw); }
#account-open span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.recent-pages { position: relative; }
.recent-pages summary {
  padding: 0.52rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--mint-soft);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}
.recent-pages ul {
  position: absolute;
  inset: 100% 0 auto auto;
  width: min(16rem, 72vw);
  margin: 0.48rem 0 0;
  padding: 0.3rem;
  border: 1px solid var(--dark-line);
  border-radius: 0.52rem;
  background: var(--card);
  box-shadow: 0 0.5rem 1.5rem #004b3e1c;
  list-style: none;
}
.recent-pages a {
  display: block;
  overflow: hidden;
  padding: 0.53rem 0.62rem;
  border-radius: 0.3rem;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-pages a:hover { background: var(--mint-soft); }

.studio-shell { margin-bottom: clamp(2.7rem, 7vw, 5rem); }
.studio-title-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 3px solid var(--forest-dark);
  background: var(--forest);
  color: white;
}
.studio-title-band::before,
.studio-title-band::after {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: min(47%, 44rem);
  content: "";
  pointer-events: none;
}
.studio-title-band::before {
  background: color-mix(in srgb, var(--mint) 15%, var(--forest));
  clip-path: polygon(51% 0, 100% 0, 100% 100%, 0 100%);
}
.studio-title-band::after {
  background: linear-gradient(120deg, #a2f3c8, var(--mint));
  clip-path: polygon(82% 0, 100% 0, 100% 100%, 30% 100%);
}
.studio-title {
  display: flex;
  position: relative;
  justify-content: space-between;
  align-items: end;
  gap: 1.25rem;
  padding-block: clamp(1.45rem, 2.8vw, 2.55rem) clamp(1.6rem, 3.1vw, 2.7rem);
}
.studio-title .eyebrow {
  align-items: center;
  gap: 0.6rem;
  color: #c2f7da;
  font-size: 0.82rem;
  text-transform: uppercase;
}
.studio-title .ink-square {
  width: 0.48rem;
  height: 0.48rem;
  border-color: transparent;
  border-radius: 0.12rem;
  background: var(--mint);
  transform: rotate(45deg);
}
.studio-title h1 {
  max-width: 56rem;
  margin: 0.2em 0 0;
  font-size: clamp(2.7rem, 5.9vw, 5.75rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  overflow-wrap: anywhere;
}
.studio-title div > p:last-child {
  max-width: 34rem;
  margin: 0.88rem 0 0;
  color: #ddf7eb;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.5;
}
.studio-title .button { flex: 0 0 auto; border-color: var(--forest-dark); color: var(--forest-dark); }
.studio-title .button:hover { background: #e6fbf0; }
.studio-title :focus-visible { outline-color: white; }

.studio-layout {
  display: grid;
  grid-template-columns: minmax(22.5rem, 0.78fr) minmax(0, 1.3fr);
  align-items: start;
  gap: clamp(1rem, 2.2vw, 2rem);
  padding-top: clamp(1.3rem, 3.1vw, 2.6rem);
}
.editor,
.stage {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: var(--card);
  box-shadow: 0 4px 0 #d8efe5;
}
.editor > fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.edit-section { padding: clamp(1rem, 1.95vw, 1.65rem); }
.edit-section + .edit-section,
.editor-actions { border-top: 1px solid var(--line); }
.edit-heading { display: flex; justify-content: space-between; align-items: start; gap: 0.68rem; margin-bottom: 1rem; }
.edit-heading h2 { margin: 0; font-size: 1.31rem; letter-spacing: -0.042em; line-height: 1.14; }
.edit-heading p { margin: 0.32rem 0 0; color: var(--subtle); font-size: 0.94rem; line-height: 1.42; }
.image-count {
  display: grid;
  place-items: center;
  min-width: 3rem;
  padding: 0.36rem 0.52rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: var(--mint-soft);
  color: var(--forest-dark);
  font: 0.78rem/1.05 var(--mono);
  white-space: nowrap;
}
.artwork-controls { display: flex; flex-direction: column; align-items: end; gap: 0.42rem; }
#view-preview { display: none; font-size: 0.88rem; }
.dropzone {
  display: flex;
  align-items: center;
  gap: 0.92rem;
  min-height: 6.1rem;
  padding: 0.85rem 0.95rem;
  border: 1px dashed var(--focus);
  border-radius: 0.64rem;
  background: var(--mint-soft);
  cursor: pointer;
  transition: background 0.16s, box-shadow 0.16s;
}
.dropzone:hover,
.dropzone.dragging { background: #cff7e4; box-shadow: inset 0 0 0 1px var(--focus); }
#images:focus-visible + .dropzone { outline: 3px solid var(--focus); outline-offset: 3px; }
.upload-mark {
  display: grid;
  flex: 0 0 2.72rem;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--forest-dark);
  border-radius: 0.48rem;
  background: var(--mint);
  color: var(--forest-dark);
  font-size: 1.8rem;
  line-height: 1;
}
.dropzone strong,
.dropzone small { display: block; }
.dropzone small { margin-top: 0.22rem; color: var(--subtle); font-size: 0.86rem; line-height: 1.35; }

.photo-list { display: grid; gap: 0.52rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.photo-list:empty { margin: 0; }
.photo-item {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.52rem 0.42rem 0.42rem;
  border: 1px solid var(--line);
  border-radius: 0.58rem;
}
.photo-item img { width: 3.5rem; height: 3.5rem; border-radius: 0.3rem; background: var(--mint-soft); object-fit: cover; }
.photo-item input {
  width: 100%;
  min-height: 1.95rem;
  padding: 0.16rem 0.26rem;
  border: 1px solid transparent;
  border-radius: 0.24rem;
  background: transparent;
  color: var(--ink);
  font-size: 0.91rem;
}
.photo-item input:hover,
.photo-item input:focus-visible { border-color: var(--dark-line); }
.photo-item small { display: block; margin-left: 0.3rem; color: var(--subtle); font-size: 0.8rem; }
.photo-buttons { display: flex; flex-wrap: wrap; justify-content: end; gap: 0.25rem; }
.photo-buttons button,
.subtle-button {
  min-height: 2.1rem;
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: var(--card);
  color: var(--forest-dark);
  font-size: 0.85rem;
  font-weight: 700;
}
.photo-buttons button:hover,
.subtle-button:hover { background: var(--mint-soft); border-color: var(--dark-line); }

.theme-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.48rem; }
.theme-options:has(#legacy-style:not([hidden])) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.theme-options label { position: relative; min-width: 0; cursor: pointer; }
.theme-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.theme-tile {
  display: grid;
  gap: 0.37rem;
  padding: 0.36rem;
  border: 1px solid var(--line);
  border-radius: 0.51rem;
  color: var(--subtle);
  font-size: 0.87rem;
  text-align: center;
}
.theme-options input:checked + .theme-tile {
  border-color: var(--focus);
  background: var(--mint-soft);
  color: var(--forest-dark);
  box-shadow: inset 0 0 0 1px var(--focus);
}
.theme-options input:focus-visible + .theme-tile { outline: 3px solid var(--focus); outline-offset: 3px; }
.theme-options label:hover .theme-tile { border-color: var(--focus); }
.swatch { display: block; height: clamp(2.1rem, 4vw, 3rem); border-radius: 0.29rem; }
.swatch-poster { background: radial-gradient(ellipse at 57% 47%, #ffd19c 0 17%, #ba79d7 18% 31%, #4f245a 32% 46%, #25172e 47%); }
.swatch-arcade {
  border: 4px solid #142821;
  background: linear-gradient(90deg, #142821 69%, transparent 70%) 0 0/10px 100%,
    repeating-linear-gradient(0deg, #5ee9ab 0 2px, #142821 2px 10px);
}
.swatch-classic {
  border: 4px solid #f1e4ce;
  background: linear-gradient(0deg, #b27967 0 56%, #f1e4ce 57% 77%, #443528 78% 85%, #f1e4ce 86%);
}
.color-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
  font-size: 0.94rem;
  font-weight: 700;
}
.color-control > div { display: flex; align-items: center; gap: 0.4rem; }
.color-control input {
  width: 2.23rem;
  height: 2.18rem;
  padding: 0.15rem;
  border: 1px solid var(--dark-line);
  border-radius: 0.35rem;
  background: var(--card);
  cursor: pointer;
}

.field-pair { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 0.68rem; }
.form-field { display: grid; gap: 0.33rem; min-width: 0; margin-bottom: 0.8rem; font-size: 0.93rem; font-weight: 700; }
.form-field input,
.form-field select,
.form-field textarea,
.manual-copy {
  width: 100%;
  min-width: 0;
  min-height: 2.72rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--dark-line);
  border-radius: 0.45rem;
  background: var(--card);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #627e73; }
.form-field select {
  appearance: none;
  padding-right: 1.8rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--subtle) 50%), linear-gradient(135deg, var(--subtle) 50%, transparent 50%);
  background-position: calc(100% - 1.01rem) 50%, calc(100% - 0.71rem) 50%;
  background-size: 0.32rem 0.32rem;
  background-repeat: no-repeat;
  cursor: pointer;
}
.form-field textarea { resize: vertical; line-height: 1.45; }
.form-field small,
.optional-field { color: var(--subtle); font-size: 0.85rem; font-weight: 400; line-height: 1.4; }
.form-field [aria-invalid="true"] { border-color: #aa3737; }
#ca-field { margin-bottom: 0; }

.links-section summary { display: flex; align-items: center; justify-content: space-between; gap: 0.45rem; cursor: pointer; }
.links-section summary::-webkit-details-marker { display: none; }
.links-section summary strong { display: block; font-size: 1.28rem; letter-spacing: -0.04em; }
.links-section summary small { display: block; margin-top: 0.18rem; color: var(--subtle); font-size: 0.94rem; }
.links-section summary > span:last-child {
  display: grid;
  flex: 0 0 2rem;
  place-items: center;
  height: 2rem;
  border-radius: 0.38rem;
  background: var(--mint-soft);
  color: var(--forest);
  font-size: 1.4rem;
}
.links-section[open] summary > span:last-child { transform: rotate(45deg); }
.links-fields { padding-top: 1rem; }
.chart-options { margin: 0 0 0.82rem; padding: 0.72rem; border: 1px solid var(--line); border-radius: 0.46rem; background: #f5fcf8; }
.chart-options .form-field { margin-bottom: 0.45rem; }
.chart-check { display: flex; align-items: center; gap: 0.5rem; min-height: 2rem; cursor: pointer; font-size: 0.93rem; font-weight: 700; }
.chart-check input,
.section-switch input { flex: 0 0 auto; width: 1.12rem; height: 1.12rem; margin: 0; accent-color: var(--focus); cursor: pointer; }
.chart-embed-help { margin: 0.2rem 0 0; color: var(--subtle); font-size: 0.88rem; line-height: 1.4; }
.chart-options .notice { margin-bottom: 0; }
.section-options { display: grid; gap: 0.65rem; }
.section-option { overflow: hidden; border: 1px solid var(--line); border-radius: 0.6rem; }
.section-switch { display: flex; align-items: center; justify-content: space-between; gap: 0.65rem; padding: 0.77rem 0.85rem; cursor: pointer; }
.section-switch:hover,
.section-switch:has(:checked) { background: var(--mint-soft); }
.section-switch strong,
.section-switch small { display: block; }
.section-switch small { margin-top: 0.19rem; color: var(--subtle); font-size: 0.89rem; line-height: 1.35; }
.section-option-fields { padding: 0.82rem 0.85rem; border-top: 1px solid var(--line); background: #f4faf7; }
.section-option-fields .form-field:last-child { margin-bottom: 0; }
.milestone-list { display: grid; gap: 0.65rem; margin: 0 0 0.7rem; padding: 0; list-style: none; }
.milestone-list:empty { margin-bottom: 0; }
.milestone-editor { min-width: 0; padding: 0.7rem; border: 1px solid var(--line); border-radius: 0.46rem; background: var(--card); }
.milestone-header { display: flex; align-items: center; justify-content: space-between; gap: 0.45rem; margin-bottom: 0.46rem; }
.milestone-header strong { font-size: 0.92rem; }
.milestone-limit { margin: 0.45rem 0 0; color: var(--subtle); font-size: 0.86rem; }
.editor-actions { background: #f4fbf7; border-radius: 0 0 0.9rem 0.9rem; }
.editor-actions .button { width: 100%; }
.editor-actions > p:last-child { margin: 0.72rem 0 0; color: var(--subtle); font-size: 0.89rem; line-height: 1.42; text-align: center; }
.notice { padding: 0.62rem 0.72rem; border: 1px solid; border-radius: 0.45rem; font-size: 0.92rem; line-height: 1.45; }
.notice-error { border-color: #e5b4b7; background: #fff2f1; color: #862832; }

.stage {
  position: sticky;
  top: 0.75rem;
  overflow: hidden;
  border-color: var(--forest);
  box-shadow: 0.3rem 0.35rem 0 #d0eedd;
}
.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: 4.18rem;
  padding: 0.62rem clamp(0.72rem, 2vw, 1.15rem);
  border-bottom: 1px solid var(--forest-dark);
  background: var(--forest);
  color: white;
}
.stage-top > div:first-child { display: flex; align-items: center; gap: 0.47rem; }
.stage-top h2 { margin: 0; font-size: 1.05rem; white-space: nowrap; }
.stage-controls { display: flex; align-items: center; gap: 0.42rem; }
.stage-top :focus-visible { outline-color: var(--mint); }
#layout-toggle { border-color: #78b19e; background: #125f50; color: white; white-space: nowrap; }
#layout-toggle:hover { border-color: var(--mint); background: #217d67; }
#layout-toggle[aria-expanded="true"] { border-color: var(--mint); background: var(--mint); color: var(--forest-dark); }
.preview-light { width: 0.52rem; height: 0.52rem; border: 1px solid #8ccabb; border-radius: 50%; }
.stage:has(#preview-frame:not([hidden])) .preview-light { border-color: var(--mint); background: var(--mint); }
.view-tabs { display: flex; gap: 0.15rem; padding: 0.2rem; border: 1px solid #5b9f8e; border-radius: 0.47rem; background: var(--forest-dark); }
.view-tabs button {
  min-height: 1.92rem;
  padding: 0.2rem 0.48rem;
  border: 1px solid transparent;
  border-radius: 0.29rem;
  background: transparent;
  color: #d8f4e7;
  font-size: 0.88rem;
  font-weight: 700;
}
.view-tabs button[aria-pressed="true"] { border-color: #dcf7e9; background: #e9fcf2; color: var(--forest-dark); }
.view-tabs button:hover:not([aria-pressed="true"]) { background: #116653; }
.layout-tools { padding: 0.87rem 0.92rem; border-bottom: 1px solid var(--line); background: #f4fbf8; }
.layout-heading { display: flex; justify-content: space-between; align-items: start; gap: 0.65rem; margin-bottom: 0.6rem; }
.layout-heading h3 { margin: 0; font-size: 1.1rem; letter-spacing: -0.026em; }
.layout-heading p { margin: 0.18rem 0 0; color: var(--subtle); font-size: 0.9rem; line-height: 1.4; }
.layout-heading > button { flex: 0 0 auto; }
.layout-keyboard summary { width: fit-content; color: var(--forest); cursor: pointer; font-size: .87rem; font-weight: 700; }
.layout-keyboard[open] summary { margin-bottom: .38rem; }
.layout-list { display: grid; gap: 0.35rem; max-height: 14rem; margin: 0; padding: 0.16rem 0.25rem; overflow: auto; overscroll-behavior: contain; list-style: none; }
.layout-row { display: flex; align-items: center; gap: 0.49rem; padding: 0.17rem 0.35rem 0.17rem 0.22rem; border: 1px solid var(--line); border-radius: 0.4rem; background: var(--card); font-size: 0.93rem; }
.layout-row strong { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.layout-row button {
  display: grid;
  flex: 0 0 2rem;
  place-items: center;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.34rem;
  background: var(--card);
  color: var(--forest-dark);
  font-size: 1rem;
  line-height: 1;
}
.layout-row button:hover:not(:disabled) { border-color: var(--dark-line); background: var(--mint-soft); }
.layout-row button:disabled { opacity: 0.5; cursor: default; }
.layout-grip {
  display: grid;
  flex: 0 0 1.85rem;
  place-items: center;
  height: 2.15rem;
  border-radius: 0.3rem;
  color: var(--forest);
  font-size: 1.16rem;
  line-height: 1;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.layout-grip:hover { background: var(--mint-soft); }
.layout-list.is-dragging,
.layout-list.is-dragging .layout-grip { cursor: grabbing; }
.layout-row.is-dragged { opacity: 0.55; }
.layout-row.drop-before { box-shadow: 0 -2px var(--focus); }
.layout-row.drop-after { box-shadow: 0 2px var(--focus); }

.preview-bed { display: grid; place-items: start center; min-height: 23rem; background: #e5f2eb; scroll-margin-top: 1rem; }
.preview-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  width: 100%;
  min-height: clamp(24rem, 51vh, 35rem);
  padding: 2rem 1.1rem;
  background:
    radial-gradient(ellipse at 50% 44%, #f9fffc 0, #effbf5d9 30%, transparent 69%),
    repeating-linear-gradient(0deg, #16866214 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, #16866214 0 1px, transparent 1px 24px),
    linear-gradient(148deg, #f2f9f5 0 59%, #a1d8c4 59% 60%, #d9f6e8 60% 100%);
  text-align: center;
}
.preview-orbit {
  display: grid;
  place-items: center;
  width: 4.35rem;
  height: 4.35rem;
  padding: 0.16rem;
  border: 1px solid var(--dark-line);
  border-radius: 0.82rem;
  background: white;
  box-shadow: 0.27rem 0.27rem 0 #a1d8c4;
}
.preview-orbit img { width: 3.7rem; height: 3.7rem; object-fit: contain; }
.preview-placeholder h3 { margin: 1rem 0 0.35rem; font-size: clamp(1.65rem, 3.5vw, 2.8rem); line-height: 1.03; letter-spacing: -0.07em; }
.preview-placeholder p { margin: 0.1rem 0 1rem; color: var(--subtle); line-height: 1.4; }
.preview-placeholder .text-link { color: var(--forest-dark); }
#preview-frame { display: block; width: 100%; height: clamp(27rem, 62vh, 49rem); border: 0; background: #10281f; }
.view-phone #preview-frame { width: min(100%, 390px); border-inline: 1px solid var(--forest-dark); }
.share-panel { padding: 1.08rem; border-top: 1px solid var(--line); }
.share-panel .edit-heading { margin-bottom: 0.64rem; }
.share-row { display: flex; align-items: center; justify-content: space-between; gap: 0.58rem; padding-block: 0.7rem; border-top: 1px solid var(--line); }
.share-row small { display: block; margin-top: 0.17rem; color: var(--subtle); font-size: 0.87rem; line-height: 1.38; }
.share-row button { flex: 0 0 auto; }
.share-panel > a { display: inline-block; margin-top: 0.46rem; }
.manual-copy { margin-block: 0.46rem; }

.payment-dialog,
.account-dialog {
  width: min(38rem, calc(100% - 1.4rem));
  max-height: calc(100% - 1.4rem);
  margin: auto;
  padding: clamp(1rem, 3.5vw, 1.7rem);
  overflow: auto;
  border: 1px solid var(--forest);
  border-radius: 1rem;
  color: var(--ink);
  background: var(--card);
  box-shadow: 0 1.3rem 5rem #043b3252;
}
.payment-dialog::backdrop,
.account-dialog::backdrop { background: #002c25a6; }
.account-dialog { width: min(29rem, calc(100% - 1.4rem)); }
.account-heading { display: flex; align-items: start; justify-content: space-between; gap: 0.85rem; }
.account-heading h2 { margin: 0; font-size: clamp(1.7rem, 6.6vw, 2.6rem); line-height: 1; letter-spacing: -0.055em; }
.account-intro { margin: 0.65rem 0 1rem; color: var(--subtle); line-height: 1.45; overflow-wrap: anywhere; }
.account-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.55rem 1rem; margin-top: 1rem; }
.account-mode { border: 0; padding: 0.4rem 0; background: transparent; text-decoration: underline; }
.account-dialog .notice { margin-bottom: 0; }
.account-save-status { margin: 0; color: var(--subtle); font-size: 0.87rem; line-height: 1.4; }
.account-save-status:not(:empty) { margin-bottom: 0.55rem; }
.payment-heading { display: flex; justify-content: space-between; align-items: start; gap: .7rem; }
.payment-heading h2 { margin: 0; font-size: clamp(1.9rem, 7vw, 2.75rem); letter-spacing: -.07em; line-height: 1; }
.payment-heading p { max-width: 30rem; margin: .55rem 0 0; color: var(--subtle); line-height: 1.45; }
.payment-heading .payment-network {
  width: fit-content;
  margin: 0 0 .5rem;
  padding: .27rem .52rem;
  border: 1px solid #b18439;
  border-radius: .4rem;
  color: #694300;
  background: #fff4d9;
  font-size: .85rem;
  font-weight: 700;
}
.payment-heading .payment-network[data-testing="false"] {
  border-color: var(--dark-line);
  color: var(--forest);
  background: var(--mint-soft);
}
.payment-details {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(.68rem, 3vw, 1.08rem);
  margin-block: 1rem;
  padding: .72rem;
  border: 1px solid var(--line);
  border-radius: .68rem;
  background: #f4fbf7;
}
.payment-qr {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: .42rem;
  background: white;
}
.payment-info { min-width: 0; }
.payment-info .button { margin: 0 0 .55rem; }
.payment-devnet-note { margin: 0 0 .5rem; color: #694300; font-size: .87rem; font-weight: 700; line-height: 1.35; }
.payment-devnet-note[data-testing="false"] { color: var(--subtle); }
.payment-address-label { margin: 0 0 .26rem; font-size: .9rem; font-weight: 700; }
.payment-address {
  display: block;
  padding: .45rem .55rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: white;
  font: .84rem/1.35 var(--mono);
  overflow-wrap: anywhere;
  user-select: all;
}
.payment-copy-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.payment-address-help { margin: .42rem 0 0; color: var(--subtle); font-size: .84rem; line-height: 1.38; }
.payment-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .55rem; }
.payment-footer p { margin: 0; font-size: .94rem; font-weight: 650; }
.payment-recovery { margin-top: .68rem; padding: .15rem 0; border: 0; background: transparent; text-decoration: underline; }
.payment-dialog .manual-copy { margin-bottom: 0; }

@media (max-width: 35rem) {
  .payment-details { grid-template-columns: 1fr; justify-items: center; }
  .payment-qr { width: min(100%, 10rem); }
  .payment-info { width: 100%; }
}

@media (max-width: 64rem) {
  .studio-layout { grid-template-columns: minmax(20rem, 1fr) minmax(0, 1.12fr); }
  .stage-top { flex-wrap: wrap; }
}

@media (max-width: 48rem) {
  .studio-layout { grid-template-columns: minmax(0, 1fr); }
  .studio-title { align-items: start; flex-wrap: wrap; }
  .studio-title-band::before { opacity: 0.9; }
  .studio-title-band::after { opacity: 0.34; }
  .stage { position: relative; top: 0; }
  #view-preview { display: inline; }
}

@media (max-width: 33rem) {
  .studio-body .header-row { flex-wrap: wrap; row-gap: 0.45rem; padding-block: 0.5rem; }
  .studio-nav { margin-left: auto; gap: 0.6rem; }
  .studio-example-link { display: none; }
  .photo-item { grid-template-columns: 2.9rem minmax(0, 1fr); }
  .photo-item img { width: 2.9rem; height: 2.9rem; }
  .photo-buttons { grid-column: 2; justify-content: start; }
  .preview-placeholder { min-height: 21.75rem; }
}

@media (max-width: 25rem) {
  .studio-example-link { display: none; }
  .studio-title h1 { font-size: 2.63rem; }
  .stage-controls { width: 100%; justify-content: space-between; }
}
