/* Разметки: поверх стилей Движа (../game.css). Одна цветная кнопка на экране. */
.feat { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--dim); font-size: 15px; }
.feat b { color: var(--text); }
.feat li::marker { color: var(--lime); }
.txt { color: var(--dim); font-size: 15px; margin: 0 0 14px; }

/* Редактор */
#edit { gap: 10px; padding-top: calc(12px + var(--safe-t)); }
#edit > * { width: 100%; max-width: 560px; margin-left: auto; margin-right: auto; }
#edit .top h1 { font-size: 22px; }
#edit .top .st { margin-left: auto; color: var(--dim); font: 700 12px/1.2 "JetBrains Mono", monospace; text-align: right; }
.stage { position: relative; flex: 1 1 auto; min-height: 260px; max-height: 58vh; border-radius: 14px; overflow: hidden; background: #000; }
.stage video, .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage video { object-fit: contain; }
.stage canvas { touch-action: none; cursor: crosshair; }
.play-old { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; border: 0; background: rgba(16, 17, 22, .7); color: var(--lime); font-size: 26px; cursor: pointer; pointer-events: auto; }
.seek { -webkit-appearance: none; appearance: none; height: 28px; background: transparent; margin: 0; }
.seek::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: var(--card); }
.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--lime); }
.seek::-moz-range-track { height: 6px; border-radius: 6px; background: var(--card); }
.seek::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--lime); }
.tools { display: grid; gap: 8px; }
.chips2 { display: flex; flex-wrap: wrap; gap: 6px; }
.chips2 button { border: 1.5px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 12px; font: 700 14px/1 Onest, sans-serif; cursor: pointer; color: var(--dim); }
.chips2 button[aria-pressed="true"] { color: var(--text); border-color: var(--lime); }
.chips2.pal button { --c: var(--lime); }
.chips2.pal button::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 6px; vertical-align: 1px; }
.chips2.pal button[aria-pressed="true"] { border-color: var(--c); color: var(--text); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 40%, transparent); }
.chips2 button:disabled { opacity: .4; cursor: default; }
.tools .hint { margin: 0; color: var(--dim); font-size: 13px; }
.row2 { display: flex; align-items: center; gap: 10px; }
.row2 > span { color: var(--dim); font-size: 14px; }
.row2 .seg { flex: 1; grid-template-columns: repeat(2, 1fr); }
.actions.bottom { margin-top: 4px; }
.btn:disabled { opacity: .5; cursor: default; }

/* Готовый ролик */
#done { gap: 14px; }
#done > * { width: 100%; max-width: 560px; margin-left: auto; margin-right: auto; }
#done .top h1 { font-size: 22px; }
#result { max-height: 60vh; border-radius: 14px; background: #000; }
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translateX(-50%); z-index: 9; background: var(--card); border: 1px solid var(--line); color: var(--text); padding: 10px 14px; border-radius: 12px; font-size: 14px; max-width: calc(100vw - 32px); }

/* Инструменты (21.11): одна строка с прокруткой, под ней — настройки выбранного */
.chips2.strip { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips2.strip::-webkit-scrollbar { display: none; }
.chips2.strip button { flex: 0 0 auto; }
.panel { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.panel .seg.st3 { grid-template-columns: repeat(3, 1fr); }
.rng { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 14px; }
.rng input { flex: 1; accent-color: var(--lime); min-width: 0; }
.rng b { min-width: 44px; text-align: right; color: var(--text); font: 700 13px/1 "JetBrains Mono", monospace; }
.drrow { display: flex; gap: 10px; align-items: center; }
.drrow .pal { flex: 1; }
.cols { display: flex; gap: 6px; }
.cols button { width: 30px; height: 30px; border-radius: 50%; border: 3px solid transparent; background: var(--c); cursor: pointer; padding: 0; box-shadow: inset 0 0 0 2px var(--card); }
.cols button[aria-pressed="true"] { border-color: var(--text); }
.stage.mir video { transform: scaleX(-1); }
.panel .seg { background: var(--bg, #101116); }
.chips2.pal button.undo::before { display: none; }

/* Плеер (21.11) */
.pl { display: flex; align-items: center; gap: 8px; margin-top: -4px; }
.pl button { width: 44px; height: 40px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; display: grid; place-items: center; padding: 0; }
.pl button svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.pl .pp { width: 56px; }
.pl .tc { margin-left: auto; color: var(--dim); font: 700 13px/1 "JetBrains Mono", monospace; }
.seg.two { grid-template-columns: repeat(2, 1fr); }
