/* Demo do editor: réplica visual do editor do Massframe (public/editor.css), com as mesmas cores,
   fonte, medidas e componentes. Tudo fica dentro de .cf para não vazar para a página.
   No desktop a janela é desenhada em 1400×880 e escalada para caber; em telas estreitas vira coluna. */

.cf-fit { position: relative; width: 100%; overflow: hidden; border-radius: 14px; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(244, 241, 233, .12); }

.cf {
  --bg: #111211; --bg-2: #0e0f0e; --panel: #171817; --panel-2: #1c1d1c; --raise: #252625; --raise-2: #2d2e2d;
  --line: rgba(244, 241, 233, .1); --line-2: rgba(244, 241, 233, .18);
  --text: #f2efe7; --text-2: rgba(242, 239, 231, .76); --muted: rgba(242, 239, 231, .54);
  --accent: #f4ff71; --accent-hover: #f8ffa3; --accent-ink: #1f2200; --accent-fg: #f4ff71;
  --ok: #8ee0a0; --warn: #f2c66b; --err: #ff7a6b;
  --r-control: 8px; --r-surface: 12px;
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --k-scene: #a8ad40; --k-text: #ffd166; --k-audio: #7fe0c6; --k-media: #c9a7ff; --k-canvas: #9ad7ff; --k-seg: #f2a65a;
  --thw: 190px; --lh: 38px;
  width: 1400px; height: 880px; transform-origin: 0 0;
  display: flex; flex-direction: column; background: var(--bg); color: var(--text);
  font: 14px/1.45 var(--font); user-select: none; text-align: left;
}
.cf *, .cf *::before, .cf *::after { box-sizing: border-box; }
.cf button { font-family: var(--font); color: inherit; }
.cf svg { display: inline-block; flex: none; }

/* barra superior */
.cf .menu-bar { height: 54px; flex: none; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 0 16px; background: color-mix(in srgb, var(--bg-2) 92%, transparent); border-bottom: 1px solid var(--line); }
.cf .mb-left, .cf .mb-right { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cf .mb-right { justify-content: flex-end; gap: 8px; }
.cf .sb-toggle { width: 34px; height: 34px; display: grid; place-items: center; color: var(--text-2); border-radius: var(--r-control); }
.cf .mb-logo { display: inline-flex; align-items: center; gap: 9px; margin: 0 8px 0 2px; color: var(--text); font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.cf .logo-mark { width: 26px; height: 26px; border-radius: 6px; background: var(--accent); display: grid; place-items: center; overflow: hidden; }
.cf .logo-mark i { width: 2.5px; height: 17px; background: var(--accent-ink); border-radius: 2px; transform: rotate(28deg); display: block; }
.cf .menus { display: flex; gap: 2px; }
.cf .mbtn { height: 32px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: var(--r-control); color: var(--text-2); font-size: 14px; }
.cf .save-state { font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 0 6px; white-space: nowrap; }
.cf .save-state.saving::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--accent-fg); vertical-align: 1px; }
.cf .claude-btn { height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 0 16px; border-radius: var(--r-control); border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 600 14px var(--font); }
.cf .claude-btn svg { color: #e07a5f; }
.cf .render-action { height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; border-radius: var(--r-control); background: var(--accent); color: var(--accent-ink); font: 600 14px var(--font); transition: background .2s; }
.cf .render-action.busy { background: var(--raise-2); }
.cf .render-action.busy::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); border-top-color: var(--accent-fg); animation: cf-spin .8s linear infinite; }
.cf .render-action.busy svg { display: none; }
.cf .avatar { width: 32px; height: 32px; border-radius: var(--r-control); background: var(--raise-2); color: var(--text); font: 600 14px var(--font); display: grid; place-items: center; }

/* corpo */
.cf .work { flex: 1; min-height: 0; display: flex; background: var(--bg); }
.cf .editor-body { flex: 1; min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) 10px 420px; padding: 10px; }
.cf .top-row { min-height: 0; display: grid; grid-template-columns: 300px 10px minmax(0, 1fr) 10px 250px; }
.cf .panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-surface); min-width: 0; min-height: 0; overflow: hidden; }

/* esquerda: trilho + Etapas */
.cf .left-panel { display: grid; grid-template-columns: 64px minmax(0, 1fr); }
.cf .left-nav { background: var(--bg-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 10px; }
.cf .rail-btn { width: 52px; padding: 8px 0 7px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); border-radius: var(--r-control); }
.cf .rail-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cf .rail-btn span { font-size: 11px; font-weight: 600; }
.cf .rail-btn.active { color: var(--text); background: var(--raise-2); box-shadow: inset 2px 0 0 var(--accent-fg); }
.cf .left-content { display: flex; flex-direction: column; min-height: 0; }
.cf .lc-head { padding: 14px 16px 10px; display: flex; flex-direction: column; gap: 1px; border-bottom: 1px solid var(--line); }
.cf .lc-head small { font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.cf .lc-head b { font-size: 18px; font-weight: 600; letter-spacing: -.4px; }
.cf .lc-body { position: relative; flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 6px; scrollbar-width: thin; scrollbar-color: var(--raise-2) transparent; }
.cf .muted { color: var(--muted); font-size: 13px; margin: 2px 4px 6px; line-height: 1.5; }
.cf .stage { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-surface); transition: border-color .3s; }
.cf .stage > .st-sum { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; }
.cf .stage-n { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--font); background: var(--raise); color: var(--muted); }
.cf .stage.done .stage-n { background: color-mix(in srgb, var(--accent) 22%, var(--raise)); color: var(--accent-fg); }
.cf .stage.run { border-color: var(--accent-fg); }
.cf .stage.run .stage-n { background: transparent; border: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); border-top-color: var(--accent-fg); color: transparent; animation: cf-spin .8s linear infinite; }
.cf .stage-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cf .stage-t b { font-size: 13.5px; font-weight: 600; }
.cf .stage-t small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf .stage.todo .stage-t b { color: var(--text-2); }
.cf .stage-go { width: 26px; height: 26px; flex: none; border-radius: var(--r-control); border: 1px solid var(--line); background: var(--bg); color: var(--text-2); font-size: 13px; display: grid; place-items: center; }
.cf .stage-body { display: flex; flex-direction: column; gap: 2px; padding: 0 8px 10px; }
.cf .prow { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: var(--r-control); color: var(--text-2); border: 1px solid transparent; animation: cf-in .3s ease; }
.cf .pname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.cf .ptime { color: var(--muted); font: 11.5px var(--mono); }
.cf .chipk { width: 24px; height: 24px; flex: none; border-radius: 8px; display: grid; place-items: center; font-size: 11.5px; font-weight: 600; }
.cf .k-seg { background: var(--k-seg); color: #1b1300; }

/* prévia */
.cf .preview-panel { display: flex; }
.cf .preview-wrap { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; padding: 16px; min-width: 0; background: radial-gradient(70% 70% at 50% 40%, #232424 0%, var(--panel) 70%); }
.cf .pv-screen { position: relative; width: 100%; max-width: 560px; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r-control); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px var(--line); container-type: inline-size; }
.cf .fmt-pill { position: absolute; top: 12px; right: 12px; display: flex; gap: 2px; padding: 3px; background: color-mix(in srgb, var(--bg) 80%, transparent); border: 1px solid var(--line); border-radius: var(--r-control); }
.cf .fmt-pill span { height: 26px; padding: 0 11px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--muted); border-radius: 5px; }
.cf .fmt-pill span.on { background: var(--raise-2); color: var(--text); }
.cf .fmt-pill i { display: inline-block; border: 1.5px solid currentColor; border-radius: 2px; }
.cf .pv-empty, .cf .pv-wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 8%; }
.cf .pv-empty { color: var(--muted); font-size: 13px; }
.cf .pv-wait { color: var(--text-2); }
.cf .pv-wait small { font: 11px var(--mono); color: var(--muted); letter-spacing: .04em; }
.cf .pv-wait p { font-size: clamp(12px, 3.4cqi, 19px); font-weight: 600; line-height: 1.35; max-width: 90%; }
.cf [hidden] { display: none !important; }
.cf .scene { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .5s ease; }
.cf .scene.on { opacity: 1; }
.cf .pv-screen.kb .scene.on { animation: cf-kb 6s ease-in-out infinite alternate; }
@keyframes cf-kb { from { transform: scale(1); } to { transform: scale(1.08) translate(-1%, -1%); } }
.cf .scene .deck { transform-origin: 320px 218px; animation: cf-twist 2.4s ease-in-out infinite; }
@keyframes cf-twist { 0%, 100% { transform: rotate(-.9deg); } 50% { transform: rotate(.9deg); } }
.cf .scene .pin circle:first-child { transform-origin: 334px 192px; animation: cf-pulse 1.6s ease-out infinite; }
@keyframes cf-pulse { from { transform: scale(.4); opacity: .5; } to { transform: scale(1.8); opacity: 0; } }
.cf .pv-subs { position: absolute; left: 0; right: 0; bottom: 7%; text-align: center; padding: 0 6%; }
.cf .pv-subs p { display: table; margin: 0 auto; max-width: 100%; padding: .12em .5em; background: rgba(0, 0, 0, .62); border-radius: 4px; line-height: 1.25; transition: font-size .35s ease; }
.cf .sub-a { font-size: clamp(10px, 3.4cqi, 20px); font-weight: 700; color: #fff; }
.cf .sub-b { font-size: clamp(9px, 2.7cqi, 15px); color: var(--k-text); margin-top: .3em !important; }
.cf .pv-screen.big .sub-a { font-size: clamp(13px, 4.6cqi, 27px); }
.cf .pv-screen.big .sub-b { font-size: clamp(11px, 3.6cqi, 21px); }
.cf .pv-insert { position: absolute; left: 5%; top: 8%; display: flex; flex-direction: column; background: rgba(14, 15, 14, .85); border-left: 4px solid var(--k-text); padding: .5em .9em; color: #fff; font-size: clamp(9px, 2.6cqi, 15px); animation: cf-slide .45s ease; }
.cf .pv-insert span { font: .78em var(--mono); color: var(--k-text); }
@keyframes cf-slide { from { transform: translateX(-20px); opacity: 0; } }

/* inspetor */
.cf .right-panel { display: flex; }
.cf .panel-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.cf .empty-insp { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 24px 8px 10px; }
.cf .ei-ico { width: 56px; height: 56px; border-radius: var(--r-surface); display: grid; place-items: center; font-size: 22px; color: var(--accent-fg); background: var(--panel-2); border: 1px solid var(--line); }
.cf .empty-insp b { font-size: 15px; font-weight: 600; }
.cf .empty-insp p { margin: 0; color: var(--muted); font-size: 13px; max-width: 230px; }
.cf .kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.cf .kv b { color: var(--text-2); text-align: right; font: 12px var(--mono); }

/* timeline */
.cf .timeline-panel { display: flex; flex-direction: column; }
.cf .tl-toolbar { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.cf .tl-toolbar .spacer { flex: 1; }
.cf .tb-btn { height: 32px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border-radius: var(--r-control); background: var(--raise); border: 1px solid var(--line); color: var(--text); font: 600 13px var(--font); white-space: nowrap; }
.cf .tb-btn.icon { width: 32px; padding: 0; }
.cf .tb-btn.on { border-color: var(--accent-fg); }
.cf .tb-btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.cf .tb-btn.play { min-width: 48px; }
.cf .tb-btn.dim { opacity: .4; }
.cf .transport { display: flex; align-items: center; gap: 8px; }
.cf .timecode { font: 13px var(--mono); color: var(--text-2); min-width: 190px; text-align: center; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-control); padding: 5px 12px; }
.cf .zoom { width: 130px; height: 4px; border-radius: 4px; background: var(--raise-2); position: relative; }
.cf .zoom::after { content: ""; position: absolute; left: 22%; top: -5px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-fg); }
.cf .zoom::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 24%; border-radius: 4px; background: var(--accent-fg); }
.cf .tl-main { position: relative; flex: 1; min-height: 0; display: flex; }
.cf .track-headers { width: var(--thw); flex: none; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--panel); z-index: 2; }
.cf .ruler-spacer { height: 28px; flex: none; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.cf .tgroup, .cf .lane-group { height: 22px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.cf .tgroup { display: flex; align-items: center; padding: 0 10px; font: 700 10.5px var(--font); letter-spacing: .08em; color: var(--muted); }
.cf .thead { height: var(--lh); display: flex; align-items: center; gap: 6px; padding: 0 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.cf .thead.vhead { height: 48px; background: color-mix(in srgb, var(--k-seg) 7%, var(--panel)); }
.cf .thead.words { height: 34px; }
.cf .tname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 600; }
.cf .tcount { font: 11px var(--mono); color: var(--muted); background: var(--raise); border-radius: 6px; padding: 1px 7px; }
.cf .tbtns { display: flex; gap: 3px; }
.cf .tbtn { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--raise); color: var(--text-2); font: 600 10px var(--font); }
.cf .tbtn svg { width: 11px; height: 11px; }
.cf .tbtn.gold svg { color: var(--warn); }
.cf .tl-scroll { position: relative; flex: 1; overflow: hidden; min-width: 0; }
.cf .ruler { position: relative; height: 28px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.cf .ruler .tick { position: absolute; top: 20px; width: 1px; height: 8px; background: var(--line-2); }
.cf .ruler .tick.minor { top: 24px; height: 4px; background: var(--line); }
.cf .ruler .tick span { position: absolute; top: -16px; left: 3px; font: 11px var(--mono); color: var(--muted); white-space: nowrap; }
.cf .lane { position: relative; height: var(--lh); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 60%, var(--panel)); }
.cf .lane.alt { background: var(--panel); }
.cf .lane.vlane { height: 48px; background: color-mix(in srgb, var(--k-seg) 5%, var(--bg)); }
.cf .lane.words { height: 34px; }
.cf .lane.flash { animation: cf-flash 1.6s ease-out; }
@keyframes cf-flash { 0%, 60% { box-shadow: inset 0 0 0 2px var(--accent-fg); } 100% { box-shadow: inset 0 0 0 0 transparent; } }
.cf .clip { position: absolute; top: 5px; bottom: 5px; border-radius: var(--r-control); overflow: hidden; color: #121313; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); transform-origin: left center; animation: cf-pop .35s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes cf-pop { from { transform: scaleX(.3); opacity: 0; } }
.cf .clip .lbl { position: absolute; left: 10px; right: 10px; top: 50%; transform: translateY(-50%); font: 600 12px var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf .clip.k-audio .lbl { top: 30%; }
.cf .clip .wave { position: absolute; left: 0; right: 0; bottom: 4px; height: 45%; opacity: .45; background: repeating-linear-gradient(90deg, #121313 0 1px, transparent 1px 3px); -webkit-mask-image: radial-gradient(ellipse 60% 90% at 50% 100%, #000 40%, rgba(0, 0, 0, .4) 70%, transparent 100%); mask-image: radial-gradient(ellipse 60% 90% at 50% 100%, #000 40%, rgba(0, 0, 0, .4) 70%, transparent 100%); }
.cf .clip.seg { background: color-mix(in srgb, var(--k-seg) 85%, #000); color: #1b1300; }
.cf .clip.seg .lbl b { font-weight: 800; margin-right: 4px; }
.cf .k-text { background: var(--k-text); } .cf .k-audio { background: var(--k-audio); } .cf .k-media { background: var(--k-media); } .cf .k-canvas { background: var(--k-canvas); }
.cf .lane.words .word { position: absolute; top: 5px; height: 24px; padding: 0 3px; border-radius: 5px; overflow: hidden; background: color-mix(in srgb, var(--k-text) 22%, var(--panel-2)); border: 1px solid color-mix(in srgb, var(--k-text) 45%, transparent); color: var(--text); font: 600 10px/22px var(--font); white-space: nowrap; animation: cf-in .25s ease; }
.cf .playhead { position: absolute; top: 0; bottom: 0; left: var(--thw); width: 2px; background: var(--accent); z-index: 5; pointer-events: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.cf .playhead::before { content: ""; position: absolute; top: 0; left: -6px; width: 14px; height: 14px; border-radius: 4px 4px 50% 50%; background: var(--accent); }

/* coluna do Claude */
.cf .claude-col { width: 320px; flex: none; display: flex; flex-direction: column; gap: 10px; min-height: 0; margin: 10px 10px 10px 0; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-surface); }
.cf .cc-head { display: flex; align-items: center; gap: 8px; }
.cf .cc-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; letter-spacing: -.2px; margin-right: auto; }
.cf .cc-star { color: #e07a5f; font-size: 18px; line-height: 1; }
.cf .cc-tabs { display: inline-flex; gap: 2px; }
.cf .cc-tabs span { height: 28px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: var(--r-control); color: var(--muted); font: 600 12.5px var(--font); }
.cf .cc-tabs span.on { background: var(--raise-2); color: var(--text); }
.cf .cc-new { width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--r-control); color: var(--muted); font-size: 18px; }
.cf .cc-log { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 2px; scrollbar-width: thin; scrollbar-color: var(--raise-2) transparent; }
.cf .cc-log > :first-child { margin-top: auto; }
.cf .cc-empty { display: flex; flex-direction: column; gap: 6px; padding: 8px 4px; }
.cf .cc-empty b { font-size: 14.5px; font-weight: 600; }
.cf .cc-empty span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.cf .cc-user { align-self: flex-end; max-width: 88%; padding: 8px 12px; border-radius: var(--r-surface); background: var(--raise-2); color: var(--text); font-size: 13.5px; line-height: 1.5; animation: cf-in .3s ease; }
.cf .cc-card { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: var(--r-surface); background: var(--panel-2); border: 1px solid var(--line); animation: cf-in .3s ease; }
.cf .cc-card-h { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.cf .cc-card-h b { flex: 1; font-size: 14px; font-weight: 600; min-width: 0; line-height: 1.35; }
.cf .cc-card-h small { margin-left: auto; flex: none; color: var(--muted); font: 11.5px var(--mono); padding-top: 2px; }
.cf .cc-card p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.cf .cc-ico { display: grid; place-items: center; flex: none; color: var(--accent-fg); margin-top: 2px; }
.cf .cc-spin { width: 13px; height: 13px; flex: none; margin-top: 3px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); border-top-color: var(--accent-fg); animation: cf-spin .8s linear infinite; }
.cf .cc-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.cf .cc-chip { max-width: 100%; text-align: left; padding: 6px 10px; border-radius: var(--r-control); background: var(--panel-2); border: 1px solid var(--line); color: var(--text-2); font: 12.5px var(--font); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: border-color .15s, color .15s; }
.cf .cc-chip:hover:not(:disabled) { border-color: var(--line-2); color: var(--text); }
.cf .cc-chip:disabled { opacity: .4; cursor: default; }
.cf .cc-compose { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: var(--r-surface); background: var(--bg); border: 1px solid var(--line); }
.cf .cc-compose:focus-within { border-color: var(--accent-fg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.cf .cc-compose textarea { width: 100%; border: 0; background: none; color: var(--text); font: 13.5px/1.5 var(--font); resize: none; padding: 0; outline: none; user-select: text; }
.cf .cc-compose textarea::placeholder { color: var(--muted); }
.cf .cc-ctx { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf .cc-foot { display: flex; align-items: center; gap: 8px; }
.cf .cc-scope { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-control); background: var(--bg); border: 1px solid var(--line); }
.cf .cc-scope span { height: 26px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 6px; color: var(--muted); font: 600 12px var(--font); white-space: nowrap; }
.cf .cc-scope span.on { background: var(--raise-2); color: var(--text); }
.cf .cc-apply { margin-left: auto; height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: var(--r-control); border: 1px solid var(--line-2); background: var(--raise); color: var(--text); font: 600 13px var(--font); cursor: pointer; white-space: nowrap; }
.cf .cc-apply:hover:not(:disabled) { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.cf .cc-apply:disabled { opacity: .45; cursor: not-allowed; }

@keyframes cf-spin { to { transform: rotate(360deg); } }
@keyframes cf-in { from { transform: translateY(6px); opacity: 0; } }

/* telas estreitas: sem escala, em coluna (só prévia, timeline e Claude) */
.cf.stack { width: 100%; height: auto; transform: none; --thw: 104px; --lh: 36px; }
.cf.stack .menu-bar { height: 48px; padding: 0 10px; }
.cf.stack .menus, .cf.stack .sb-toggle, .cf.stack .claude-btn, .cf.stack .save-state, .cf.stack .avatar { display: none; }
.cf.stack .render-action { height: 32px; padding: 0 12px; font-size: 13px; }
.cf.stack .work { flex-direction: column; }
.cf.stack .editor-body { grid-template-rows: auto 8px auto; padding: 8px; }
.cf.stack .top-row { grid-template-columns: 1fr; }
.cf.stack .left-panel, .cf.stack .right-panel, .cf.stack .splitter-v, .cf.stack .fmt-pill { display: none; }
.cf.stack .preview-wrap { padding: 10px; }
.cf.stack .tl-toolbar { padding: 6px 8px; gap: 6px; }
.cf.stack .tl-toolbar > .tb-btn, .cf.stack .tl-toolbar .zoom, .cf.stack .tl-toolbar .spacer:last-of-type ~ * { display: none; }
.cf.stack .timecode { min-width: 0; font-size: 11.5px; padding: 5px 8px; }
.cf.stack .thead { padding: 0 8px; }
.cf.stack .thead.vhead { height: 40px; }
.cf.stack .lane.vlane { height: 40px; }
.cf.stack .tname { font-size: 11.5px; }
.cf.stack .tbtns, .cf.stack .tcount { display: none; }
.cf.stack .clip .lbl { left: 6px; right: 4px; font-size: 10.5px; }
.cf.stack .ruler .tick:nth-child(8n + 5) span { display: none; }
.cf.stack .claude-col { width: auto; margin: 0 8px 8px; height: 430px; }
.cf.stack .cc-tabs { display: none; }
