* { box-sizing: border-box; }
:root {
  --bg: #0b0f14;
  --panel: #121923;
  --panel-2: #0f141d;
  --text: #e8edf5;
  --muted: #9fb0c7;
  --accent: #2d8cff;
  --accent-2: #7ac1ff;
  --ok: #23c26b;
  --warn: #f7b955;
  --border: #233247;
}
body.light {
  --bg: #f5f8fc;
  --panel: #ffffff;
  --panel-2: #eff4fb;
  --text: #0f1724;
  --muted: #4d5e77;
  --accent: #2563eb;
  --accent-2: #5a8fff;
  --ok: #1f9e58;
  --warn: #cb8c25;
  --border: #d8e2f0;
}
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font: 15px/1.6 "Segoe UI", Inter, Arial, sans-serif; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1120px, 92vw); margin: 0 auto; }
header { position: sticky; top: 0; backdrop-filter: blur(8px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--border); z-index: 20; }
.nav { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 12px 0; }
.brand { font-weight: 800; letter-spacing: .2px; }
.menu { display: flex; flex-wrap: wrap; gap: 14px; }
.menu a { color: var(--text); opacity: .9; }
.btn { border: 1px solid var(--border); color: var(--text); background: var(--panel); border-radius: 10px; padding: 8px 12px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.hero { padding: 56px 0 30px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.hero-main { padding: 22px; }
.hero-side { padding: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 4px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.launch-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.kpi { background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px; min-height: 82px; }
.section { padding: 18px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 8px; }
h1 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
h2 { font-size: clamp(1.2rem, 2.1vw, 1.6rem); margin-top: 8px; }
.section > h2 { margin-bottom: 12px; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; color: var(--muted); }
.code { background: #0a1220; color: #d4e6ff; border: 1px solid #1d2c45; border-radius: 10px; padding: 10px; overflow: auto; font-family: Consolas, Monaco, monospace; font-size: 13px; }
.muted { color: var(--muted); }
.form-grid { display: grid; gap: 10px; }
.form-grid label { display: grid; gap: 6px; font-weight: 600; }
.form-grid input, .form-grid select { border: 1px solid var(--border); background: var(--panel-2); color: var(--text); border-radius: 8px; padding: 9px 10px; }
.progress-wrap { margin: 10px 0; height: 10px; border-radius: 999px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--border); }
.progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .25s ease; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.clip-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.clip-list a { display: inline-block; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel-2); }
.hidden { display: none; }
.section-block { margin-top: 12px; }
.editor-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.editor-upload-row { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.editor-preview-wrap { border: 1px solid var(--border); background: #02060d; border-radius: 10px; overflow: hidden; }
.editor-preview { width: 100%; height: 290px; display: block; background: #000; }
.transition-preview-overlay { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.editor-preview-wrap { position: relative; }
.editor-controls-row { display: flex; flex-wrap: wrap; gap: 8px; }
.editor-range-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.editor-timeline-wrap { border: 1px solid var(--border); border-radius: 10px; padding: 10px; background: var(--panel-2); display: grid; gap: 10px; }
.editor-timeline-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.editor-segments-wrap { border: 1px solid var(--border); border-radius: 10px; padding: 10px; background: var(--panel-2); display: grid; gap: 8px; }
.segments-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.segments-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; background: var(--panel); }
.segments-actions { display: flex; gap: 6px; }
.segments-actions button { padding: 4px 8px; border-radius: 6px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); cursor: pointer; }
.transition-preview-overlay.preview-fade { background: rgba(0, 0, 0, .65); animation: tpFade .8s ease-in-out; }
.transition-preview-overlay.preview-slide { background: linear-gradient(90deg, rgba(0,0,0,.75), transparent); animation: tpSlide .8s ease-in-out; }
.transition-preview-overlay.preview-wipe { background: rgba(0, 0, 0, .85); animation: tpWipe .8s ease-in-out; }
@keyframes tpFade { 0% { opacity: 0; } 40% { opacity: .85; } 100% { opacity: 0; } }
@keyframes tpSlide { 0% { opacity: 0; transform: translateX(-100%); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateX(100%); } }
@keyframes tpWipe { 0% { clip-path: inset(0 100% 0 0); opacity: .9; } 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
ol, ul { margin: 0; padding-left: 20px; }
li + li { margin-top: 4px; }
body.light .code { background: #f7fbff; color: #0f2649; border-color: #d8e7fb; }
footer { margin: 28px 0 36px; color: var(--muted); font-size: 13px; }
.footer-counter { margin-left: 6px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .kpis { grid-template-columns: 1fr; }
  .editor-upload-row, .editor-range-grid { grid-template-columns: 1fr; }
  .menu { gap: 10px; }
  .launch-card { flex-direction: column; align-items: flex-start; }
}
