
.local-edit-surface {
  position:absolute;
  z-index:5;
  inset:0;
  color:#8954f6;
  cursor:crosshair;
  touch-action:none;
}
.local-edit-markings {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  stroke-width:1.6px;
}
.local-edit-marker {
  position:absolute;
  z-index:1;
  transform:translate(6px,-100%) scale(calc(1 / var(--local-edit-zoom,1)));
  transform-origin:bottom left;
  border:0;
  padding:0;
  background:transparent;
  cursor:pointer;
}
.local-edit-number {
  box-sizing:border-box;
  min-width:28px;
  height:28px;
  padding:0 5px;
  border:2px solid #fff;
  border-radius:50% 50% 50% 4px;
  background:#8954f6;
  color:#fff;
  display:inline-grid;
  place-items:center;
  font:500 13px/1 Inter,system-ui,sans-serif;
  font-variant-numeric:tabular-nums;
}
.local-edit-under-asset {
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  width:var(--local-edit-panel-width,310px);
  z-index:6;
  display:grid;
  gap:8px;
  color:#191919;
  cursor:auto;
  font:400 13px/1.45 Inter,system-ui,sans-serif;
}
.local-edit-toolbar,.local-edit-composer,.local-edit-popover {
  background:#fff;
  color:#191919;
  border:1px solid #e8e8e8;
  border-radius:12px;
  box-shadow:0 2px 7px rgb(0 0 0 / 8%);
}
.local-edit-toolbar {
  justify-self:center;
  display:flex;
  align-items:center;
  gap:3px;
  padding:4px;
}
.local-edit-toolbar button,.local-edit-popover button,.local-edit-composer button {
  border:0;
  border-radius:7px;
  background:transparent;
  color:inherit;
  font:inherit;
  cursor:pointer;
}
.local-edit-toolbar button {
  width:32px;
  height:32px;
  padding:0;
  display:grid;
  place-items:center;
}
.local-edit-toolbar button[aria-pressed="true"],.local-edit-toolbar button:hover {
  background:#ededed;
}
.local-edit-toolbar button.local-edit-all {
  border-radius:0;
  border-left:1px solid #eee;
  width:auto;
  padding:0 9px;
}
.local-edit-composer {
  display:grid;
  gap:8px;
  padding:8px;
}
.local-edit-composer footer,.local-edit-popover footer {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
}
.local-edit-chips {
  display:flex;
  flex-wrap:wrap;
  gap:5px;
}
.local-edit-chips button {
  max-width:100%;
  display:inline-flex;
  align-items:center;
  gap:3px;
  border:1px solid #eee;
  padding:3px 6px;
}
.local-edit-chips button:hover {background:#f7f5ff}
.local-edit-chips button span:last-child {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.local-edit-chips img,.local-edit-replacement img {
  width:22px;
  height:22px;
  object-fit:cover;
  border-radius:4px;
}
.local-edit-chips .local-edit-number {
  min-width:15px;
  height:15px;
  border:0;
  font-size:10px;
}
.local-edit-composer button.local-edit-generate,.local-edit-popover button.local-edit-confirm {
  background:#201e22;
  color:#fff;
  padding:6px 12px;
}
.local-edit-composer button:disabled,.local-edit-popover button:disabled {
  opacity:.35;
  cursor:default;
}
.local-edit-popover {
  position:fixed;
  z-index:2600;
  width:min(280px,calc(100vw - 16px));
  box-sizing:border-box;
  padding:10px;
  text-align:left;
  font:400 13px/1.4 Inter,system-ui,sans-serif;
}
.local-edit-popover header,.local-edit-replacement {
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
}
.local-edit-popover header .local-edit-number {display:none}
.local-edit-popover header span:nth-child(2) {
  padding:3px 6px;
  border:1px solid #e7e7e7;
  border-radius:6px;
  font-size:12px;
}
.local-edit-popover button.local-edit-remove {
  margin-left:auto;
  display:grid;
  place-items:center;
  width:25px;
  height:25px;
  color:#727272;
}
.local-edit-popover textarea {
  display:block;
  width:100%;
  min-height:48px;
  max-height:112px;
  margin:5px 0;
  padding:3px 1px;
  border:0;
  resize:vertical;
  box-shadow:none;
  background:transparent;
  color:inherit;
  font:inherit;
}
.local-edit-popover textarea::placeholder {color:#858585}
.local-edit-popover footer button {
  padding:5px 7px;
  border:1px solid #eee;
  white-space:nowrap;
}
.local-edit-popover footer button:first-child {margin-right:auto}
.local-edit-replacement {
  margin:4px 0 8px;
  font-size:12px;
}
.local-edit-replacement span {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.local-edit-popover [role="alert"],.local-edit-composer [role="alert"] {
  margin:2px 0;
  color:#a52624;
}

.local-edit-mount {
  position:absolute;
  left:0;
  bottom:0;
  z-index:3;
  pointer-events:none;
}
.local-edit-mount > .local-edit-surface,.local-edit-mount > .local-edit-under-asset {
  pointer-events:auto;
}
.local-edit-video {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  background:#111;
  pointer-events:none;
}
.local-edit-under-asset {
  transform:scale(calc(1 / var(--local-edit-zoom, 1)));
  transform-origin:top left;
}
.local-edit-video-controls {
  display:flex;
  align-items:center;
  gap:7px;
  padding:5px 8px;
  background:#fff;
  border:1px solid #e8e8e8;
  border-radius:8px;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.local-edit-video-controls input {
  min-width:0;
  flex:1;
  accent-color:#8954f6;
}
.local-edit-video-controls button {
  border:0;
  border-radius:5px;
  background:#f3f0fa;
  color:#362661;
}

.local-edit-toolbar button.local-edit-close {font-size:18px;color:#777}
.local-edit-corner {
  position:absolute;
  width:10px;
  height:10px;
  border-radius:50%;
  transform:translate(-50%,-50%) scale(calc(1 / var(--local-edit-zoom,1)));
  background:#8954f6;
  pointer-events:none;
}
