#sticker-builder {
  --st-navy: #103550;
  --st-blue: #087ba9;
  --st-line: #c9dce7;
  --st-pale: #edf8fc;
  color: var(--st-navy);
}
#sticker-builder[hidden], #sticker-builder [hidden] { display: none !important; }
#sticker-builder :is(button, input, select, summary):focus-visible {
  outline: 3px solid #13a5d2;
  outline-offset: 3px;
}
.st-builder {
  overflow: hidden;
  border: 1px solid var(--st-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 60px #103e5a12;
}
.st-heading {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 28px clamp(18px, 3vw, 38px);
  border-bottom: 1px solid var(--st-line);
  background: linear-gradient(115deg, #f0f9fd 0%, #fff 58%, #e9f6fa 100%);
}
.st-heading .eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #0e7eae;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.st-heading h2 {
  margin: 0 0 9px;
  font-size: clamp(27px, 3vw, 39px);
  line-height: 1.1;
}
.st-heading p {
  max-width: 680px;
  margin: 0;
  color: #527183;
}
.st-machine-note {
  flex: none;
  align-self: flex-start;
  color: #85a9bc;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.6;
  letter-spacing: .1em;
  text-align: right;
}
.st-layout {
  display: grid;
  grid-template-columns: minmax(300px, .75fr) minmax(0, 1.25fr);
}
.st-controls {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(18px, 3vw, 34px);
  border-right: 1px solid var(--st-line);
}
.st-quick-start {
  display: grid;
  gap: 8px;
}
.st-quick-start > strong {
  color: #254c64;
  font-size: 14px;
}
.st-quick-start > p {
  margin: 0;
  color: #678397;
  font-size: 11px;
  line-height: 1.45;
}
.st-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.st-presets button {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 7px;
  min-height: 107px;
  padding: 10px;
  border: 1px solid #bed8e5;
  border-radius: 11px;
  background: #f9fdff;
  color: #184b68;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.st-presets button:hover {
  border-color: #1689b8;
  background: #effaff;
}
.st-presets button[aria-pressed="true"] {
  border-color: #0e86b9;
  background: #e5f6fc;
  box-shadow: inset 0 0 0 1px #0e86b9;
}
.st-presets button:disabled {
  opacity: .48;
  cursor: default;
}
.st-preset-mark {
  display: block;
  width: 28px;
  height: 28px;
  background: linear-gradient(145deg, #78d8ec, #0b80b2);
  box-shadow: 0 3px 8px #0c648126;
}
.st-preset-round-logo { border-radius: 50%; }
.st-preset-product-label { width: 34px; height: 22px; border-radius: 4px; }
.st-preset-own-contour {
  border-radius: 8px;
  clip-path: polygon(50% 0%, 63% 15%, 83% 10%, 88% 31%, 100% 50%, 86% 65%, 86% 87%, 63% 86%, 50% 100%, 35% 87%, 12% 88%, 12% 65%, 0 50%, 13% 33%, 13% 13%, 36% 15%);
}
.st-preset-copy { display: grid; gap: 3px; min-width: 0; }
.st-preset-copy b { font-size: 11px; line-height: 1.2; }
.st-preset-copy small { color: #68889b; font-size: 10px; line-height: 1.2; }
.st-quick-start .st-preset-guide {
  min-height: 31px;
  color: #456b81;
  font-size: 11px;
}
.st-field {
  display: grid;
  gap: 7px;
  color: #254c64;
  font-size: 14px;
  font-weight: 750;
}
.st-field input,
.st-field select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #a9c7d5;
  border-radius: 9px;
  background: #fff;
  color: #123e58;
  font: inherit;
  font-weight: 600;
}
.st-field input:disabled,
.st-field select:disabled {
  color: #7b93a0;
  background: #f2f5f6;
}
.st-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.st-material-note,
.st-file-status {
  min-height: 18px;
  margin: -10px 0 0;
  color: #577385;
  font-size: 12px;
  line-height: 1.5;
}
.st-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #28516a;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}
.st-check input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: #0b81b3; }
.st-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border: 1px dashed #92b8ca;
  border-radius: 12px;
  background: #f6fbfd;
}
.st-upload button,
.st-pages button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #a4c9d9;
  border-radius: 8px;
  background: #fff;
  color: #086d9d;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.st-upload button:hover,
.st-pages button:not(:disabled):hover { background: #e6f6fc; border-color: #1689b8; }
.st-upload span {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #28516a;
  font-size: 12px;
}
.st-upload p {
  flex-basis: 100%;
  margin: 0;
  color: #617b8a;
  font-size: 11px;
  line-height: 1.45;
}
.st-technical {
  border: 1px solid var(--st-line);
  border-radius: 10px;
  background: #fafdff;
}
.st-technical summary {
  padding: 12px 14px;
  color: #1b5b7b;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.st-technical p {
  margin: 0;
  padding: 0 14px 14px;
  color: #536f81;
  font-size: 12px;
  line-height: 1.55;
}
.st-output {
  min-width: 0;
  padding: clamp(18px, 3vw, 34px);
  background: #f8fcfe;
}
.st-preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.st-preview-toolbar > div:first-child {
  display: grid;
  gap: 2px;
}
.st-preview-toolbar strong { font-size: 15px; }
.st-preview-subtitle { color: #718c9a; font-size: 12px; }
.st-pages { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.st-pages button { min-width: 35px; padding: 4px; font-size: 18px; }
.st-pages button:disabled { opacity: .45; cursor: default; }
.st-page-label { color: #40677c; font-size: 12px; font-weight: 750; }
.st-canvas-wrap {
  overflow: auto;
  border: 1px solid #bfd5df;
  border-radius: 14px;
  background: #eaf4f9;
}
.st-canvas { display: block; width: 100%; height: auto; cursor: zoom-in; }
.st-canvas:focus-visible { outline: 3px solid #13a5d2; outline-offset: -4px; }
.st-magnifier-help {
  margin: 9px 0 0;
  color: #607b8a;
  font-size: 11px;
  line-height: 1.45;
}
.st-magnifier {
  position: fixed;
  z-index: 100;
  width: min(290px, calc(100vw - 16px));
  padding: 11px;
  border: 1px solid #8fc4d9;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 18px 48px #102f48a0;
  pointer-events: none;
}
.st-magnifier-head { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.st-magnifier-head strong { flex: 1; color: #123f5b; font-size: 13px; }
.st-magnifier-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dff5fc;
  color: #0780ae;
  font-size: 20px;
  line-height: 1;
}
.st-magnifier-close {
  width: 29px;
  height: 29px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e8f3f8;
  color: #25536c;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}
.st-magnifier-canvas {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #cbdfe8;
  border-radius: 9px;
  background: #f2f9fc;
}
.st-magnifier-size { margin-top: 9px; color: #0a668f; font-size: 13px; font-weight: 800; }
.st-magnifier small { display: block; margin-top: 5px; color: #68818e; font-size: 10px; line-height: 1.4; }
.st-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 12px 0 0;
  color: #607b8a;
  font-size: 11px;
}
.st-legend span { display: inline-flex; align-items: center; gap: 6px; }
.st-legend i { display: inline-block; width: 19px; height: 0; border-top: 2px solid; }
.st-legend-cut { border-color: #d41492 !important; }
.st-legend-bleed { border-color: #4dbcd4 !important; border-top-style: dashed !important; }
.st-legend-safe { border-color: #4c8eac !important; border-top-style: dashed !important; }
.st-contour-status {
  margin: 16px 0;
  color: #486b7e;
  font-size: 12px;
  line-height: 1.5;
}
.st-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.st-stat-grid > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 13px 11px;
  border: 1px solid #d4e5ed;
  border-radius: 10px;
  background: #fff;
}
.st-stat-grid span { color: #6b8796; font-size: 11px; }
.st-stat-grid strong { overflow-wrap: anywhere; font-size: 14px; }
.st-sheet-summary,
.st-validation {
  margin: 12px 0 0;
  color: #4f7083;
  font-size: 12px;
  line-height: 1.5;
}
.st-validation:not(:empty) { color: #a53d38; font-weight: 700; }
.st-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
  padding: 19px;
  border: 1px solid #b6d9e7;
  border-radius: 14px;
  background: linear-gradient(112deg, #eaf8fd, #fff);
}
.st-price > div { display: grid; gap: 4px; }
.st-price span { color: #477187; font-size: 13px; }
.st-total { color: #0b5278; font-size: clamp(23px, 2.4vw, 30px); }
.st-price small { max-width: 440px; color: #5a7788; font-size: 11px; line-height: 1.5; }
.st-request {
  min-height: 46px;
  padding: 10px 15px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(110deg, #007bb0, #0b9bc7);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.st-request:hover { filter: brightness(1.08); }
.st-honesty {
  margin: 14px 0 0;
  color: #718b99;
  font-size: 11px;
  line-height: 1.5;
}
@media (max-width: 920px) {
  .st-layout { grid-template-columns: 1fr; }
  .st-controls { border-right: 0; border-bottom: 1px solid var(--st-line); }
}
@media (max-width: 600px) {
  .st-heading { display: block; }
  .st-machine-note { display: block; margin-top: 13px; text-align: left; }
  .st-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-preview-toolbar { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 420px) {
  .st-two { grid-template-columns: 1fr; }
  .st-presets { grid-template-columns: 1fr; }
  .st-presets button { grid-template-columns: 34px 1fr; align-items: center; min-height: 54px; }
  .st-price { align-items: stretch; }
  .st-request { width: 100%; }
}
@media (pointer: coarse) {
  .st-magnifier { left: 12px !important; top: auto !important; bottom: 12px; width: min(280px, calc(100vw - 24px)); }
}
@media (prefers-reduced-motion: reduce) {
  .st-builder *, .st-builder *::before, .st-builder *::after { scroll-behavior: auto !important; }
}
