.background-color-workspace{
  overflow:hidden;
  border:1px solid rgba(37,99,235,.18);
  border-radius:16px;
  background:#fff;
  box-shadow:0 18px 50px rgba(15,23,42,.08)
}
.background-color-grid{
  display:grid;
  grid-template-columns:minmax(360px,.92fr) minmax(460px,1.18fr);
  min-height:680px
}
.background-color-panel{
  min-width:0;
  background:#fff
}
.background-color-input-panel{
  border-right:1px solid rgba(148,163,184,.22)
}
.background-color-panel-header{
  min-height:54px;
  padding:10px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid rgba(148,163,184,.2);
  background:#fbfdff
}
.background-color-panel-header>span{
  display:flex;
  align-items:center;
  gap:8px;
  color:#0f172a;
  font-size:14px;
  font-weight:950
}
.background-color-panel-header>span i{color:#1685ed}
.background-color-panel-header button,
.background-color-panel-header a{
  min-height:34px;
  padding:7px 11px;
  border:1px solid rgba(37,99,235,.2);
  border-radius:8px;
  background:#fff;
  color:#1765d8;
  font-size:12px;
  font-weight:900;
  text-decoration:none;
  cursor:pointer
}
.background-color-drop{
  display:block;
  margin:16px;
  min-height:150px;
  border:1px dashed rgba(37,99,235,.35);
  border-radius:14px;
  background:linear-gradient(145deg,#f8fbff,#f1f7ff);
  cursor:pointer;
  overflow:hidden;
  transition:border-color .18s ease,background .18s ease,transform .18s ease
}
.background-color-drop:hover,
.background-color-drop.is-dragging{
  border-color:#1685ed;
  background:#eef7ff
}
.background-color-drop.is-dragging{transform:translateY(-1px)}
.background-color-drop>input{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none
}
.background-color-drop>[data-bg-drop-empty]{
  min-height:150px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:18px;
  text-align:center
}
.background-color-drop>[data-bg-drop-empty] i{
  color:#1685ed;
  font-size:30px
}
.background-color-drop>[data-bg-drop-empty] strong{
  color:#0f172a;
  font-size:15px;
  font-weight:950
}
.background-color-drop>[data-bg-drop-empty] span{
  color:#64748b;
  font-size:11px;
  font-weight:750
}
.background-color-file{
  min-height:150px;
  padding:14px;
  display:grid;
  grid-template-columns:92px minmax(0,1fr);
  align-items:center;
  gap:14px
}
.background-color-file[hidden],
.background-color-drop>[data-bg-drop-empty][hidden],
.background-color-canvas-wrap[hidden],
.background-color-empty[hidden],
.background-color-preview-info[hidden],
.background-color-next[hidden],
.background-color-sample-marker[hidden],
.background-color-pick-note[hidden],
.background-color-panel-header [hidden]{
  display:none!important
}
.background-color-file img{
  width:92px;
  height:112px;
  object-fit:contain;
  border:1px solid rgba(148,163,184,.25);
  border-radius:10px;
  background:
    linear-gradient(45deg,#e5edf7 25%,transparent 25%) 0 0/16px 16px,
    linear-gradient(-45deg,#e5edf7 25%,transparent 25%) 0 8px/16px 16px,
    linear-gradient(45deg,transparent 75%,#e5edf7 75%) 8px -8px/16px 16px,
    linear-gradient(-45deg,transparent 75%,#e5edf7 75%) -8px 0/16px 16px,
    #fff
}
.background-color-file strong,
.background-color-file span{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis
}
.background-color-file strong{
  color:#0f172a;
  font-size:13px;
  font-weight:950;
  white-space:nowrap
}
.background-color-file span{
  margin-top:5px;
  color:#64748b;
  font-size:11px;
  font-weight:750
}
.background-color-settings{
  margin:0 16px 14px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px
}
.background-color-setting{
  display:flex;
  flex-direction:column;
  gap:7px;
  min-width:0;
  padding:12px;
  border:1px solid rgba(148,163,184,.22);
  border-radius:12px;
  background:#fff
}
.background-color-setting>span{
  color:#0f172a;
  font-size:12px;
  font-weight:950
}
.background-color-setting small{
  color:#64748b;
  font-size:10px;
  line-height:1.45;
  font-weight:700
}
.background-color-setting select,
.background-color-setting input[type="text"],
.background-color-setting input[type="number"]{
  width:100%;
  min-height:40px;
  box-sizing:border-box;
  border:1px solid rgba(100,116,139,.28);
  border-radius:8px;
  background:#fff;
  color:#0f172a;
  padding:8px 10px;
  font-size:12px;
  font-weight:850;
  outline:none
}
.background-color-setting select:focus,
.background-color-setting input:focus{
  border-color:#1685ed;
  box-shadow:0 0 0 3px rgba(22,133,237,.12)
}
.background-color-setting-color>div{
  display:grid;
  grid-template-columns:54px minmax(0,1fr);
  gap:8px
}
.background-color-setting-color input[type="color"]{
  width:54px;
  height:40px;
  padding:3px;
  border:1px solid rgba(100,116,139,.28);
  border-radius:8px;
  background:#fff;
  cursor:pointer
}
.background-color-setting-color input.is-invalid{
  border-color:#dc2626;
  box-shadow:0 0 0 3px rgba(220,38,38,.1)
}
.background-color-tolerance>div{
  display:grid;
  grid-template-columns:minmax(0,1fr) 72px;
  align-items:center;
  gap:9px
}
.background-color-tolerance input[type="range"]{
  width:100%;
  accent-color:#1685ed
}
.background-color-sample{
  margin:0 16px 14px;
  padding:12px;
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  align-items:center;
  gap:11px;
  border:1px solid rgba(22,133,237,.2);
  border-radius:12px;
  background:#f7fbff
}
.background-color-sample-swatch{
  width:48px;
  height:48px;
  border:1px solid rgba(15,23,42,.15);
  border-radius:9px;
  background:#fff
}
.background-color-sample strong,
.background-color-sample span{
  display:block
}
.background-color-sample strong{
  color:#0f172a;
  font-size:12px;
  font-weight:950
}
.background-color-sample span{
  margin-top:4px;
  color:#64748b;
  font-size:10.5px;
  line-height:1.45;
  font-weight:700
}
.background-color-complex{
  margin:0 16px 16px;
  padding:12px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  border:1px solid rgba(139,92,246,.2);
  border-radius:12px;
  background:linear-gradient(135deg,rgba(139,92,246,.06),rgba(37,99,235,.05))
}
.background-color-complex strong,
.background-color-complex span{
  display:block
}
.background-color-complex strong{
  color:#312e81;
  font-size:11.5px;
  font-weight:950
}
.background-color-complex span{
  margin-top:4px;
  color:#64748b;
  font-size:10px;
  line-height:1.45;
  font-weight:700
}
.background-color-complex a{
  min-height:36px;
  padding:8px 11px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border:1px solid rgba(139,92,246,.25);
  border-radius:8px;
  background:#fff;
  color:#6d28d9;
  font-size:10.5px;
  font-weight:900;
  text-decoration:none;
  white-space:nowrap
}
.background-color-complex a.is-loading{
  opacity:.6;
  pointer-events:none
}
.background-color-preview-panel{
  display:flex;
  flex-direction:column;
  min-height:680px
}
.background-color-preview-actions{
  display:flex;
  align-items:center;
  gap:7px
}
.background-color-preview-actions button.is-active{
  border-color:#1685ed;
  background:#eaf5ff;
  color:#095db5
}
.background-color-preview-actions button:disabled{
  opacity:.45;
  cursor:not-allowed
}
.background-color-preview{
  position:relative;
  flex:1;
  min-height:490px;
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:auto;
  background:
    linear-gradient(45deg,rgba(148,163,184,.12) 25%,transparent 25%) 0 0/22px 22px,
    linear-gradient(-45deg,rgba(148,163,184,.12) 25%,transparent 25%) 0 11px/22px 22px,
    linear-gradient(45deg,transparent 75%,rgba(148,163,184,.12) 75%) 11px -11px/22px 22px,
    linear-gradient(-45deg,transparent 75%,rgba(148,163,184,.12) 75%) -11px 0/22px 22px,
    #f8fafc
}
.background-color-empty{
  max-width:420px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:9px;
  text-align:center
}
.background-color-empty i{
  color:#1685ed;
  font-size:42px
}
.background-color-empty strong{
  color:#0f172a;
  font-size:15px;
  font-weight:950
}
.background-color-empty span{
  color:#64748b;
  font-size:11px;
  line-height:1.55;
  font-weight:700
}
.background-color-canvas-wrap{
  position:relative;
  max-width:100%;
  line-height:0;
  border:1px solid rgba(15,23,42,.16);
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 18px 50px rgba(15,23,42,.14);
  background:#fff
}
.background-color-canvas-wrap canvas{
  display:block;
  max-width:100%;
  max-height:610px;
  width:auto;
  height:auto;
  cursor:crosshair
}
.background-color-sample-marker{
  position:absolute;
  width:18px;
  height:18px;
  transform:translate(-50%,-50%);
  border:2px solid #fff;
  border-radius:50%;
  box-shadow:0 0 0 2px #0f172a,0 2px 8px rgba(15,23,42,.35);
  pointer-events:none
}
.background-color-sample-marker:before,
.background-color-sample-marker:after{
  content:"";
  position:absolute;
  background:#fff;
  box-shadow:0 0 0 1px #0f172a
}
.background-color-sample-marker:before{
  left:7px;
  top:-7px;
  width:2px;
  height:28px
}
.background-color-sample-marker:after{
  left:-7px;
  top:7px;
  width:28px;
  height:2px
}
.background-color-pick-note{
  position:absolute;
  left:50%;
  bottom:12px;
  transform:translateX(-50%);
  padding:8px 11px;
  border-radius:8px;
  background:rgba(15,23,42,.84);
  color:#fff;
  font-size:10.5px;
  line-height:1.3;
  font-weight:850;
  white-space:nowrap;
  pointer-events:none
}
.background-color-preview-info{
  padding:12px 16px;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
  border-top:1px solid rgba(148,163,184,.2);
  background:#fff
}
.background-color-preview-info>div{
  padding:9px;
  min-width:0;
  border:1px solid rgba(148,163,184,.18);
  border-radius:9px;
  background:#f8fafc;
  text-align:center
}
.background-color-preview-info b,
.background-color-preview-info span{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis
}
.background-color-preview-info b{
  color:#0f172a;
  font-size:11.5px;
  font-weight:950;
  white-space:nowrap
}
.background-color-preview-info span{
  margin-top:3px;
  color:#64748b;
  font-size:9.5px;
  font-weight:750
}
.background-color-next{
  margin:0 16px 14px;
  padding:12px;
  border:1px solid rgba(22,133,237,.2);
  border-radius:12px;
  background:#f7fbff
}
.background-color-next>div:first-child strong,
.background-color-next>div:first-child span{
  display:block
}
.background-color-next>div:first-child strong{
  color:#0f172a;
  font-size:12px;
  font-weight:950
}
.background-color-next>div:first-child span{
  margin-top:3px;
  color:#64748b;
  font-size:10px;
  font-weight:700
}
.background-color-next>[data-bg-next-links]{
  margin-top:10px;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:7px
}
.background-color-next a{
  min-height:34px;
  padding:7px 8px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(37,99,235,.18);
  border-radius:8px;
  background:#fff;
  color:#1765d8;
  font-size:10px;
  font-weight:900;
  text-align:center;
  text-decoration:none
}
.background-color-next a.is-loading{
  opacity:.55;
  pointer-events:none
}
.background-color-next a.is-ready:after{
  content:" ✓";
  margin-left:3px
}
.background-color-footer{
  border-top:1px solid rgba(148,163,184,.22)
}
.background-color-apply{
  min-height:40px;
  padding:9px 15px;
  border:1px solid #1685ed;
  border-radius:8px;
  background:linear-gradient(135deg,#13a4e8,#2563eb);
  color:#fff;
  font-size:12px;
  font-weight:950;
  cursor:pointer
}
.background-color-apply:disabled{
  opacity:.5;
  cursor:not-allowed
}
.background-color-apply.is-loading i{
  animation:bgChangerSpin .8s linear infinite
}
@keyframes bgChangerSpin{to{transform:rotate(360deg)}}

body.theme-dark .background-color-workspace,
body.theme-dark .background-color-panel,
body.theme-dark .background-color-preview-info{
  background:#0f172a
}
body.theme-dark .background-color-workspace{
  border-color:rgba(96,165,250,.26);
  box-shadow:none
}
body.theme-dark .background-color-input-panel,
body.theme-dark .background-color-footer{
  border-color:rgba(148,163,184,.18)
}
body.theme-dark .background-color-panel-header{
  border-color:rgba(148,163,184,.18);
  background:#111c30
}
body.theme-dark .background-color-panel-header>span,
body.theme-dark .background-color-setting>span,
body.theme-dark .background-color-file strong,
body.theme-dark .background-color-sample strong,
body.theme-dark .background-color-empty strong,
body.theme-dark .background-color-preview-info b,
body.theme-dark .background-color-next strong{
  color:#f8fafc
}
body.theme-dark .background-color-panel-header button,
body.theme-dark .background-color-panel-header a,
body.theme-dark .background-color-setting,
body.theme-dark .background-color-complex a,
body.theme-dark .background-color-next a{
  border-color:rgba(96,165,250,.24);
  background:#111c30;
  color:#93c5fd
}
body.theme-dark .background-color-drop{
  border-color:rgba(96,165,250,.34);
  background:linear-gradient(145deg,#111c30,#0f172a)
}
body.theme-dark .background-color-drop>[data-bg-drop-empty] strong{color:#f8fafc}
body.theme-dark .background-color-drop>[data-bg-drop-empty] span,
body.theme-dark .background-color-file span,
body.theme-dark .background-color-setting small,
body.theme-dark .background-color-sample span,
body.theme-dark .background-color-complex span,
body.theme-dark .background-color-empty span,
body.theme-dark .background-color-preview-info span,
body.theme-dark .background-color-next span{
  color:#a8b7cc
}
body.theme-dark .background-color-setting select,
body.theme-dark .background-color-setting input[type="text"],
body.theme-dark .background-color-setting input[type="number"],
body.theme-dark .background-color-setting-color input[type="color"]{
  border-color:rgba(148,163,184,.26);
  background:#0b1323;
  color:#f8fafc
}
body.theme-dark .background-color-sample,
body.theme-dark .background-color-next{
  border-color:rgba(96,165,250,.24);
  background:#111c30
}
body.theme-dark .background-color-complex{
  border-color:rgba(167,139,250,.24);
  background:linear-gradient(135deg,rgba(91,33,182,.18),rgba(30,64,175,.12))
}
body.theme-dark .background-color-complex strong{color:#ddd6fe}
body.theme-dark .background-color-preview{
  background:
    linear-gradient(45deg,rgba(148,163,184,.1) 25%,transparent 25%) 0 0/22px 22px,
    linear-gradient(-45deg,rgba(148,163,184,.1) 25%,transparent 25%) 0 11px/22px 22px,
    linear-gradient(45deg,transparent 75%,rgba(148,163,184,.1) 75%) 11px -11px/22px 22px,
    linear-gradient(-45deg,transparent 75%,rgba(148,163,184,.1) 75%) -11px 0/22px 22px,
    #0b1323
}
body.theme-dark .background-color-preview-info>div{
  border-color:rgba(148,163,184,.18);
  background:#111c30
}

@media(max-width:1050px){
  .background-color-grid{grid-template-columns:1fr}
  .background-color-input-panel{
    border-right:0;
    border-bottom:1px solid rgba(148,163,184,.22)
  }
  .background-color-preview-panel{min-height:620px}
}
@media(max-width:720px){
  .background-color-workspace{border-radius:12px}
  .background-color-settings{grid-template-columns:1fr}
  .background-color-complex{grid-template-columns:1fr}
  .background-color-complex a{width:100%;box-sizing:border-box}
  .background-color-preview{min-height:410px;padding:10px}
  .background-color-preview-info{grid-template-columns:repeat(2,minmax(0,1fr))}
  .background-color-next>[data-bg-next-links]{grid-template-columns:repeat(2,minmax(0,1fr))}
  .background-color-next a:last-child:nth-child(odd){grid-column:1/-1}
  .background-color-panel-header{
    align-items:flex-start;
    flex-wrap:wrap
  }
  .background-color-preview-actions{width:100%;justify-content:flex-end}
}
@media(max-width:430px){
  .background-color-drop{margin:12px}
  .background-color-settings,
  .background-color-sample,
  .background-color-complex,
  .background-color-next{margin-left:12px;margin-right:12px}
  .background-color-file{grid-template-columns:72px minmax(0,1fr)}
  .background-color-file img{width:72px;height:92px}
  .background-color-preview-actions{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
  .background-color-preview-actions button,
  .background-color-preview-actions a{
    width:100%;
    box-sizing:border-box;
    text-align:center
  }
  .background-color-next>[data-bg-next-links]{grid-template-columns:1fr}
  .background-color-next a:last-child:nth-child(odd){grid-column:auto}
}
