/* Photo-based editor. Geometry belongs to studio-model-v15.js, never to CSS. */
.studio-v15 {
  --se-ink: #122b45;
  --se-muted: #63778a;
  --se-border: #dce5ed;
  --se-paper: #f5f8fa;
  color: var(--se-ink);
  background: #f7f9fb;
}
.studio-v15 .se-shell {
  padding-block: 26px 38px;
  max-width: 1600px;
}
.studio-v15 .se-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
}
.studio-v15 .se-breadcrumb {
  display: flex;
  gap: 10px;
  color: var(--se-muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.studio-v15 .se-heading h1 {
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0 0 8px;
}
.studio-v15 .se-heading p {
  font-size: 15px;
  margin: 0;
  color: var(--se-muted);
}
.studio-v15 .se-help-link {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.studio-v15 .se-status {
  padding: 12px 16px;
  margin: 0 0 16px;
  background: #eaf1f7;
  border: 1px solid var(--se-border);
  border-radius: 10px;
  font-size: 14px;
}
.studio-v15 .se-status[data-error='true'] {
  color: #8b2929;
  background: #fff2ef;
  border-color: #efc3ba;
}
.studio-v15 .se-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(330px, 0.85fr);
  gap: 24px;
  align-items: start;
}
.studio-v15 .se-preview {
  border: 1px solid var(--se-border);
  border-radius: 18px;
  overflow: hidden;
  background: white;
  position: sticky;
  top: calc(var(--pd-header-height, 150px) + 14px);
  min-width: 0;
}
.studio-v15 .se-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 6px;
  gap: 12px;
}
.studio-v15 .se-kicker {
  font-size: 11px;
  letter-spacing: 0.13em;
  font-weight: 700;
}
.studio-v15 .se-history {
  display: flex;
  gap: 6px;
}
.studio-v15 .se-history button {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid var(--se-border);
  border-radius: 10px;
  color: var(--se-ink);
  background: white;
  font-size: 25px;
}
.studio-v15 .se-views {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 18px 12px;
}
.studio-v15 .se-views button {
  padding: 10px 4px;
  min-height: 44px;
  border: 1px solid var(--se-border);
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.2;
  background: white;
  color: var(--se-ink);
}
.studio-v15 .se-views button[aria-pressed='true'] {
  background: var(--se-ink);
  border-color: var(--se-ink);
  color: white;
}
.studio-v15 .se-stage {
  aspect-ratio: 1;
  width: 100%;
  max-height: clamp(340px, calc(100svh - var(--pd-header-height, 150px) - 290px), 640px);
  position: relative;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.studio-v15 #se-canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  touch-action: none;
  max-width: none;
  aspect-ratio: 1;
  cursor: default;
}
.studio-v15 .se-stage-message {
  position: absolute;
  inset: 40% 24px auto;
  text-align: center;
  color: var(--se-muted);
  background: #ffffffed;
  padding: 16px;
  border-radius: 10px;
  pointer-events: none;
}
.studio-v15 .se-preview-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid #edf1f5;
  font-size: 12px;
}
.studio-v15 #se-view-label {
  color: var(--se-muted);
  text-align: right;
}
.studio-v15 .se-caption {
  margin: 0;
  padding: 0 18px 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--se-muted);
}
.studio-v15 .se-controls {
  background: white;
  border: 1px solid var(--se-border);
  border-radius: 18px;
  padding: 22px;
  min-width: 0;
}
.studio-v15 label:not(.se-checkbox) {
  display: block;
  color: var(--se-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
}
.studio-v15 input:not([type='checkbox']):not([type='file']),
.studio-v15 select,
.studio-v15 textarea {
  font: inherit;
  font-size: 15px;
  color: var(--se-ink);
  background: white;
  border: 1px solid #cad8e4;
  border-radius: 9px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 11px;
  box-shadow: none;
  line-height: 1.35;
}
.studio-v15 input[type='color'] {
  padding: 4px !important;
  cursor: pointer;
}
.studio-v15 textarea {
  resize: vertical;
  min-height: 70px;
}
.studio-v15 .se-product-fields select {
  margin-bottom: 12px;
}
.studio-v15 .se-note {
  color: var(--se-muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 8px 0 12px;
}
.studio-v15 .se-add-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.studio-v15 .se-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  min-height: 46px;
  border: 1px solid var(--se-border);
  border-radius: 10px;
  background: white;
  color: var(--se-ink);
}
.studio-v15 .se-button-primary {
  background: #fa7a22;
  border-color: #fa7a22;
  color: #112b43;
}
.studio-v15 .se-button:hover:not(:disabled) {
  background: #eef3f7;
}
.studio-v15 .se-button-primary:hover:not(:disabled) {
  background: #eb6913;
  border-color: #eb6913;
}
.studio-v15 button {
  cursor: pointer;
  font-family: inherit;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.studio-v15 button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.studio-v15 :focus-visible {
  outline: 3px solid #3382cb;
  outline-offset: 3px;
}
.studio-v15 .se-selection-empty {
  background: var(--se-paper);
  border: 1px dashed #c8d6e1;
  border-radius: 10px;
  padding: 17px;
  font-size: 14px;
  margin-top: 16px;
}
.studio-v15 .se-selection-empty p {
  margin: 7px 0 0;
  color: var(--se-muted);
  font-size: 13px;
  line-height: 1.55;
}
.studio-v15 .se-object-panel {
  border-top: 1px solid var(--se-border);
  margin-top: 16px;
  padding-top: 14px;
}
.studio-v15 .se-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.studio-v15 .se-panel-heading h2 {
  font-size: 16px;
  margin: 0;
}
.studio-v15 .se-panel-heading button {
  min-height: 34px;
  padding: 5px 10px;
}
.studio-v15 .se-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
  align-items: center;
}
.studio-v15 .se-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 12px;
  cursor: pointer;
  line-height: 1.5;
}
.studio-v15 .se-checkbox input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--se-ink);
  flex-shrink: 0;
}
.studio-v15 .se-warning {
  font-size: 12px;
  line-height: 1.5;
  background: #fff3df;
  color: #80501e;
  padding: 10px;
  border-radius: 8px;
}
.studio-v15 .se-alignment-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 10px 0;
}
.studio-v15 .se-object-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.studio-v15 .se-small-button {
  background: white;
  border: 1px solid var(--se-border);
  border-radius: 8px;
  color: var(--se-ink);
  font-size: 12px;
  min-height: 40px;
  line-height: 1.2;
  padding: 8px 7px;
}
.studio-v15 .se-small-button:hover:not(:disabled) {
  background: var(--se-paper);
  border-color: #9bb0c1;
}
.studio-v15 .se-danger {
  color: #a53f32;
}
.studio-v15 .se-layers {
  margin-top: 18px;
  border-top: 1px solid var(--se-border);
  border-bottom: 1px solid var(--se-border);
  padding: 12px 0;
}
.studio-v15 .se-layers summary {
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.studio-v15 .se-layers summary span {
  display: inline-flex;
  min-width: 24px;
  justify-content: center;
  padding: 2px 5px;
  margin-left: 6px;
  background: var(--se-paper);
  border-radius: 5px;
  color: var(--se-muted);
}
.studio-v15 .se-layers ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
}
.studio-v15 .se-layers li button {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--se-paper);
  padding: 10px;
  font-size: 13px;
  text-align: left;
  color: var(--se-ink);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-height: 42px;
}
.studio-v15 .se-layers li button[aria-pressed='true'] {
  border-color: var(--se-ink);
}
.studio-v15 .se-save-panel {
  padding-top: 18px;
}
.studio-v15 .se-save-panel > .se-button {
  margin-top: 12px;
}
.studio-v15 .se-secondary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.studio-v15 .se-how {
  border: 1px solid var(--se-border);
  border-radius: 12px;
  padding: 16px 20px;
  background: white;
  margin-top: 22px;
  font-size: 14px;
}
.studio-v15 .se-how summary {
  font-weight: 600;
  cursor: pointer;
}
.studio-v15 .se-how p {
  color: var(--se-muted);
  max-width: 100ch;
  line-height: 1.7;
  margin: 12px 0 0;
}
.studio-v15 [hidden] {
  display: none !important;
}
@media (min-width: 1100px) and (max-height: 850px) {
  .studio-v15 .se-preview {
    position: static;
  }
  .studio-v15 .se-stage {
    max-height: clamp(300px, calc(100svh - var(--pd-header-height, 150px) - 255px), 520px);
  }
}
@media (max-width: 1050px) {
  .studio-v15 .se-workspace {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 0.9fr);
    gap: 16px;
  }
  .studio-v15 .se-controls {
    padding: 16px;
  }
  .studio-v15 .se-preview {
    position: static;
  }
}
@media (max-width: 760px) {
  .studio-v15 .se-shell {
    padding-block: 20px 28px;
  }
  .studio-v15 .se-heading {
    align-items: flex-start;
    margin-bottom: 16px;
  }
  .studio-v15 .se-help-link {
    display: none;
  }
  .studio-v15 .se-workspace {
    grid-template-columns: 1fr;
  }
  .studio-v15 .se-stage {
    max-height: none;
  }
  .studio-v15 .se-controls {
    padding: 18px;
  }
  .studio-v15 .se-preview-top {
    padding: 10px 12px 4px;
  }
  .studio-v15 .se-views {
    padding-inline: 12px;
  }
  .studio-v15 .se-views button {
    font-size: 12px;
    min-height: 44px;
  }
  .studio-v15 input:not([type='checkbox']),
  .studio-v15 select,
  .studio-v15 textarea {
    font-size: 16px;
  }
  .studio-v15 .se-preview-bottom {
    padding: 10px 12px;
  }
  .studio-v15 .se-caption {
    padding-inline: 12px;
  }
  .studio-v15 .se-object-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .studio-v15 .se-small-button {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .studio-v15 * {
    transition: none !important;
  }
}
