/* Nicecard Studio inspector — the right-hand panel for a selected element (inspector.js).
   Compact rows on a light ground like the reference editor: label left, control right. */
.sti {
  --sti-ground: #f6f2ed;
  --sti-ground-2: #efe9e1;
  --sti-line: #e7dfd4;
  --sti-ink: #4a3f36;
  --sti-mute: #8a7c6e;
  --sti-accent: #a96854;
  --sti-accent-soft: #f4e4db;
  --sti-accent-ink: #7a4033;
  --sti-danger: #a6443a;
  --sti-check: repeating-conic-gradient(#e4ddd4 0% 25%, #fbf9f6 0% 50%) 50% / 12px 12px;
  color: var(--sti-ink);
  font-size: 13px;
  line-height: 1.45;
  min-width: 0;
}
.sti *,
.sti *::before,
.sti *::after {
  box-sizing: border-box;
}
.sti button,
.sti input,
.sti select,
.sti textarea {
  font: inherit;
  color: inherit;
}
.sti :focus-visible {
  outline: 2px solid var(--sti-accent);
  outline-offset: 2px;
}
.sti-ico {
  flex: none;
  display: block;
}

/* ── Back to 基本信息: a quiet link above the tabs ── */
.sti-back {
  display: block;
  width: 100%;
  padding: 10px 16px 9px;
  border: 0;
  border-bottom: 1px solid var(--sti-line);
  background: #fffdf9;
  color: var(--sti-mute);
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
}
.sti-back:hover {
  color: var(--sti-accent-ink);
}
.sti-back:focus-visible {
  outline-offset: -3px;
}

/* ── The wedding's basic facts (names, date, place): the 基本信息 panel and a derived element's inputs ── */
.sti-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}
.sti-info-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.sti-info-field--wide {
  grid-column: 1 / -1;
}
.sti-info-field .sti-sub {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--sti-mute);
}
.sti-info-field .sti-input {
  padding: 8px 10px;
}

/* ── Tabs: sticky while the body scrolls ── */
.sti-tabs {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--sti-ground-2);
  border-bottom: 1px solid var(--sti-line);
}
.sti-tabs button {
  border: 0;
  background: transparent;
  padding: 17px 6px 16px;
  font-size: 14px;
  color: var(--sti-mute);
  cursor: pointer;
  white-space: nowrap;
}
.sti-tabs button:hover {
  color: var(--sti-ink);
}
.sti-tabs button[aria-selected='true'] {
  background: #fffdf9;
  color: var(--sti-accent-ink);
  font-weight: 600;
  box-shadow: inset 0 -2px var(--sti-accent);
}
.sti-tabs button:focus-visible {
  outline-offset: -3px;
}

/* ── Body and rows ── */
.sti-body {
  padding: 16px 16px 28px;
}
.sti-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sti-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
  min-height: 44px;
  padding: 7px 8px 7px 12px;
  border-radius: 8px;
  background: var(--sti-ground);
}
.sti-row.is-disabled {
  opacity: 0.55;
}
.sti-label {
  font-size: 13px;
  color: var(--sti-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sti-sub {
  display: block;
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--sti-ink);
}
h4.sti-sub {
  margin: 10px 0 0;
}
.sti-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sti-field .sti-sub {
  margin: 0;
}
.sti-input,
.sti-text {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--sti-ground);
  color: var(--sti-ink);
}
.sti-input:hover,
.sti-text:hover {
  border-color: var(--sti-line);
}
.sti-input:focus,
.sti-text:focus {
  outline: none;
  border-color: var(--sti-accent);
  background: #fff;
}
.sti-input[aria-invalid='true'] {
  border-color: var(--sti-danger);
}
.sti-text {
  resize: vertical;
  min-height: 44px;
  line-height: 1.5;
  text-align: center;
}
.sti-note {
  margin: 2px 2px 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--sti-mute);
}
/* Something guests will notice, said before it goes out (a video with no cover image). */
.sti-note--warn {
  padding: 8px 10px;
  border-radius: 8px;
  background: #fbefe9;
  color: #a2443a;
}
.sti-error {
  margin: 0 2px;
  font-size: 12px;
  color: var(--sti-danger);
}
.sti-ok {
  display: flex;
  align-items: flex-start;
  overflow-wrap: anywhere;
  gap: 5px;
  margin: 0 2px;
  font-size: 12px;
  color: #3f5c36;
}

/* ── Slider + number box ── */
.sti-range {
  --p: 0%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-width: 0;
  height: 18px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.sti-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--sti-accent) var(--p), #e3dbd1 var(--p));
}
.sti-range::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--sti-accent) var(--p), #e3dbd1 var(--p));
}
.sti-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  margin-top: -5.5px;
  border: 2px solid var(--sti-accent);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(58, 49, 40, 0.18);
}
.sti-range::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 2px solid var(--sti-accent);
  border-radius: 50%;
  background: #fff;
}
.sti-range:disabled {
  cursor: default;
}
.sti-range:focus-visible {
  outline-offset: 4px;
}
.sti-num {
  display: inline-flex;
  align-items: stretch;
  height: 30px;
  border: 1px solid var(--sti-line);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
.sti-num:focus-within {
  border-color: var(--sti-accent);
}
.sti-num input {
  width: 44px;
  min-width: 0;
  padding: 0 4px 0 6px;
  border: 0;
  background: transparent;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.sti-num input:focus-visible {
  outline: none;
}
.sti-num-steps {
  display: flex;
  flex-direction: column;
  width: 16px;
  border-left: 1px solid var(--sti-line);
}
.sti-num-steps button {
  position: relative;
  flex: 1;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.sti-num-steps button::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -2px 0 0 -3.5px;
  border: 3.5px solid transparent;
  border-bottom: 4px solid var(--sti-mute);
  border-top-width: 0;
}
.sti-num-steps button + button::before {
  border-top: 4px solid var(--sti-mute);
  border-bottom-width: 0;
}
.sti-num-steps button:hover {
  background: var(--sti-ground);
}
.sti-num-steps button:disabled {
  opacity: 0.35;
  cursor: default;
}
.sti-num.is-disabled {
  opacity: 0.6;
}

/* ── Colour bar + swatches ── */
.sti-row--color {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  row-gap: 8px;
}
.sti-colorbar {
  position: relative;
  grid-column: 2 / 3;
  height: 22px;
  border-radius: 5px;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(58, 49, 40, 0.14);
}
.sti-row--color:not(:has(.sti-clear)) .sti-colorbar {
  grid-column: 2 / 4;
}
.sti-colorbar.is-empty {
  background: var(--sti-check);
}
.sti-colorbar input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: 0;
  padding: 0;
}
.sti-colorbar:focus-within {
  outline: 2px solid var(--sti-accent);
  outline-offset: 2px;
}
.sti-hex {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: rgba(40, 32, 26, 0.72);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.sti-hex.is-light {
  color: rgba(255, 255, 255, 0.86);
}
.sti-colorbar.is-empty .sti-hex {
  color: var(--sti-mute);
}
.sti-clear {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--sti-line);
  border-radius: 6px;
  background: #fff;
  color: var(--sti-mute);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.sti-clear:hover {
  color: var(--sti-danger);
}
.sti-swatches {
  grid-column: 2 / 4;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sti-swatch {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(58, 49, 40, 0.18);
  cursor: pointer;
}
.sti-swatch-sep {
  align-self: center;
  width: 1px;
  height: 16px;
  margin: 0 2px;
  background: rgba(58, 49, 40, 0.22);
}
.sti-swatch[aria-pressed='true'] {
  box-shadow: inset 0 0 0 1px rgba(58, 49, 40, 0.18), 0 0 0 2px #fff, 0 0 0 3.5px var(--sti-accent);
}

/* ── Font picker + size ── */
.sti-fontrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 8px;
  background: var(--sti-ground);
}
.sti-font {
  position: relative;
  min-width: 0;
}
.sti-font-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  height: 30px;
  padding: 0 8px 0 10px;
  border: 1px solid var(--sti-line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}
.sti-font-btn > span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
}
.sti-font-btn[aria-expanded='true'] {
  border-color: var(--sti-accent);
}
.sti-font-list {
  position: absolute;
  z-index: 6;
  top: calc(100% + 4px);
  left: 0;
  width: max(100%, 236px);
  max-height: 300px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid var(--sti-line);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: 0 16px 36px -14px rgba(58, 49, 40, 0.4);
  overscroll-behavior: contain;
}
.sti-font-list:focus-visible {
  outline: 2px solid var(--sti-accent);
  outline-offset: 0;
}
.sti-font-group {
  padding: 9px 10px 3px;
  font-family: var(--f-sans, sans-serif);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--sti-mute);
}
.sti-font-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
}
.sti-font-opt.is-active {
  background: var(--sti-ground);
}
.sti-font-opt[aria-selected='true'] {
  color: var(--sti-accent-ink);
}
.sti-font-opt:first-child {
  font-size: 14px;
  border-bottom: 1px solid var(--sti-line);
  border-radius: 6px 6px 0 0;
}

/* ── Tool rows: B / I / U, alignment ── */
.sti-row--tools {
  display: flex;
  gap: 4px;
  padding: 5px;
}
.sti-tool {
  flex: 1;
  display: grid;
  place-items: center;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--sti-ink);
  font-size: 16px;
  cursor: pointer;
}
.sti-tool:hover {
  background: var(--sti-ground-2);
}
.sti-tool[aria-pressed='true'] {
  background: #fff;
  color: var(--sti-accent-ink);
  box-shadow: 0 0 0 1px var(--sti-accent) inset;
}
.sti .sti-tool--b {
  font-weight: 700;
  font-family: Georgia, serif;
}
.sti .sti-tool--i {
  font-style: italic;
  font-family: Georgia, serif;
}
.sti .sti-tool--u {
  text-decoration: underline;
  font-family: Georgia, serif;
}

/* ── Selects ── */
.sti-row--select {
  grid-template-columns: 64px minmax(0, 1fr);
}
.sti-select {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--sti-line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.sti-select--boxed {
  height: 40px;
  background: var(--sti-ground);
  border-color: transparent;
}
.sti-select[aria-invalid='true'] {
  border-color: var(--sti-danger);
}

/* ── Buttons ── */
.sti-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--sti-ground);
  color: var(--sti-ink);
  cursor: pointer;
  white-space: nowrap;
}
.sti-btn:hover:not(:disabled) {
  background: var(--sti-ground-2);
}
.sti-btn[aria-pressed='true'] {
  background: var(--sti-accent-soft);
  border-color: #cf9f8c;
  color: var(--sti-accent-ink);
}
.sti-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
/* Two classes: the panel's `.sti button { color: inherit }` would win over one. */
.sti .sti-btn--accent {
  background: var(--sti-accent);
  color: #fff;
}
.sti-btn--accent:hover:not(:disabled) {
  background: #945643;
}
.sti-btn--danger {
  color: var(--sti-danger);
}
.sti-wide {
  width: 100%;
}
.sti-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sti-pair > .sti-btn {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sti-icon-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--sti-mute);
  cursor: pointer;
}
.sti-icon-btn:hover:not(:disabled) {
  background: var(--sti-ground);
  color: var(--sti-danger);
}
.sti-icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.sti-footer {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}
.sti-footer.sti-pair {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

/* ── Photo preview + crop ── */
.sti-photo {
  display: grid;
  /* One track the size of the box, so the photo's max-height resolves and a tall photo is shown whole. */
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  box-sizing: border-box;
  height: 176px;
  border-radius: 8px;
  background: var(--sti-ground);
  overflow: hidden;
  padding: 8px;
}
.sti-photo img {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}
.sti-crop {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sti-crop-ground {
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 8px;
  background: var(--sti-ground-2);
}
.sti-crop-stage {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  line-height: 0;
}
.sti-crop-stage.is-movable {
  cursor: move;
}
.sti-crop-stage img {
  display: block;
  max-width: 100%;
  max-height: 220px;
  width: auto;
  height: auto;
  pointer-events: none;
}
.sti-crop-win {
  position: absolute;
  border: 1.5px solid #fff;
  box-shadow: 0 0 0 999px rgba(24, 18, 15, 0.6);
  background-image: linear-gradient(to right, transparent calc(33.33% - 0.5px), rgba(255, 255, 255, 0.45) calc(33.33% - 0.5px), rgba(255, 255, 255, 0.45) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px), transparent calc(66.66% - 0.5px), rgba(255, 255, 255, 0.45) calc(66.66% - 0.5px), rgba(255, 255, 255, 0.45) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px)),
    linear-gradient(to bottom, transparent calc(33.33% - 0.5px), rgba(255, 255, 255, 0.45) calc(33.33% - 0.5px), rgba(255, 255, 255, 0.45) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px), transparent calc(66.66% - 0.5px), rgba(255, 255, 255, 0.45) calc(66.66% - 0.5px), rgba(255, 255, 255, 0.45) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px));
  pointer-events: none;
}
/* Corner grips sit inside the window, so the stage's clip never cuts them; each one resizes the window. */
.sti-crop-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: auto;
  touch-action: none;
}
.sti-crop-corner::before {
  content: '';
  position: absolute;
  inset: 1px;
  border: 0 solid #fff;
  filter: drop-shadow(0 0 1px rgba(24, 18, 15, 0.7));
}
.sti-crop-corner--nw {
  left: 0;
  top: 0;
  cursor: nwse-resize;
}
.sti-crop-corner--nw::before {
  border-width: 3px 0 0 3px;
}
.sti-crop-corner--ne {
  right: 0;
  top: 0;
  cursor: nesw-resize;
}
.sti-crop-corner--ne::before {
  border-width: 3px 3px 0 0;
}
.sti-crop-corner--sw {
  left: 0;
  bottom: 0;
  cursor: nesw-resize;
}
.sti-crop-corner--sw::before {
  border-width: 0 0 3px 3px;
}
.sti-crop-corner--se {
  right: 0;
  bottom: 0;
  cursor: nwse-resize;
}
.sti-crop-corner--se::before {
  border-width: 0 3px 3px 0;
}
.sti-crop-stage:focus-visible {
  outline: 2px solid var(--sti-accent);
  outline-offset: 3px;
}

/* ── Decoration preview ── */
.sti-decor-preview {
  display: grid;
  place-items: center;
  height: 140px;
  border-radius: 8px;
  background: var(--sti-ground);
  overflow: hidden;
}
.sti-decor-art {
  display: block;
  max-width: 100%;
}
.sti-decor-glyph {
  display: block;
  max-width: 90%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ── Folds: 边框样式 › / 阴影样式 › ── */
.sti-fold {
  border-top: 1px solid var(--sti-line);
  margin: 0 -16px;
  padding: 0 16px;
}
.sti-fold + .sti-fold {
  margin-top: -8px;
}
.sti-fold:not(:has(+ .sti-fold)) {
  border-bottom: 1px solid var(--sti-line);
}
.sti-fold-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.sti-fold-head .sti-ico {
  color: var(--sti-mute);
  transition: transform 0.16s ease;
}
.sti-fold-head[aria-expanded='true'] .sti-ico {
  transform: rotate(90deg);
}
.sti-fold-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 0 14px;
}

/* ── Radios: segmented row, tile grid ── */
.sti-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 2px 2px 4px;
}
.sti-radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.sti-radio input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--sti-accent);
  cursor: pointer;
}
.sti-radio.is-disabled {
  opacity: 0.5;
  cursor: default;
}
.sti-radios--grid,
.sti-radios--tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0;
}
.sti-radios--tiles {
  grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
}
.sti-radios--grid .sti-radio,
.sti-radios--tiles .sti-radio {
  justify-content: center;
  min-height: 38px;
  padding: 6px 4px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--sti-ground);
  font-size: 12.5px;
}
.sti-radios--tiles .sti-radio {
  flex-direction: column;
  gap: 5px;
  min-height: 56px;
}
.sti-radios--grid .sti-radio input,
.sti-radios--tiles .sti-radio input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.sti-radios--grid .sti-radio:hover,
.sti-radios--tiles .sti-radio:hover {
  background: var(--sti-ground-2);
}
.sti-radios--grid .sti-radio.is-on,
.sti-radios--tiles .sti-radio.is-on {
  background: var(--sti-accent-soft);
  border-color: #cf9f8c;
  color: var(--sti-accent-ink);
}
.sti-radios--grid .sti-radio:focus-within,
.sti-radios--tiles .sti-radio:focus-within {
  outline: 2px solid var(--sti-accent);
  outline-offset: 1px;
}
.sti-radios--grid .sti-radio:focus-within:not(:has(:focus-visible)),
.sti-radios--tiles .sti-radio:focus-within:not(:has(:focus-visible)) {
  outline: none;
}
.sti-playback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Line and shadow samples inside the tiles. */
.sti-line {
  display: block;
  width: 24px;
  height: 0;
  border-top: 2px solid currentColor;
}
.sti-line--none {
  border: 0;
  height: 2px;
  background: linear-gradient(to right, transparent 45%, currentColor 45%, currentColor 55%, transparent 55%);
  transform: rotate(-35deg);
}
.sti-line--dashed {
  border-top-style: dashed;
}
.sti-line--double {
  border-top: 5px double currentColor;
}
.sti-line--dotted {
  border-top-style: dotted;
  border-top-width: 3px;
}
.sti-shade {
  display: block;
  width: 20px;
  height: 14px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(58, 49, 40, 0.18);
}
.sti-shade--soft {
  box-shadow: 0 4px 9px rgba(45, 35, 30, 0.35);
}
.sti-shade--hard {
  box-shadow: 3px 3px 0 rgba(45, 35, 30, 0.6);
}
.sti-shade--glow {
  box-shadow: 0 0 8px 2px rgba(214, 160, 110, 0.85);
}

/* ── Animation head, hidden banner ── */
.sti-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sti-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.sti-hidden {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 10px 10px 12px;
  border-radius: 8px;
  background: #fbeae4;
  color: var(--sti-accent-ink);
  font-size: 12.5px;
}
.sti-hidden .sti-btn {
  min-height: 32px;
  background: #fff;
  flex: none;
}

/* Narrow panels (the 300px column, a phone's bottom sheet): let the label column shrink a little. */
@media (max-width: 1100px) {
  .sti-row,
  .sti-row--color {
    grid-template-columns: 56px minmax(0, 1fr) auto;
  }
  .sti-row--select {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .sti-tabs button {
    padding: 14px 6px 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sti-photo img,
  .sti-fold-head .sti-ico {
    transition: none;
  }
}
/* Fingers: bigger step arrows and number boxes. */
@media (pointer: coarse) {
  .sti-num {
    height: 34px;
  }
  .sti-num-steps {
    width: 22px;
  }
  .sti-swatch {
    width: 26px;
    height: 26px;
  }
  .sti-crop-corner {
    width: 26px;
    height: 26px;
  }
}

/* ── A free element's left / top / width / height ── */
.sti-xygrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  padding: 4px 0 2px;
}
.sti-xy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sti-xy .sti-sub {
  margin: 0;
  font-weight: 500;
}

/* ── A video the couple added: its still, and where its cover image comes from ── */
.sti-photo--video {
  position: relative;
  padding: 0;
  background: #1c1815;
}
.sti-photo--video img,
.sti-photo--video video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}
.sti-video-cover {
  gap: 8px;
}
.sti-video-pane {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sti-video-scrub {
  display: block;
  width: 100%;
  max-height: 220px;
  border-radius: 8px;
  background: #1c1815;
}
.sti-video-tray {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  max-height: 176px;
  overflow-y: auto;
}
.sti-video-pick {
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--sti-ground);
  cursor: pointer;
}
.sti-video-pick[aria-pressed='true'] {
  border-color: var(--action, #a6443a);
  box-shadow: 0 0 0 2px rgba(166, 68, 58, 0.25);
}
.sti-video-pick img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
