/* Cinematic Engine V2 — trzy pracownie, trzy różne charaktery:
   Kamera = pulpit operatora (grafit, tally, monitor), Kompozytor = studio motion designu (neutralna szarość, fiolet zaznaczeń,
   wielościeżkowa oś czasu), Mikser = konsola sprzętowa (ciepła czerń, kremowe opisy, diody LED, pionowe suwaki). */
.cx { --r: 10px; margin-top: .5rem; }
.cx .mono, .cx output { font-family: 'IBM Plex Mono', monospace; }
.cx button:focus-visible, .cx input:focus-visible, .cx select:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ====================== 1. KONSOLA KAMERY ====================== */
.cx-cam { --k0: #07080a; --k1: #0f1114; --k2: #171a1f; --kl: #2a2f37; --kt: #d6dbe3; --km: #7c8594; --amb: #ffb020; --rec: #ff3b30; --v2: #5ad1ff;
  background: var(--k0); color: var(--kt); border: 1px solid #000; border-radius: 14px; padding: 0; overflow: hidden; box-shadow: inset 0 1px 0 #1f2329; }
.cxc-bar { display: flex; align-items: center; gap: 1rem; padding: .7rem 1rem; background: linear-gradient(#14171b, #0c0e11); border-bottom: 1px solid #000; flex-wrap: wrap; }
.cxc-id { display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 14rem; }
.cxc-id b { font: 700 .95rem/1 'Sora', sans-serif; letter-spacing: .02em; }
.cxc-id small { color: var(--km); font: 500 .78rem 'IBM Plex Mono', monospace; }
.cxc-rec { width: .7rem; height: .7rem; border-radius: 50%; background: #3a1210; box-shadow: inset 0 0 0 1px #000; }
.cx-cam[data-live="v2"] .cxc-rec { background: var(--rec); box-shadow: 0 0 10px var(--rec); }
.cxc-tally { font: 600 .78rem 'IBM Plex Mono', monospace; color: var(--km); padding: .35rem .7rem; border: 1px solid var(--kl); border-radius: 6px; background: #0a0b0d; }
.cxc-tally b { color: var(--amb); }
.cx-cam[data-live="v2"] .cxc-tally b { color: var(--v2); }
.cxc-mode { display: flex; background: #050607; border: 1px solid var(--kl); border-radius: 8px; padding: 3px; }
.cxc-mode button { background: none; border: 0; color: var(--km); font: 700 .8rem 'Sora', sans-serif; padding: .4rem .9rem; border-radius: 6px; cursor: pointer; }
.cxc-mode button.on { background: var(--k2); color: #fff; box-shadow: inset 0 -2px 0 var(--amb); }
.cxc-mode button[data-mode="v2"].on { box-shadow: inset 0 -2px 0 var(--v2); }
.cxc-mode button:disabled { opacity: .35; cursor: not-allowed; }
.cxc-grid { display: grid; grid-template-columns: 11rem minmax(0, 1fr) 19rem; min-height: 34rem; }
.cxc-reel { background: var(--k1); border-right: 1px solid #000; overflow: auto; max-height: 44rem; padding: .5rem; }
.cxc-reelit { display: flex; gap: .5rem; width: 100%; background: none; border: 1px solid transparent; border-radius: 8px; padding: .35rem; color: var(--kt); text-align: left; cursor: pointer; margin-bottom: .3rem; }
.cxc-reelit img { width: 2.6rem; aspect-ratio: 9/16; object-fit: cover; border-radius: 3px; background: #000; flex: none; }
.cxc-reelit span { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.cxc-reelit b { font-size: .72rem; }
.cxc-reelit small { color: var(--km); font-size: .7rem; line-height: 1.2; }
.cxc-reelit.on { border-color: var(--amb); background: #1a1508; }
.cxc-led { font: 700 .62rem 'IBM Plex Mono', monospace; font-style: normal; color: #000; background: var(--km); border-radius: 3px; padding: 0 .3rem; align-self: flex-start; }
.cxc-led.v2 { background: var(--v2); }
.cxc-monitor { padding: .8rem 1rem; display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.cxc-abbar { display: flex; gap: .3rem; flex-wrap: wrap; align-items: center; }
.cxc-abbar button { background: var(--k2); color: var(--km); border: 1px solid var(--kl); border-radius: 6px; font: 600 .75rem 'IBM Plex Mono', monospace; padding: .3rem .6rem; cursor: pointer; }
.cxc-abbar button.on { color: #fff; border-color: var(--amb); }
.cxc-abbar button:disabled { opacity: .35; }
.cxc-sep { width: 1px; height: 1.2rem; background: var(--kl); margin: 0 .3rem; }
.cxc-screens { display: flex; gap: .8rem; justify-content: center; }
.cxc-scr { margin: 0; position: relative; background: #000; border: 2px solid #1d2026; border-radius: 6px; padding: 6px; }
.cxc-scr.exp { border-color: var(--amb); box-shadow: 0 0 0 1px #000, 0 0 18px #ffb02033; }
.cxc-scr img { display: block; width: 100%; aspect-ratio: 9/16; background: #050607; border-radius: 2px; }
.cxc-scr.big { width: min(25rem, 100%); }
.cxc-screens.split .cxc-scr { width: min(19rem, 48%); }
.cxc-scr figcaption { font: 600 .72rem 'IBM Plex Mono', monospace; color: var(--km); padding-top: .4rem; letter-spacing: .06em; }
.cxc-scr figcaption em { color: var(--amb); font-style: normal; }
.cxc-nov2 { position: absolute; inset: 40% 1rem auto; text-align: center; color: var(--km); font: .8rem 'IBM Plex Mono', monospace; }
.cxc-focus { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 2px solid var(--v2); border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 1px #000; }
.cxc-focus::before, .cxc-focus::after { content: ''; position: absolute; background: var(--v2); }
.cxc-focus::before { left: 50%; top: -8px; bottom: -8px; width: 1px; } .cxc-focus::after { top: 50%; left: -8px; right: -8px; height: 1px; }
.cxc-scr.big img { cursor: crosshair; }
.cxc-transport { display: flex; align-items: center; gap: .6rem; background: var(--k1); border: 1px solid #000; border-radius: 8px; padding: .4rem .6rem; }
.cxc-transport input[type=range] { flex: 1; accent-color: var(--amb); }
.cxc-play { width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 1px solid var(--kl); background: var(--k2); color: var(--amb); cursor: pointer; display: grid; place-items: center; }
.cxc-play.on { background: var(--amb); color: #000; }
.cxc-time { color: var(--amb); font-size: .85rem; min-width: 4.5rem; }
.cxc-notes { margin: 0; padding-left: 1.1rem; color: var(--km); font-size: .8rem; }
.cxc-notes li { margin: .15rem 0; }
.cxc-video { width: min(18rem, 100%); border-radius: 6px; background: #000; display: block; margin: 0 auto; }
.cxc-hint { color: var(--km); font-size: .76rem; margin: .3rem 0; }
.cxc-err { color: #ff8a80; font-size: .8rem; }
.cxc-params { background: var(--k1); border-left: 1px solid #000; overflow: auto; max-height: 44rem; padding: .6rem .8rem; }
.cxc-sec { border-bottom: 1px solid #000; padding: .5rem 0; }
.cxc-sec summary { cursor: pointer; font: 700 .78rem 'Sora', sans-serif; text-transform: none; color: #fff; display: flex; justify-content: space-between; }
.cxc-sec summary small { color: var(--km); font: 500 .72rem 'IBM Plex Mono', monospace; }
.cxc-presets { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; margin-top: .5rem; }
.cxc-pre { text-align: left; background: var(--k2); border: 1px solid var(--kl); border-radius: 7px; padding: .45rem .5rem; color: var(--kt); cursor: pointer; display: flex; flex-direction: column; gap: .2rem; }
.cxc-pre b { font: 700 .74rem 'Sora', sans-serif; }
.cxc-pre small { color: var(--km); font-size: .66rem; line-height: 1.25; }
.cxc-pre.on { border-color: var(--v2); background: #0b1a22; }
.cxc-pre:hover:not(:disabled) { border-color: var(--amb); }
.cxc-fx { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; margin-top: .4rem; }
.cxc-sw { display: flex; gap: .4rem; align-items: center; font-size: .78rem; background: #0a0b0d; border: 1px solid var(--kl); border-radius: 6px; padding: .3rem .45rem; cursor: pointer; }
.cxc-sw input { accent-color: var(--v2); }
.cxc-sl { display: grid; grid-template-columns: 1fr 4.6rem; gap: .1rem .4rem; align-items: center; margin: .45rem 0; font-size: .74rem; color: var(--km); }
.cxc-sl span { grid-column: 1 / -1; }
.cxc-sl input { accent-color: var(--amb); width: 100%; }
.cxc-sl output { color: var(--amb); font-size: .74rem; text-align: right; }
.cxc-sel { display: flex; flex-direction: column; gap: .2rem; font-size: .74rem; color: var(--km); margin: .45rem 0; }
.cxc-sel select, .cxc-sel input { background: #0a0b0d; color: var(--kt); border: 1px solid var(--kl); border-radius: 6px; padding: .3rem; }
.cxc-danger { display: flex; flex-direction: column; gap: .3rem; padding-top: .7rem; }
.cxc-empty { padding: .5rem 0; font-size: .82rem; color: var(--km); }
.cxc-empty b { color: #fff; font: 700 .9rem 'Sora', sans-serif; }
.cxc-or { margin: .8rem 0 0; font-size: .74rem; }
.cxc-keys { border-top: 1px solid #000; background: #0b0c0e; padding: .6rem 1rem 1rem; }
.cxc-keys > header { display: flex; gap: .8rem; align-items: baseline; flex-wrap: wrap; margin-bottom: .5rem; }
.cxc-keys > header b { font: 700 .85rem 'Sora', sans-serif; }
.cxc-keys > header small { color: var(--km); font-size: .72rem; flex: 1; }
.cxc-lane { display: grid; grid-template-columns: 11rem 1fr; align-items: center; position: relative; height: 2.4rem; border-bottom: 1px solid #15181c; }
.cxc-ll { font: 500 .72rem 'IBM Plex Mono', monospace; color: #4b525e; }
.cxc-lane.used .cxc-ll { color: var(--kt); }
.cxc-lane svg { width: 100%; height: 2.4rem; cursor: copy; }
.cxc-lane .bgr { fill: #0e1013; }
.cxc-lane .crv { fill: none; stroke: #3c4450; stroke-width: 1.5; }
.cxc-lane.used .crv { stroke: var(--v2); stroke-width: 2; }
.cxc-lane .ph { stroke: var(--amb); stroke-width: 1; }
.cxc-dias { position: absolute; left: 11rem; right: 0; top: 0; bottom: 0; pointer-events: none; }
.cxc-dia { pointer-events: auto; position: absolute; top: 50%; width: 13px; height: 13px; margin: -7px 0 0 -7px; transform: rotate(45deg); background: var(--k0); border: 2px solid var(--v2); cursor: ew-resize; padding: 0; }
.cxc-dia.on { background: var(--amb); border-color: var(--amb); }
.cxc-dia.late { border-color: var(--rec); }
.cxc-kedit { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: end; padding-top: .7rem; font-size: .72rem; color: var(--km); }
.cxc-kedit label { display: flex; flex-direction: column; gap: .2rem; }
.cxc-kedit label.off { opacity: .55; }
.cxc-kedit input, .cxc-kedit select { width: 6.2rem; background: #0a0b0d; color: var(--kt); border: 1px solid var(--kl); border-radius: 5px; padding: .25rem .35rem; font: .78rem 'IBM Plex Mono', monospace; }
.cxc-kedit select { width: 12rem; }

/* ====================== 2. KOMPOZYTOR ====================== */
.cx-comp { --c0: #1b1c20; --c1: #232429; --c2: #2c2e34; --cl: #3a3d45; --ct: #e9eaee; --cm: #9a9ca6; --sel: #8b7bff;
  background: var(--c0); color: var(--ct); border-radius: 4px; border: 1px solid #111; }
.cxm-bar { display: flex; align-items: center; gap: .8rem; padding: .5rem .8rem; background: var(--c1); border-bottom: 1px solid #111; flex-wrap: wrap; }
.cxm-bar > b { font: 800 .95rem 'Sora', sans-serif; }
.cxm-sub { color: var(--cm); font-size: .78rem; flex: 1; }
.cxm-shots { display: flex; gap: 2px; background: #111; padding: 2px; border-radius: 4px; flex-wrap: wrap; }
.cxm-shots button { background: var(--c2); color: var(--cm); border: 0; font: 600 .75rem 'IBM Plex Mono', monospace; padding: .3rem .5rem; cursor: pointer; border-radius: 2px; }
.cxm-shots button small { color: var(--sel); }
.cxm-shots button.on { background: var(--sel); color: #fff; }
.cxm-shots button.on small { color: #fff; }
.cxm-add { position: relative; }
.cxm-add > div { position: absolute; right: 0; top: 2.3rem; z-index: 30; background: var(--c1); border: 1px solid var(--cl); border-radius: 6px; padding: .3rem; display: flex; flex-direction: column; min-width: 17rem; box-shadow: 0 10px 30px #0008; }
.cxm-add > div button { text-align: left; background: none; border: 0; color: var(--ct); padding: .4rem .6rem; border-radius: 4px; cursor: pointer; font-size: .82rem; }
.cxm-add > div button:hover { background: var(--sel); }
.cxm-grid { display: grid; grid-template-columns: 15rem minmax(0, 1fr) 18rem; min-height: 32rem; }
.cxm-layers { background: var(--c1); border-right: 1px solid #111; padding: .6rem; overflow: auto; max-height: 46rem; }
.cxm-layers h3, .cxm-insp h3 { font: 700 .8rem 'Sora', sans-serif; margin: 0 0 .5rem; display: flex; justify-content: space-between; gap: .4rem; }
.cxm-layers h3 small, .cxm-insp h3 small { color: var(--cm); font: 500 .7rem 'IBM Plex Sans', sans-serif; }
.cxm-ll { list-style: none; margin: 0; padding: 0; }
.cxm-ll li { display: flex; flex-direction: column; border: 1px solid transparent; border-radius: 3px; margin-bottom: 2px; background: var(--c0); }
.cxm-ll li.on { border-color: var(--sel); }
.cxm-ll li.mute { opacity: .5; }
.cxm-lname { background: none; border: 0; color: var(--ct); text-align: left; padding: .35rem .45rem .15rem; cursor: pointer; font-size: .8rem; display: flex; flex-wrap: wrap; gap: .3rem; align-items: baseline; }
.cxm-lname small { color: var(--cm); width: 100%; font-size: .68rem; }
.cxm-kind { font: 600 .62rem 'IBM Plex Mono', monospace; background: #353047; color: #c8bfff; padding: 0 .3rem; border-radius: 2px; }
.cxm-lbtn { display: flex; gap: 2px; padding: 0 .4rem .35rem; }
.cxm-lbtn button { background: var(--c2); border: 0; color: var(--cm); font-size: .7rem; min-width: 1.6rem; height: 1.4rem; border-radius: 2px; cursor: pointer; }
.cxm-lbtn button[aria-pressed="true"] { background: #4a3f9a; color: #fff; }
.cxm-empty, .cxm-hint { color: var(--cm); font-size: .78rem; }
.cxm-issues h4 { font: 700 .74rem 'Sora', sans-serif; margin: .8rem 0 .3rem; }
.cxm-issues ul { margin: 0; padding-left: 1rem; font-size: .74rem; }
.cxm-issues li.bad { color: #ff8f8f; } .cxm-issues li.warn { color: #ffcf6b; } .cxm-issues li.info { color: var(--cm); }
.cxm-ok { color: #7fe0a6; font-size: .76rem; display: flex; gap: .3rem; align-items: center; }
.cxm-stage { padding: .6rem; display: flex; flex-direction: column; align-items: center; gap: .5rem;
  background: repeating-conic-gradient(#202126 0 25%, #1a1b1f 0 50%) 0 0 / 22px 22px; }
.cxm-stagebar { display: flex; gap: 1rem; font-size: .76rem; color: var(--cm); align-self: stretch; background: var(--c1); padding: .3rem .6rem; border-radius: 3px; }
.cxm-stagebar span { margin-left: auto; color: var(--sel); }
.cxm-canvas { position: relative; width: min(23rem, 100%); background: #000; box-shadow: 0 6px 24px #000a; touch-action: none; }
.cxm-canvas img { width: 100%; height: 100%; display: block; }
.cxm-box { position: absolute; border: 1px dashed #ffffff40; cursor: move; touch-action: none; }
.cxm-box.live { border: 1px solid #ffffff66; }
.cxm-box.sel { border: 1.5px solid var(--sel); box-shadow: 0 0 0 1px #0008; }
.cxm-box.mute { border-color: #ff6b6b66; }
.cxm-box.lock { cursor: default; }
.cxm-btag { position: absolute; top: -1.15rem; left: -1px; font: 600 .6rem 'IBM Plex Mono', monospace; background: #000a; color: #ddd; padding: 0 .25rem; white-space: nowrap; display: none; }
.cxm-box.sel .cxm-btag, .cxm-box:hover .cxm-btag { display: block; }
.cxm-box.sel .cxm-btag { background: var(--sel); color: #fff; }
.cxm-h { position: absolute; right: -6px; bottom: -6px; width: 11px; height: 11px; background: #fff; border: 2px solid var(--sel); cursor: nwse-resize; }
.cxm-insp { background: var(--c1); border-left: 1px solid #111; padding: .6rem; overflow: auto; max-height: 46rem; font-size: .78rem; }
.cxm-insp details { border-top: 1px solid #111; padding: .4rem 0; }
.cxm-insp summary { cursor: pointer; font: 700 .74rem 'Sora', sans-serif; color: #cfd0d6; }
.cxm-insp summary small { color: var(--cm); font: 500 .68rem 'IBM Plex Sans', sans-serif; }
.cxm-f { display: flex; flex-direction: column; gap: .15rem; margin: .35rem 0; color: var(--cm); font-size: .7rem; }
.cxm-f input, .cxm-f select, .cxm-f textarea { background: var(--c0); color: var(--ct); border: 1px solid var(--cl); border-radius: 3px; padding: .3rem .4rem; font: .8rem 'IBM Plex Sans', sans-serif; }
.cxm-f input[type=color] { padding: 0; height: 1.8rem; }
.cxm-f textarea.mono { font: .72rem 'IBM Plex Mono', monospace; }
.cxm-c { display: flex; gap: .4rem; align-items: center; margin: .35rem 0; color: var(--cm); font-size: .74rem; }
.cxm-keys { list-style: none; padding: 0; margin: .4rem 0; font-size: .68rem; }
.cxm-keys li { display: flex; justify-content: space-between; gap: .3rem; padding: .15rem 0; }
.cxm-keys button { background: none; border: 0; color: #ff9b9b; cursor: pointer; font-size: .68rem; }
.cxm-acts { display: flex; gap: .4rem; padding-top: .6rem; }
.cxm-noins b { font: 700 .85rem 'Sora', sans-serif; }
.cxm-noins p { color: var(--cm); }
.cxm-tl { background: #141518; border-top: 1px solid #000; padding: .4rem .6rem .8rem; position: relative; user-select: none; }
.cxm-tl > div { position: relative; }
.cxt-ruler { margin-left: 9rem; height: 1.3rem; position: relative; border-bottom: 1px solid var(--cl); cursor: col-resize; background: #18191d; }
.cxt-ruler span { position: absolute; font: 500 .6rem 'IBM Plex Mono', monospace; color: var(--cm); padding-left: 2px; border-left: 1px solid var(--cl); height: 100%; }
.cxt-row { display: grid; grid-template-columns: 9rem 1fr; height: 1.75rem; border-bottom: 1px solid #1f2024; }
.cxt-lab { font: 600 .68rem 'IBM Plex Sans', sans-serif; color: var(--cm); align-self: center; }
.cxt-lane { position: relative; }
.cxt-it { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; font-size: .62rem; padding: 0 .35rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: flex; align-items: center; gap: .3rem; border: 0; color: #0d0d10; }
.cxt-it small { opacity: .7; }
.cxt-it.bg { background: #4c5160; color: #e8e9ee; cursor: pointer; } .cxt-it.bg.cur { background: #6b7184; outline: 1px solid #fff; }
.cxt-it.cam { background: #3b3424; color: #f3cf86; position: absolute; } .cxt-it.cam.v2 { background: #11384a; color: #8fe0ff; }
.cxt-kd { position: absolute; top: 50%; width: 7px; height: 7px; margin: -4px 0 0 -4px; background: #8fe0ff; transform: rotate(45deg); }
.cxt-it.gfx { background: var(--sel); color: #fff; cursor: grab; padding: 0 .55rem; touch-action: none; }
.cxt-it.gfx.other { background: #463f73; color: #cfc8ff; }
.cxt-it.gfx.sel { outline: 2px solid #fff; }
.cxt-it.gfx.warn { background: repeating-linear-gradient(135deg, var(--sel) 0 6px, #b08a2a 6px 12px); }
.cxt-it.gfx.bad { background: #b3343d; }
.cxt-it.gfx.mute { opacity: .45; }
.cxt-tr { position: absolute; top: 0; bottom: 0; width: 6px; cursor: ew-resize; background: #ffffff33; }
.cxt-tr.l { left: 0; } .cxt-tr.r { right: 0; }
.cxt-it.head { background: #1f8f86; color: #eafffd; } .cxt-it.caps { background: #2b5f8c; color: #e3f2ff; }
.cxt-it.voice { background: #3f8a52; color: #eaffef; } .cxt-it.voice.est { background: repeating-linear-gradient(135deg, #2f5f3c 0 5px, #27432f 5px 10px); color: #bfe8c9; }
.cxt-it.music { background: #9b3f6b; color: #ffe9f3; } .cxt-it.music.sfx { background: #a5602a; } .cxt-it.music.mute { opacity: .4; }
.cxt-ph { position: absolute; top: 0; bottom: 0; width: 2px; background: #ff4d6d; pointer-events: none; }

/* ====================== 3. MIKSER ====================== */
.cx-mix { --m0: #15120f; --m1: #201b16; --m2: #2b241d; --ml: #3d342a; --mt: #efe6d2; --mm: #a3967f; --led: #7dff9a; --warm: #ffcf70;
  background: radial-gradient(120% 80% at 50% 0%, #241e18, var(--m0)); color: var(--mt); border-radius: 16px; border: 1px solid #000; padding: .4rem 0 1rem; }
.cxx-bar { display: flex; align-items: center; gap: .6rem; padding: .5rem 1rem; flex-wrap: wrap; }
.cxx-bar > b { font: 800 1rem 'Sora', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--warm); }
.cxx-bar > span { color: var(--mm); font: .76rem 'IBM Plex Mono', monospace; flex: 1; }
.cxx-up { cursor: pointer; }
.cxx-desk { display: flex; gap: 6px; overflow-x: auto; padding: .6rem 1rem; margin: 0 .6rem; background: repeating-linear-gradient(90deg, #1b1712 0 2px, #1e1914 2px 4px); border: 1px solid #000; border-radius: 10px; box-shadow: inset 0 2px 12px #000c; }
.cxx-strip { flex: none; width: 7.2rem; background: linear-gradient(#2a231c, #1c1813); border: 1px solid #000; border-radius: 6px; padding: .5rem .4rem; display: flex; flex-direction: column; align-items: center; gap: .35rem; box-shadow: inset 0 1px 0 #3a3128; }
.cxx-strip h4 { margin: 0; font: 700 .72rem 'Sora', sans-serif; color: var(--mt); text-align: center; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cxx-strip small { color: var(--mm); font-size: .62rem; text-align: center; min-height: 1.5em; }
.cxx-strip.bus h4 { color: var(--warm); }
.cxx-strip.sel { border-color: var(--warm); }
.cxx-strip.muted { opacity: .55; }
.cxx-strip.sfx h4 { color: #ffb37a; }
.cxx-chan { display: flex; gap: .45rem; align-items: stretch; height: 11rem; }
.cxx-meter { width: 14px; display: flex; gap: 2px; background: #0a0806; border: 1px solid #000; border-radius: 3px; padding: 2px; position: relative; }
.cxx-meter i { flex: 1; background: linear-gradient(to top, #1f3a24 0 100%); position: relative; overflow: hidden; border-radius: 1px; }
.cxx-meter i::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--lv, 0) * 100%); background: linear-gradient(to top, #2bd65a 0, #9cff6b 60%, #ffd84d 80%, #ff5b3a 95%); background-size: 100% 11rem; background-position: bottom; transition: height .08s linear; }
.cxx-meter i + i::after { height: calc(var(--rm, 0) * 100%); }
.cxx-meter.big { width: 26px; height: 11rem; }
.cxx-fader { writing-mode: vertical-lr; direction: rtl; width: 2.2rem; height: 100%; accent-color: var(--warm); cursor: ns-resize; }
.cxx-strip output { font-size: .72rem; color: var(--warm); }
.cxx-ms { display: flex; gap: 4px; }
.cxx-ms button { width: 1.8rem; height: 1.5rem; border-radius: 4px; border: 1px solid #000; background: #3a3229; color: var(--mt); font: 800 .7rem 'Sora', sans-serif; cursor: pointer; box-shadow: inset 0 1px 0 #5a4d3f; }
.cxx-ms button[data-mute].on { background: #ff5b3a; color: #200; box-shadow: 0 0 8px #ff5b3a88; }
.cxx-ms button[data-solo].on { background: #ffd84d; color: #221a00; box-shadow: 0 0 8px #ffd84d88; }
.cxx-sw { display: flex; gap: .3rem; align-items: center; font-size: .66rem; color: var(--mm); }
.cxx-div { flex: none; width: 3px; background: #000; border-radius: 2px; margin: 0 .2rem; }
.cxx-master { flex: none; width: 13rem; background: linear-gradient(#352a1d, #211a12); border: 1px solid #000; border-radius: 6px; padding: .5rem .6rem; display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.cxx-master h4 { margin: 0; font: 800 .8rem 'Sora', sans-serif; letter-spacing: .2em; color: var(--warm); }
.cxx-master audio { width: 100%; height: 2rem; }
.cxx-num { font-size: .68rem; color: var(--mm); }
.cxx-num input { width: 3.6rem; background: #0a0806; color: var(--mt); border: 1px solid var(--ml); border-radius: 4px; }
.cxx-warn ul { margin: .6rem 1.2rem 0; padding-left: 1rem; font-size: .76rem; }
.cxx-warn li.bad { color: #ff8f7a; } .cxx-warn li.warn { color: var(--warm); } .cxx-warn li.info { color: var(--mm); }
.cxx-tl { margin: .8rem .6rem 0; background: #0f0c09; border: 1px solid #000; border-radius: 8px; padding: .5rem .6rem; }
.cxx-ruler { margin-left: 8.5rem; position: relative; height: 1.2rem; border-bottom: 1px solid var(--ml); }
.cxx-ruler span { position: absolute; top: 0; height: 100%; border-left: 1px solid var(--ml); font-size: .62rem; color: var(--mm); padding-left: 3px; overflow: hidden; white-space: nowrap; }
.cxx-lane { display: grid; grid-template-columns: 8.5rem 1fr; min-height: 3.2rem; border-bottom: 1px solid #1d1813; cursor: pointer; }
.cxx-lane.voice { min-height: 1.8rem; cursor: default; }
.cxx-lane.sel { background: #1d1711; }
.cxx-ll { font-size: .7rem; color: var(--mm); align-self: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: .4rem; }
.cxx-lane.sel .cxx-ll { color: var(--warm); }
.cxx-lw { position: relative; }
.cxx-clip { position: absolute; top: 25%; bottom: 25%; background: #5aa36a; border-radius: 2px; }
.cxx-clip.est { background: repeating-linear-gradient(135deg, #3d6c47 0 4px, #2a4a31 4px 8px); }
.cxx-pl { position: absolute; top: 4px; bottom: 4px; background: #1d2a20; border: 1px solid #2f5a3a; border-radius: 4px; overflow: hidden; }
.cxx-lane.sfx .cxx-pl { background: #2d2115; border-color: #6e4a22; }
.cxx-pl.off { opacity: .4; }
.cxx-pl canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cxx-crv { position: absolute; inset: 0; width: 100%; height: 100%; }
.cxx-crv path { fill: none; stroke: var(--warm); stroke-width: 1.5; }
.cxx-lower { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: .8rem; margin: .8rem .6rem 0; }
.cxx-insp, .cxx-rules { background: var(--m1); border: 1px solid #000; border-radius: 8px; padding: .6rem .8rem; font-size: .78rem; }
.cxx-insp h4, .cxx-rules h4 { margin: 0 0 .5rem; font: 700 .82rem 'Sora', sans-serif; color: var(--warm); }
.cxx-insp h4 small, .cxx-insp h5 small { color: var(--mm); font: 500 .7rem 'IBM Plex Sans', sans-serif; }
.cxx-insp h5 { margin: .8rem 0 .3rem; font: 700 .74rem 'Sora', sans-serif; }
.cxx-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .4rem .7rem; }
.cxx-form label { display: flex; flex-direction: column; gap: .15rem; color: var(--mm); font-size: .68rem; }
.cxx-form label.cxx-sw { flex-direction: row; }
.cxx-form input, .cxx-form select, .cxx-rule select, .cxx-rule input, .cxx-auto input { background: #0f0c09; color: var(--mt); border: 1px solid var(--ml); border-radius: 4px; padding: .3rem .35rem; font-size: .78rem; }
.cxx-form fieldset { grid-column: 1 / -1; border: 1px solid var(--ml); border-radius: 6px; display: flex; flex-wrap: wrap; gap: .3rem .8rem; }
.cxx-form legend { color: var(--mm); font-size: .68rem; }
.cxx-auto { list-style: none; padding: 0; margin: 0; }
.cxx-auto li { display: flex; gap: .3rem; align-items: center; margin: .2rem 0; color: var(--mm); }
.cxx-auto input { width: 4.6rem; }
.cxx-auto button { background: none; border: 0; color: #ff9b85; cursor: pointer; }
.cxx-acts { margin-top: .6rem; }
.cxx-rule { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: center; padding: .35rem 0; border-bottom: 1px solid #000; }
.cxx-rule b { width: 100%; font-size: .74rem; }
.cxx-rule input { width: 4.4rem; }
.cxx-hint { color: var(--mm); font-size: .76rem; }
.cxx-off { padding: 2rem; max-width: 40rem; }
.cxx-off h2 { font: 800 1.2rem 'Sora', sans-serif; color: var(--warm); margin: 0 0 .5rem; }
.cxx-off p { color: var(--mm); }

@media (max-width: 1100px) {
  .cxc-grid, .cxm-grid { grid-template-columns: 1fr; }
  .cxc-reel { max-height: 9rem; display: flex; gap: .3rem; }
  .cxc-reelit { width: 10rem; flex: none; }
  .cxx-lower { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .cxx-meter i::after { transition: none; } }
/* 1.45: dziesięć etapów produkcji — pasek etapów zawija się (wcześniej przewijał się bez paska — etapy znikały za krawędzią) */
body[data-zone=studio] .pv-stages { flex-wrap: wrap; }
/* pola miksera i konsoli: niezależne od globalnych stylów formularzy Studia */
body[data-zone] .cx-mix .cxx-num, body .cx-mix .cxx-rule label { display: inline-flex; align-items: center; gap: .3rem; margin: 0; font-size: .7rem; color: var(--mm); }
body[data-zone] .cx-mix .cxx-num input, body .cx-mix .cxx-rule input { width: 4.6rem; min-width: 0; height: auto; padding: .2rem .3rem; font-size: .76rem; }
body[data-zone] .cx-mix .cxx-rule select { width: auto; max-width: 100%; height: auto; padding: .25rem .4rem; font-size: .76rem; }
body[data-zone] .cx-mix .cxx-strip [data-edit] { padding: .2rem .6rem; font-size: .7rem; color: var(--warm); }
body[data-zone] .cx-mix .cxx-fader { accent-color: var(--warm); }
body[data-zone] .cx-cam .cxc-sel select, body .cx-cam .cxc-kedit input, body .cx-cam .cxc-kedit select { height: auto; min-height: 0; }
body[data-zone] .cx-comp .cxm-f input, body .cx-comp .cxm-f select, body .cx-comp .cxm-f textarea { height: auto; min-height: 0; font-size: .8rem; }
@media (max-width: 700px) {
  body[data-zone] .cx-mix .cxx-bar { flex-wrap: wrap; }
  body[data-zone] .cx-mix .cxx-form { grid-template-columns: 1fr; }
  body[data-zone] .cx-mix .cxx-lane, body[data-zone] .cx-mix .cxx-ruler { grid-template-columns: 5rem 1fr; }
  body[data-zone] .cx-mix .cxx-ruler { margin-left: 5rem; }
  body[data-zone] .cx-mix .cxx-tl, body[data-zone] .cx-mix .cxx-lower { margin-left: 0; margin-right: 0; min-width: 0; }
  body[data-zone] .cx-mix .cxx-insp, body[data-zone] .cx-mix .cxx-rules { min-width: 0; overflow-wrap: anywhere; }
  body[data-zone] .cx-mix .cxx-rule select { max-width: 100%; }
}
