/* /studio/stage-editor: Interactive Video Stage Editor for @ifagent/live-stage-kit v1.0.0 */
:root {
  --bg: #0b0f17; --bg-2: #121926; --bg-3: #1a2436; --line: #26344d;
  --fg: #eef3fa; --fg-2: #9db0c9; --gold: #f0c46c; --teal: #00d4aa;
  --blue: #0088ff; --danger: #ff6b6b; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; background: var(--bg); color: var(--fg);
  font-family: Inter, system-ui, sans-serif;
}
.ste { max-width: 1560px; margin: 0 auto; padding: 16px; display: grid; gap: 14px; }
.ste-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ste-eyebrow { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); }
.ste-head h1 { margin: 4px 0 0; font: 700 clamp(20px, 3vw, 28px)/1.2 Outfit, Inter, sans-serif; }
.ste-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ste-status {
  margin: 0; padding: 9px 14px; border-radius: 12px;
  background: rgba(18, 25, 38, 0.9); border: 1px solid var(--line);
  font-size: 13px; color: var(--fg-2);
}
.ste-grid { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
@media (min-width: 1120px) {
  .ste-grid { grid-template-columns: 290px minmax(0, 1fr) 340px; }
}
.ste-col, .ste-center { display: grid; gap: 12px; min-width: 0; }
.ste-card, .ste-log-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px; display: grid; gap: 10px;
}
.ste-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ste-card-head h2, .ste-card-head h3 { margin: 0; font: 600 15px Outfit, Inter, sans-serif; }
.ste-hint { margin: 0; font-size: 12px; color: var(--fg-2); line-height: 1.4; }
.ste-tag {
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  background: var(--bg-3); color: var(--gold); border: 1px solid rgba(240, 196, 108, 0.4);
}
.ste-btn {
  font: 600 13px Inter, sans-serif; min-height: 36px; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-3); color: var(--fg); cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.ste-btn.sm { min-height: 30px; padding: 4px 10px; font-size: 12px; }
.ste-btn.primary, .ste-btn[data-active="1"] {
  background: linear-gradient(100deg, var(--blue), var(--teal)); color: #04121a; border-color: transparent;
}
.ste-btn.danger { border-color: var(--danger); color: var(--danger); }

.ste-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; max-height: 210px; overflow-y: auto; }
.ste-list li {
  padding: 8px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 6px;
  font-size: 12.5px; cursor: pointer;
}
.ste-list li.active { border-color: var(--gold); background: rgba(240, 196, 108, 0.12); }
.ste-tpl-btns { display: flex; flex-wrap: wrap; gap: 6px; }

.ste-stage-wrap {
  position: relative; width: 100%; aspect-ratio: 16 / 10; min-height: 380px; max-height: 560px;
  border-radius: 16px; overflow: hidden; background: #070a10;
  border: 2px solid rgba(240, 196, 108, 0.48);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}
.ste-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ste-log {
  max-height: 150px; overflow-y: auto; display: grid; gap: 6px;
  font-size: 12.5px; font-family: monospace; color: var(--fg-2);
}
.ste-log p { margin: 0; padding: 4px 8px; border-radius: 6px; background: var(--bg); }

.ste-form { display: grid; gap: 9px; }
.ste-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.ste-field { display: grid; gap: 4px; font-size: 12px; color: var(--fg-2); }
.ste-field input, .ste-field select {
  width: 100%; min-height: 34px; padding: 6px 9px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: 13px Inter, sans-serif;
}
.ste-form-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.ste-inline-select {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-size: 12px; color: var(--fg-2);
}
.ste-inline-select select { background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; font-size: 12px; }
.ste-inline-select input[type="color"] { width: 26px; height: 24px; border: none; background: transparent; cursor: pointer; padding: 0; }
.ste-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--gold); font-weight: 600; cursor: pointer; }
.ste-divider { width: 100%; border: none; border-top: 1px solid var(--line); margin: 2px 0; }
.ste-stage-wrap[data-viewport="9:16"] { aspect-ratio: 9 / 16; max-width: 380px; margin: 0 auto; }

