/* Scoped PictureMerge editor styles. Generated from the generator stylesheet. */
#picturemerge-app{
  --font-sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --bg-main: #f4f5f7;
  --bg-sidebar: #ffffff;
  --bg-nav: #ffffff;
  --text-primary: #172b4d;
  --text-secondary: #42526e;
  --text-muted: #6b7f99;
  --border-color: #dfe1e6;
  --border-soft: #e8ebf0;
  --primary: #0052cc;
  --primary-hover: #0041a3;
  --primary-soft: #e9f2ff;
  --danger: #dc3545;
  --nav-height: 60px;
  --sidebar-width: 320px;
  --shadow-sm: 0 1px 1px rgba(9, 30, 66, .15);
  --shadow-md: 0 4px 8px -2px rgba(9, 30, 66, .18), 0 0 1px rgba(9, 30, 66, .3);
  --shadow-lg: 0 12px 28px rgba(9, 30, 66, .18);
  --radius-sm: 4px;
  --radius-md: 8px;
}
#picturemerge-app, #picturemerge-app *{ box-sizing: border-box; }
#picturemerge-app, #picturemerge-app{ height: 100%; }
#picturemerge-app{
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-main);
  color: var(--text-secondary);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}
#picturemerge-app button{ font-family: inherit; color: inherit; }
#picturemerge-app input, #picturemerge-app button, #picturemerge-app textarea{ font-size: inherit; }
#picturemerge-app a{ color: inherit; }
#picturemerge-app svg{ display: block; }
#picturemerge-app .hidden{ display: none !important; }
#picturemerge-app .sr-only{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
#picturemerge-app #app-nav{
  height: var(--nav-height);
  flex: 0 0 var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--bg-nav);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 60;
}
#picturemerge-app .nav-title{ font-size: 1.15rem; font-weight: 650; color: var(--text-primary); letter-spacing: .2px; }
#picturemerge-app .nav-title a{ display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text-primary); }
#picturemerge-app .brand-icon{ border-radius: 7px; box-shadow: 0 2px 6px rgba(0, 82, 204, .28); flex: none; }
#picturemerge-app .nav-links{ display: flex; align-items: center; gap: 26px; }
#picturemerge-app .nav-links > a{
  font-size: .86rem; font-weight: 500; color: var(--text-secondary);
  text-decoration: none; transition: color .18s ease; white-space: nowrap;
}
#picturemerge-app .nav-links > a:hover{ color: var(--primary); }
#picturemerge-app .nav-links .pro-link{ color: var(--text-primary); font-weight: 600; }
#picturemerge-app #tools-dropdown{ position: relative; }
#picturemerge-app .tools-link-btn{
  display: flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px;
  background: var(--primary); color: #fff;
  border: 0; border-radius: 5px; cursor: pointer;
  font-size: .86rem; font-weight: 600;
  transition: background .18s ease;
}
#picturemerge-app .tools-link-btn:hover{ background: var(--primary-hover); }
#picturemerge-app .dropdown-menu{
  position: absolute; right: 0; top: calc(100% + 12px);
  width: 340px; background: #fff; border: 1px solid var(--border-color);
  border-radius: 10px; box-shadow: var(--shadow-lg); padding: 14px;
  z-index: 80;
}
#picturemerge-app .menu-title{
  margin: 0 0 10px; padding-bottom: 10px;
  font-size: .82rem; font-weight: 600; color: var(--text-muted);
  border-bottom: 1px solid var(--border-soft); letter-spacing: .4px;
}
#picturemerge-app .tool-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#picturemerge-app .tool-item{
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: 7px;
  font-size: .86rem; color: var(--text-secondary); text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
#picturemerge-app .tool-item svg{ color: var(--text-muted); flex: none; }
#picturemerge-app .tool-item:hover{ background: var(--primary-soft); color: var(--primary); }
#picturemerge-app .tool-item:hover svg{ color: var(--primary); }
#picturemerge-app .mobile-nav-btn{
  display: none;
  width: 40px; height: 40px; border-radius: 8px;
  align-items: center; justify-content: center;
  border: 1px solid transparent; background: transparent; color: var(--text-secondary);
  cursor: pointer;
}
#picturemerge-app .mobile-nav-btn:active{ background: var(--bg-main); }
#picturemerge-app #app{
  display: flex;
  height: calc(100vh - var(--nav-height));
  min-height: 0;
  position: relative;
}
#picturemerge-app #left-sidebar{
  width: var(--sidebar-width); flex: 0 0 var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  min-height: 0;
  display: flex;
  transition: width .26s ease, flex-basis .26s ease;
}
#picturemerge-app #right-sidebar{
  width: var(--sidebar-width); flex: 0 0 var(--sidebar-width);
  background: var(--bg-sidebar);
  border-left: 1px solid var(--border-color);
  min-height: 0;
  display: flex;
  transition: width .26s ease, flex-basis .26s ease;
}
#picturemerge-app #app.left-collapsed #left-sidebar, #picturemerge-app #app.right-collapsed #right-sidebar{
  width: 0; flex-basis: 0; border-width: 0; overflow: hidden;
}
#picturemerge-app #app.left-collapsed #left-sidebar > *, #picturemerge-app #app.right-collapsed #right-sidebar > *{ opacity: 0; pointer-events: none; }
#picturemerge-app .collapse-btn{
  position: absolute; top: 50%; z-index: 55;
  width: 20px; height: 46px;
  transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: #7d8ea6;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: left .26s ease, right .26s ease, color .15s ease, background .15s ease;
}
#picturemerge-app .collapse-btn:hover{ color: var(--primary); background: var(--primary-soft); border-color: #b9cdf0; }
#picturemerge-app #collapse-left{ left: calc(var(--sidebar-width) - 10px); }
#picturemerge-app #collapse-right{ right: calc(var(--sidebar-width) - 10px); }
#picturemerge-app #app.left-collapsed #collapse-left{ left: 3px; }
#picturemerge-app #app.left-collapsed #collapse-left svg{ transform: rotate(180deg); }
#picturemerge-app #app.right-collapsed #collapse-right{ right: 3px; }
#picturemerge-app #app.right-collapsed #collapse-right svg{ transform: rotate(180deg); }
#picturemerge-app .sidebar-scroll{
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 18px 40px;
  scrollbar-width: thin;
  scrollbar-color: #cdd4de transparent;
}
#picturemerge-app .sidebar-scroll::-webkit-scrollbar{ width: 8px; }
#picturemerge-app .sidebar-scroll::-webkit-scrollbar-thumb{ background: #d5dbe4; border-radius: 8px; }
#picturemerge-app .sidebar-scroll::-webkit-scrollbar-thumb:hover{ background: #c2cad6; }
#picturemerge-app .sidebar-scroll::-webkit-scrollbar-track{ background: transparent; }
#picturemerge-app .sidebar-top{ display: flex; justify-content: flex-end; margin: -2px 0 2px; }
#picturemerge-app .reset-btn{
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-color); background: #fff; border-radius: 6px;
  color: var(--text-muted); cursor: pointer; transition: all .15s ease;
}
#picturemerge-app .reset-btn:hover{ color: var(--primary); border-color: #b9cdf0; background: var(--primary-soft); }
#picturemerge-app .panel-heading{
  margin: 0 0 12px;
  font-size: .95rem; font-weight: 650; color: var(--text-primary);
  letter-spacing: .2px;
}
#picturemerge-app #layout-list{ padding-bottom: 6px; }
#picturemerge-app .layout-group + .layout-group{ margin-top: 18px; }
#picturemerge-app .layout-group-title{
  margin: 0 0 8px;
  font-size: .8rem; font-weight: 600; color: var(--text-muted);
}
#picturemerge-app .thumbs{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#picturemerge-app .thumb{
  position: relative;
  height: 66px;
  padding: 5px;
  border-radius: 7px;
  border: 2px solid transparent;
  background: #eef2f9;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
  overflow: hidden;
}
#picturemerge-app .thumb:hover{ border-color: #b9cdf0; background: #e7eefb; }
#picturemerge-app .thumb:active{ transform: scale(.98); }
#picturemerge-app .thumb.active{ border-color: var(--primary); background: var(--primary-soft); }
#picturemerge-app .thumb-grid{
  width: 100%; height: 100%;
  display: grid;
  gap: 2px;
}
#picturemerge-app .thumb-cell{ background: #a9c2e8; border-radius: 2px; }
#picturemerge-app .thumb.active .thumb-cell{ background: var(--primary); }
#picturemerge-app .thumb-custom{
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--text-muted); font-size: 11px; line-height: 1;
  border: 1px dashed #c3cddd; background: #f7f9fc;
}
#picturemerge-app .thumb-custom .plus{ font-size: 18px; font-weight: 300; color: #8fa3bf; margin-top: -2px; }
#picturemerge-app .thumb-custom:hover{ color: var(--primary); border-color: #9dbcf0; }
#picturemerge-app .thumb-custom:hover .plus{ color: var(--primary); }
#picturemerge-app .sidebar-note{
  margin: 18px 0 0; padding-top: 14px;
  font-size: .74rem; line-height: 1.6; color: #97a6ba;
  border-top: 1px dashed var(--border-soft);
}
#picturemerge-app #center{
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column;
  background: var(--bg-main);
  position: relative;
}
#picturemerge-app #toolbar{
  flex: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 12px 20px 4px;
  position: relative;
  z-index: 20;
}
#picturemerge-app .toolbar-group{ display: flex; align-items: center; gap: 8px; }
#picturemerge-app .tool-btn{
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 14px;
  background: #fff; color: var(--text-secondary);
  border: 1px solid var(--border-soft); border-radius: 7px;
  font-size: .84rem; font-weight: 500;
  box-shadow: 0 1px 2px rgba(9, 30, 66, .05);
  cursor: pointer;
  transition: all .16s ease;
}
#picturemerge-app .tool-btn svg{ color: #56657c; }
#picturemerge-app .tool-btn:hover{ border-color: #b9cdf0; color: var(--primary); background: #fbfdff; }
#picturemerge-app .tool-btn:hover svg{ color: var(--primary); }
#picturemerge-app .tool-btn:active{ transform: translateY(1px); }
#picturemerge-app .tool-btn.danger{ color: #b23a48; border-color: #f3d4d7; background: #fff7f8; }
#picturemerge-app .tool-btn.danger svg{ color: #c84655; }
#picturemerge-app .tool-btn.danger:hover{ background: #ffeff1; border-color: #f0bfc5; color: var(--danger); }
#picturemerge-app #viewport{
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  overflow: auto;
  padding: 8px 16px 10px;
}
#picturemerge-app #stage{
  margin: 6px auto 0;
  position: relative;
  flex: none;
  max-width: 100%;
}
#picturemerge-app #collage{
  position: relative;
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  outline: none;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
#picturemerge-app #collage.dragging-file{ box-shadow: 0 0 0 3px rgba(0, 82, 204, .35), var(--shadow-md); }
#picturemerge-app #cells, #picturemerge-app #gutters, #picturemerge-app #overlay{ position: absolute; inset: 0; }
#picturemerge-app #cells{ z-index: 1; }
#picturemerge-app #gutters{ z-index: 5; pointer-events: none; }
#picturemerge-app #overlay{ z-index: 8; pointer-events: none; overflow: hidden; }
#picturemerge-app .cell{
  position: absolute;
  overflow: hidden;
  background: #fbfcfe;
  box-shadow: inset 0 0 0 1px #eef1f6;
  transition: box-shadow .15s ease, background .15s ease;
}
#picturemerge-app .cell.has-image .cell-add{ display: none; }
#picturemerge-app .cell.empty{ cursor: pointer; }
#picturemerge-app .cell.empty:hover{ background: #f3f7ff; box-shadow: inset 0 0 0 1px #c3d7f7; }
#picturemerge-app .cell img{
  position: absolute; left: 0; top: 0;
  transform-origin: 0 0;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
#picturemerge-app .cell .cell-add{
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: #aab8cb; font-size: 12px;
  pointer-events: none;
  transition: color .15s ease;
}
#picturemerge-app .cell .cell-add svg{ width: 26px; height: 26px; }
#picturemerge-app .cell.empty:hover .cell-add{ color: var(--primary); }
#picturemerge-app .cell .cell-del{
  position: absolute; top: 6px; right: 6px;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%;
  background: rgba(17, 24, 39, .55); color: #fff;
  cursor: pointer; opacity: 0; transform: scale(.9);
  transition: opacity .15s ease, transform .15s ease, background .15s ease;
  z-index: 3;
  backdrop-filter: blur(2px);
}
#picturemerge-app .cell:hover .cell-del{ opacity: 1; transform: scale(1); }
#picturemerge-app .cell .cell-del:hover{ background: rgba(200, 40, 55, .92); }
#picturemerge-app .cell.selected{ box-shadow: inset 0 0 0 2px var(--primary); z-index: 2; }
#picturemerge-app .cell.drag-over{ box-shadow: inset 0 0 0 3px rgba(0, 82, 204, .55); background: #e9f2ff; }
#picturemerge-app .gutter{
  position: absolute;
  pointer-events: auto;
  touch-action: none;
  z-index: 6;
}
#picturemerge-app .gutter.v{ width: 10px; margin-left: -5px; cursor: col-resize; }
#picturemerge-app .gutter.h{ height: 10px; margin-top: -5px; cursor: row-resize; }
#picturemerge-app .gutter::after{
  content: ""; position: absolute; background: transparent;
  transition: background .15s ease;
}
#picturemerge-app .gutter.v::after{ left: 4px; top: 0; bottom: 0; width: 2px; }
#picturemerge-app .gutter.h::after{ top: 4px; left: 0; right: 0; height: 2px; }
#picturemerge-app .gutter:hover::after, #picturemerge-app .gutter.active::after{ background: rgba(0, 82, 204, .55); }
#picturemerge-app #empty-hint{
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  color: #c3cfdf; pointer-events: none;
}
#picturemerge-app #empty-hint svg{ width: 40px; height: 40px; }
#picturemerge-app #canvas-hint{
  flex: none;
  max-width: 760px;
  margin: 12px auto 4px;
  padding: 0 8px;
  font-size: .76rem; line-height: 1.7; color: #8c9cb2;
  text-align: center;
}
#picturemerge-app #canvas-hint strong{ color: #6b7f99; font-weight: 600; }
#picturemerge-app #canvas-hint code{
  padding: 1px 5px; margin: 0 1px;
  background: #e9edf3; border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem; color: #52627a;
}
#picturemerge-app .el{
  position: absolute;
  pointer-events: auto;
  cursor: move;
  touch-action: none;
}
#picturemerge-app .el.selected{ outline: 1px solid rgba(0, 82, 204, .55); outline-offset: 1px; }
#picturemerge-app .el-text-body{
  width: 100%; height: 100%;
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.3;
  padding: 2px 4px;
  overflow: hidden;
}
#picturemerge-app .el-text-body[contenteditable="true"]{ outline: none; cursor: text; }
#picturemerge-app .el-shape{ width: 100%; height: 100%; }
#picturemerge-app .el-ellipse{ border-radius: 50%; }
#picturemerge-app .el-arrow{ width: 100%; height: 100%; }
#picturemerge-app .el-arrow .shaft{ position: absolute; left: 0; top: 50%; transform: translateY(-50%); background: var(--c); }
#picturemerge-app .el-arrow .head{
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 0; height: 0;
  border-left-color: var(--c);
  border-left-style: solid;
  border-top-style: solid; border-bottom-style: solid;
  border-top-color: transparent; border-bottom-color: transparent;
}
#picturemerge-app .el .handles{ position: absolute; inset: 0; pointer-events: none; display: none; }
#picturemerge-app .el.selected .handles{ display: block; }
#picturemerge-app .el .handle{
  position: absolute; width: 10px; height: 10px;
  background: #fff; border: 1.5px solid var(--primary); border-radius: 2px;
  pointer-events: auto; box-shadow: 0 1px 2px rgba(9, 30, 66, .2);
}
#picturemerge-app .el .handle.nw{ left: -5px; top: -5px; cursor: nwse-resize; }
#picturemerge-app .el .handle.ne{ right: -5px; top: -5px; cursor: nesw-resize; }
#picturemerge-app .el .handle.sw{ left: -5px; bottom: -5px; cursor: nesw-resize; }
#picturemerge-app .el .handle.se{ right: -5px; bottom: -5px; cursor: nwse-resize; }
#picturemerge-app .el .handle.n{ left: 50%; top: -5px; margin-left: -5px; cursor: ns-resize; }
#picturemerge-app .el .handle.s{ left: 50%; bottom: -5px; margin-left: -5px; cursor: ns-resize; }
#picturemerge-app .el .handle.w{ top: 50%; left: -5px; margin-top: -5px; cursor: ew-resize; }
#picturemerge-app .el .handle.e{ top: 50%; right: -5px; margin-top: -5px; cursor: ew-resize; }
#picturemerge-app .el .rotate{
  position: absolute; left: 50%; top: -28px; margin-left: -7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--primary);
  cursor: grab; pointer-events: auto;
  box-shadow: 0 1px 3px rgba(9, 30, 66, .25);
}
#picturemerge-app .el .rotate::before{
  content: ""; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 13px;
  background: var(--primary); transform: translateX(-50%);
}
#picturemerge-app .el .rotate:active{ cursor: grabbing; }
#picturemerge-app #element-toolbar{
  position: absolute;
  top: 12px; left: 50%;
  z-index: 40;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  max-width: calc(100% - 24px);
  flex-wrap: wrap;
}
#picturemerge-app .et-group{ display: flex; align-items: center; gap: 6px; flex: none; }
#picturemerge-app .et-sep{ width: 1px; height: 22px; background: var(--border-soft); flex: none; }
#picturemerge-app .et-label{ font-size: .74rem; color: var(--text-muted); white-space: nowrap; flex: none; }
#picturemerge-app .et-btn{
  min-width: 30px; height: 30px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  border: 1px solid var(--border-soft); border-radius: 6px;
  background: #fff; color: var(--text-secondary); cursor: pointer;
  font-size: .78rem; white-space: nowrap; flex: none;
}
#picturemerge-app .et-btn:hover{ border-color: #b9cdf0; color: var(--primary); }
#picturemerge-app .et-btn.active{ background: var(--primary-soft); border-color: #a8c6f2; color: var(--primary); }
#picturemerge-app .et-btn.danger{ color: #b23a48; border-color: #f3d4d7; }
#picturemerge-app .et-btn.danger:hover{ background: #ffeff1; border-color: #f0bfc5; }
#picturemerge-app .et-color{ width: 30px; height: 30px; padding: 2px; border: 1px solid var(--border-color); border-radius: 6px; background: #fff; cursor: pointer; flex: none; }
#picturemerge-app #element-toolbar .et-range{ width: 92px; accent-color: var(--primary); flex: none; }
#picturemerge-app .et-select{
  height: 30px; border: 1px solid var(--border-soft); border-radius: 6px;
  background: #fff; color: var(--text-secondary); padding: 0 4px; font-size: .78rem; flex: none;
}
#picturemerge-app .et-num{
  width: 54px; height: 30px; text-align: center;
  border: 1px solid var(--border-soft); border-radius: 6px; color: var(--text-secondary);
}
#picturemerge-app .panel{ border-bottom: 1px solid var(--border-soft); padding-bottom: 14px; margin-bottom: 14px; }
#picturemerge-app .panel:last-child{ border-bottom: 0; }
#picturemerge-app .panel > summary{
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 0; padding: 2px 0;
  position: relative;
}
#picturemerge-app .panel > summary::-webkit-details-marker{ display: none; }
#picturemerge-app .panel > summary::before{
  content: "";
  width: 0; height: 0;
  border-left: 5px solid #8b9bb0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform .18s ease;
  flex: none;
}
#picturemerge-app .panel[open] > summary::before{ transform: rotate(90deg); }
#picturemerge-app .panel[open] > summary{ margin-bottom: 12px; }
#picturemerge-app .panel-body{ padding-top: 2px; }
#picturemerge-app .field{ margin-bottom: 14px; }
#picturemerge-app .field:last-child{ margin-bottom: 0; }
#picturemerge-app .field > label{ display: block; margin-bottom: 7px; font-size: .78rem; font-weight: 500; color: var(--text-secondary); }
#picturemerge-app .field-tip{ margin: 7px 0 0; font-size: .7rem; color: #9aa8bb; line-height: 1.5; }
#picturemerge-app input[type="number"], #picturemerge-app .text-input{
  width: 100%; height: 34px; padding: 0 8px;
  border: 1px solid var(--border-color); border-radius: 5px;
  background: #fff; color: var(--text-primary); outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
#picturemerge-app input[type="number"]:focus, #picturemerge-app .text-input:focus{
  border-color: #8fb4ea; box-shadow: 0 0 0 3px rgba(0, 82, 204, .09);
}
#picturemerge-app input[type="number"]{ text-align: center; }
#picturemerge-app input[type="range"]{
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 4px;
  background: #dfe4ec; outline: none; accent-color: var(--primary);
}
#picturemerge-app input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance: none; appearance: none;
  width: 15px; height: 15px; border-radius: 50%;
  background: #fff; border: 2px solid var(--primary);
  box-shadow: 0 1px 3px rgba(9, 30, 66, .25); cursor: pointer;
}
#picturemerge-app input[type="range"]::-moz-range-thumb{
  width: 13px; height: 13px; border-radius: 50%;
  background: #fff; border: 2px solid var(--primary); cursor: pointer;
}
#picturemerge-app .grid-2, #picturemerge-app .grid-3, #picturemerge-app .grid-4, #picturemerge-app .grid-5{ display: grid; gap: 6px; }
#picturemerge-app .grid-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
#picturemerge-app .grid-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
#picturemerge-app .grid-4{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
#picturemerge-app .grid-5{ grid-template-columns: repeat(5, minmax(0, 1fr)); }
#picturemerge-app .ratio-grid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
#picturemerge-app .ratio-grid button{
  height: 40px; padding: 0 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px;
  border: 1px solid var(--border-color); border-radius: 5px;
  background: #fff; color: var(--text-secondary);
  font-size: .78rem; font-weight: 500; cursor: pointer;
  transition: all .15s ease;
}
#picturemerge-app .ratio-grid button b{ font-weight: 600; font-size: .75rem; }
#picturemerge-app .ratio-grid button em{ font-style: normal; font-size: .62rem; color: #93a2b7; line-height: 1; }
#picturemerge-app .ratio-grid button:hover{ border-color: #a8c6f2; color: var(--primary); }
#picturemerge-app .ratio-grid button.active{
  border-color: var(--primary); background: var(--primary-soft); color: var(--primary);
}
#picturemerge-app .ratio-grid button.active em{ color: #5b7fb5; }
#picturemerge-app .ratio-divider{
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 10px;
  margin: 4px 0 0;
  font-size: .7rem; color: #9aa8bb;
}
#picturemerge-app .ratio-divider::before, #picturemerge-app .ratio-divider::after{ content: ""; flex: 1; height: 1px; background: var(--border-soft); }
#picturemerge-app .custom-ratio{ margin-top: 14px; }
#picturemerge-app .custom-ratio > label{ display: block; margin-bottom: 7px; font-size: .78rem; font-weight: 500; }
#picturemerge-app .custom-ratio-row{ display: flex; align-items: center; gap: 8px; }
#picturemerge-app .custom-ratio-row span{ color: #93a2b7; font-weight: 600; }
#picturemerge-app .custom-ratio-row input{ flex: 1; min-width: 0; }
#picturemerge-app .preset-grid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
#picturemerge-app .preset-grid button{
  height: 34px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid var(--border-color); border-radius: 5px;
  background: #fff; color: var(--text-secondary);
  font-size: .74rem; cursor: pointer;
  transition: all .15s ease;
}
#picturemerge-app .preset-grid button:hover{ border-color: #a8c6f2; color: var(--primary); }
#picturemerge-app .preset-grid button.active{
  border-color: var(--primary); background: var(--primary-soft);
  color: var(--primary); font-weight: 600;
}
#picturemerge-app .preset-grid i{
  width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid #d5dbe4; flex: none; display: block;
}
#picturemerge-app .auto-ratio-row{
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--border-soft);
}
#picturemerge-app .auto-ratio-text b{ display: block; font-size: .8rem; font-weight: 600; color: var(--text-primary); }
#picturemerge-app .auto-ratio-text span{ display: block; margin-top: 2px; font-size: .7rem; color: #98a6ba; }
#picturemerge-app .color-row{ display: flex; align-items: center; gap: 8px; }
#picturemerge-app .color-row input[type="color"]{
  width: 44px; height: 34px; padding: 2px;
  border: 1px solid var(--border-color); border-radius: 5px; background: #fff; cursor: pointer;
}
#picturemerge-app .color-row input[type="text"]{ flex: 1; height: 34px; }
#picturemerge-app .action-btn{
  height: 36px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--border-color); border-radius: 5px;
  background: #fff; color: var(--text-secondary);
  font-size: .82rem; font-weight: 500; cursor: pointer;
  transition: all .15s ease;
}
#picturemerge-app .action-btn:hover{ border-color: #a8c6f2; color: var(--primary); background: #fbfdff; }
#picturemerge-app .action-btn.secondary{ background: #fff; }
#picturemerge-app .action-btn.primary{
  background: var(--primary); border-color: var(--primary); color: #fff;
  font-weight: 600; height: 42px;
}
#picturemerge-app .action-btn.primary:hover{ background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
#picturemerge-app .action-btn:disabled{ opacity: .55; cursor: not-allowed; }
#picturemerge-app .export-actions{ display: flex; flex-direction: column; gap: 8px; }
#picturemerge-app \n.quality-note{ margin-top: 8px; }
#picturemerge-app #quality-btns button, #picturemerge-app #wm-density button{
  height: 34px; border: 1px solid var(--border-color); border-radius: 5px;
  background: #fff; color: var(--text-secondary); font-size: .76rem; cursor: pointer;
  transition: all .15s ease;
}
#picturemerge-app #quality-btns button:hover, #picturemerge-app #wm-density button:hover{ border-color: #a8c6f2; color: var(--primary); }
#picturemerge-app #quality-btns button.active, #picturemerge-app #wm-density button.active{
  border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600;
}
#picturemerge-app #wm-position button{
  height: 32px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-color); border-radius: 5px; background: #fff; color: #9aa8bb; cursor: pointer;
}
#picturemerge-app #wm-position button:hover{ border-color: #a8c6f2; color: var(--primary); }
#picturemerge-app #wm-position button.active{ border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
#picturemerge-app .wm-pos{ margin-top: 6px; }
#picturemerge-app .switch-row{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: .82rem; font-weight: 500; color: var(--text-primary); }
#picturemerge-app .switch{ position: relative; display: inline-block; width: 38px; height: 22px; flex: none; }
#picturemerge-app .switch input{ position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 2; }
#picturemerge-app .switch i{
  position: absolute; inset: 0; background: #cfd7e3; border-radius: 999px;
  transition: background .18s ease; cursor: pointer;
}
#picturemerge-app .switch i::after{
  content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform .18s ease;
  box-shadow: 0 1px 2px rgba(9, 30, 66, .3);
}
#picturemerge-app .switch input:checked + i{ background: var(--primary); }
#picturemerge-app .switch input:checked + i::after{ transform: translateX(16px); }
#picturemerge-app .tips-panel{ padding-bottom: 8px; }
#picturemerge-app .tips-list{ margin: 0; padding-left: 16px; font-size: .74rem; line-height: 1.85; color: #8fa0b5; }
#picturemerge-app .tips-list li + li{ margin-top: 2px; }
#picturemerge-app #toast{
  position: fixed; left: 50%; bottom: 32px;
  transform: translate(-50%, 20px);
  z-index: 9999;
  max-width: min(86vw, 480px);
  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(23, 43, 77, .94);
  color: #fff; font-size: .82rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  pointer-events: none;
  text-align: center;
  backdrop-filter: blur(6px);
}
#picturemerge-app #toast.show{ opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .25s ease, transform .25s ease; }
#picturemerge-app #toast.success{ background: #1f7a4d; }
#picturemerge-app #toast.error{ background: #b5303f; }
#picturemerge-app #toast.warn{ background: #8a5a12; }
#picturemerge-app #drop-overlay{
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(244, 247, 252, .86);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
}
#picturemerge-app #drop-overlay::before{
  content: ""; position: absolute; inset: 18px;
  border: 2px dashed #9dbdf0; border-radius: 16px;
}
#picturemerge-app .drop-card{ display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--primary); }
#picturemerge-app .drop-card p{ margin: 0; font-size: 1rem; font-weight: 600; }
#picturemerge-app .drop-card svg{ animation: floaty 1.8s ease-in-out infinite; }
@keyframes floaty{ 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
#picturemerge-app #modal-root .modal-mask{
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(15, 25, 40, .42);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .16s ease;
}
#picturemerge-app .modal-card{
  width: 100%; max-width: 420px;
  background: #fff; border-radius: 14px;
  box-shadow: 0 24px 64px rgba(9, 30, 66, .3);
  padding: 22px;
  animation: popIn .18s ease;
}
#picturemerge-app .modal-card h3{ margin: 0 0 6px; font-size: 1.05rem; color: var(--text-primary); }
#picturemerge-app .modal-card p{ margin: 0 0 16px; font-size: .82rem; line-height: 1.7; color: var(--text-muted); }
#picturemerge-app .modal-row{ display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
#picturemerge-app .modal-row label{ font-size: .82rem; color: var(--text-secondary); }
#picturemerge-app .modal-row input{ width: 96px; }
#picturemerge-app .modal-actions{ display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
#picturemerge-app .modal-btn{
  height: 36px; padding: 0 18px;
  border-radius: 6px; border: 1px solid var(--border-color);
  background: #fff; color: var(--text-secondary);
  font-size: .84rem; cursor: pointer;
}
#picturemerge-app .modal-btn:hover{ border-color: #a8c6f2; color: var(--primary); }
#picturemerge-app .modal-btn.primary{ background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
#picturemerge-app .modal-btn.primary:hover{ background: var(--primary-hover); color: #fff; }
#picturemerge-app .help-list{ margin: 0; padding-left: 18px; font-size: .82rem; line-height: 1.9; color: var(--text-secondary); }
#picturemerge-app .help-list code{ background: #eef2f8; padding: 1px 5px; border-radius: 4px; font-size: .76rem; }
@keyframes fadeIn{ from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn{ from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
#picturemerge-app #mobile-mask{
  position: fixed; inset: 0; z-index: 900;
  background: rgba(15, 25, 40, .38);
  opacity: 0; transition: opacity .25s ease;
}
#picturemerge-app #mobile-mask.show{ opacity: 1; }
@media (max-width: 1080px){
#picturemerge-app{ --sidebar-width: 286px; }
#picturemerge-app #layout-list .thumbs{ gap: 6px; }
#picturemerge-app .thumb{ height: 60px; }
#picturemerge-app .nav-links{ gap: 18px; }


}
@media (max-width: 860px){
#picturemerge-app #app-nav{ padding: 0 12px; }
#picturemerge-app .mobile-nav-btn{ display: flex; }
#picturemerge-app .nav-links{ gap: 0; }
#picturemerge-app .nav-links > a, #picturemerge-app #tools-dropdown{ display: none; }
#picturemerge-app .nav-title{ font-size: .98rem; flex: 1; justify-content: center; display: flex; }
#picturemerge-app .nav-title a{ gap: 6px; }
#picturemerge-app .nav-title span{ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#picturemerge-app #left-sidebar, #picturemerge-app #right-sidebar{
    position: fixed; top: var(--nav-height); bottom: 0; z-index: 950;
    width: min(86vw, 340px);
    height: auto;
    box-shadow: var(--shadow-lg);
    transition: transform .26s cubic-bezier(.4, 0, .2, 1);
  }
#picturemerge-app #left-sidebar{ left: 0; transform: translateX(-104%); border-right: 1px solid var(--border-color); }
#picturemerge-app #right-sidebar{ right: 0; transform: translateX(104%); border-left: 1px solid var(--border-color); }
#picturemerge-app #left-sidebar.is-open, #picturemerge-app #right-sidebar.is-open{ transform: translateX(0); }
#picturemerge-app #app.left-collapsed #left-sidebar, #picturemerge-app #app.right-collapsed #right-sidebar{ width: min(86vw, 340px); flex-basis: auto; overflow: visible; }
#picturemerge-app #app.left-collapsed #left-sidebar > *, #picturemerge-app #app.right-collapsed #right-sidebar > *{ opacity: 1; pointer-events: auto; }
#picturemerge-app .collapse-btn{ display: none; }
#picturemerge-app #mobile-mask{ top: var(--nav-height); }
#picturemerge-app #toolbar{ padding: 8px 10px 2px; gap: 6px; }
#picturemerge-app .toolbar-group{ gap: 5px; }
#picturemerge-app .tool-btn{ height: 34px; padding: 0 9px; gap: 4px; font-size: .76rem; }
#picturemerge-app .tool-btn svg{ width: 15px; height: 15px; }
#picturemerge-app #viewport{ padding: 6px 10px 8px; }
#picturemerge-app #canvas-hint{ display: none; }
#picturemerge-app #element-toolbar{ top: 48px; gap: 6px; padding: 6px 8px; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; max-width: calc(100% - 16px); }
#picturemerge-app #element-toolbar::-webkit-scrollbar{ height: 4px; }
#picturemerge-app #element-toolbar::-webkit-scrollbar-thumb{ background: #d5dbe4; border-radius: 4px; }
#picturemerge-app #element-toolbar .et-range{ width: 80px; }
#picturemerge-app #toast{ bottom: 20px; }


}
@media (max-width: 420px){
#picturemerge-app .tool-btn span{ display: none; }
#picturemerge-app .tool-btn{ padding: 0 10px; }
#picturemerge-app .tool-btn svg{ width: 17px; height: 17px; }
#picturemerge-app .nav-title span{ font-size: .92rem; }


}
@media (hover: none){
#picturemerge-app .cell .cell-del{ opacity: 1; transform: scale(1); }


}



/* ================= embedded shell (picturemerge.com) ================= */
#picturemerge-app {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 820px;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: #f4f5f7;
  --nav-height: 0px;
  --sidebar-width: clamp(224px, 18vw, 288px);
}
@supports (zoom: 0.9) {
  #picturemerge-app { zoom: 0.9; height: 911px; }
}
#picturemerge-app #app { flex: 1 1 auto; min-height: 0; height: auto; }
#picturemerge-app #app-nav { display: none; }

/* compact sizing */
#picturemerge-app .sidebar-scroll { padding: 14px 14px 30px; }
#picturemerge-app .panel-heading { margin-bottom: 10px; }
#picturemerge-app .thumbs { gap: 6px; }
#picturemerge-app .thumb { height: 58px; }
#picturemerge-app .layout-group + .layout-group { margin-top: 14px; }
#picturemerge-app .layout-group-title { margin-bottom: 6px; }
#picturemerge-app #toolbar { padding: 10px 58px 2px 16px; }
#picturemerge-app #right-sidebar .sidebar-top { padding-right: 44px; }

/* fullscreen toggle */
#picturemerge-app .pm-fs-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 1200;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: 7px;
  background: #fff;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
#picturemerge-app .pm-fs-btn:hover { color: var(--primary); border-color: #b9cdf0; background: var(--primary-soft); }
#picturemerge-app .pm-fs-btn svg { width: 18px; height: 18px; }
#picturemerge-app .pm-fs-btn .hidden { display: none !important; }

/* fullscreen: the tool, not the page */
#picturemerge-app:fullscreen { width: 100%; height: 100%; zoom: 1; border: 0; border-radius: 0; }
#picturemerge-app:-webkit-full-screen { width: 100%; height: 100%; zoom: 1; border: 0; border-radius: 0; }

@media (max-width: 1180px) {
  #picturemerge-app { --sidebar-width: clamp(210px, 21vw, 250px); }
  #picturemerge-app .sidebar-scroll { padding: 12px 12px 28px; }
  #picturemerge-app .thumb { height: 54px; }
  #picturemerge-app #toolbar {
    justify-content: flex-start;
    gap: 8px;
    padding-right: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }
  #picturemerge-app #toolbar::-webkit-scrollbar { display: none; }
  #picturemerge-app .toolbar-group { flex: 0 0 auto; }
}

@media (max-width: 860px) {
  #picturemerge-app { height: 660px; --nav-height: 48px; }
  @supports (zoom: 0.9) {
    #picturemerge-app { height: 733px; }
  }
  #picturemerge-app #app-nav {
    display: flex;
    height: var(--nav-height);
    flex: 0 0 var(--nav-height);
    padding: 0 6px;
    box-shadow: none;
    border-bottom: 1px solid var(--border-soft);
  }
  #picturemerge-app #app-nav .nav-title,
  #picturemerge-app #app-nav .nav-links { display: none; }
  #picturemerge-app #left-sidebar,
  #picturemerge-app #right-sidebar {
    position: absolute;
    top: var(--nav-height);
    bottom: 0;
    height: auto;
  }
  #picturemerge-app #mobile-mask { position: absolute; }
  #picturemerge-app .pm-fs-btn { top: 7px; right: 50px; }
  #picturemerge-app #toolbar {
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 10px 2px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }
  #picturemerge-app #toolbar::-webkit-scrollbar { display: none; }
  #picturemerge-app .toolbar-group { flex: 0 0 auto; }
}

/* keep native form controls light even when the site is in dark mode */
#picturemerge-app { color-scheme: light; }

/* ---------------- empty state: drop zone ---------------- */
#picturemerge-app #viewport { position: relative; }
#picturemerge-app #pm-welcome {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: var(--bg-main);
  container-type: size;
}
#picturemerge-app #pm-welcome.pm-hide { display: none; }
#picturemerge-app .pm-welcome-card {
  /* square: side = min(available width, available height) */
  width: 100%;
  height: 100%;
  width: min(100%, 100cqh);
  height: min(100%, 100cqw);
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 28px;
  border: 1.5px dashed #d3d9e3;
  border-radius: 22px;
  background: radial-gradient(120% 90% at 50% 0%, #ffffff 0%, #f7f8fc 55%, #f1f4fa 100%);
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}
#picturemerge-app .pm-welcome-card:hover { border-color: #b9c9e6; box-shadow: 0 18px 40px -30px rgba(30, 55, 110, .5); }
#picturemerge-app .pm-welcome-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #6a5ae0;
  background: linear-gradient(135deg, #eef3ff, #f3edff);
  border: 1px solid #e4e7f3;
  box-shadow: 0 12px 26px -16px rgba(74, 82, 160, .65);
}
#picturemerge-app .pm-welcome-icon svg { width: 28px; height: 28px; }
#picturemerge-app .pm-welcome-title {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text-primary);
}
#picturemerge-app .pm-welcome-sub {
  margin: 8px 0 20px;
  max-width: 460px;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--text-muted);
}
#picturemerge-app .pm-welcome-btn {
  height: 44px;
  padding: 0 26px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f7cf7, #7c5cf0);
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 24px -12px rgba(79, 124, 247, .75);
  transition: filter .15s ease, transform .1s ease;
}
#picturemerge-app .pm-welcome-btn:hover { filter: brightness(1.06); }
#picturemerge-app .pm-welcome-btn:active { transform: translateY(1px); }
#picturemerge-app .pm-welcome-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}
#picturemerge-app .pm-welcome-badges span {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #e3e7ef;
  background: #fff;
  color: #7b8798;
  font-size: .72rem;
  font-weight: 600;
}
@media (max-width: 860px) {
  #picturemerge-app .pm-welcome-card { min-height: 0; padding: 26px 16px; }
  #picturemerge-app .pm-welcome-title { font-size: 1.45rem; }
  #picturemerge-app .pm-welcome-sub { font-size: .86rem; margin-bottom: 16px; }
}
/* floating copy / download buttons (mobile) */
#picturemerge-app .pm-mobile-actions { display: none; }

@media (max-width: 860px) {
  #picturemerge-app .pm-mobile-actions {
    display: flex;
    gap: 8px;
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 40;
  }
  #picturemerge-app .pm-mobile-actions.pm-hide { display: none; }
  #picturemerge-app .pm-mob-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #dfe1e6;
    background: #fff;
    color: var(--text-primary);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 22px -12px rgba(15, 35, 70, .45);
  }
  #picturemerge-app .pm-mob-btn svg { width: 16px; height: 16px; }
  #picturemerge-app .pm-mob-btn.pm-mob-primary {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, #4f7cf7, #7c5cf0);
    box-shadow: 0 12px 24px -12px rgba(79, 124, 247, .75);
  }
  #picturemerge-app .pm-mob-btn:active { transform: translateY(1px); }
}

/* delete handle on a selected annotation */
#picturemerge-app .el .el-del{
  position: absolute;
  top: -10px;
  right: -10px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e5484d;
  color: #fff;
  border: 2px solid #fff;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(9, 30, 66, .28);
  user-select: none;
}
#picturemerge-app .el .el-del:hover{ background: #cf2f34; }
/* in-page fullscreen: fills the browser window without OS-level fullscreen */
#picturemerge-app.pm-fs{
  position: fixed !important;
  inset: 0 !important;
  z-index: 9000 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  zoom: 1 !important;
}
#picturemerge-app.pm-fs #app{ height: 100% !important; flex: 1 1 auto; }
html.pm-fs-lock, html.pm-fs-lock body{ overflow: hidden !important; }