.studio-body {
  background: #f4f6f8;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
.studio-mobile-tools {
  display: none;
}
.studio-mobile-product-name {
  display: none;
}
.studio-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 28px;
  border-bottom: 1px solid #dbe0e6;
  background: #fff;
}
.studio-header .brand {
  font-size: 28px;
  white-space: nowrap;
}
.studio-header-title {
  display: grid;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.studio-header-title span {
  font-size: 10px;
  font-weight: 700;
  color: #1649de;
}
.studio-header-title strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.studio-header-back {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
}
.studio-header .button {
  min-height: 44px;
  font-size: 13px;
  padding: 12px 18px;
  white-space: nowrap;
}
.studio-header .button img {
  filter: brightness(0) invert(1);
}
.studio-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 344px;
  max-width: 1680px;
  margin-inline: auto;
  min-height: calc(100svh - 82px);
}
.studio-stage-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 32px;
}
.studio-stage-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.studio-change-product {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  font-size: 12px;
}
.studio-view-switch {
  display: flex;
  border: 1px solid #adb6c2;
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
}
.studio-view-switch button {
  border: 0;
  background: #fff;
  color: #111;
  min-width: 72px;
  min-height: 42px;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
}
.studio-view-switch button[aria-pressed="true"] {
  background: #1649de;
  color: white;
}
.studio-view-switch button:disabled {
  color: #68717e;
  background: #edf0f3;
  cursor: not-allowed;
}
.studio-canvas-wrap {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 1;
  width: min(100%, 640px);
  margin: auto;
  background: #fff;
  box-shadow: 0 1px 2px #00000008;
  overflow: hidden;
}
.studio-canvas-wrap .canvas-container {
  max-width: 100%;
}
.studio-canvas-wrap canvas {
  touch-action: none;
}
.studio-stage-message {
  position: absolute;
  inset: 0;
  background: #ffffffed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  z-index: 2;
}
.studio-draft-label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: 9px;
  font-weight: 700;
  color: #424954;
  pointer-events: none;
}
.studio-colour-row {
  max-width: 640px;
  width: 100%;
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: 1fr minmax(130px, 200px);
  align-items: center;
  gap: 10px;
}
.studio-colour-row > label {
  font-size: 12px;
  font-weight: 700;
}
.studio-colour-row select {
  min-height: 42px;
  max-width: 100%;
  padding: 8px;
  border: 1px solid #a9b3c0;
  border-radius: 4px;
  background: #fff;
  color: #111;
  font-size: 12px;
}
.studio-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  grid-column: 1/-1;
}
.studio-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid transparent;
  width: 38px;
  height: 38px;
  border-radius: 4px;
  padding: 5px;
}
.studio-swatch span {
  width: 24px;
  height: 24px;
  border: 1px solid #a6afbc;
  border-radius: 50%;
}
.studio-swatch[aria-pressed="true"] {
  border: 2px solid #1649de;
  padding: 4px;
  background: #fff;
}
.studio-swatch:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.studio-stage-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 640px;
  margin: 14px auto 0;
}
.studio-stage-footer > span {
  font-size: 10px;
  color: #363e49;
  max-width: 300px;
}
.studio-text-command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  background: none;
  color: #111;
  min-height: 44px;
  font-size: 11px;
  font-weight: 700;
}
.studio-text-command img {
  width: 17px;
  height: 17px;
}
.studio-controls {
  background: #fff;
  border-left: 1px solid #dbe0e6;
  min-width: 0;
}
.studio-section {
  padding: 22px;
  border-bottom: 1px solid #e1e5eb;
}
.studio-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}
.studio-section h1 {
  font-size: 23px;
  line-height: 1.2;
  font-weight: 700;
}
.studio-section h2 {
  font-size: 13px;
  line-height: 1.3;
  margin: 0 0 14px;
  font-weight: 700;
}
.studio-section-heading h2 {
  margin: 0;
}
.studio-history,
.studio-format-row,
.studio-layer-tools,
.studio-stack-tools {
  display: flex;
  gap: 4px;
  align-items: center;
}
.studio-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: #fff;
  color: #111;
}
.studio-icon:hover {
  background: #eef2f9;
  border-color: #dbe2ef;
}
.studio-icon[aria-pressed="true"] {
  background: #e5edff;
  border-color: #1649de;
}
.studio-icon:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.studio-icon[data-tooltip]:hover:after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 8;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  background: #151719;
  color: #fff;
  border-radius: 3px;
  padding: 5px 8px;
  font-size: 10px;
  white-space: nowrap;
  pointer-events: none;
}
.studio-add-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.studio-add-buttons button {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 9px;
  border: 1px solid #a9b3c0;
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #111;
}
.studio-add-buttons button:first-child {
  background: #1649de;
  color: #fff;
  border-color: #1649de;
}
.studio-add-buttons button:first-child img {
  filter: brightness(0) invert(1);
}
.studio-add-buttons button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.studio-file-note {
  color: #343d49;
  font-size: 10px;
  line-height: 1.7;
  margin-top: 12px;
}
.studio-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.studio-field-row:first-child {
  margin-top: 0;
}
.studio-controls .field {
  font-size: 11px;
  gap: 6px;
}
.studio-controls select,
.studio-controls input:not([type="range"]) {
  min-height: 40px;
  width: 100%;
  min-width: 0;
  padding: 8px;
  color: #111;
  background: #fff;
  font-size: 12px;
  border: 1px solid #a9b3c0;
  border-radius: 4px;
}
.studio-controls input[type="color"] {
  padding: 5px;
  cursor: pointer;
}
.studio-controls input.sr-only {
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
}
.studio-limit {
  font-size: 10px;
  margin-top: 10px;
  color: #37424f;
}
.studio-no-selection {
  color: #424b57;
  font-size: 12px;
  padding-block: 5px;
}
.studio-format-row {
  margin-top: 10px;
}
.studio-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  margin-top: 14px;
}
.studio-slider-label output {
  font-weight: 400;
  font-size: 11px;
  color: #343d49;
}
.studio-controls input[type="range"] {
  width: 100%;
  min-height: 32px;
  accent-color: #1649de;
}
.studio-layer-tools {
  margin-top: 8px;
}
.studio-resolution {
  font-size: 10px;
  color: #8a3900;
  margin-top: 8px;
}
.studio-section-heading > span {
  font-size: 10px;
  color: #424b57;
}
.studio-layers {
  list-style: none;
  margin: 0;
  padding: 0;
}
.studio-layers li {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #edf0f3;
}
.studio-layer-select {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 9px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  font-size: 12px;
  color: #111;
  text-align: left;
}
.studio-layer-select span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.studio-layer-select[aria-pressed="true"] {
  background: #edf2ff;
  color: #123cb3;
}
.studio-stack-tools {
  justify-content: flex-end;
  margin-top: 6px;
}
.studio-stock {
  margin-top: 12px;
  font-size: 11px;
}
.studio-estimate {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.4;
}
.studio-toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 13px 18px;
  color: #fff;
  background: #17212a;
  font-size: 12px;
  border-radius: 5px;
  box-shadow: 0 4px 20px #0002;
}
.studio-quote-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: calc(100svh - 36px);
  border: 0;
  border-radius: 6px;
  padding: 28px;
  color: #151719;
  background: #fff;
}
.studio-quote-dialog::backdrop {
  background: #11182780;
}
.studio-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.studio-dialog-header h2 {
  font-size: 27px;
}
.studio-dialog-header .eyebrow {
  margin-bottom: 8px;
}
.studio-quote-summary {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
}
.studio-quote-dialog form {
  margin-top: 22px;
}
.studio-quote-dialog .field {
  font-size: 12px;
}
.studio-quote-dialog .consent {
  font-size: 11px;
}
.studio-quote-dialog .button {
  width: 100%;
  min-height: 46px;
  font-size: 14px;
}
.studio-quote-dialog .button img {
  filter: brightness(0) invert(1);
}
.studio-quote-status {
  font-size: 12px;
  margin-block: 14px;
}
.studio-quote-status[data-state="error"] {
  color: #a31919;
}
.studio-quote-status[data-state="success"] {
  color: #075d58;
}
.studio-noscript {
  position: fixed;
  inset: 82px 0 0;
  z-index: 30;
  background: #fff;
  padding: 40px;
  font-size: 18px;
}
.studio-noscript a {
  text-decoration: underline;
}
@media (min-width: 1100px) {
  .studio-stage-column {
    position: sticky;
    top: 0;
    min-height: calc(100svh - 82px);
  }
  .studio-canvas-wrap {
    width: min(100%, 640px, calc(100svh - 460px));
    min-width: 280px;
  }
}
@media (max-width: 900px) {
  .studio-workspace {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .studio-stage-column {
    padding: 18px;
  }
  .studio-header {
    padding: 14px 18px;
    gap: 18px;
  }
  .studio-header-back span {
    display: none;
  }
  .studio-section {
    padding: 18px;
  }
  .studio-header-title strong {
    font-size: 12px;
  }
}
@media (max-width: 700px) {
  .studio-header {
    min-height: 70px;
    gap: 12px;
    padding: 12px 16px;
    flex-wrap: wrap;
  }
  .studio-header .brand {
    font-size: 25px;
  }
  .studio-header-title {
    flex: 1;
  }
  .studio-header-title strong {
    display: none;
  }
  .studio-header-title span {
    font-size: 9px;
  }
  .studio-header-back {
    display: none;
  }
  .studio-header .button {
    padding: 10px 12px;
    font-size: 12px;
    gap: 6px;
  }
  .studio-workspace {
    display: flex;
    flex-direction: column;
  }
  .studio-stage-column {
    padding: 14px 16px 18px;
  }
  .studio-stage-top {
    margin-bottom: 10px;
    gap: 8px;
  }
  .studio-change-product {
    font-size: 11px;
  }
  .studio-view-switch button {
    min-width: 60px;
    min-height: 40px;
  }
  .studio-canvas-wrap {
    max-width: 500px;
  }
  .studio-colour-row {
    margin-top: 12px;
  }
  .studio-stage-footer {
    gap: 8px;
  }
  .studio-stage-footer > span {
    font-size: 9px;
  }
  .studio-text-command {
    font-size: 10px;
  }
  .studio-controls {
    border-left: 0;
    border-top: 1px solid #dbe0e6;
  }
  .studio-section {
    padding: 20px;
  }
  .studio-section h1 {
    font-size: 22px;
  }
  .studio-add-buttons button {
    min-height: 48px;
  }
  .studio-icon {
    min-height: 44px;
    width: 44px;
    flex-basis: 44px;
  }
  .studio-swatch {
    width: 40px;
    height: 40px;
  }
  .studio-quote-dialog {
    padding: 20px;
  }
  .studio-dialog-header h2 {
    font-size: 24px;
  }
  .studio-stage-column {
    position: static;
    height: auto;
  }
}
@media (max-width: 370px) {
  .studio-header-title {
    display: none;
  }
  .studio-header .brand {
    flex: 1;
  }
  .studio-stage-column {
    padding-inline: 12px;
  }
}
@media (max-width: 700px) {
  .studio-body {
    padding-bottom: 70px;
  }
  .studio-mobile-tools {
    position: fixed;
    inset: auto 0 0;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid #ccd4df;
    background: #fff;
  }
  .studio-mobile-tools button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    min-height: 60px;
    border: 0;
    border-right: 1px solid #e1e5eb;
    background: #fff;
    color: #111;
    font-size: 10px;
    font-weight: 700;
  }
  .studio-mobile-tools button:first-child {
    color: #1649de;
  }
  .studio-toast {
    bottom: 82px;
  }
  .studio-mobile-product-name {
    display: block;
    font-size: 13px;
    font-weight: 650;
    margin: 2px 0 12px;
  }
}
