.ed-root {
  height: calc(100vh - var(--jz-nav));
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr) 252px;
  background: #0a0d14;
  color: #e8edf7;
  font-size: 14px;
}
.jz-shell.jz-editor-on {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}
.jz-shell.jz-editor-on .jz-main {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.jz-shell.jz-editor-on .jz-footer { display: none; }
.jz-shell.jz-editor-on .ed-root {
  height: 100%;
  flex: 1;
  min-height: 0;
}
.ed-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: #10141c;
  gap: 12px;
}
.ed-top .group { display: flex; gap: 8px; align-items: center; }
.ed-top .el-button { font-size: 13px; }
.ed-body {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr) 318px;
  gap: 12px;
  min-height: 0;
  padding: 12px 28px 0;
}
.ed-left, .ed-right {
  background: #10151e;
  overflow: auto;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
}
.ed-right { padding: 16px 18px 20px; }
.ed-right h4 { margin: 0 0 14px; font-size: 16px; font-weight: 650; }
.ed-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; }
.ed-tabs button {
  border: 0;
  background: #1a2130;
  color: #c4cddd;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13.5px;
}
.ed-tabs button.on { background: #7c5cff; color: #fff; }
.ed-lib { padding: 0 12px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ed-asset {
  height: 86px;
  border-radius: 10px;
  background: #1a2130;
  border: 1px dashed #2a3344;
  display: grid;
  place-items: center;
  font-size: 13.5px;
  color: #c4cddd;
  cursor: pointer;
  overflow: hidden;
  text-align: center;
  padding: 8px;
}
.ed-asset video, .ed-asset img { width: 100%; height: 100%; object-fit: cover; }
.ed-center {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #07080d;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  overflow: hidden;
}
.ed-preview-wrap {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 16px;
  min-height: 0;
}
.ed-canvas-box {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
  position: relative;
  max-width: 100%;
  max-height: 100%;
}
.ed-canvas-box canvas { display: block; max-width: 100%; max-height: min(100%, 52vh); }
.ed-playbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 16px 14px;
  color: #c4cddd;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
.ed-playbar input[type="range"] { min-width: 140px; flex: 1 1 180px; }
.ed-timeline {
  border: 1px solid rgba(255,255,255,.08);
  background: #0e1219;
  overflow: auto;
  position: relative;
  margin: 10px 28px 16px;
  border-radius: 14px;
}
.ed-ruler {
  height: 26px;
  background: #121826;
  position: sticky;
  top: 0;
  z-index: 2;
}
.ed-track {
  display: flex;
  height: 48px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  position: relative;
}
.ed-track-label {
  width: 120px;
  flex: none;
  font-size: 13px;
  color: #c4cddd;
  padding: 6px 8px;
  background: #10151e;
  position: sticky;
  left: 0;
  z-index: 1;
  border-right: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.ed-track-label > span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.ed-track-ops { display: flex; gap: 4px; }
.ed-track-ops button {
  flex: 1;
  border: 1px solid rgba(255,255,255,.12);
  background: #1a2130;
  color: #d6dbe6;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1;
  padding: 4px 0;
  cursor: pointer;
}
.ed-track-ops button.on { background: rgba(124,92,255,.28); color: #d6ccff; border-color: rgba(124,92,255,.5); }
.ed-track-lane { position: relative; height: 48px; }
.ed-clip {
  position: absolute;
  top: 7px;
  height: 34px;
  border-radius: 6px;
  background: linear-gradient(90deg, #4c3ae8, #7c5cff);
  color: #fff;
  font-size: 12.5px;
  padding: 8px 10px;
  overflow: hidden;
  white-space: nowrap;
  cursor: grab;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  user-select: none;
}
.ed-clip:active { cursor: grabbing; }
.ed-clip.audio { background: linear-gradient(90deg, #0e7490, #22d3ee); color: #041016; }
.ed-clip.sub { background: linear-gradient(90deg, #854d0e, #f5c16c); color: #1a1203; }
.ed-clip.fx { background: linear-gradient(90deg, #9d174d, #f472b6); }
.ed-clip.pip { background: linear-gradient(90deg, #166534, #34d399); color: #052e16; }
.ed-clip.on { outline: 2px solid #fff; }
.ed-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #f5c16c;
  z-index: 3;
  pointer-events: none;
}
.ed-field { margin-bottom: 14px; }
.ed-field label { display: block; font-size: 13.5px; color: #c4cddd; margin-bottom: 7px; }
.ed-field input[type="range"] {
  width: 100%;
  height: 18px;
  accent-color: #7c5cff;
  cursor: pointer;
}
.ed-kf { font-size: 13px; color: #9aa4b5; line-height: 1.7; margin-top: 8px; }
.ed-title {
  width: 220px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #2a3344;
  background: #10151e;
  color: #e8edf7;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}
.ed-title:focus { border-color: #7c5cff; }
.ed-lib-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ed-lib-row b { display: block; font-size: 14px; }
.ed-lib-row small { color: #8b95a8; font-size: 12px; }
.ed-lib-ops { display: flex; gap: 6px; flex: none; }
.ed-empty-clip { color: #8b95a8; font-size: 13.5px; line-height: 1.8; padding: 8px 2px; }
.ed-mobile-tabs { display: none; }
@media (max-width: 1100px) {
  .ed-root {
    height: auto;
    min-height: calc(100dvh - var(--jz-nav));
    grid-template-rows: auto auto minmax(280px, 1fr) 220px;
  }
  .jz-shell.jz-editor-on { height: auto; max-height: none; overflow: auto; }
  .jz-shell.jz-editor-on .jz-main { overflow: visible; display: block; }
  .ed-top { flex-wrap: wrap; height: auto; min-height: 48px; row-gap: 8px; padding: 8px 16px; }
  .ed-top .group { flex-wrap: wrap; }
  .ed-top-main, .ed-top-ops { width: 100%; }
  .ed-title { width: 100%; flex: 1; }
  .ed-mobile-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 10px 16px;
    background: #10141c;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .ed-mobile-tabs button {
    min-height: 42px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    background: #1a2130;
    color: #c4cddd;
    cursor: pointer;
    font-size: 15px;
  }
  .ed-mobile-tabs button.on { background: #7c5cff; color: #fff; border-color: #7c5cff; }
  .ed-body { grid-template-columns: 1fr; padding: 10px 16px 0; }
  .ed-timeline { margin: 10px 16px 16px; }
  .ed-body.ed-pane-media .ed-center,
  .ed-body.ed-pane-media .ed-right,
  .ed-body.ed-pane-preview .ed-left,
  .ed-body.ed-pane-preview .ed-right,
  .ed-body.ed-pane-props .ed-left,
  .ed-body.ed-pane-props .ed-center { display: none; }
  .ed-left, .ed-right {
    display: block;
    max-height: none;
    min-height: 280px;
  }
  .ed-lib { grid-template-columns: repeat(3, 1fr); }
  .ed-top-hint { display: none; }
}
@media (max-width: 720px) {
  .ed-lib { grid-template-columns: 1fr 1fr; }
  .ed-preview-wrap { padding: 10px; }
  .ed-playbar { flex-wrap: wrap; gap: 8px; }
  .ed-playbar .el-button { flex: 1; }
  .ed-track-label { width: 120px; font-size: 12px; padding: 6px; }
  .ed-timeline { min-height: 160px; margin: 8px 12px 12px; }
  .ed-body { padding: 8px 12px 0; }
  .ed-top { padding: 8px 12px; }
}
