.show-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 340px;
  gap: 12px;
  height: 100%;
  min-height: 0;
}

.show-list-panel, .show-editor, .show-runner {
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #111218, #0a0b0f);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.sequence-item {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 10px 11px;
  border-radius: 7px;
  border: 1px solid transparent;
  text-align: left;
  color: var(--text-dim);
}
.sequence-item:hover { background: #151820; border-color: var(--line); color: #fff; }
.sequence-item.is-active { background: rgba(255, 43, 43, 0.09); border-color: rgba(255, 43, 43, 0.32); color: #fff; }
.sequence-item .seq-name { font-size: 12px; font-weight: 650; }
.sequence-item .seq-meta { font-size: 9px; color: var(--text-muted); }

.steps-list { display: grid; gap: 7px; padding: 12px; overflow: auto; }

.step-card {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 7px;
  border: 1px solid var(--line-soft);
  background: #0e1015;
}

.step-card.is-current { border-color: var(--red); background: rgba(255, 43, 43, 0.07); }
.step-card.is-done { opacity: 0.5; }

.step-index { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); text-align: center; }
.step-body { display: grid; gap: 2px; min-width: 0; }
.step-type { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.step-detail { font-size: 10px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-tools { display: flex; gap: 3px; }

.step-type-tag { font-size: 8px; letter-spacing: 0.08em; color: var(--text-muted); border: 1px solid var(--line); padding: 1px 5px; border-radius: 3px; width: max-content; }

.runner-body { padding: 14px; display: grid; gap: 12px; align-content: start; }
.runner-screen {
  border-radius: 9px;
  border: 1px solid var(--line);
  background:
    radial-gradient(400px 120px at 50% 0%, rgba(255, 43, 43, 0.10), transparent 70%),
    #08090c;
  padding: 18px 14px;
  text-align: center;
  display: grid;
  gap: 6px;
}
.runner-screen .rs-state { font-size: 9px; letter-spacing: 0.18em; color: var(--text-muted); font-weight: 800; }
.runner-screen .rs-title { font-size: 17px; font-weight: 750; letter-spacing: -0.01em; }
.runner-screen .rs-time { font-family: var(--font-mono); font-size: 30px; font-weight: 600; letter-spacing: 0.02em; }
.runner-screen.is-live .rs-state { color: var(--red); }
.runner-screen .rs-progress { height: 3px; background: #242833; border-radius: 2px; overflow: hidden; margin-top: 4px; }
.runner-screen .rs-progress i { display: block; height: 100%; background: var(--red); width: 0; transition: width 0.2s linear; }
.runner-screen .rs-mark { font-size: 11px; color: var(--warn); min-height: 14px; }

.runner-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.runner-log {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-muted);
  background: #07080b;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 8px;
  height: 120px;
  overflow: auto;
  line-height: 1.6;
  display: grid;
  align-content: start;
  gap: 1px;
}
.runner-log .log-line.is-error { color: var(--red); }
.runner-log .log-line.is-ok { color: var(--ok); }

.stop-hero {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 43, 43, 0.45);
  background: rgba(255, 43, 43, 0.07);
  display: grid;
  gap: 5px;
  text-align: center;
}
.stop-hero b { font-size: 11px; letter-spacing: 0.12em; color: var(--red); }
.stop-hero span { font-size: 10px; color: var(--text-muted); }

.step-editor { display: grid; gap: 10px; }
.step-editor-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

@media (max-width: 1400px) {
  .show-layout { grid-template-columns: 250px minmax(0, 1fr) 300px; }
}
@media (max-width: 1150px) {
  .show-layout { grid-template-columns: 1fr; overflow: auto; }
}
