.frame-studio {
  padding: clamp(36px, 6vw, 85px) var(--gutter) clamp(52px, 8vw, 110px);
  background: radial-gradient(ellipse at 90% 14%, #e0ebd4 0%, transparent 50%), var(--cream);
}
#supporter-frame { scroll-margin-top: var(--header-height, 94px); }
.frame-intro, .frame-workspace { max-width: 1190px; margin-inline: auto; }
.frame-intro { margin-bottom: clamp(27px, 4vw, 55px); }
.frame-back {
  display: inline-block;
  border-bottom: 1px solid #9baf98;
  padding-bottom: 5px;
  margin-bottom: 24px;
  font-size: .85rem;
}
.frame-intro #frame-title { font-size: clamp(45px, 6.4vw, 96px); line-height: .99; }
.frame-title-accent { color: #3a684e; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.045em; }
.frame-intro p { max-width: 56ch; margin-top: 18px; color: #45614f; font-size: clamp(16px, 2vw, 19px); }
.frame-workspace {
  display: grid;
  grid-template-columns: minmax(290px, .77fr) minmax(0, 1.23fr);
  gap: clamp(16px, 3vw, 35px);
  align-items: start;
}
.frame-editor, .frame-preview {
  min-width: 0;
  border: 1px solid #cdd8c8;
  border-radius: 14px;
}
.frame-editor {
  display: grid;
  gap: 23px;
  padding: clamp(19px, 3.1vw, 40px);
  background: #fffff8;
  box-shadow: 0 16px 40px #1f4a3220;
}
.frame-editor #editor-title { font-size: clamp(29px, 3.1vw, 44px); }
.frame-label { display: block; font-size: .88rem; font-weight: 700; margin-bottom: 9px; }
.frame-upload input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 50px;
  padding: 5px;
  border: 1px dashed #95a98d;
  border-radius: 7px;
  color: #526953;
  background: #f4f6ec;
  font-size: .78rem;
}
.frame-upload input::file-selector-button {
  border: 0;
  border-radius: 4px;
  padding: 9px 11px;
  margin-right: 8px;
  background: #e1eccf;
  color: #173d31;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.frame-upload p, .frame-adjust p, #frame-status { color: #536955; font-size: .78rem; line-height: 1.5; }
.frame-upload p { margin-top: 7px; }
.frame-format { min-width: 0; border: 0; padding: 0; margin: 0; }
.frame-format-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.frame-format-options label { display: flex; align-items: center; gap: 7px; justify-content: center; min-height: 44px; padding: 6px 4px; border: 1px solid #cbd8c3; border-radius: 5px; font-size: .8rem; cursor: pointer; }
.frame-format-options label:has(:checked) { border-color: #507256; background: #ecf2de; }
.frame-format-options input, .frame-adjust input { accent-color: #285c43; }
.frame-format-options small { font-size: .7rem; color: #546a58; }
.frame-adjust-label, .frame-adjust-footer, .frame-preview-header, .frame-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.frame-adjust-label output { margin-bottom: 9px; font-size: .78rem; }
.frame-adjust input { width: 100%; min-height: 30px; margin: 0; }
.frame-adjust-footer { align-items: flex-start; margin-top: 4px; }
.frame-text-button { background: transparent; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; font-size: .78rem; padding: 0; min-height: 38px; text-wrap: nowrap; }
.frame-actions { justify-content: flex-start; flex-wrap: wrap; }
.frame-actions .button { min-height: 46px; padding: 10px 16px; }
.frame-text-button:disabled, .frame-actions .button:disabled { opacity: .52; cursor: default; }
#frame-status:empty { display: none; }
.frame-preview { padding: clamp(13px, 2.3vw, 28px); background: #e8efe1; }
.frame-preview-header { margin-bottom: 10px; font-size: .8rem; font-weight: 700; }
.frame-preview-header span + span { font-size: .75rem; font-weight: 500; color: #4c6651; }
.frame-stage { position: relative; display: grid; place-items: center; }
.frame-preview-upload {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-height: 48px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 12px clamp(15px, 3vw, 24px);
  border: 1px solid #f3f5e4;
  border-radius: 999px;
  background: var(--green);
  color: #fffdf2;
  font-size: clamp(.85rem, 2vw, .95rem);
  font-weight: 700;
  box-shadow: 0 8px 22px #14392930;
}
.frame-preview-upload:hover { background: #173d31; }
#frame-canvas {
  display: block;
  width: min(100%, 490px);
  height: auto;
  box-shadow: 0 12px 30px #173d3140;
  user-select: none;
}
#frame-canvas.has-photo { cursor: grab; touch-action: none; }
#frame-canvas.is-dragging { cursor: grabbing; }
#frame-canvas:focus-visible { outline: 3px solid #986c16; outline-offset: 4px; }
.ticket-frame-link { display: table; margin-top: 16px; }
@media (max-width: 760px) {
  .frame-workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
    border: 1px solid #cdd8c8;
    border-radius: 14px;
    background: #fffff8;
  }
  .frame-editor { display: contents; }
  .frame-preview { grid-row: 3; }
  #frame-canvas { width: min(100%, 340px); }
}
