.stage {
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(45deg, #e5e7eb 25%, transparent 25%), linear-gradient(-45deg, #e5e7eb 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e5e7eb 75%), linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    cursor: default;
    height: 100vh;
    border-radius: 6px;
    margin-top: 0.75rem;
    border:1px solid #eee;
    display: none;
}

.stage.has-image{cursor:crosshair;}
.stage.dragging{cursor:grabbing !important;}
.stage.space-mode{cursor:grab !important;}

.night .stage {
    background: linear-gradient(45deg, #0c1015 25%, transparent 25%), linear-gradient(-45deg, #0c1015 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #0c1015 75%), linear-gradient(-45deg, transparent 75%, #0c1015 75%);
    background-size: 22px 22px;
    background-position: 0 0, 0 11px, 11px -11px, -11px 0;
    background-color: #10151b;
    border:1px solid #444;
}

.viewport {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    will-change: transform;
}

.stage-img {
    display: block;
    max-width: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.marker {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #009688;
    border: 2px solid #fff;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
    box-shadow: 0 0 12px rgba(255, 120, 71, .6);
    animation: pulse 2s ease-in-out infinite;
}

.marker::after {
    content: attr(data-i);
    position: absolute;
    left: 18px;
    top: -4px;
    background: #ff4d4d;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 100%;
    white-space: nowrap;
}

@keyframes pulse{
    0%,100%{box-shadow:0 0 12px rgba(255,120,71,.6);}
    50%{box-shadow:0 0 22px rgba(255,120,71,.9);}
  }

.crosshair {
    position: absolute;
    pointer-events: none;
    z-index: 15;
    display: none;
}

.crosshair.show{
    display:block;
}

.crosshair .v {
    position: absolute;
    width: 0;
    border-left: 1px dashed #36d399;
}

.crosshair .h {
    position: absolute;
    height: 0;
    border-top: 1px dashed #36d399;
}

.cursor-tip {
    position: absolute;
    pointer-events: none;
    z-index: 20;
    background: rgba(15, 20, 26, .92);
    border: 1px solid #ff4d4d;
    color: #e6edf3;
    font-size: 11px;
    font-family: Consolas, monospace;
    padding: 4px 8px;
    border-radius: 6px;
    transform: translate(14px, 14px);
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 120, 71, .2);
    opacity: 0;
    transition: opacity .12s;
}

.cursor-tip.show{opacity:1;}

.cursor-tip .lab {
    color: #ff4d4d;
    font-weight: 700;
}

.cursor-tip .lab {
    color: #ff4d4d;
    font-weight: 700;
}

.zoom-ctl {
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    background: rgba(15, 20, 26, .9);
    border: 1px solid #2a323d;
    border-radius: 10px;
    padding: 4px 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 30;
}

.zoom-ctl .level {
    font-size: 0.5rem;
    color: #e6edf3;
    min-width: 36px;
    text-align: right;
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 140px;
    height: 4px;
    background: #444;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ff7847;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(255,120,71,.5);
    transition: transform .1s;
  }

  input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
  }

  input[type=range]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ff7847;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 8px rgba(255,120,71,.5);
  }

  .statusbar {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      backdrop-filter: blur(8px);
      border-top: 1px solid #eee;
      padding: 8px 16px;
      display: flex;
      background-color: #fff;
      gap: 1.2rem;
      font-size: 0.55rem;
      font-family: Consolas, monospace;
      z-index: 30;
  }

  .night  .statusbar {
    background: rgba(15, 20, 26, .9);
    backdrop-filter: blur(8px);
    border-top: 1px solid #2a323d;
  }

  .statusbar .item {
      display: flex;
      gap: 6px;
      align-items: center;
  }

  .statusbar .item b{
    font-weight: unset;
  }

  .statusbar .item .dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: #36d399;
  }

  .statusbar .right {
      margin-left: auto;
      display: flex;
      gap: 16px;
  }

  .zuobiaolist {
    border: 1px solid #eee;
    padding: 0.5rem;
    border-radius: 4px;
    margin-top: 0.75rem;
    display: none;
}

.night  .zuobiaolist {
    border: 1px solid #444;
}

.zuobiaolist .tits {
    margin-bottom: 0.5rem;
    font-size: 0.6rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.night .zuobiaolist .tits{
    border-bottom: 1px solid #444;
}

#recordList {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 0.5rem;
}

#recordList>div{
    padding: 8px;
    background: #f9f9f9;
    border-left: 3px solid #ff7847;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 2px;
}

.night #recordList>div{
    background: #181a1b;
}

#recordList>div>span:nth-child(1){

}

#recordList>div>span:nth-child(2){
    cursor: pointer;
    color: #1E9FFF;
    font-size: 12px;
}