.sb-editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 32000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.sb-editor-overlay.show { display: flex; }
.sb-editor-overlay[data-editor-transition-enter] .sb-editor-dialog > :not(.sb-editor-head),
.sb-editor-overlay[data-editor-transition-exit] .sb-editor-dialog > :not(.sb-editor-head) {
  transition: opacity .2s cubic-bezier(.23,1,.32,1), transform .22s cubic-bezier(.23,1,.32,1), filter .18s ease-out;
  will-change: opacity, transform, filter;
}
.sb-editor-overlay[data-editor-transition-enter="next"]:not(.show) .sb-editor-dialog > :not(.sb-editor-head) { opacity:0; transform:translate3d(14px,0,0); filter:blur(2px); }
.sb-editor-overlay[data-editor-transition-enter="previous"]:not(.show) .sb-editor-dialog > :not(.sb-editor-head) { opacity:0; transform:translate3d(-14px,0,0); filter:blur(2px); }
.sb-editor-overlay[data-editor-transition-enter="fade"]:not(.show) .sb-editor-dialog > :not(.sb-editor-head) { opacity:0; filter:blur(2px); }
.sb-editor-overlay[data-editor-transition-enter].show .sb-editor-dialog > :not(.sb-editor-head) { opacity:1; transform:translate3d(0,0,0); filter:blur(0); }
.sb-editor-overlay[data-editor-transition-enter] .sb-product-size-pro-workspace { transform:none!important; filter:none!important; }
.sb-editor-overlay[data-editor-transition-exit="next"] .sb-editor-dialog > :not(.sb-editor-head) { opacity:0; transform:translate3d(-10px,0,0); filter:blur(1.5px); }
.sb-editor-overlay[data-editor-transition-exit="previous"] .sb-editor-dialog > :not(.sb-editor-head) { opacity:0; transform:translate3d(10px,0,0); filter:blur(1.5px); }
.sb-editor-overlay[data-editor-transition-exit="fade"] .sb-editor-dialog > :not(.sb-editor-head) { opacity:0; filter:blur(1.5px); }
.sb-editor-overlay.sb-upload-entry { background: rgba(0, 0, 0, 0.34); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }

.sb-editor-dialog {
  position: relative;
  width: min(1180px, calc(100vw - 36px));
  height: min(900px, calc(100vh - 36px));
  min-height: 560px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 20px;
  background: #fff;
  color: #1d1d1f;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

.sb-editor-dialog.sb-editor-dialog--compact {
  width: min(570px, calc(100vw - 36px));
  height: auto;
  min-height: 0;
  border-radius: 16px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
}
.sb-editor-dialog--compact .sb-editor-head { padding: 12px 16px; }
.sb-editor-dialog--compact .sb-editor-head h3 { font-size: 16px; font-weight: 650; }
.sb-editor-dialog--compact .sb-editor-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
}

.sb-editor-head,
.sb-editor-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
}

.sb-editor-head h3 {
  flex: 1;
  margin: 0;
  font-size: 17px;
  font-weight: 720;
}

.sb-editor-dialog > .sb-editor-head .sb-editor-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
}

.sb-editor-footer {
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.09);
  border-bottom: 0;
}

.sb-editor-footer-actions { display: flex; align-items: center; gap: 9px; }

.sb-editor-close {
  position: relative;
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 999px;
  background: #ff5c60;
  color: #fff;
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  padding: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
  transition: transform .16s ease, box-shadow .2s ease, filter .18s ease;
}
.sb-editor-close:hover { transform: scale(1.2); box-shadow: 0 6px 14px rgba(0,0,0,.2); filter: brightness(1.04); }
.sb-editor-close::before,
.sb-editor-close::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: #802f31;
  opacity: 0;
  transition: opacity .16s ease;
}
.sb-editor-close::before { transform: rotate(45deg); }
.sb-editor-close::after { transform: rotate(-45deg); }
.sb-editor-close:hover::before,
.sb-editor-close:hover::after { opacity: 1; }

.sb-editor-body {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.sb-editor-toolbar {
  width: 210px;
  flex: 0 0 210px;
  padding: 14px;
  overflow: auto;
  border-right: 1px solid rgba(0, 0, 0, 0.09);
  background: #f8f8fa;
}

.sb-toolbar-group { display: grid; gap: 8px; margin-bottom: 18px; }
.sb-toolbar-label { color: #777; font-size: 12px; font-weight: 650; }

.sb-btn,
.sb-field {
  min-height: 36px;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 10px;
  background: #fff;
  color: #29292c;
  font: inherit;
  font-size: 13px;
}

.sb-btn {
  padding: 0 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sb-btn:hover { border-color: rgba(0, 0, 0, 0.3); }
.sb-btn.primary { background: var(--blue, #f6c85f); border-color: transparent; color: #1d1d1f; font-weight: 680; }
.sb-btn.danger { color: #d52d32; }
.sb-btn:disabled { opacity: 0.48; cursor: not-allowed; }
.sb-field { width: 100%; padding: 0 10px; }
textarea.sb-field { min-height: 72px; padding: 9px 10px; resize: vertical; }

.sb-editor-stage-wrap {
  flex: 1;
  min-width: 0;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow: hidden;
  background-color: #e9e9ed;
  background-image: linear-gradient(45deg, #dedee3 25%, transparent 25%), linear-gradient(-45deg, #dedee3 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #dedee3 75%), linear-gradient(-45deg, transparent 75%, #dedee3 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

.sb-editor-canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  background: #fff;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.2);
  touch-action: none;
  cursor: default;
}

.sb-editor-canvas.dragging { cursor: grabbing; }

.sb-composer-dialog {
  width: min(880px, calc(100vw - 40px));
  height: min(820px, calc(100vh - 40px));
  min-height: 580px;
  border-radius: 22px;
}
.sb-composer-head { padding: 15px 20px 13px; }
.sb-composer-head > div { min-width: 0; }
.sb-composer-head h3 { font-size: 18px; }
.sb-composer-head p { margin: 3px 0 0; color: #8a8a8f; font-size: 12px; line-height: 1.35; }
.sb-composer-toolbar {
  flex: 0 0 auto;
  min-height: 58px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #fafafa;
}
.sb-composer-toolbar .sb-btn { min-height: 34px; border-radius: 9px; }
.sb-composer-history { display: inline-flex; align-items: center; gap: 5px; }
.sb-icon-btn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--line,#dedee3); border-radius: 9px; background: #fff; color: #55555a; cursor: pointer; transition: background .16s ease, border-color .16s ease, opacity .16s ease; }
.sb-icon-btn:hover:not(:disabled) { background: #f0f0f2; border-color: #c9c9ce; }
.sb-icon-btn:disabled { opacity: .35; cursor: default; }
.sb-icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sb-composer-subject-crop { min-width: 96px; font-variant-numeric: tabular-nums; }
.sb-composer-trim-all { min-width: 96px; font-variant-numeric: tabular-nums; }
.sb-composer-clear { position: absolute; z-index: 4; top: 14px; right: 14px; min-height: 32px; padding: 0 12px; border: 1px solid rgba(216,59,64,.2); border-radius: 9px; background: rgba(255,255,255,.9); color: #d83b40; font: inherit; font-size: 12px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: opacity .16s ease, background .16s ease, border-color .16s ease, transform .16s ease; }
.sb-composer-clear:hover { background: #fff; border-color: rgba(216,59,64,.38); transform: translateY(-1px); }
.sb-composer-clear:disabled { opacity: 0; visibility: hidden; pointer-events: none; }
.sb-composer-auto-trim { display: inline-flex; align-items: center; gap: 9px; min-height: 34px; padding: 0 2px 0 7px; color: #5f5f64; font-size: 13px; cursor: pointer; user-select: none; white-space: nowrap; }
.sb-switch-input { position: absolute; opacity: 0; pointer-events: none; }
.sb-switch-track { position: relative; width: 42px; height: 24px; border-radius: 999px; background: rgba(120,120,128,.28); box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); transition: background .18s ease, box-shadow .18s ease, opacity .18s ease; flex: 0 0 auto; }
.sb-switch-track::after { content: ""; position: absolute; width: 20px; height: 20px; left: 2px; top: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.28); transition: transform .18s cubic-bezier(.25,.8,.25,1); }
.sb-switch-input:checked + .sb-switch-track { background: linear-gradient(180deg,#ffe475 0%,#ffc832 48%,#e7a700 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.35),0 0 0 1px rgba(231,167,0,.18); }
.sb-switch-input:checked + .sb-switch-track::after { transform: translateX(18px); }
.sb-switch-input:focus-visible + .sb-switch-track { outline: 2px solid rgba(47,124,255,.52); outline-offset: 2px; }
.sb-switch-input:disabled + .sb-switch-track { cursor: not-allowed; opacity: .55; }
.sb-composer-ratio { display: flex; align-items: center; gap: 8px; color: #68686d; font-size: 12px; white-space: nowrap; }
.sb-ratio-options { display: inline-flex; padding: 3px; border-radius: 10px; background: #eaeaed; }
.sb-ratio-options button { min-width: 38px; height: 28px; padding: 0 7px; border: 0; border-radius: 7px; background: transparent; color: #68686d; font: inherit; cursor: pointer; transition: background .16s ease, color .16s ease, box-shadow .16s ease; }
.sb-ratio-options button.active { background: #fff; color: #1d1d1f; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.sb-composer-tip { margin-left: auto; color: #9a9a9f; font-size: 12px; white-space: nowrap; }
.sb-composer-body { background: #f5f5f7; }
.sb-composer-stage {
  margin: 14px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  background-color: #ebebef;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.sb-composer-stage.has-docked-bubble { padding-top: 72px; }
.sb-composer-stage.is-empty {
  background: #fff;
  background-image: none;
  border: 1.5px dashed rgba(0, 0, 0, 0.16);
}
.sb-composer-stage.is-empty .sb-editor-canvas { display: none; }
.sb-composer-empty {
  display: none;
  width: min(520px, calc(100% - 40px));
  min-height: 250px;
  padding: 34px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: #242427;
  cursor: pointer;
  text-align: center;
}
.sb-composer-stage.is-empty .sb-composer-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sb-composer-empty strong { margin-top: 20px; font-size: 18px; font-weight: 700; }
.sb-composer-empty > span:last-child { margin-top: 8px; color: #929297; font-size: 13px; }
.sb-composer-drop-icon {
  position: relative;
  width: 72px;
  height: 58px;
  display: block;
}
.sb-composer-drop-icon i {
  position: absolute;
  width: 46px;
  height: 38px;
  border: 1.5px solid rgba(0, 0, 0, 0.18);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.07);
}
.sb-composer-drop-icon i:first-child { left: 3px; top: 13px; transform: rotate(-8deg); }
.sb-composer-drop-icon i:nth-child(2) { right: 3px; top: 3px; transform: rotate(7deg); }
.sb-composer-drop-icon b {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--blue, #f6c85f);
  color: #242427;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
}
.sb-composer-drop-feedback {
  position: absolute;
  inset: 14px;
  z-index: 8;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  border: 2px dashed #d5a82d;
  border-radius: 14px;
  background: rgba(255, 249, 228, 0.94);
  color: #3b3320;
  pointer-events: none;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.sb-composer-drop-feedback strong { font-size: 18px; }
.sb-composer-drop-feedback span { color: #847552; font-size: 13px; }
.sb-composer-stage.is-dragover .sb-composer-drop-feedback { display: flex; }
.sb-composer-stage.is-dragover { border-color: #d5a82d; box-shadow: 0 0 0 4px rgba(246, 200, 95, .18); }
.sb-composer-footer { min-height: 58px; padding: 10px 18px; background: #fff; }
.sb-composer-footer .sb-btn { min-height: 36px; }

.sb-canvas-tool-bubble {
  position: absolute;
  z-index: 5;
  display: flex;
  width: max-content;
  max-width: none;
  align-items: center;
  gap: 3px;
  padding: 5px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(calc(-100% + 7px)) scale(.94);
  transform-origin: 50% 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity .18s ease, transform .2s cubic-bezier(.2,.8,.2,1), visibility 0s linear .2s;
}
.sb-canvas-tool-bubble.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(-100%) scale(1); transition-delay: 0s; }
.sb-canvas-tool-bubble.place-below { transform: translateY(-7px) scale(.94); transform-origin: 50% 0; }
.sb-canvas-tool-bubble.place-below.is-visible { transform: translateY(0) scale(1); }
.sb-canvas-tool-bubble.is-docked,
.sb-canvas-tool-bubble.is-docked.is-visible { transform: none; transform-origin: 50% 50%; }
.sb-canvas-tool-bubble.is-docked::after { display: none; }
.sb-canvas-tool-bubble::after {
  content: "";
  position: absolute;
  left: var(--sb-bubble-arrow-x, 50%);
  bottom: -5px;
  width: 9px;
  height: 9px;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.96);
  transform: translateX(-50%) rotate(45deg);
}
.sb-canvas-tool-bubble.place-below::after {
  top: -5px;
  bottom: auto;
  border: 0;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.sb-canvas-tool-bubble button {
  position: relative;
  z-index: 1;
  min-width: 44px;
  height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #29292c;
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
.sb-canvas-tool-bubble button:hover { background: rgba(0, 0, 0, 0.07); }
.sb-canvas-tool-bubble button.danger { color: #d52d32; }
.sb-canvas-tool-bubble button:disabled { opacity: .45; cursor: wait; }

.sb-crop-overlay { z-index: 32100; }
.sb-crop-dialog {
  position: relative;
  width: min(820px, calc(100vw - 36px));
  height: min(760px, calc(100vh - 36px));
  min-height: 520px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 20px;
  background: #fff;
  color: #1d1d1f;
  box-shadow: 0 26px 80px rgba(0,0,0,.36);
}
.sb-crop-dialog > .sb-editor-head .sb-editor-close { position: absolute; top: 8px; right: 8px; z-index: 4; }
.sb-crop-toolbar { flex: 0 0 auto; display: flex; align-items: center; gap: 18px; padding: 10px 18px; border-bottom: 1px solid rgba(0,0,0,.08); background: #fafafa; color: #8a8a8f; font-size: 12px; }
.sb-crop-toolbar label { display: flex; align-items: center; gap: 8px; color: #55555a; }
.sb-crop-toolbar .sb-field { width: 112px; min-height: 34px; }
.sb-crop-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 18px; overflow: hidden; background: #e7e7eb; }
.sb-crop-stage canvas { display: block; max-width: 100%; max-height: 100%; box-shadow: 0 10px 30px rgba(0,0,0,.22); cursor: crosshair; touch-action: none; }

.sb-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px 10px;
}

.sb-entry-card {
  min-height: 112px;
  border: 1px solid rgba(0, 0, 0, 0.11);
  border-radius: 12px;
  background: #fafafd;
  color: #27272a;
  padding: 16px;
  cursor: pointer;
  text-align: left;
}
.sb-entry-card:hover { border-color: rgba(0, 0, 0, 0.28); transform: translateY(-1px); }
.sb-entry-card strong { display: block; margin-bottom: 6px; font-size: 16px; }
.sb-entry-card span { display: block; color: #777; font-size: 14px; line-height: 1.6; }

.sb-entry-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6f6f73;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}
.sb-entry-remember { padding: 1px 17px 3px; }
.sb-entry-remember input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue, #f6c85f); }
.sb-entry-remember-hint { padding: 0 17px 14px 41px; color: #929296; font-size: 12px; line-height: 1.4; }
.sb-result-tool-head { position: relative; min-height: 66px; }
.sb-result-tool-head > h3 { max-width: 180px; }
.sb-result-tool-tabs { display:inline-flex; align-items:center; gap:3px; max-width:calc(100% - 260px); padding:4px; overflow-x:auto; overflow-y:hidden; border-radius:999px; background:#ececef; scrollbar-width:none; }
.sb-result-tool-tabs::-webkit-scrollbar { display:none; }
.sb-result-tool-tabs-inline { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); }
.sb-result-tool-tab { min-height:32px; padding:0 15px; border:0; border-radius:8px; background:transparent; color:#66666b; font:inherit; font-size:13px; white-space:nowrap; cursor:pointer; transition:background .16s ease,color .16s ease,box-shadow .16s ease,opacity .16s ease; }
.sb-result-tool-tab.active { border-radius: 999px; background: #fff; color: #1d1d1f; font-weight: 650; box-shadow: 0 2px 8px rgba(0,0,0,.14); }
.sb-result-tool-tab:disabled { opacity: .48; cursor: default; }
.sb-result-tool-tab:focus-visible,.sb-product-size-mode-option:focus-visible { outline:2px solid #d99f00; outline-offset:2px; }
.sb-product-size-tab-group { display:inline-flex; align-items:center; flex:0 0 auto; min-height:32px; gap:10px; padding:4px 5px 4px 14px; border-radius:999px; background:transparent; box-shadow:none; transition:background .16s ease,box-shadow .18s ease; }
.sb-product-size-tab-group.active { background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.14); }
.sb-product-size-tab-group .sb-product-size-main { display:inline-flex; align-items:center; min-height:24px; padding:0; border-radius:0; background:transparent; color:#3f3f43; font-weight:700; letter-spacing:-.01em; }
.sb-product-size-tab-group .sb-product-size-main.active { border-radius:0; background:transparent; color:#1d1d1f; box-shadow:none; }
.sb-product-size-tab-group .sb-product-size-main::after { content:""; display:block; width:1px; height:17px; margin-left:10px; background:rgba(0,0,0,.13); pointer-events:none; }
.sb-product-size-mode-switch { position:relative; display:inline-grid; grid-template-columns:repeat(2,max-content); align-items:center; gap:0; min-height:24px; padding:2px; border:0; border-radius:999px; background:rgba(118,118,128,.12); box-shadow:inset 0 0 0 1px rgba(0,0,0,.035); }
.sb-product-size-mode-thumb { position:absolute; z-index:0; left:2px; top:2px; width:38px; height:20px; border-radius:999px; background:linear-gradient(180deg,#ffe57b 0%,#ffd348 100%); box-shadow:0 1px 3px rgba(177,126,0,.2),inset 0 1px 0 rgba(255,255,255,.72); transition:transform .24s cubic-bezier(.32,.72,0,1),width .2s cubic-bezier(.23,1,.32,1),box-shadow .18s ease; pointer-events:none; }
.sb-product-size-tab-group[data-product-size-mode="pro"] .sb-product-size-mode-thumb { width:38px; transform:translateX(38px); box-shadow:0 2px 6px rgba(177,126,0,.25),inset 0 1px 0 rgba(255,255,255,.72); }
.sb-product-size-mode-option { position:relative; z-index:1; min-width:38px; height:20px; padding:0 7px; border:0; border-radius:999px; background:transparent; color:#77777c; font:700 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.02em; cursor:pointer; }
.sb-product-size-pro-new { position:absolute; z-index:2; right:-3px; top:-4px; min-width:0; padding:1px 2px 0; border-radius:3px; background:rgba(255,255,255,.94); color:#e65345; font:800 6px/8px ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.03em; box-shadow:0 1px 3px rgba(0,0,0,.12); pointer-events:none; }
.sb-product-size-mode-option.active { color:#3a2b00; }
.sb-product-size-mode-option:active:not(:disabled) { transform:scale(.94); }
.sb-product-size-tab-group.single-mode { gap:0; padding-right:14px; }
.sb-product-size-tab-group.single-mode .sb-product-size-main::after { display:none; }
.sb-product-size-mode-option:disabled { opacity:1; }

.sb-editor-hint { color: #777; font-size: 12px; line-height: 1.5; }
.sb-editor-status { color: #6d6d72; font-size: 12px; }
.sb-editor-status.error { color: #d52d32; }

.sb-region-dialog,
.sb-product-size-pro-dialog { width:min(1120px,calc(100vw - 30px)); height:min(900px,calc(100vh - 30px)); }
.sb-region-stage { padding: 12px; }
.sb-region-stage canvas { cursor:default; }
.sb-region-stage canvas.is-ai-target { cursor:url("/assets/images/magic-wand-cursor.png") 7 8,crosshair; }
.sb-region-stage canvas.is-ai-preview { cursor:url("/assets/images/magic-wand-cursor.png") 7 8,pointer; }
.sb-region-stage canvas.is-ai-busy { cursor:progress; }
.sb-region-stage canvas.is-ai-selected { cursor:default; }
.sb-region-stage canvas.is-ai-disabled { cursor:not-allowed; }
.sb-region-selection-modes { position:absolute; z-index:6; left:18px; top:18px; display:flex; align-items:center; gap:3px; padding:4px; border:1px solid rgba(255,255,255,.58); border-radius:12px; background:rgba(30,30,32,.72); box-shadow:0 7px 24px rgba(0,0,0,.2); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); }
.sb-region-selection-modes[hidden] { display:none; }
.sb-region-selection-modes button { min-height:30px; padding:0 11px; border:0; border-radius:8px; background:transparent; color:rgba(255,255,255,.76); font:inherit; font-size:12px; font-weight:650; cursor:pointer; white-space:nowrap; }
.sb-region-selection-modes button:hover:not(:disabled) { color:#fff; background:rgba(255,255,255,.1); }
.sb-region-selection-modes button.active { color:#29220b; background:#ffd54a; box-shadow:0 2px 8px rgba(0,0,0,.2); }
.sb-region-selection-modes button:disabled { opacity:.38; cursor:default; }
.sb-region-selection-modes.is-shortcut button.active::after { content:"快捷"; margin-left:5px; padding:1px 4px; border-radius:4px; background:rgba(0,0,0,.14); font-size:9px; vertical-align:1px; }
.sb-region-ai-live { display:inline-flex; align-items:center; gap:6px; margin-left:4px; padding-left:8px; border-left:1px solid rgba(255,255,255,.2); color:rgba(255,255,255,.8); font-size:11px; font-weight:650; white-space:nowrap; }
.sb-region-ai-live[hidden] { display:none; }
.sb-region-ai-live label { display:inline-flex; align-items:center; gap:6px; cursor:pointer; user-select:none; }
.sb-region-ai-live-input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.sb-region-ai-live label > i { position:relative; display:block; width:30px; height:18px; flex:0 0 auto; border-radius:999px; background:rgba(255,255,255,.22); box-shadow:inset 0 0 0 1px rgba(255,255,255,.12); transition:background .18s ease, box-shadow .18s ease; }
.sb-region-ai-live label > i::after { content:""; position:absolute; left:2px; top:2px; width:14px; height:14px; border-radius:50%; background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.28); transition:transform .18s cubic-bezier(.25,.8,.25,1); }
.sb-region-ai-live-input:checked + i { background:#ffd54a; box-shadow:inset 0 0 0 1px rgba(255,213,74,.26); }
.sb-region-ai-live-input:checked + i::after { transform:translateX(12px); }
.sb-region-ai-live-input:focus-visible + i { outline:2px solid rgba(255,255,255,.8); outline-offset:2px; }
.sb-region-ai-live-info { position:relative; display:grid; place-items:center; width:16px; height:16px; flex:0 0 auto; border:1px solid rgba(255,255,255,.42); border-radius:50%; color:rgba(255,255,255,.74); font:700 10px/1 system-ui,sans-serif; cursor:help; }
.sb-region-ai-live-info > span { position:absolute; z-index:9; left:50%; top:calc(100% + 10px); width:230px; padding:8px 10px; border:1px solid rgba(255,255,255,.22); border-radius:8px; background:rgba(24,24,26,.94); color:#fff; font-size:11px; font-weight:500; line-height:1.45; white-space:normal; box-shadow:0 8px 24px rgba(0,0,0,.28); opacity:0; visibility:hidden; transform:translateX(-50%) translateY(-3px); transition:opacity .15s ease,transform .15s ease,visibility .15s ease; pointer-events:none; }
.sb-region-ai-live-info:hover > span,.sb-region-ai-live-info:focus-visible > span { opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.sb-region-tutorial { position: absolute; z-index: 4; left: 50%; top: 40px; display: inline-flex; align-items: center; gap: 9px; max-width: calc(100% - 48px); padding: 8px 13px 8px 9px; border: 1px solid rgba(255,255,255,.66); border-radius: 16px; background: rgba(30,30,32,.72); color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.18); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transform: translateX(-50%); transition: opacity .3s ease, background-color .3s ease, box-shadow .3s ease; pointer-events: none; }
.sb-region-tutorial[hidden] { display: none; }
.sb-region-tutorial.is-emphasized { animation: sb-region-tutorial-emphasize .72s cubic-bezier(.2,.8,.2,1) both; background: rgba(24,24,26,.86); box-shadow: 0 9px 30px rgba(0,0,0,.26), 0 0 0 1px rgba(255,213,74,.14); }
.sb-region-tutorial.is-quiet { opacity: .82; background: rgba(30,30,32,.62); box-shadow: 0 5px 16px rgba(0,0,0,.14); }
.sb-region-tutorial-step { display:grid; place-items:center; width:24px; height:24px; flex:0 0 auto; border-radius:50%; background:#ffd54a; color:#2d260d; font-size:12px; font-weight:800; box-shadow:0 0 0 3px rgba(255,213,74,.12); }
.sb-region-tutorial-copy { display:flex; min-width:0; flex-direction:column; gap:1px; }
.sb-region-tutorial-copy strong { overflow:hidden; font-size:12px; font-weight:750; line-height:1.2; color:#fff; text-overflow:ellipsis; white-space:nowrap; }
.sb-region-tutorial-copy small { overflow:hidden; font-size:12px; font-weight:500; line-height:1.3; color:rgba(255,255,255,.78); text-overflow:ellipsis; white-space:nowrap; }
.sb-region-tutorial i { position: relative; width: 20px; height: 16px; flex: 0 0 auto; border: 1.5px solid rgba(255,255,255,.9); border-radius: 4px; }
.sb-region-tutorial.is-emphasized i { animation: sb-region-tutorial-drag 1.15s ease-in-out 2; }
.sb-region-tutorial i::after { content:""; position:absolute; right:-4px; bottom:-4px; width:6px; height:6px; border-radius:50%; background:#ffd54a; box-shadow:0 0 0 2px rgba(30,30,32,.72); }
.sb-region-tutorial.is-adjust i { border-radius: 50%; }
.sb-region-tutorial.is-polygon i { border:0; border-radius:0; }
.sb-region-tutorial.is-polygon i::before { content:""; position:absolute; inset:1px; border:1.5px solid rgba(255,255,255,.92); clip-path:polygon(12% 30%,70% 2%,96% 58%,42% 96%,2% 68%); }
.sb-region-tutorial.is-polygon i::after { right:0; bottom:0; }
.sb-region-tutorial.is-ai i { border-radius:50%; }
.sb-region-tutorial.is-ai i::before { content:""; position:absolute; inset:3px; border:1.5px solid rgba(255,255,255,.96); border-radius:50%; }
.sb-region-tutorial.is-ai i::after { right:5px; bottom:5px; width:5px; height:5px; }
.sb-region-tutorial.is-adjust.is-emphasized i { animation: sb-region-tutorial-wheel 1.1s ease-in-out 2; }
.sb-region-tutorial.is-adjust i::before { content:""; position:absolute; left:50%; top:2px; width:2px; height:5px; border-radius:2px; background:#ffd54a; transform:translateX(-50%); }
.sb-region-tutorial.is-adjust i::after { display:none; }
@keyframes sb-region-tutorial-emphasize { 0% { opacity:0; transform:translate(-50%,-8px) scale(.96); } 58% { opacity:1; transform:translate(-50%,1px) scale(1.05); } 100% { opacity:1; transform:translate(-50%,0) scale(1); } }
@keyframes sb-region-tutorial-drag { 0%,100% { transform:translateX(-3px); opacity:.7; } 50% { transform:translateX(3px); opacity:1; } }
@keyframes sb-region-tutorial-wheel { 0%,100% { transform:translateY(-2px); opacity:.72; } 50% { transform:translateY(2px); opacity:1; } }
@media (prefers-reduced-motion: reduce) {
  .sb-region-tutorial.is-emphasized, .sb-region-tutorial.is-emphasized i { animation:none; }
}
.sb-region-context { position: absolute; z-index: 5; display: flex; align-items: center; flex-wrap:wrap; justify-content:center; gap: 5px; width: max-content; max-width:calc(100% - 16px); padding: 5px; border: 1px solid rgba(0,0,0,.1); border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 10px 30px rgba(0,0,0,.22); backdrop-filter: blur(12px); transform-origin: 50% 0; animation: sb-region-context-in .18s ease both; }
.sb-region-context[hidden] { display: none; }
.sb-region-context::before { content:""; position:absolute; left:var(--sb-region-context-arrow,50%); top:-5px; width:9px; height:9px; border-left:1px solid rgba(0,0,0,.1); border-top:1px solid rgba(0,0,0,.1); background:rgba(255,255,255,.96); transform:translateX(-50%) rotate(45deg); }
.sb-region-context.place-above { transform: translateY(-100%); transform-origin: 50% 100%; }
.sb-region-context.place-above::before { top:auto; bottom:-5px; border:0; border-right:1px solid rgba(0,0,0,.1); border-bottom:1px solid rgba(0,0,0,.1); }
.sb-region-context.place-inside {
  transform: none;
  transform-origin: 50% 100%;
  box-shadow: 0 12px 34px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.38);
}
.sb-region-context.place-inside::before {
  top: auto;
  bottom: -5px;
  border: 0;
  border-right: 1px solid rgba(0,0,0,.1);
  border-bottom: 1px solid rgba(0,0,0,.1);
}
.sb-region-context-step { position:relative; z-index:1; padding:0 8px; color:#77777c; font-size:11px; font-weight:650; white-space:nowrap; }
.sb-region-context .sb-btn { position:relative; z-index:1; min-height:32px; white-space:nowrap; }
.sb-region-context .sb-btn[hidden] { display:none; }
.sb-region-context .sb-region-primary-action:not(:disabled) { background: linear-gradient(180deg,#ffe477 0%,#ffd13f 52%,#f0b900 100%); border-color:#e1ac00; color:#332600; box-shadow:0 3px 10px rgba(225,172,0,.28),inset 0 1px 0 rgba(255,255,255,.58); }
.sb-region-context .sb-region-primary-action:not(:disabled):hover { background: linear-gradient(180deg,#ffea8e 0%,#ffd84f 52%,#f4c20a 100%); border-color:#d59f00; }
.sb-region-context .sb-region-add-action { border-color:rgba(205,154,0,.38); color:#705400; background:#fff8dc; }
.sb-region-context .sb-region-add-action:hover { border-color:#d4a300; background:#fff2bd; }
.sb-region-context .sb-region-delete-action { color:#a23c34; }
.sb-region-context .sb-region-primary-action.is-progress {
  --sb-region-progress: 1%;
  min-width: 88px;
  overflow: hidden;
  isolation: isolate;
  opacity: 1;
  border-color: rgba(205,154,0,.5);
  background: rgba(255,248,220,.94);
  color: #332600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 3px 10px rgba(225,172,0,.18);
  font-variant-numeric: tabular-nums;
}
.sb-region-context .sb-region-primary-action.is-progress:disabled { opacity:1; color:#332600; cursor:wait; }
.sb-region-context .sb-region-primary-action.is-progress > span { position:relative; z-index:2; }
.sb-region-context .sb-region-primary-action.is-progress::before,
.sb-region-context .sb-region-primary-action.is-progress::after {
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:var(--sb-region-progress);
  pointer-events:none;
  transition:width .24s ease;
}
.sb-region-context .sb-region-primary-action.is-progress::before {
  z-index:0;
  background:linear-gradient(180deg,#ffe477 0%,#ffd13f 52%,#f0b900 100%);
}
.sb-region-context .sb-region-primary-action.is-progress::after {
  z-index:1;
  background-image:linear-gradient(110deg,transparent 16%,rgba(255,255,255,.72) 48%,transparent 78%);
  background-repeat:no-repeat;
  background-size:52px 100%;
  animation:sb-region-progress-shimmer 1.15s linear infinite;
}
@keyframes sb-region-progress-shimmer { from { background-position:-52px 0; } to { background-position:calc(100% + 52px) 0; } }
@media (prefers-reduced-motion: reduce) {
  .sb-region-context .sb-region-primary-action.is-progress::after { animation:none; }
}
@keyframes sb-region-context-in { from { opacity:0; scale:.96; } to { opacity:1; scale:1; } }
.sb-region-compare-btn {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 6;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 26px rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:transform .15s ease;
}
.sb-region-compare-btn.is-pressed { transform:scale(1.06); }
.sb-region-compare-btn[hidden] { display: none; }
.sb-region-review-actions {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: calc(100% - 36px);
  padding: 6px;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 13px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 34px rgba(0,0,0,.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateX(-50%);
}
.sb-region-review-actions[hidden] { display: none; }
.sb-region-review-actions .sb-btn {
  min-height:34px;
  white-space:nowrap;
  transition:transform .15s ease,box-shadow .15s ease,filter .15s ease;
}
.sb-region-review-actions .sb-btn:hover:not(:disabled) { transform:scale(1.025); }
.sb-region-review-actions .sb-btn:active:not(:disabled) { transform:translateY(1px) scale(.96); }
.sb-region-download-notice {
  position:absolute;
  left:50%;
  bottom:calc(100% + 9px);
  padding:7px 11px;
  border-radius:8px;
  background:rgba(28,28,30,.9);
  color:#fff;
  font-size:12px;
  font-weight:650;
  white-space:nowrap;
  box-shadow:0 7px 22px rgba(0,0,0,.22);
  transform:translateX(-50%);
}
.sb-region-download-notice[hidden] { display:none; }
.sb-region-download-split { position:relative; display:flex; align-items:stretch; gap:5px; }
.sb-region-review-actions .sb-region-primary-action {
  background:linear-gradient(180deg,#ffe477 0%,#ffd13f 52%,#f0b900 100%);
  border-color:#e1ac00;
  color:#332600;
  font-weight:680;
  box-shadow:0 3px 10px rgba(225,172,0,.28),inset 0 1px 0 rgba(255,255,255,.58);
}
.sb-region-download-split > [data-review-download],
.sb-region-download-split > [data-review-download-only] { min-height:34px; padding:0 12px; border-radius:9px; }
.sb-region-download-split > [data-review-download-only][hidden] { display:none; }
.sb-region-download-split .sb-region-download-toggle {
  width:34px;
  min-width:34px;
  height:34px;
  align-self:center;
  padding:0;
  border-radius:9px;
}
.sb-region-download-toggle > span {
  width:8px;
  height:8px;
  display:block;
  border-top:2px solid currentColor;
  border-right:2px solid currentColor;
  transform:translateX(-2px) rotate(45deg);
  transition:transform .18s ease;
}
.sb-region-download-split.is-open .sb-region-download-toggle > span { transform:translateX(2px) rotate(225deg); }
.sb-region-close-confirm {
  position:absolute;
  inset:0;
  z-index:20;
  display:grid;
  place-items:center;
  padding:20px;
  background:rgba(0,0,0,.36);
  opacity:0;
  transition:opacity .16s ease;
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
}
.sb-region-close-confirm[hidden] { display:none; }
.sb-region-close-confirm.show { opacity:1; }
.sb-region-close-confirm-card {
  width:min(360px,calc(100vw - 40px));
  padding:20px;
  border:1px solid rgba(0,0,0,.1);
  border-radius:12px;
  background:#fff;
  color:#262629;
  box-shadow:0 22px 70px rgba(0,0,0,.3);
  transform:translateY(7px) scale(.98);
  transition:transform .18s ease;
}
.sb-region-close-confirm.show .sb-region-close-confirm-card { transform:translateY(0) scale(1); }
.sb-region-close-confirm-card h4 { margin:0 0 8px; font-size:17px; line-height:1.3; }
.sb-region-close-confirm-card p { margin:0 0 16px; color:#66666b; font-size:13px; line-height:1.55; }
.sb-region-close-confirm-card label { display:flex; align-items:center; gap:8px; color:#66666b; font-size:12px; cursor:pointer; }
.sb-region-close-confirm-card label input { width:15px; height:15px; accent-color:#e5ad00; }
.sb-region-close-confirm-card > div { display:flex; justify-content:flex-end; gap:8px; margin-top:18px; }
.sb-region-close-confirm-card .danger { background:#ff5c60; border-color:#ff5c60; color:#fff; font-weight:680; }
.sb-region-close-confirm-card .danger:hover { background:#e84d52; border-color:#e84d52; }
.sb-region-review-actions .sb-region-primary-action:hover {
  background:linear-gradient(180deg,#ffea8e 0%,#ffd84f 52%,#f4c20a 100%);
  border-color:#d59f00;
  color:#332600;
}
.sb-color-body { position:relative; flex:1 1 auto; min-height:0; overflow:hidden; background:#17181a; }
.sb-color-select-view,.sb-color-review-view { position:absolute; inset:0; min-height:0; }
.sb-color-select-view[hidden],.sb-color-review-view[hidden] { display:none; }
.sb-color-select-view { display:flex; flex-direction:column; padding:12px 18px 14px; }
.sb-color-pair { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:18px; flex:1 1 auto; min-height:0; }
.sb-color-source { position:relative; display:grid; grid-template-rows:30px minmax(0,1fr); min-width:0; min-height:0; overflow:visible; }
.sb-color-source header { align-self:center; padding:0 3px; color:rgba(255,255,255,.9); font-size:13px; font-weight:700; }
.sb-color-canvas-wrap { position:relative; display:grid; place-items:center; min-height:0; padding:0; overflow:hidden; border-radius:8px; background:#202124; }
.sb-color-canvas-wrap canvas { display:block; max-width:none; max-height:none; }
.sb-color-thumbs { position:absolute; z-index:3; left:50%; bottom:10px; display:flex; justify-content:center; gap:7px; max-width:calc(100% - 20px); min-height:0; padding:5px; overflow-x:auto; border:1px solid rgba(255,255,255,.14); border-radius:11px; background:rgba(25,26,29,.76); box-shadow:0 8px 24px rgba(0,0,0,.26); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); transform:translateX(-50%); }
.sb-color-thumbs:empty { display:none; }
.sb-color-thumbs button { width:48px; height:48px; flex:0 0 auto; padding:2px; overflow:hidden; border:2px solid transparent; border-radius:8px; background:#2c2e32; cursor:pointer; transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.sb-color-thumbs button:hover { transform:translateY(-2px); }
.sb-color-thumbs button.active { border-color:#ffd54a; box-shadow:0 0 0 2px rgba(255,213,74,.15); }
.sb-color-thumbs img { width:100%; height:100%; display:block; object-fit:cover; border-radius:5px; }
.sb-color-start-actions { display:flex; justify-content:center; flex:0 0 auto; padding:12px 0 0; }
.sb-color-start-actions .sb-btn { min-width:118px; min-height:40px; background:linear-gradient(180deg,#ffe477 0%,#ffd13f 52%,#f0b900 100%); border-color:#e1ac00; color:#332600; box-shadow:0 3px 10px rgba(225,172,0,.28),inset 0 1px 0 rgba(255,255,255,.58); transition:transform .16s ease,box-shadow .16s ease,filter .16s ease; }
.sb-color-start-actions .sb-btn:hover { filter:brightness(1.04); transform:translateY(-1px); }
.sb-color-start-actions .sb-btn:active { transform:translateY(1px) scale(.97); box-shadow:0 1px 4px rgba(225,172,0,.22),inset 0 1px 0 rgba(255,255,255,.45); }
.sb-color-review-view { display:block; }
.sb-color-review-stage { position:absolute; inset:0; display:grid; place-items:center; min-height:0; padding:12px 12px 70px; overflow:hidden; background:#202124; }
.sb-color-review-stage canvas { display:block; max-width:none; max-height:none; }
.sb-color-download-action { justify-content:center; bottom:15px; padding:0; border:0; background:transparent; box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none; }
.sb-color-download-action .sb-btn { min-width:112px; }
.sb-color-download-action .sb-region-primary-action { background:linear-gradient(180deg,#ffe477 0%,#ffd13f 52%,#f0b900 100%); border-color:#e1ac00; color:#332600; box-shadow:0 3px 10px rgba(225,172,0,.28),inset 0 1px 0 rgba(255,255,255,.58); transition:transform .16s ease,box-shadow .16s ease,filter .16s ease; }
.sb-color-download-action .sb-region-primary-action:hover { filter:brightness(1.04); transform:translateY(-2px); }
.sb-color-download-action .sb-region-primary-action:active { transform:translateY(1px) scale(.96); box-shadow:0 1px 4px rgba(225,172,0,.2),inset 0 1px 0 rgba(255,255,255,.4); }
.sb-color-body > .sb-editor-status { position:absolute; left:50%; bottom:18px; z-index:8; padding:7px 12px; border-radius:9px; background:rgba(25,25,27,.84); color:#fff; transform:translateX(-50%); }
.sb-region-toolbar { width: 250px; flex-basis: 250px; }
.sb-region-loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  z-index: 3;
  font-weight: 650;
  pointer-events: none;
}
.sb-region-loading.show { display: flex; }
.sb-product-size-pro-workspace { display:grid; grid-template-columns:minmax(0,1fr) 320px; flex:1 1 auto; min-height:0; overflow:hidden; background:#17181a; }
.sb-product-size-pro-stage { position:relative; display:grid; grid-template-rows:auto minmax(0,1fr) auto; height:100%; min-width:0; min-height:0; padding:18px; background-color:#e9e9ed; background-image:linear-gradient(45deg,#dedee3 25%,transparent 25%),linear-gradient(-45deg,#dedee3 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#dedee3 75%),linear-gradient(-45deg,transparent 75%,#dedee3 75%); background-size:20px 20px; background-position:0 0,0 10px,10px -10px,-10px 0; }
.sb-product-size-pro-stage-head { display:flex; align-items:center; justify-content:flex-end; min-height:20px; padding:0 2px 8px; color:#fff; }
.sb-product-size-pro-stage-head p { margin:0; color:rgba(255,255,255,.65); font-size:11px; line-height:1.4; text-align:right; }
.sb-product-size-pro-tutorial { position:absolute; z-index:6; left:50%; top:42px; display:flex; align-items:center; gap:9px; max-width:calc(100% - 48px); padding:8px 13px 8px 9px; border:1px solid rgba(255,255,255,.66); border-radius:16px; background:rgba(30,30,32,.72); color:#fff; box-shadow:0 6px 20px rgba(0,0,0,.18); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); transform:translateX(-50%); transition:opacity .22s ease,transform .22s cubic-bezier(.23,1,.32,1); pointer-events:none; }
.sb-product-size-pro-tutorial[hidden] { display:none; }
.sb-product-size-pro-tutorial-step { display:grid; place-items:center; width:24px; height:24px; flex:0 0 auto; border-radius:50%; background:#ffd54a; color:#2d260d; font-size:12px; font-weight:800; box-shadow:0 0 0 3px rgba(255,213,74,.12); }
.sb-product-size-pro-tutorial-copy { display:flex; min-width:0; flex-direction:column; gap:1px; }
.sb-product-size-pro-tutorial-copy strong { overflow:hidden; font-size:12px; font-weight:750; line-height:1.2; text-overflow:ellipsis; white-space:nowrap; }
.sb-product-size-pro-tutorial-copy small { overflow:hidden; color:rgba(255,255,255,.78); font-size:12px; font-weight:500; line-height:1.3; text-overflow:ellipsis; white-space:nowrap; }
.sb-product-size-pro-board { position:relative; display:grid; place-items:center; width:100%; height:100%; min-height:0; overflow:hidden; border:0; border-radius:0; background:transparent; box-shadow:none; }
.sb-product-size-pro-board .sb-editor-canvas { visibility:hidden; width:auto; height:auto; max-width:100%; max-height:100%; border-radius:0; cursor:crosshair; box-shadow:0 20px 60px rgba(0,0,0,.44); }
.sb-product-size-pro-board.is-ready .sb-editor-canvas { visibility:visible; }
.sb-product-size-pro-original { position:absolute; z-index:7; right:18px; top:18px; display:inline-flex; align-items:center; gap:7px; min-height:32px; padding:0 14px; border:1px solid rgba(0,0,0,.1); border-radius:999px; background:rgba(255,255,255,.94); color:#242426; font:680 10px/1 system-ui,-apple-system,sans-serif; box-shadow:0 8px 26px rgba(0,0,0,.18); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); cursor:pointer; touch-action:none; user-select:none; transition:transform .15s ease; }
.sb-product-size-pro-original[hidden] { display:none; }
.sb-product-size-pro-original:active,.sb-product-size-pro-original.is-pressed { transform:scale(1.06); }
.sb-product-size-pro-preview-note { position:absolute; z-index:6; left:12px; bottom:12px; display:flex; align-items:center; gap:7px; max-width:calc(100% - 24px); padding:7px 10px; border:1px solid rgba(255,255,255,.15); border-radius:9px; background:rgba(25,25,27,.76); color:rgba(255,255,255,.7); font-size:9px; line-height:1.2; box-shadow:0 6px 18px rgba(0,0,0,.2); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); pointer-events:none; }
.sb-product-size-pro-preview-note[hidden] { display:none; }
.sb-product-size-pro-preview-note b { color:#ffe783; font-size:9px; letter-spacing:.04em; }
.sb-product-size-pro-empty { position:absolute; inset:0; display:grid; place-content:center; justify-items:center; gap:11px; color:rgba(255,255,255,.68); font-size:12px; pointer-events:none; }
.sb-product-size-pro-empty[hidden] { display:none; }
.sb-product-size-pro-empty i { width:26px; height:26px; border:2px solid rgba(255,255,255,.18); border-top-color:#ffd54a; border-radius:50%; animation:sb-pro-spin .8s linear infinite; }
.sb-product-size-pro-empty.error i { border-color:#ff5c60; animation:none; }
@keyframes sb-pro-spin { to { transform:rotate(360deg); } }
.sb-product-size-pro-stage-status { min-height:30px; padding:10px 2px 0; overflow:hidden; color:rgba(255,255,255,.62); font-size:10px; line-height:1.45; text-align:center; text-overflow:ellipsis; white-space:nowrap; }
.sb-product-size-pro-stage-status:empty { display:none; }
.sb-product-size-pro-panel { display:flex; flex-direction:column; gap:16px; min-height:0; padding:22px 20px; overflow:auto; border-left:1px solid rgba(0,0,0,.09); background:#f7f7f9; color:#242426; }
.sb-product-size-pro-panel > header { display:grid; gap:3px; padding-bottom:2px; }
.sb-product-size-pro-panel-title { display:flex; align-items:center; gap:8px; }
.sb-product-size-pro-panel-title > span { font-size:17px; font-weight:730; letter-spacing:-.01em; }
.sb-product-size-pro-panel-badge { display:inline-flex; align-items:center; justify-content:center; min-width:34px; height:20px; padding:0 8px; border-radius:999px; background:linear-gradient(180deg,#ffe57b 0%,#ffd348 100%); color:#3a2b00; font:700 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.02em; box-shadow:0 1px 3px rgba(177,126,0,.2),inset 0 1px 0 rgba(255,255,255,.72); }
.sb-product-size-pro-panel > header small { color:#838388; font-size:12px; line-height:1.55; }
.sb-product-size-pro-adjustments { display:grid; gap:9px; }
.sb-product-size-pro-adjustment { display:grid; grid-template-rows:auto 1fr; gap:9px; padding:11px; border:1px solid rgba(0,0,0,.09); border-radius:13px; background:#fff; box-shadow:0 5px 16px rgba(0,0,0,.035); opacity:1; transform:translate3d(0,0,0); transform-origin:50% 0; transition:grid-template-rows .24s cubic-bezier(.32,.72,0,1),gap .24s cubic-bezier(.32,.72,0,1),padding .24s cubic-bezier(.32,.72,0,1),border-color .16s ease,box-shadow .22s ease,opacity .18s ease-out,transform .24s cubic-bezier(.23,1,.32,1); }
.sb-product-size-pro-adjustment.active { border-color:rgba(229,190,61,.38); box-shadow:0 0 0 2px rgba(255,220,96,.08),0 7px 20px rgba(0,0,0,.05); }
.sb-product-size-pro-adjustment:not(.active) { grid-template-rows:auto 0fr; gap:0; padding:7px 9px; box-shadow:0 3px 10px rgba(0,0,0,.025); }
.sb-product-size-pro-adjustment.is-entering { opacity:0; transform:translate3d(0,8px,0) scale(.985); }
.sb-product-size-pro-adjustment-body { min-height:0; overflow:hidden; opacity:1; transform:translate3d(0,0,0); transition:opacity .16s ease-out .04s,transform .22s cubic-bezier(.23,1,.32,1); }
.sb-product-size-pro-adjustment-body-inner { display:grid; gap:9px; min-height:0; }
.sb-product-size-pro-adjustment:not(.active) .sb-product-size-pro-adjustment-body { opacity:0; transform:translate3d(0,-6px,0); transition:opacity .1s ease-out,transform .16s ease-out; pointer-events:none; }
.sb-product-size-pro-adjustment-head { display:grid; grid-template-columns:minmax(0,1fr) 23px; align-items:center; gap:7px; }
.sb-product-size-pro-adjustment-summary { display:grid; grid-template-columns:auto minmax(0,1fr) auto 14px; align-items:center; gap:8px; min-width:0; min-height:34px; padding:0 3px; border:0; background:transparent; color:#39393d; font:inherit; text-align:left; cursor:pointer; }
.sb-product-size-pro-adjustment-summary span { font-size:10px; font-weight:760; white-space:nowrap; }
.sb-product-size-pro-adjustment-summary b { overflow:hidden; font-size:12px; font-weight:700; text-overflow:ellipsis; white-space:nowrap; opacity:1; transform:translate3d(0,0,0); transition:opacity .14s ease-out,transform .18s cubic-bezier(.23,1,.32,1); }
.sb-product-size-pro-adjustment-summary em { color:#77777c; font-size:10px; font-style:normal; font-weight:720; white-space:nowrap; opacity:1; transform:translate3d(0,0,0); transition:opacity .14s ease-out,transform .18s cubic-bezier(.23,1,.32,1); }
.sb-product-size-pro-adjustment-summary em.shrink,.sb-product-size-pro-adjustment-summary em.enlarge { color:#5f6065; }
.sb-product-size-pro-adjustment-summary i { width:7px; height:7px; border-right:1.5px solid #a0a0a5; border-bottom:1.5px solid #a0a0a5; transform:rotate(45deg) translate(-1px,-1px); transition:transform .18s ease; }
.sb-product-size-pro-adjustment.active .sb-product-size-pro-adjustment-summary b,.sb-product-size-pro-adjustment.active .sb-product-size-pro-adjustment-summary em { opacity:0; transform:translate3d(4px,0,0); visibility:hidden; }
.sb-product-size-pro-adjustment.active .sb-product-size-pro-adjustment-summary span { font-size:11px; }
.sb-product-size-pro-adjustment.active .sb-product-size-pro-adjustment-summary i { transform:rotate(225deg) translate(-1px,-1px); }
.sb-product-size-pro-adjustment-remove { display:grid; place-items:center; width:23px; height:23px; padding:0; border:0; border-radius:7px; background:transparent; color:#aaaab0; font:400 17px/1 system-ui,sans-serif; cursor:pointer; }
.sb-product-size-pro-adjustment-remove:hover { background:#fff0f0; color:#d83b40; }
.sb-product-size-pro-adjustment .sb-product-size-pro-description-field { grid-template-columns:auto minmax(0,1fr); align-items:center; gap:7px; }
.sb-product-size-pro-adjustment .sb-product-size-pro-description-field > span { font-size:11px; white-space:nowrap; }
.sb-product-size-pro-adjustment .sb-product-size-pro-description-field input { min-height:37px; }
.sb-product-size-pro-adjustment .sb-product-size-pro-description-scale { gap:8px; padding:10px; border-radius:10px; box-shadow:none; background:#fafafa; }
.sb-product-size-pro-adjustment .sb-product-size-pro-measure { justify-self:center; width:220px; max-width:100%; min-height:33px; padding-inline:18px; font-size:11px; }
.sb-product-size-pro-adjustment .sb-product-size-pro-measure-help { font-size:10px; line-height:1.45; }
.sb-product-size-pro-add-product { align-self:center; width:220px; max-width:100%; min-height:38px; padding-inline:18px; border-style:dashed; color:#5e5e63; background:rgba(255,255,255,.5); }
.sb-product-size-pro-mode-tabs { display:grid; grid-template-columns:1fr 1fr; gap:4px; padding:4px; border-radius:11px; background:#e9e9ec; }
.sb-product-size-pro-mode-tabs button { min-height:34px; border:0; border-radius:8px; background:transparent; color:#77777c; font:680 11px/1 inherit; cursor:pointer; transition:background .16s ease,color .16s ease,box-shadow .18s ease,transform .14s ease; }
.sb-product-size-pro-mode-tabs button.active { background:#fff; color:#242426; box-shadow:0 2px 8px rgba(0,0,0,.1); }
.sb-product-size-pro-mode-tabs button:active { transform:scale(.97); }
.sb-product-size-pro-description,.sb-product-size-pro-selection { display:grid; gap:10px; }
.sb-product-size-pro-description[hidden],.sb-product-size-pro-selection[hidden] { display:none; }
.sb-product-size-pro-description-field { display:grid; gap:8px; color:#5e5e63; font-size:13px; font-weight:650; }
.sb-product-size-pro-description-field input { min-height:40px; padding:0 11px; border:1px solid rgba(0,0,0,.12); border-radius:10px; outline:0; background:#fff; color:#242426; font:inherit; font-size:12px; transition:border-color .16s ease,box-shadow .16s ease; }
.sb-product-size-pro-description-field input::placeholder { color:rgba(60,60,67,.36); opacity:1; }
.sb-product-size-pro-description-field input:focus { border-color:rgba(105,105,112,.48); box-shadow:0 0 0 3px rgba(105,105,112,.1); }
.sb-product-size-pro-description-help,.sb-product-size-pro-measure-help { margin:0; color:#85858b; font-size:11px; line-height:1.55; }
.sb-product-size-pro-measure-help:empty { display:none; }
.sb-product-size-pro-description-scale { display:grid; gap:10px; padding:13px; border:1px solid rgba(0,0,0,.09); border-radius:13px; background:#fff; box-shadow:0 7px 22px rgba(0,0,0,.05); transition:opacity .16s ease,border-color .16s ease,box-shadow .16s ease; }
.sb-product-size-pro-description-scale[hidden] { display:none; }
.sb-product-size-pro-description-scale.is-disabled { border-color:rgba(0,0,0,.055); box-shadow:none; opacity:.48; }
.sb-product-size-pro-description-scale.is-disabled .sb-product-size-pro-range,.sb-product-size-pro-description-scale.is-disabled .sb-product-size-pro-measure { cursor:not-allowed; }
.sb-product-size-pro-range-labels { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; color:#8a8a8f; font-size:10px; }
.sb-product-size-pro-range-labels span:last-child { text-align:right; }
.sb-product-size-pro-range-labels b { min-width:92px; color:#6e6e73; font:750 12px/1 system-ui,-apple-system,sans-serif; letter-spacing:.01em; text-align:center; white-space:nowrap; }
.sb-product-size-pro-range-labels b.shrink,.sb-product-size-pro-range-labels b.enlarge { color:#4f5055; }
.sb-product-size-pro-range { width:100%; height:30px; margin:0; appearance:none; -webkit-appearance:none; border:0; outline:0; border-radius:999px; background:linear-gradient(90deg,#dedee3 0 var(--sb-pro-range-start,50%),var(--sb-pro-range-accent,#ffd54a) var(--sb-pro-range-start,50%) var(--sb-pro-range-end,50%),#dedee3 var(--sb-pro-range-end,50%) 100%) center/100% 6px no-repeat; cursor:grab; touch-action:pan-y; }
.sb-product-size-pro-range:active { cursor:grabbing; }
.sb-product-size-pro-range::-webkit-slider-runnable-track { height:6px; border:0; border-radius:999px; background:transparent; }
.sb-product-size-pro-range::-webkit-slider-thumb { width:22px; height:22px; margin-top:-8px; appearance:none; -webkit-appearance:none; border:5px solid var(--sb-pro-range-accent,#ffd54a); border-radius:50%; background:#fff; box-shadow:0 1px 4px rgba(35,35,38,.18),0 0 0 1px rgba(0,0,0,.04); transition:transform .1s ease-out,box-shadow .1s ease-out; }
.sb-product-size-pro-range:hover::-webkit-slider-thumb { box-shadow:0 2px 8px rgba(35,35,38,.2),0 0 0 4px color-mix(in srgb,var(--sb-pro-range-accent,#ffd54a) 16%,transparent); }
.sb-product-size-pro-range:active::-webkit-slider-thumb { transform:scale(1.1); box-shadow:0 2px 9px rgba(35,35,38,.22),0 0 0 6px color-mix(in srgb,var(--sb-pro-range-accent,#ffd54a) 18%,transparent); }
.sb-product-size-pro-range::-moz-range-track { height:6px; border:0; border-radius:999px; background:transparent; }
.sb-product-size-pro-range::-moz-range-progress { height:6px; border-radius:999px; background:transparent; }
.sb-product-size-pro-range::-moz-range-thumb { width:12px; height:12px; border:5px solid var(--sb-pro-range-accent,#ffd54a); border-radius:50%; background:#fff; box-shadow:0 1px 4px rgba(35,35,38,.18); transition:transform .1s ease-out,box-shadow .1s ease-out; }
.sb-product-size-pro-range:focus-visible::-webkit-slider-thumb { box-shadow:0 0 0 4px color-mix(in srgb,var(--sb-pro-range-accent,#ffd54a) 20%,transparent),0 0 0 6px rgba(80,80,86,.16); }
.sb-product-size-pro-range:focus-visible::-moz-range-thumb { box-shadow:0 0 0 4px color-mix(in srgb,var(--sb-pro-range-accent,#ffd54a) 20%,transparent),0 0 0 6px rgba(80,80,86,.16); }
.sb-product-size-pro-range:disabled { cursor:not-allowed; filter:saturate(.35); }
.sb-product-size-pro-measure { min-height:36px; border-style:dashed; }
.sb-product-size-pro-measure.active { border-color:#d8a700; background:#fff8d6; color:#705400; }
.sb-product-size-pro-region-list { display:grid; gap:5px; }
.sb-product-size-pro-region-empty { display:grid; justify-items:center; gap:5px; padding:20px 12px; border:1px dashed rgba(0,0,0,.18); border-radius:12px; color:#747479; text-align:center; background:rgba(255,255,255,.55); }
.sb-product-size-pro-region-empty i { width:32px; height:25px; border:2px solid #ff3b30; border-radius:4px; box-shadow:inset 0 0 0 4px rgba(255,59,48,.06); }
.sb-product-size-pro-region-empty strong { font-size:12px; }
.sb-product-size-pro-region-empty span { color:#99999e; font-size:10px; }
.sb-product-size-pro-region-item { position:relative; display:grid; grid-template-columns:7px minmax(0,1fr) 24px; align-items:center; gap:8px; min-height:47px; padding:5px 6px 5px 9px; border:1px solid rgba(0,0,0,.1); border-radius:10px; background:#fff; color:#29292c; font:inherit; text-align:left; cursor:pointer; box-shadow:0 3px 10px rgba(0,0,0,.035); transition:border-color .16s ease,box-shadow .18s ease,transform .14s ease; }
.sb-product-size-pro-region-item:hover { transform:translateY(-1px); box-shadow:0 7px 18px rgba(0,0,0,.075); }
.sb-product-size-pro-region-item.active { border-color:var(--active-region-color,#d5a400); box-shadow:0 0 0 2px rgba(255,213,74,.16),0 7px 18px rgba(0,0,0,.07); }
.sb-product-size-pro-region-item > i { display:block; width:7px; height:28px; border-radius:99px; background:var(--region-color); box-shadow:0 0 0 3px color-mix(in srgb,var(--region-color) 12%,transparent); }
.sb-product-size-pro-region-item > span { display:grid; gap:2px; min-width:0; }
.sb-product-size-pro-region-item strong { font-size:12px; }
.sb-product-size-pro-region-item small { color:#77777c; font-size:10px; }
.sb-product-size-pro-region-item > b { display:grid; place-items:center; width:24px; height:24px; border-radius:7px; color:#b1b1b6; font-size:16px; font-weight:400; line-height:1; }
.sb-product-size-pro-region-item > b:hover { background:#fff0f0; color:#d83b40; }
.sb-product-size-pro-add { min-height:36px; border-style:dashed; color:#5e5e63; background:rgba(255,255,255,.5); }
.sb-product-size-pro-scale-panel { display:grid; gap:10px; padding:13px; border:1px solid rgba(0,0,0,.09); border-radius:13px; background:#fff; box-shadow:0 7px 22px rgba(0,0,0,.05); }
.sb-product-size-pro-scale-panel[hidden] { display:none; }
.sb-product-size-pro-scale-title { display:grid; grid-template-columns:8px minmax(0,1fr) auto; align-items:center; gap:7px; }
.sb-product-size-pro-scale-title > span { width:8px; height:8px; border-radius:50%; }
.sb-product-size-pro-scale-title strong { font-size:12px; }
.sb-product-size-pro-scale-title b { color:#717176; font-size:10px; font-weight:650; }
.sb-product-size-pro-direction { display:grid; grid-template-columns:1fr 1fr; gap:4px; padding:4px; border-radius:10px; background:#ededf0; }
.sb-product-size-pro-direction button { min-height:31px; border:0; border-radius:7px; background:transparent; color:#77777c; font:650 11px/1 inherit; cursor:pointer; }
.sb-product-size-pro-direction button.active { background:#fff; color:#222225; box-shadow:0 2px 8px rgba(0,0,0,.1); }
.sb-product-size-pro-percent { display:flex; align-items:center; justify-content:space-between; gap:12px; color:#66666b; font-size:11px; }
.sb-product-size-pro-percent > span:last-child { display:flex; align-items:center; overflow:hidden; border:1px solid rgba(0,0,0,.13); border-radius:9px; background:#fff; }
.sb-product-size-pro-percent input { width:82px; height:34px; padding:0 5px 0 10px; border:0; outline:0; background:transparent; color:#242426; font:700 13px/1 ui-monospace,SFMono-Regular,Menlo,monospace; text-align:right; }
.sb-product-size-pro-percent b { padding-right:10px; color:#8a8a8f; font-size:11px; }
.sb-product-size-pro-nudge { display:grid; grid-template-columns:repeat(4,1fr); gap:4px; }
.sb-product-size-pro-nudge button { min-height:29px; padding:0; border:1px solid rgba(0,0,0,.09); border-radius:8px; background:#f8f8fa; color:#5e5e63; font:650 10px/1 inherit; cursor:pointer; }
.sb-product-size-pro-nudge button:active { transform:scale(.96); }
.sb-product-size-pro-scale-panel p { margin:0; color:#85858b; font-size:11px; line-height:1.5; }
.sb-product-size-pro-prompt { display:grid; gap:6px; padding:11px 12px; border-left:3px solid #ffd54a; border-radius:4px 10px 10px 4px; background:#fff9dd; }
.sb-product-size-pro-prompt > span { color:#705600; font-size:10px; font-weight:750; }
.sb-product-size-pro-prompt p { max-height:84px; margin:0; overflow:auto; color:#696149; font-size:10px; line-height:1.55; }
.sb-product-size-pro-actions { display:flex; flex-direction:column; align-items:center; gap:9px; margin-top:auto; padding-top:18px; }
.sb-product-size-pro-actions.single-action { align-items:center; }
.sb-product-size-pro-actions .sb-region-background-action { width:220px; max-width:100%; min-height:36px; padding-inline:24px; border-color:rgba(0,0,0,.12); background:#f1f1f4; color:#4f4f54; box-shadow:none; }
.sb-product-size-pro-actions .sb-region-background-action:hover { background:#e7e7eb; }
.sb-product-size-pro-generate { width:220px; max-width:100%; min-height:42px; padding-inline:24px; background:linear-gradient(180deg,#ffe477 0%,#ffd13f 52%,#f0b900 100%)!important; border-color:#e1ac00!important; color:#332600!important; box-shadow:0 4px 14px rgba(225,172,0,.24); }
.sb-product-size-pro-generate.is-progress { --sb-pro-progress:1%; position:relative; overflow:hidden; isolation:isolate; background:rgba(255,248,220,.94)!important; }
.sb-product-size-pro-generate.is-progress::before { content:""; position:absolute; inset:0 auto 0 0; width:var(--sb-pro-progress); background:linear-gradient(180deg,#ffe477 0%,#ffd13f 52%,#f0b900 100%); transition:width .24s ease; z-index:0; }
.sb-product-size-pro-generate.is-progress::after { content:""; position:absolute; inset:0; background:linear-gradient(110deg,transparent 22%,rgba(255,255,255,.65) 48%,transparent 75%); background-size:70px 100%; animation:sb-pro-shimmer 1.05s linear infinite; }
@keyframes sb-pro-shimmer { from { background-position:-80px 0; } to { background-position:240px 0; } }
.sb-product-size-pro-generate > span { position:relative; z-index:1; }
.sb-product-size-pro-review-actions { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin-top:auto; }
.sb-product-size-pro-review-actions-stage { position:absolute; left:50%; bottom:18px; z-index:8; display:flex; align-items:center; width:max-content; max-width:calc(100% - 36px); margin:0; padding:6px; border:1px solid rgba(0,0,0,.1); border-radius:13px; background:rgba(255,255,255,.96); box-shadow:0 12px 34px rgba(0,0,0,.22); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); transform:translateX(-50%); }
.sb-product-size-pro-review-actions-stage .sb-btn { min-height:34px; white-space:nowrap; }
.sb-product-size-pro-review-actions-stage .sb-region-download-split { display:flex; align-items:stretch; gap:5px; }
.sb-product-size-pro-review-actions-stage .sb-region-download-split > [data-apply],.sb-product-size-pro-review-actions-stage .sb-region-download-split > [data-download-only] { min-height:34px; padding:0 12px; border-radius:9px; }
.sb-product-size-pro-review-actions-stage .sb-region-download-toggle { width:34px; min-width:34px; min-height:34px; padding:0; border-radius:9px; }
.sb-product-size-pro-review-actions-stage .sb-region-download-only[hidden] { display:none; }
.sb-product-size-pro-review-actions-stage .sb-region-download-notice { position:absolute; left:50%; bottom:-31px; transform:translateX(-50%); white-space:nowrap; }
.sb-product-size-pro-review-actions[hidden] { display:none; }
.sb-product-size-pro-review-actions .primary { grid-column:1/-1; min-height:42px; }
.sb-product-size-pro-status-a11y { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (prefers-reduced-motion: reduce) {
  .sb-product-size-pro-tutorial,.sb-product-size-pro-generate.is-progress::before { transition:none; }
  .sb-product-size-pro-generate.is-progress::after { animation:none; }
}

.theme-dark .sb-product-size-pro-panel { border-color:rgba(255,255,255,.09); background:#181818; color:#f1f1f3; }
.theme-dark .sb-product-size-pro-panel > header small { color:#99999e; }
.theme-dark .sb-product-size-pro-adjustment { border-color:rgba(255,255,255,.11); background:#292929; }
.theme-dark .sb-product-size-pro-adjustment.active { border-color:rgba(255,216,77,.34); }
.theme-dark .sb-product-size-pro-adjustment-summary { color:#f1f1f3; }
.theme-dark .sb-product-size-pro-adjustment-summary em.shrink,.theme-dark .sb-product-size-pro-adjustment-summary em.enlarge,.theme-dark .sb-product-size-pro-range-labels b.shrink,.theme-dark .sb-product-size-pro-range-labels b.enlarge { color:#d0d0d4; }
.theme-dark .sb-product-size-pro-adjustment .sb-product-size-pro-description-scale { background:#222; }
.theme-dark .sb-product-size-pro-add-product { border-color:rgba(255,255,255,.11); background:#242424; color:#ccc; }
.theme-dark .sb-product-size-pro-mode-tabs { background:#202020; }
.theme-dark .sb-product-size-pro-mode-tabs button.active { background:#464646; color:#fff; box-shadow:0 1px 5px rgba(0,0,0,.35); }
.theme-dark .sb-product-size-pro-description-field { color:#ccc; }
.theme-dark .sb-product-size-pro-description-field input { border-color:rgba(255,255,255,.12); background:#202020; color:#fff; }
.theme-dark .sb-product-size-pro-description-field input::placeholder { color:rgba(235,235,245,.34); }
.theme-dark .sb-product-size-pro-description-field input:focus { border-color:rgba(255,255,255,.28); box-shadow:0 0 0 3px rgba(255,255,255,.06); }
.theme-dark .sb-product-size-pro-description-scale,.theme-dark .sb-product-size-pro-region-empty,.theme-dark .sb-product-size-pro-region-item,.theme-dark .sb-product-size-pro-scale-panel { border-color:rgba(255,255,255,.11); background:#292929; color:#f1f1f3; }
.theme-dark .sb-product-size-pro-description-scale.is-disabled { border-color:rgba(255,255,255,.06); }
.theme-dark .sb-product-size-pro-range { background:linear-gradient(90deg,#55565a 0 var(--sb-pro-range-start,50%),var(--sb-pro-range-accent,#ffd54a) var(--sb-pro-range-start,50%) var(--sb-pro-range-end,50%),#55565a var(--sb-pro-range-end,50%) 100%) center/100% 6px no-repeat; }
.theme-dark .sb-product-size-pro-measure.active { border-color:rgba(255,213,74,.42); background:#302b1c; color:#ffe783; }
.theme-dark .sb-product-size-pro-region-item small,.theme-dark .sb-product-size-pro-scale-title b,.theme-dark .sb-product-size-pro-scale-panel p { color:#aaa; }
.theme-dark .sb-product-size-pro-add,.theme-dark .sb-product-size-pro-nudge button { border-color:rgba(255,255,255,.11); background:#242424; color:#ccc; }
.theme-dark .sb-product-size-pro-direction { background:#202020; }
.theme-dark .sb-product-size-pro-direction button.active { background:#464646; color:#fff; }
.theme-dark .sb-product-size-pro-percent > span:last-child { border-color:rgba(255,255,255,.12); background:#202020; }
.theme-dark .sb-product-size-pro-percent input { color:#fff; }
.theme-dark .sb-product-size-pro-prompt { border-left-color:#ffd54a; background:#302b1c; }
.theme-dark .sb-product-size-pro-prompt > span { color:#ffe783; }
.theme-dark .sb-product-size-pro-prompt p { color:#c8b66e; }
.sb-region-ai-status {
  position:absolute;
  z-index:7;
  left:50%;
  bottom:18px;
  display:grid;
  min-width:220px;
  max-width:calc(100% - 36px);
  grid-template-columns:minmax(0,1fr);
  gap:2px;
  padding:9px 12px 10px;
  border:1px solid rgba(255,255,255,.56);
  border-radius:11px;
  background:rgba(30,30,32,.82);
  color:#fff;
  box-shadow:0 9px 28px rgba(0,0,0,.24);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  transform:translateX(-50%);
  pointer-events:none;
}
.sb-region-ai-status[hidden] { display:none; }
.sb-region-ai-status span { overflow:hidden; font-size:12px; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
.sb-region-ai-status small { overflow:hidden; color:rgba(255,255,255,.72); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.sb-region-ai-status > i { position:relative; display:block; height:3px; margin-top:5px; overflow:hidden; border-radius:999px; background:rgba(255,255,255,.18); }
.sb-region-ai-status > i > b { position:absolute; inset:0 auto 0 0; width:0; border-radius:inherit; background:#ffd54a; transition:width .2s ease; }
.sb-region-ai-status.is-ready > i > b { width:100%!important; }

.sb-detail-dialog { width:min(1120px,calc(100vw - 30px)); height:min(900px,calc(100vh - 30px)); }
.sb-detail-workspace { position:relative; background:#17181a; }
.sb-detail-selection-stage { width:100%; min-width:0; }
.sb-detail-selection-stage[hidden] { display:none; }
.sb-detail-selection-stage canvas { transform-origin:center center; will-change:transform; }
.sb-detail-selection-stage canvas.is-review-zoomed { cursor:grab; }
.sb-detail-selection-stage canvas.is-review-zoomed.dragging { cursor:grabbing; }
.sb-detail-review-zoom { position:absolute; z-index:7; left:50%; top:18px; min-width:54px; padding:6px 10px; border:1px solid rgba(255,255,255,.2); border-radius:999px; background:rgba(28,28,30,.82); color:#fff; font:700 11px/1 ui-monospace,SFMono-Regular,Menlo,monospace; text-align:center; box-shadow:0 7px 22px rgba(0,0,0,.24); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); opacity:0; transform:translateX(-50%) translateY(-4px); transition:opacity .16s ease,transform .16s ease; pointer-events:none; }
.sb-detail-review-zoom[hidden] { display:none; }
.sb-detail-review-zoom.show { opacity:1; transform:translateX(-50%) translateY(0); }
.sb-detail-ratio-modes { left:18px; top:18px; }
.sb-detail-ratio-modes button { display:inline-flex; align-items:center; gap:6px; padding:0 9px; }
.sb-detail-ratio-icon { display:block; width:15px; height:15px; box-sizing:border-box; border:1.5px solid currentColor; border-radius:2px; opacity:.86; }
.sb-detail-ratio-modes [data-ratio="3:2"] .sb-detail-ratio-icon { width:18px; height:12px; }
.sb-detail-ratio-modes [data-ratio="2:3"] .sb-detail-ratio-icon { width:12px; height:18px; }
.sb-detail-ratio-modes [data-ratio="16:9"] .sb-detail-ratio-icon { width:20px; height:11px; }
.sb-detail-ratio-modes [data-ratio="9:16"] .sb-detail-ratio-icon { width:11px; height:20px; }
.sb-detail-canvas-status { position:absolute; z-index:4; left:50%; bottom:18px; max-width:calc(100% - 36px); overflow:hidden; padding:7px 11px; border:1px solid rgba(255,255,255,.16); border-radius:9px; background:rgba(25,25,27,.8); color:rgba(255,255,255,.86); font-size:11px; text-overflow:ellipsis; white-space:nowrap; box-shadow:0 7px 22px rgba(0,0,0,.2); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); transform:translateX(-50%); pointer-events:none; }
.sb-detail-mosaic-stage { width:100%; min-width:0; }
.sb-detail-mosaic-stage[hidden] { display:none; }
.sb-detail-mosaic-canvas { cursor:none!important; }
.sb-detail-mosaic-toolbar { position:absolute; z-index:7; display:flex; align-items:center; gap:7px; max-width:calc(100% - 24px); padding:6px; border:1px solid rgba(255,255,255,.58); border-radius:12px; background:rgba(30,30,32,.78); color:#fff; box-shadow:0 8px 28px rgba(0,0,0,.24); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); }
.sb-detail-mosaic-toolbar label { display:flex; align-items:center; gap:7px; padding:0 5px; color:rgba(255,255,255,.84); font-size:11px; font-weight:650; white-space:nowrap; }
.sb-detail-mosaic-toolbar input[type="range"] { width:112px; accent-color:#ffd54a; }
.sb-detail-mosaic-toolbar b { min-width:36px; color:#ffd54a; font:650 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace; text-align:right; }
.sb-detail-mosaic-toolbar .sb-btn { min-height:30px; border-color:rgba(255,255,255,.18); background:rgba(255,255,255,.1); color:#fff; }
.sb-detail-mosaic-toolbar .sb-btn:hover:not(:disabled) { background:rgba(255,255,255,.18); }
.sb-detail-mosaic-context { position:absolute; }
.sb-detail-mosaic-tutorial { pointer-events:none; }
.sb-region-context .sb-detail-finish-region-action { border-color:#e5c35a; background:#fff6cf; color:#654d00; box-shadow:none; font-weight:680; }
.sb-region-context .sb-detail-finish-region-action:hover:not(:disabled) { border-color:#d6ad2d; background:#ffefae; box-shadow:none; }
.sb-region-context .sb-detail-finish-region-action:active:not(:disabled) { background:#ffe889; transform:translateY(1px); }
.sb-detail-config { display:grid; grid-template-columns:minmax(0,1fr) 300px; width:100%; min-height:0; overflow:hidden; background:#17181a; }
.sb-detail-config[hidden] { display:none; }
.sb-detail-panel { display:flex; flex-direction:column; gap:13px; min-height:0; padding:18px; overflow:auto; background:#f6f6f8; color:#27272a; }
.sb-detail-panel--right { border-left:1px solid rgba(255,255,255,.09); }
.sb-detail-panel section { display:flex; align-items:flex-start; gap:10px; }
.sb-detail-panel section strong { display:block; font-size:14px; line-height:1.35; }
.sb-detail-panel section small { display:block; margin-top:3px; color:#77777c; font-size:11px; line-height:1.45; }
.sb-detail-step { display:grid; place-items:center; width:28px; height:28px; flex:0 0 auto; border:1px solid #d8aa11; border-radius:8px; color:#956f00; font:700 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace; background:#fff8d9; }
.sb-detail-step--small { font-size:11px; }
.sb-detail-reference-modes { display:grid; grid-template-columns:1fr 1fr; gap:4px; padding:4px; border-radius:11px; background:#e9e9ed; }
.sb-detail-reference-modes button { min-height:36px; padding:0 8px; border:0; border-radius:8px; background:transparent; color:#66666b; font:650 11px/1.2 inherit; cursor:pointer; }
.sb-detail-reference-modes button.active { background:#fff; color:#1f1f22; box-shadow:0 2px 8px rgba(0,0,0,.1); }
.sb-detail-ratios { display:grid; grid-template-columns:repeat(3,1fr); gap:5px; padding:4px; border-radius:11px; background:#e9e9ed; }
.sb-detail-ratios button { min-height:34px; border:0; border-radius:8px; background:transparent; color:#66666b; font:650 12px/1 inherit; cursor:pointer; }
.sb-detail-ratios button.active { background:#fff; color:#1f1f22; box-shadow:0 2px 8px rgba(0,0,0,.1); }
.sb-detail-size { min-height:34px; padding:8px 10px; border:1px dashed rgba(0,0,0,.18); border-radius:9px; color:#68686d; font:600 12px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace; text-align:center; background:rgba(255,255,255,.55); }
.sb-detail-hidden-file { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.sb-detail-shared-reference { position:relative; display:grid; place-items:center; min-height:118px; overflow:hidden; border:1px dashed rgba(0,0,0,.24); border-radius:12px; background:#fff; color:#737378; font-size:12px; cursor:pointer; transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease; }
.sb-detail-shared-reference[hidden] { display:none; }
.sb-detail-shared-reference.is-disabled { opacity:.62; cursor:wait; pointer-events:none; }
.sb-detail-shared-reference:hover,.sb-detail-shared-reference.is-dragging { border-color:#d3a400; box-shadow:0 8px 22px rgba(201,155,0,.12); transform:translateY(-1px); }
.sb-detail-shared-reference input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.sb-detail-shared-reference > span { display:grid; place-items:center; gap:4px; padding:12px; text-align:center; }
.sb-detail-shared-reference > span b { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; background:#fff3b7; color:#8a6700; font-size:23px; font-weight:400; }
.sb-detail-shared-reference > span small { color:#99999e; font-size:10px; }
.sb-detail-shared-reference img { width:100%; height:118px; object-fit:contain; background:#f1f1f3; }
.sb-detail-shared-reference button { position:absolute; top:7px; right:7px; width:26px; height:26px; padding:0; border:1px solid rgba(0,0,0,.15); border-radius:99px; background:rgba(255,255,255,.92); color:#d83b40; font-size:18px; line-height:1; cursor:pointer; box-shadow:0 3px 12px rgba(0,0,0,.12); }
.sb-detail-config-summary { display:grid; gap:4px; padding:12px; border:1px solid rgba(213,164,0,.22); border-radius:10px; background:#fff9dd; }
.sb-detail-config-summary b { color:#6f5500; font-size:12px; }
.sb-detail-config-actions { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; margin-top:auto; }
.sb-detail-generate { min-height:42px; background:linear-gradient(180deg,#ffe477 0%,#ffd13f 52%,#f0b900 100%)!important; border-color:#e1ac00!important; color:#332600!important; box-shadow:0 4px 14px rgba(225,172,0,.24); }
.sb-detail-config-actions .sb-detail-generate.is-progress { position:relative; --sb-region-progress:1%; overflow:hidden; isolation:isolate; opacity:1; background:rgba(255,248,220,.94)!important; }
.sb-detail-config-actions .sb-detail-generate.is-progress:disabled { opacity:1; cursor:wait; }
.sb-detail-config-actions .sb-detail-generate.is-progress > span { position:relative; z-index:2; }
.sb-detail-config-actions .sb-detail-generate.is-progress::before,.sb-detail-config-actions .sb-detail-generate.is-progress::after { content:""; position:absolute; inset:0 auto 0 0; width:var(--sb-region-progress); pointer-events:none; transition:width .24s ease; }
.sb-detail-config-actions .sb-detail-generate.is-progress::before { z-index:0; background:linear-gradient(180deg,#ffe477 0%,#ffd13f 52%,#f0b900 100%); }
.sb-detail-config-actions .sb-detail-generate.is-progress::after { z-index:1; background-image:linear-gradient(110deg,transparent 16%,rgba(255,255,255,.72) 48%,transparent 78%); background-repeat:no-repeat; background-size:52px 100%; animation:sb-region-progress-shimmer 1.15s linear infinite; }
@media (prefers-reduced-motion: reduce) { .sb-detail-config-actions .sb-detail-generate.is-progress::after { animation:none; } }
.sb-detail-background { min-height:38px; }
.sb-detail-background[hidden] { display:none; }
.sb-detail-status { min-height:34px; margin:0; color:#6e6e73; font-size:11px; line-height:1.45; text-align:center; }
.sb-detail-reference-stage { position:relative; display:grid; place-items:center; min-width:0; min-height:0; padding:20px 20px 54px; overflow:hidden; background-color:#202124; background-image:linear-gradient(45deg,#292a2d 25%,transparent 25%),linear-gradient(-45deg,#292a2d 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#292a2d 75%),linear-gradient(-45deg,transparent 75%,#292a2d 75%); background-size:22px 22px; background-position:0 0,0 11px,11px -11px,-11px 0; }
.sb-detail-reference-board { position:relative; overflow:visible; background:#fff; box-shadow:0 20px 58px rgba(0,0,0,.38); }
.sb-detail-reference-board > canvas { display:block; width:100%; height:100%; }
.sb-detail-region-upload-layer { position:absolute; inset:0; pointer-events:none; }
.sb-detail-region-upload { position:absolute; box-sizing:border-box; min-width:0; min-height:0; overflow:visible; padding:0; border:2px dashed rgba(255,213,74,.96); border-radius:8px; background:rgba(22,22,24,.58); color:#fff; box-shadow:0 0 0 1px rgba(0,0,0,.46),0 8px 22px rgba(0,0,0,.22); cursor:pointer; pointer-events:auto; transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease,background .16s ease; }
.sb-detail-region-upload::before { content:""; position:absolute; z-index:-1; left:50%; top:50%; width:max(100%,44px); height:max(100%,44px); transform:translate(-50%,-50%); }
.sb-detail-region-upload:hover,.sb-detail-region-upload.is-active,.sb-detail-region-upload.is-dragging { z-index:30!important; border-style:solid; background:rgba(25,25,27,.74); box-shadow:0 0 0 3px rgba(255,213,74,.26),0 12px 30px rgba(0,0,0,.3); transform:translateY(-1px); }
.sb-detail-region-upload.is-ready { border-color:#54d27c; border-style:solid; background:rgba(16,28,20,.42); }
.sb-detail-region-upload:disabled { cursor:wait; filter:saturate(.55); opacity:.74; }
.sb-detail-region-upload.is-ready.is-active { box-shadow:0 0 0 3px rgba(84,210,124,.28),0 12px 30px rgba(0,0,0,.3); }
.sb-detail-region-upload > img { display:block; width:100%; height:100%; border-radius:5px; object-fit:contain; background:rgba(18,18,20,.86); }
.sb-detail-region-upload-empty { position:absolute; inset:0; display:grid; place-content:center; justify-items:center; gap:2px; padding:3px; }
.sb-detail-region-upload-empty b { font-size:clamp(18px,3vw,34px); font-weight:300; line-height:1; text-shadow:0 2px 8px rgba(0,0,0,.42); }
.sb-detail-region-upload-empty small { font-size:9px; font-weight:700; white-space:nowrap; text-shadow:0 1px 5px rgba(0,0,0,.6); }
.sb-detail-region-upload-number { position:absolute; left:-10px; top:-10px; display:grid; place-items:center; width:22px; height:22px; border:2px solid #202124; border-radius:50%; background:#ffd54a; color:#352800; font:800 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace; box-shadow:0 4px 10px rgba(0,0,0,.28); }
.sb-detail-region-upload.is-ready .sb-detail-region-upload-number { background:#54d27c; color:#082311; }
.sb-detail-region-upload-status { position:absolute; left:50%; bottom:-26px; max-width:150px; overflow:hidden; padding:5px 8px; border:1px solid rgba(255,255,255,.16); border-radius:7px; background:rgba(25,25,27,.88); color:#fff; font-size:9px; font-weight:700; text-overflow:ellipsis; white-space:nowrap; box-shadow:0 5px 14px rgba(0,0,0,.22); transform:translateX(-50%); }
.sb-detail-region-upload-remove { position:absolute; right:-10px; top:-10px; display:grid; place-items:center; width:22px; height:22px; border:2px solid #202124; border-radius:50%; background:#f5f5f7; color:#d83b40; font-size:16px; line-height:1; box-shadow:0 4px 10px rgba(0,0,0,.25); }
.sb-detail-reference-stage-hint { position:absolute; left:50%; bottom:13px; display:flex; align-items:center; gap:9px; max-width:calc(100% - 30px); padding:7px 11px; border:1px solid rgba(255,255,255,.16); border-radius:9px; background:rgba(25,25,27,.82); color:rgba(255,255,255,.76); font-size:10px; box-shadow:0 7px 22px rgba(0,0,0,.2); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); transform:translateX(-50%); }
.sb-detail-reference-stage-hint b { color:#54d27c; font:750 11px/1 ui-monospace,SFMono-Regular,Menlo,monospace; }
.sb-detail-reference-stage-hint span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

html.theme-dark .sb-detail-panel { background:#181818; color:#f1f1f3; border-color:rgba(255,255,255,.09); }
html.theme-dark .sb-detail-panel section small,.theme-dark .sb-detail-status,.theme-dark .sb-detail-field { color:#aaa; }
html.theme-dark .sb-detail-step { border-color:#866b14; color:#ffe783; background:#332d18; }
html.theme-dark .sb-detail-ratios { background:#292929; }
html.theme-dark .sb-detail-ratios button { color:#aaa; }
html.theme-dark .sb-detail-ratios button.active { background:#464646; color:#fff; box-shadow:0 2px 8px rgba(0,0,0,.28); }
html.theme-dark .sb-detail-reference-modes { background:#292929; }
html.theme-dark .sb-detail-reference-modes button { color:#aaa; }
html.theme-dark .sb-detail-reference-modes button.active { background:#464646; color:#fff; box-shadow:0 2px 8px rgba(0,0,0,.28); }
html.theme-dark .sb-region-context .sb-detail-finish-region-action { border-color:rgba(255,213,74,.4); background:rgba(255,213,74,.14); color:#ffe783; box-shadow:none; }
html.theme-dark .sb-detail-shared-reference { border-color:rgba(255,255,255,.14); background:#292929; color:#eee; }
html.theme-dark .sb-detail-config-summary { border-color:rgba(255,213,74,.2); background:#302b1c; }
html.theme-dark .sb-detail-config-summary b { color:#ffe783; }
html.theme-dark .sb-detail-config-summary span { color:#baa96b; }

html.theme-dark .sb-editor-dialog { background: #202020; color: #f2f2f4; border-color: rgba(255,255,255,.1); }
html.theme-dark .sb-editor-head,
html.theme-dark .sb-editor-footer,
html.theme-dark .sb-editor-toolbar { border-color: rgba(255,255,255,.09); }
html.theme-dark .sb-editor-toolbar { background: #181818; }
html.theme-dark .sb-btn,
html.theme-dark .sb-field,
html.theme-dark .sb-entry-card { background: #292929; color: #f1f1f3; border-color: rgba(255,255,255,.12); }
html.theme-dark .sb-editor-close { background: #ff5c60; color: #fff; }
html.theme-dark .sb-entry-card span,
html.theme-dark .sb-editor-hint,
html.theme-dark .sb-editor-status,
html.theme-dark .sb-toolbar-label { color: #aaa; }
html.theme-dark .sb-entry-remember { color: #aaa; }
html.theme-dark .sb-entry-remember-hint { color: #777; }
html.theme-dark .sb-result-tool-tabs { background: rgba(42,42,42,.94); }
html.theme-dark .sb-result-tool-tab { color: #aaa; }
html.theme-dark .sb-result-tool-tab.active { background: #464646; color: #fff; box-shadow: 0 1px 5px rgba(0,0,0,.35); }
html.theme-dark .sb-product-size-tab-group.active { background:#464646; box-shadow:0 1px 5px rgba(0,0,0,.35); }
html.theme-dark .sb-product-size-tab-group .sb-product-size-main,
html.theme-dark .sb-product-size-tab-group .sb-product-size-main.active { background:transparent; color:#f1f1f3; box-shadow:none; }
html.theme-dark .sb-product-size-tab-group .sb-product-size-main::after { background:rgba(255,255,255,.16); }
html.theme-dark .sb-product-size-mode-switch { border-color:transparent; background:rgba(255,255,255,.1); box-shadow:inset 0 0 0 1px rgba(255,255,255,.035); }
html.theme-dark .sb-product-size-mode-option { color:#b7b7bc; }
html.theme-dark .sb-product-size-mode-option.active { color:#332600; }
html.theme-dark .sb-product-size-pro-new { background:rgba(38,38,40,.96); color:#ff7b6e; box-shadow:0 1px 3px rgba(0,0,0,.28); }
html.theme-dark .sb-region-loading { background: transparent; }
html.theme-dark .sb-region-context { background:rgba(42,42,42,.96); border-color:rgba(255,255,255,.14); }
html.theme-dark .sb-region-context::before { background:rgba(42,42,42,.96); border-color:rgba(255,255,255,.14); }
html.theme-dark .sb-region-context .sb-region-add-action { border-color:rgba(255,213,74,.34); color:#ffe783; background:rgba(255,213,74,.1); }
html.theme-dark .sb-region-context .sb-region-delete-action { color:#ffaaa2; }
html.theme-dark .sb-color-start-actions .sb-btn,
html.theme-dark .sb-color-download-action .sb-region-primary-action,
html.theme-dark .sb-region-review-actions .sb-region-primary-action {
  background:linear-gradient(180deg,#ffe477 0%,#ffd13f 52%,#f0b900 100%);
  border-color:#e1ac00;
  color:#332600;
  font-weight:680;
  box-shadow:0 3px 10px rgba(225,172,0,.28),inset 0 1px 0 rgba(255,255,255,.58);
}
html.theme-dark .sb-color-start-actions .sb-btn:hover,
html.theme-dark .sb-color-download-action .sb-region-primary-action:hover,
html.theme-dark .sb-region-review-actions .sb-region-primary-action:hover {
  background:linear-gradient(180deg,#ffea8e 0%,#ffd84f 52%,#f4c20a 100%);
  border-color:#d59f00;
  color:#332600;
}
html.theme-dark .sb-region-compare-btn,
html.theme-dark .sb-region-review-actions { background:rgba(42,42,42,.96); border-color:rgba(255,255,255,.14); }
html.theme-dark .sb-region-close-confirm-card { background:#292929; color:#f1f1f3; border-color:rgba(255,255,255,.14); }
html.theme-dark .sb-region-close-confirm-card p,
html.theme-dark .sb-region-close-confirm-card label { color:#b7b7bc; }
html.theme-dark .sb-canvas-tool-bubble,
html.theme-dark .sb-canvas-tool-bubble::after { background: rgba(42, 42, 42, 0.96); border-color: rgba(255,255,255,.14); }
html.theme-dark .sb-canvas-tool-bubble button { color: #f1f1f3; }
html.theme-dark .sb-canvas-tool-bubble button:hover { background: rgba(255,255,255,.1); }
html.theme-dark .sb-canvas-tool-bubble button.danger { color: #ff7478; }
html.theme-dark .sb-composer-auto-trim { color: #d7d7da; }
html.theme-dark .sb-composer-clear { background: rgba(42,42,42,.9); color: #ff7478; border-color: rgba(255,116,120,.24); }
html.theme-dark .sb-composer-clear:hover { background: #343434; border-color: rgba(255,116,120,.4); }
html.theme-dark .sb-icon-btn { background: #292929; color: #ddd; border-color: rgba(255,255,255,.12); }
html.theme-dark .sb-icon-btn:hover:not(:disabled) { background: #343434; border-color: rgba(255,255,255,.2); }
html.theme-dark .sb-ratio-options { background: #292929; }
html.theme-dark .sb-ratio-options button { color: #aaa; }
html.theme-dark .sb-ratio-options button.active { background: #464646; color: #fff; box-shadow: 0 1px 5px rgba(0,0,0,.35); }
html.theme-dark .sb-switch-input:checked + .sb-switch-track { background: linear-gradient(180deg,#ffe475 0%,#ffc832 46%,#e4a300 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.22),0 0 0 1px rgba(255,200,50,.16),0 8px 18px rgba(228,163,0,.18); }
html.theme-dark .sb-composer-head p,
html.theme-dark .sb-composer-tip,
html.theme-dark .sb-composer-empty > span:last-child { color: #9b9ba0; }
html.theme-dark .sb-composer-toolbar,
html.theme-dark .sb-composer-footer { background: #202020; border-color: rgba(255,255,255,.09); }
html.theme-dark .sb-composer-body { background: #181818; }
html.theme-dark .sb-composer-stage { border-color: rgba(255,255,255,.1); }
html.theme-dark .sb-composer-stage.is-empty { background: #242424; border-color: rgba(255,255,255,.18); }
html.theme-dark .sb-composer-empty { color: #f1f1f3; }
html.theme-dark .sb-composer-drop-icon i { background: #303030; border-color: rgba(255,255,255,.2); }
html.theme-dark .sb-composer-drop-icon b { border-color: #242424; }
html.theme-dark .sb-composer-drop-feedback { background: rgba(54, 47, 25, .94); color: #fff5d8; }
html.theme-dark .sb-crop-dialog { background: #202020; color: #f1f1f3; border-color: rgba(255,255,255,.1); }
html.theme-dark .sb-crop-toolbar { background: #202020; border-color: rgba(255,255,255,.09); color: #999; }
html.theme-dark .sb-crop-toolbar label { color: #ccc; }
html.theme-dark .sb-crop-stage { background: #171717; }

@media (max-width: 760px) {
  .sb-editor-overlay { padding: 0; }
  .sb-editor-dialog,
  .sb-region-dialog { width: 100vw; height: 100vh; min-height: 0; border-radius: 0; }
  .sb-detail-dialog { width:100vw; height:100vh; min-height:0; border-radius:0; }
  .sb-product-size-pro-dialog { width:100vw; height:100vh; min-height:0; border-radius:0; }
  .sb-product-size-pro-workspace { grid-template-columns:1fr; grid-template-rows:minmax(0,1fr) auto; }
  .sb-product-size-pro-workspace { height:auto; flex:1 1 auto; }
  .sb-product-size-pro-stage { padding:10px; }
  .sb-product-size-pro-panel { max-height:43vh; padding:12px; border-left:0; border-top:1px solid rgba(0,0,0,.09); }
  .sb-product-size-pro-panel > header,.sb-product-size-pro-prompt { display:none; }
  .sb-product-size-pro-region-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sb-product-size-pro-region-empty { grid-column:1/-1; padding:10px; }
  .sb-product-size-pro-scale-panel { padding:10px; }
  .sb-product-size-pro-original { right:8px; top:8px; }
  .sb-product-size-pro-preview-note { left:8px; bottom:8px; }
  .sb-product-size-pro-tutorial { top:18px; max-width:calc(100% - 28px); }
  .sb-product-size-pro-review-actions-stage { left:10px; right:10px; bottom:10px; width:auto; max-width:none; justify-content:center; transform:none; overflow:auto; }
  .sb-product-size-pro-review-actions-stage .sb-btn { flex:0 0 auto; }
  .sb-detail-config { grid-template-columns:1fr; grid-template-rows:minmax(0,1fr) auto; }
  .sb-detail-panel { max-height:40vh; padding:12px; border-left:0; border-top:1px solid rgba(0,0,0,.09); }
  .sb-detail-shared-reference { min-height:90px; }
  .sb-detail-shared-reference img { height:90px; }
  .sb-detail-reference-stage { padding:12px 12px 48px; }
  .sb-detail-ratio-modes { max-width:calc(100% - 20px); overflow-x:auto; flex-wrap:nowrap!important; justify-content:flex-start!important; }
  .sb-detail-ratio-modes button { flex:0 0 auto; }
  .sb-detail-mosaic-toolbar { flex-wrap:wrap; }
  .sb-detail-mosaic-toolbar input[type="range"] { width:90px; }
  .sb-editor-body { flex-direction: column; }
  .sb-editor-toolbar,
  .sb-region-toolbar { width: 100%; flex: 0 0 auto; max-height: 210px; border-right: 0; border-bottom: 1px solid rgba(0,0,0,.09); }
  .sb-entry-grid { grid-template-columns: 1fr; }
  .sb-result-tool-head { padding-top: 56px; min-height: 108px; }
  .sb-result-tool-tabs-inline { top:66px; width:max-content; max-width:calc(100% - 24px); overflow-x:auto; }
  .sb-product-size-tab-group { gap:7px; padding-left:11px; }
  .sb-product-size-tab-group .sb-product-size-main { padding:0; }
  .sb-product-size-tab-group .sb-product-size-main::after { margin-left:7px; }
  .sb-region-stage { padding: 8px; }
  .sb-region-tutorial { min-width:0; width:calc(100% - 36px); }
  .sb-region-selection-modes { left:50%; top:14px; max-width:calc(100% - 28px); flex-wrap:wrap; justify-content:center; transform:translateX(-50%); }
  .sb-region-selection-modes button { padding:0 8px; }
  .sb-region-ai-live { margin-left:0; padding:3px 4px 3px 8px; }
  .sb-region-ai-live-info > span { left:auto; right:-8px; transform:translateY(-3px); }
  .sb-region-ai-live-info:hover > span,.sb-region-ai-live-info:focus-visible > span { transform:translateY(0); }
  .sb-color-select-view { padding:8px; }
  .sb-color-pair { grid-template-columns:1fr; grid-template-rows:minmax(0,1fr) minmax(0,1fr); gap:8px; }
  .sb-color-source { grid-template-rows:24px minmax(0,1fr); }
  .sb-color-source header { padding:0 3px; }
  .sb-color-thumbs button { width:42px; height:42px; }
  .sb-region-context-step { display:none; }
  .sb-composer-dialog { width: 100vw; height: 100vh; min-height: 0; border-radius: 0; }
  .sb-composer-toolbar { flex-wrap: wrap; padding: 9px 12px; }
  .sb-composer-tip { display: none; }
  .sb-composer-stage { margin: 8px; padding: 8px; }
  .sb-crop-dialog { width: 100vw; height: 100vh; min-height: 0; border-radius: 0; }
  .sb-crop-toolbar { flex-wrap: wrap; gap: 8px 14px; padding: 9px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .sb-editor-overlay[data-editor-transition-enter] .sb-editor-dialog > :not(.sb-editor-head),
  .sb-editor-overlay[data-editor-transition-exit] .sb-editor-dialog > :not(.sb-editor-head) {
    transition:opacity .12s ease-out;
    transform:none!important;
    filter:none!important;
  }
  .sb-product-size-mode-thumb { transition:none; }
  .sb-product-size-mode-option:active:not(:disabled) { transform:none; }
  .sb-product-size-pro-empty i,.sb-product-size-pro-generate.is-progress::after { animation:none; }
  .sb-product-size-pro-region-item { transition:none; }
  .sb-product-size-pro-adjustment,.sb-product-size-pro-adjustment-body,.sb-product-size-pro-adjustment-summary b,.sb-product-size-pro-adjustment-summary em { transition-duration:.01ms!important; transform:none!important; }
}
