/* Homepage showcase: Live controls theater, Presenter layout switcher and the
   recording-outputs edit suite. Every picture is real CamSwitch footage or a
   faithful rebuild of a CamSwitch panel. */

.lx,
.pp,
.ro {
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.18, 1);
  --sys: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--sans);
  --mac-blue: #0a84ff;
  --cam-a: #64d2ff;
  --cam-b: #bf8cff;
  --cam-c: #5ee08a;
}

/* ───────────── Shared app-UI rebuilds ───────────── */

.app-ui {
  font-family: var(--sys);
  color: #f2f2f4;
  background: linear-gradient(180deg, #222326, #1b1c1f);
  border: 1px solid #ffffff1c;
  border-radius: 14px;
  box-shadow: 0 30px 60px -28px #000d, inset 0 1px 0 #ffffff10;
}
.app-ui small {
  color: #98989f;
}
.app-switch {
  position: relative;
  flex: none;
  width: 38px;
  height: 22px;
  padding: 0;
  border-radius: 99px;
  background: #3a3b3f;
  transition: background 0.3s;
}
.app-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #0007;
  transition: transform 0.45s var(--ease);
}
.app-switch[aria-checked="true"] {
  background: var(--mac-blue);
}
.app-switch[aria-checked="true"]::after {
  transform: translateX(16px);
}
.app-button {
  flex: none;
  padding: 6px 13px;
  border-radius: 7px;
  background: #ffffff17;
  box-shadow: inset 0 0 0 1px #ffffff14;
  color: #f2f2f4;
  font: 500 12.5px var(--sys);
  transition: background 0.2s;
}
.app-button:hover {
  background: #ffffff24;
}
.app-seg {
  display: flex;
  padding: 2px;
  border-radius: 8px;
  background: #ffffff0f;
  box-shadow: inset 0 0 0 1px #ffffff0d;
}
.app-seg span {
  flex: 1;
  padding: 5px 0;
  border-radius: 6px;
  color: #a1a1a8;
  font: 500 11.5px var(--sys);
  text-align: center;
  transition: background 0.35s, color 0.35s;
}
.app-seg span.on {
  background: #ffffff21;
  color: #fff;
  box-shadow: 0 1px 2px #0005;
}

.lx-lights {
  display: inline-flex;
  gap: 7px;
}
.lx-lights i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px #0004;
}
.lx-lights i:nth-child(2) { background: #febc2e; }
.lx-lights i:nth-child(3) { background: #28c840; }

.lx-play,
.ro-play {
  display: inline-flex;
  flex: none;
  gap: 8px;
  align-items: center;
  padding: 9px 16px 9px 13px;
  border-radius: 99px;
  background: var(--warm);
  color: #1b0d05;
  font-size: 13.5px;
  font-weight: 650;
  box-shadow: 0 8px 24px -10px #ff723bcc;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.lx-play:hover,
.ro-play:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px #ff723b;
}
.lx-play svg,
.ro-play svg {
  width: 15px;
  height: 15px;
}

/* ───────────── 1 · Live production theater ───────────── */

.lx-theater {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.6fr);
  gap: clamp(18px, 3vw, 48px);
  align-items: start;
}
.lx-rail {
  position: sticky;
  top: 90px;
  border-top: 1px solid var(--line);
}
.lx-item {
  position: relative;
  border-bottom: 1px solid var(--line);
}
.lx-trigger {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  width: 100%;
  padding: 22px 0 18px;
  text-align: left;
}
.lx-num {
  grid-row: span 2;
  padding-top: 2px;
  color: #77766f;
  font: 11px var(--mono);
  transition: color 0.3s;
}
.lx-kicker {
  color: #c98563;
  font: 11px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lx-title {
  margin-top: 6px;
  color: #8f8e88;
  font-size: clamp(19px, 1.75vw, 26px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.02em;
  transition: color 0.35s;
}
.lx-item.is-active .lx-title,
.lx-trigger:hover .lx-title {
  color: var(--ink);
}
.lx-item.is-active .lx-num {
  color: var(--warm);
}
.lx-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.65s var(--ease);
}
.lx-body > div {
  min-height: 0;
  overflow: hidden;
  padding-left: 34px;
}
.lx-item.is-active .lx-body {
  grid-template-rows: 1fr;
}
.lx-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s, transform 0.6s var(--ease);
}
.lx-item.is-active .lx-body p {
  opacity: 1;
  transform: none;
  transition-delay: 0.12s;
}
.lx-link {
  display: inline-flex;
  gap: 6px;
  margin-bottom: 22px;
  border-bottom: 1px solid #b87859;
  color: #ffc0a5;
  font-size: 14px;
  font-weight: 600;
}
.lx-link::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}
.lx-link:hover::after {
  transform: translateX(3px);
}
.lx-progress {
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  overflow: hidden;
}
.lx-progress b {
  display: block;
  height: 100%;
  background: var(--warm);
  transform: scaleX(0);
  transform-origin: left;
}

.lx-stage {
  container-type: inline-size;
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  aspect-ratio: 16 / 10.4;
  border: 1px solid #ffffff1d;
  border-radius: 18px;
  background:
    radial-gradient(90% 70% at 78% -10%, #ff723b26, transparent 60%),
    radial-gradient(70% 60% at 0% 110%, #3d5bff14, transparent 60%),
    #121315;
  box-shadow: 0 50px 100px -50px #000, inset 0 1px 0 #ffffff0d;
  overflow: hidden;
}
.lx-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#ffffff0b 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  pointer-events: none;
}
.lx-chrome {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 14px;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid #ffffff10;
  background: #18191bf2;
  color: #8e8d88;
  font-size: 12px;
}
.lx-app {
  color: #d9d8d2;
  font-weight: 600;
}
.lx-mode {
  padding: 3px 9px;
  border-radius: 6px;
  background: #ffffff0d;
  font: 11px var(--mono);
  transition: opacity 0.3s;
}
.lx-rec {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
  color: #d7d6d0;
  font: 12px var(--mono);
  font-variant-numeric: tabular-nums;
}
.lx-rec i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5d5c58;
  transition: background 0.3s, box-shadow 0.3s;
}
.lx-stage.is-rec .lx-rec i {
  background: #ff3b30;
  box-shadow: 0 0 0 4px #ff3b3026;
  animation: lx-blink 1.2s steps(2, jump-none) infinite;
}
@keyframes lx-blink {
  50% { opacity: 0.35; }
}

.lx-scene {
  grid-area: 2 / 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(14px, 3.4cqw, 30px);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.985);
  transition: opacity 0.45s, transform 0.7s var(--ease), visibility 0s 0.45s;
}
.lx-scene.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.6s 0.08s, transform 0.9s var(--ease);
}
.lx-scene[hidden] {
  display: flex;
}
.no-js .lx-scene[hidden] {
  display: none;
}

/* Dual format */
.fx {
  --r: 0.5625;
}
.fx[data-ratio="4x5"] { --r: 0.8; }
.fx[data-ratio="1x1"] { --r: 1; }
.fx-frames {
  display: flex;
  flex: 1;
  gap: 3.4cqw;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.fx figure {
  position: relative;
  flex: none;
  margin: 0;
  border-radius: 1.3cqw;
  background: #000;
  box-shadow: 0 24px 50px -24px #000, 0 0 0 1px #ffffff21;
  overflow: hidden;
}
.fx-wide {
  width: 59cqw;
  aspect-ratio: 16 / 9;
}
.fx-second {
  width: calc(44cqw * var(--r));
  height: 44cqw;
  transition: width 0.85s var(--ease-io);
}
.fx[data-ratio="1x1"] .fx-second,
.fx[data-ratio="4x5"] .fx-second {
  height: calc(29cqw / var(--r));
  width: 29cqw;
}
.fx-second {
  transition: width 0.85s var(--ease-io), height 0.85s var(--ease-io);
}
.fx figure > :is(img, canvas) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fx figure canvas,
.pp canvas,
.ro canvas:not(.ro-wave) {
  opacity: 0;
  transition: opacity 0.4s;
}
.fx figure canvas.present,
.pp canvas.present,
.ro canvas.present {
  opacity: 1;
}
.fx figcaption {
  gap: 0 6px;
  position: absolute;
  z-index: 3;
  top: 1.2cqw;
  left: 1.2cqw;
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  background: #000000a8;
  backdrop-filter: blur(8px);
  color: #f1f0ea;
  font: clamp(9px, 1.35cqw, 11px) var(--mono);
  white-space: nowrap;
}
.fx-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8b8a85;
}
.lx-stage.is-rec .fx-dot {
  background: #ff3b30;
}
.fx-guide {
  --gx: 55;
  --gw: 31.64;
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: calc(var(--gx) * 1%);
  width: calc(var(--gw) * 1%);
  border: 1.5px solid var(--warm);
  border-radius: 3px;
  box-shadow: 0 0 0 100cqw #0000006b;
  transform: translateX(-50%);
  transition: left 0.9s var(--ease-io), width 0.85s var(--ease-io), opacity 0.4s;
}
.fx[data-ratio="4x5"] .fx-guide { --gw: 45; }
.fx[data-ratio="1x1"] .fx-guide { --gw: 56.25; }
.fx-guide::before,
.fx-guide::after,
.fx-guide b::before,
.fx-guide b::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 0 solid #fff;
}
.fx-guide::before { top: 4px; left: 4px; border-width: 2px 0 0 2px; }
.fx-guide::after { top: 4px; right: 4px; border-width: 2px 2px 0 0; }
.fx-guide b::before { bottom: 4px; left: 4px; border-width: 0 0 2px 2px; }
.fx-guide b::after { bottom: 4px; right: 4px; border-width: 0 2px 2px 0; }
.fx-guide b {
  position: absolute;
  inset: 0;
}
.fx-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 2.6cqw;
}
.fx-ratios {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: #ffffff0b;
  box-shadow: inset 0 0 0 1px #ffffff14;
}
.fx-ratios button {
  padding: 6px 12px;
  border-radius: 7px;
  color: #a5a49e;
  font: 12px var(--mono);
  transition: background 0.3s, color 0.3s;
}
.fx-ratios button[aria-pressed="true"] {
  background: #ffffff1f;
  color: #fff;
}
.fx-files {
  display: flex;
  flex: 1;
  gap: 18px;
  justify-content: center;
  color: #8f8e89;
  font: 11px var(--mono);
  font-variant-numeric: tabular-nums;
}
.fx-files span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fx-files b {
  color: #dddcd6;
  font-weight: 500;
}
.fx-files output {
  color: var(--warm);
}

/* Eye contact */
.ey {
  justify-content: center;
  gap: 2.4cqw;
}
.ey-view {
  position: relative;
  width: 100%;
  margin: 0;
  aspect-ratio: 780 / 286;
  border-radius: 1.3cqw;
  box-shadow: 0 24px 50px -24px #000, 0 0 0 1px #ffffff21;
  overflow: hidden;
  touch-action: pan-y;
}
.ey-view > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ey-after {
  clip-path: inset(0 0 0 var(--split));
}
.ey-hud {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--warm);
  stroke-width: 2.4;
  stroke-linecap: round;
  pointer-events: none;
}
.ey-box path {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
}
.ey.is-active .ey-box path {
  animation: ey-draw 1.1s 0.35s var(--ease) forwards, ey-pulse 2.6s 1.5s ease-in-out infinite;
}
.ey.is-active .ey-box + .ey-box path {
  animation-delay: 0.5s, 1.65s;
}
@keyframes ey-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes ey-pulse {
  0%, 100% { stroke-dashoffset: 0; opacity: 1; }
  50% { stroke-dashoffset: 0; opacity: 0.45; }
}
.ey-divider {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  background: #fff;
  box-shadow: 0 0 14px #000a;
  transform: translateX(-1px);
  pointer-events: none;
}
.ey-divider b {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px #0008;
  transform: translate(-50%, -50%);
}
.ey-divider b::before {
  content: "‹ ›";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #111;
  font: 700 14px/1 var(--sans);
  letter-spacing: 2px;
}
.ey-tag {
  position: absolute;
  z-index: 3;
  bottom: 1.4cqw;
  padding: 4px 8px;
  border-radius: 6px;
  background: #000000b3;
  backdrop-filter: blur(8px);
  color: #f1f0ea;
  font: clamp(9px, 1.3cqw, 11px) var(--mono);
  pointer-events: none;
  transition: opacity 0.3s;
}
.ey-tag-before { left: 1.4cqw; }
.ey-tag-after {
  right: 1.4cqw;
  color: #ffc2a6;
}
.ey-view[data-edge="before"] .ey-tag-after,
.ey-view[data-edge="after"] .ey-tag-before {
  opacity: 0;
}
.ey-view input {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.ey-view:has(input:focus-visible) {
  outline: 2px solid #ffa174;
  outline-offset: 4px;
}
.ey-calib {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-items: center;
  background: #0b0b0cb8;
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.ey-calib i {
  grid-area: 1 / 1;
  width: 54px;
  height: 54px;
  border: 2px solid #ffffff38;
  border-radius: 50%;
}
.ey-calib i + i {
  border-color: var(--warm);
  clip-path: inset(0 0 0 0);
  mask: conic-gradient(#000 var(--p, 0%), transparent 0);
}
.ey-calib b {
  grid-area: 1 / 1;
  margin-top: 104px;
  color: #fff;
  font: 500 13px var(--sys);
}
.ey-view.is-calibrating .ey-calib {
  opacity: 1;
}
.ey-panel {
  display: grid;
}
.ey-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: clamp(10px, 1.8cqw, 15px) clamp(12px, 2.2cqw, 18px);
}
.ey-row + .ey-row {
  border-top: 1px solid #ffffff0f;
}
.ey-row > svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #d8d8dc;
  stroke-width: 1.5;
}
.ey-row b {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.ey-row small {
  display: block;
  font-size: 12.5px;
  line-height: 1.35;
}
.ey-row small.is-done {
  color: #5ee08a;
}

/* Sound mixer */
.mx {
  flex-direction: row;
  gap: 2.4cqw;
}
.mx-panel {
  display: flex;
  flex: 1.42;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  padding: clamp(12px, 2.2cqw, 20px) clamp(12px, 2.4cqw, 22px);
}
.mx-head b {
  font-size: 14.5px;
  font-weight: 650;
}
.mx-head small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.35;
}
.mx-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) minmax(64px, 34%) 36px 22px;
  grid-template-rows: auto 3px;
  column-gap: 10px;
  row-gap: 5px;
  align-items: center;
}
.mx-row > svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--mac-blue);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mx-row label {
  min-width: 0;
}
.mx-row label b {
  display: block;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mx-row label small {
  display: block;
  font-size: 10.5px;
  white-space: nowrap;
  transition: color 0.3s;
}
.mx-row.is-live label small {
  color: #5ee08a;
}
.mx-row output {
  color: #c7c7cc;
  font: 11px var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.mx-row input[type="range"],
.ro input[type="range"].ro-visible {
  --v: 50%;
  width: 100%;
  height: 18px;
  margin: 0;
  background: transparent;
  appearance: none;
  cursor: pointer;
}
.mx-row input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #d8d8dc var(--v), #ffffff24 var(--v));
}
.mx-row input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #d8d8dc var(--v), #ffffff24 var(--v));
}
.mx-row input[type="range"]::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px #0009, 0 0 0 0.5px #0003;
  appearance: none;
  transition: transform 0.2s var(--ease);
}
.mx-row input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px #0009;
}
.mx-row input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.12);
}
.mx-row input[type="range"]:focus-visible {
  outline: 2px solid #ffa174;
  outline-offset: 2px;
}
.mx-mute {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 6px;
  background: #d8d8dc;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9.5h3.5L12 5.5v13l-4.5-4H4z' fill='%23000'/%3E%3Cpath d='M15.5 9a4.2 4.2 0 0 1 0 6M18 6.5a7.8 7.8 0 0 1 0 11' stroke='%23000' stroke-width='1.7' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: background 0.2s;
}
.mx-mute[aria-pressed="true"] {
  background: #ff453a;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9.5h3.5L12 5.5v13l-4.5-4H4z' fill='%23000'/%3E%3Cpath d='m16 9.5 5 5m0-5-5 5' stroke='%23000' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}
.mx-mute:focus-visible {
  outline-offset: 2px;
}
.mx-meter {
  grid-column: 3;
  grid-row: 2;
  height: 3px;
  border-radius: 2px;
  background: #ffffff0d;
  overflow: hidden;
}
.mx-meter b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #30d158 0 68%, #ffd60a 84%, #ff453a);
  clip-path: inset(0 calc((1 - var(--l, 0)) * 100%) 0 0);
}
.mx-out {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.6cqw;
  min-width: 0;
  padding: clamp(12px, 2cqw, 18px);
  border: 1px solid #ffffff14;
  border-radius: 14px;
  background: linear-gradient(180deg, #0f1011, #0a0a0b);
}
.mx-out-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a3a29c;
  font: 10.5px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mx-badges {
  display: flex;
  gap: 5px;
}
.mx-badges i {
  padding: 2px 6px;
  border-radius: 4px;
  background: #ffffff0f;
  color: #75746e;
  font-style: normal;
  letter-spacing: 0.04em;
  transition: background 0.3s, color 0.3s;
}
.mx.is-playing .mx-badges i {
  background: #ff3b30;
  color: #fff;
}
.mx.is-playing .mx-badges i + i {
  background: #ff723b;
}
.mx-bridge {
  flex: 1;
  width: 100%;
  min-height: 90px;
}
.mx-scope {
  width: 100%;
  height: clamp(36px, 7cqw, 58px);
  border-radius: 8px;
  background: #ffffff06;
}
.mx-out .lx-play {
  justify-content: center;
}

/* ───────────── 2 · Presenter layout switcher ───────────── */

.pp-studio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(250px, 23vw, 300px);
  gap: clamp(14px, 1.8vw, 24px);
  align-items: stretch;
}
.pp-monitor-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.pp-monitor {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid #ffffff1d;
  border-radius: 16px;
  background:
    radial-gradient(60% 80% at 50% 50%, #ffffff08, transparent 70%),
    repeating-linear-gradient(90deg, #ffffff06 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, #ffffff06 0 1px, transparent 1px 40px),
    #0c0d0e;
  box-shadow: 0 50px 100px -50px #000;
  overflow: hidden;
}
.pp-monitor::before {
  content: "";
  position: absolute;
  inset: -10% 25%;
  background: radial-gradient(closest-side, #ff723b2e, transparent);
  opacity: 0;
  transition: opacity 1s;
}
.pp-monitor[data-layout="vertical"]::before {
  opacity: 1;
}
.pp-frame {
  container-type: size;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100%;
  background: #000;
  transform: translateX(-50%);
  overflow: hidden;
  transition: width 1s var(--ease-io), border-radius 1s var(--ease-io), box-shadow 1s;
}
.pp-monitor[data-layout="vertical"] .pp-frame {
  width: 31.640625%;
  border-radius: 12px;
  box-shadow: 0 0 0 1px #ffffff30, 0 30px 70px #000;
}
.pp-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 90% at 20% 10%, #6b3bd6 0%, transparent 60%),
    radial-gradient(60% 80% at 100% 100%, #ff723b66, transparent 60%),
    linear-gradient(135deg, #1d1840, #3f2163 60%, #22142f);
}
.pp-layer {
  --x: 0;
  --y: 0;
  --w: 100;
  --h: 100;
  --o: 1;
  --rad: 0px;
  --z: 1;
  position: absolute;
  z-index: var(--z);
  top: calc(var(--y) * 1%);
  left: calc(var(--x) * 1%);
  width: calc(var(--w) * 1%);
  height: calc(var(--h) * 1%);
  border-radius: var(--rad);
  opacity: var(--o);
  overflow: hidden;
  transition:
    top 1s var(--ease-io), left 1s var(--ease-io), width 1s var(--ease-io), height 1s var(--ease-io),
    border-radius 1s var(--ease-io), opacity 0.6s, box-shadow 0.8s;
}
.pp-layer > :is(img, canvas) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--op, 50% 50%);
}
.pp-screen > img {
  object-position: 50% 0;
}
.pp-clip i {
  position: absolute;
  inset: auto 0 0;
  height: 0.8cqh;
  background: #ffffff33;
}
.pp-clip i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #ff3b30;
  transform-origin: left;
  animation: pp-clip 9s linear infinite;
}
@keyframes pp-clip {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.pp-clip > img {
  animation: pp-drift 14s ease-in-out infinite alternate;
}
@keyframes pp-drift {
  from { transform: scale(1.04) translateX(-1%); }
  to { transform: scale(1.12) translateX(1.5%); }
}

/* Layer geometry for each preset */
.pp-monitor[data-layout] .pp-screen,
.pp-monitor[data-layout] .pp-clip { --o: 0; --z: 0; }

.pp-monitor[data-layout="pip"] .pp-screen { --o: 1; }
.pp-monitor[data-layout="pip"] .pp-cam {
  --x: 70.5; --y: 55; --w: 26.5; --h: 26.5; --rad: 1.6cqh; --z: 3; --op: 56% 40%;
  box-shadow: 0 0 0 0.35cqh #fff, 0 2cqh 5cqh #0009;
}
.pp-monitor[data-layout="sbs"] .pp-screen {
  --o: 1; --x: 51; --y: 25; --w: 46; --h: 46; --rad: 1.6cqh; --z: 2;
  box-shadow: 0 2cqh 5cqh #0008;
}
.pp-monitor[data-layout="sbs"] .pp-cam {
  --x: 3; --y: 25; --w: 46; --h: 46; --rad: 1.6cqh; --z: 2;
  box-shadow: 0 2cqh 5cqh #0008;
}
.pp-monitor[data-layout="spotlight"] .pp-cam {
  --x: 36.4; --y: 16; --w: 27.2; --h: 48.4; --rad: 50%; --z: 2; --op: 56% 28%;
  box-shadow: 0 0 0 0.5cqh #ffffffd9, 0 3cqh 7cqh #000a;
}
.pp-monitor[data-layout="vertical"] .pp-clip { --o: 1; --h: 50; --op: 50% 30%; }
.pp-monitor[data-layout="vertical"] .pp-cam { --y: 50; --h: 50; --op: 56% 30%; --z: 2; }
.pp-monitor[data-layout="vertical"] .pp-cam::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: 0.5cqh;
  background: #000;
}

/* Graphics */
.pp-g {
  --d: 0s;
  position: absolute;
  z-index: 6;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transition: opacity 0.35s, clip-path 0.55s var(--ease-io);
  pointer-events: none;
}
.pp-g.on {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transition: opacity 0.3s var(--d), clip-path 0.8s var(--ease) var(--d);
}
.pp-live {
  top: 4.5cqh;
  left: 3cqw;
  display: flex;
  gap: 0.8cqh;
  align-items: center;
  padding: 0.9cqh 1.4cqh;
  border-radius: 0.8cqh;
  background: #000000b8;
  color: #fff;
  font: 700 2.6cqh/1 var(--sans);
  letter-spacing: 0.04em;
  clip-path: none;
}
.pp-live i {
  width: 1.4cqh;
  height: 1.4cqh;
  border-radius: 50%;
  background: #ff3b30;
  animation: lx-blink 1.2s steps(2, jump-none) infinite;
}
.pp-live b {
  font: 500 2.4cqh var(--mono);
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}
.pp-lower {
  left: 4cqw;
  bottom: 21cqh;
  display: flex;
  flex-direction: column;
  padding: 1.5cqh 2.6cqh 1.6cqh 2.2cqh;
  border-left: 0.7cqh solid var(--warm);
  background: #121212eb;
  color: #fff;
}
.pp-lower b {
  font: 650 4.6cqh/1.1 var(--sans);
  letter-spacing: -0.01em;
}
.pp-lower small {
  margin-top: 0.4cqh;
  color: #d8d4cc;
  font: 500 2.6cqh/1.2 var(--sans);
}
.pp-headline {
  left: 0;
  right: 0;
  bottom: 7.4cqh;
  display: flex;
  align-items: stretch;
  height: 7.6cqh;
  background: #0c0c0ce8;
  color: #fff;
  font: 500 3cqh/1 var(--sans);
}
.pp-headline b {
  display: flex;
  align-items: center;
  padding: 0 2.4cqh;
  background: var(--warm);
  color: #1a0b03;
  font-weight: 700;
}
.pp-headline span {
  display: flex;
  align-items: center;
  padding: 0 2.4cqh;
}
.pp-ticker {
  left: 0;
  right: 0;
  bottom: 0;
  height: 7.4cqh;
  display: flex;
  align-items: center;
  background: #000;
  color: #f3f0e8;
  font: 600 2.6cqh/1 var(--sans);
  white-space: nowrap;
  overflow: hidden;
}
.pp-ticker > span {
  display: flex;
  animation: pp-tick 26s linear infinite;
}
.pp-ticker i {
  padding-right: 5cqh;
  font-style: normal;
}
.pp-ticker i::before {
  content: "•";
  margin-right: 5cqh;
  color: var(--warm);
}
@keyframes pp-tick {
  to { transform: translateX(-50%); }
}
.pp-topic {
  left: 3cqw;
  bottom: 9cqh;
  display: flex;
  flex-direction: column;
  padding: 1.6cqh 2.6cqh 1.8cqh 2.2cqh;
  border-left: 0.7cqh solid var(--warm);
  background: #0e0e0eeb;
  color: #fff;
}
.pp-topic small {
  color: #ffb08a;
  font: 600 2.2cqh/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pp-topic b {
  margin-top: 0.6cqh;
  font: 650 4.4cqh/1.1 var(--sans);
}
.pp-follow {
  top: 50%;
  left: 50%;
  display: flex;
  gap: 1.2cqh;
  align-items: center;
  padding: 1cqh 2.4cqh 1cqh 1cqh;
  border-radius: 99px;
  background: #fff;
  color: #111;
  font: 700 2.8cqh/1 var(--sans);
  white-space: nowrap;
  transform: translate(-50%, -50%);
  clip-path: inset(0 50% 0 50% round 99px);
}
.pp-follow.on {
  clip-path: inset(0 0 0 0 round 99px);
}
.pp-follow i {
  display: grid;
  place-items: center;
  width: 4.4cqh;
  height: 4.4cqh;
  border-radius: 50%;
  background: var(--warm);
  color: #fff;
  font-style: normal;
}
.pp-monitor[data-layout="vertical"] .pp-live {
  top: 3cqh;
  left: 5cqw;
  font-size: 2cqh;
}
.pp-monitor[data-layout="vertical"] .pp-live b { font-size: 1.9cqh; }
.pp-monitor[data-layout="vertical"] .pp-follow { font-size: 2.2cqh; }
.pp-monitor[data-layout="vertical"] .pp-follow i { width: 3.6cqh; height: 3.6cqh; }
.pp-monitor[data-layout="pip"] .pp-topic,
.pp-monitor[data-layout="sbs"] .pp-topic {
  bottom: 6cqh;
}
.pp-monitor[data-layout="spotlight"] .pp-lower {
  left: 50%;
  bottom: 20cqh;
  align-items: center;
  border-left: 0;
  border-bottom: 0.6cqh solid var(--warm);
  transform: translateX(-50%);
}

.pp-status {
  display: flex;
  gap: 14px;
  align-items: center;
  color: #9d9c96;
  font: 11.5px var(--mono);
}
.pp-onair {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 5px;
  background: #ff3b301f;
  color: #ff8a80;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pp-onair i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff3b30;
}
[data-pp-status] {
  color: #ecebe5;
}
.pp-res {
  margin-left: auto;
}

.pp-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  contain: size;
  overflow: hidden;
}
.pp-panel .pp-banners {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
}
.pp-panel-head b {
  display: block;
  font-size: 14px;
  font-weight: 650;
}
.pp-panel-head small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.35;
}
.pp-panel > .pp-panel-head:first-child small {
  display: none;
}
.pp-banners-head {
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid #ffffff10;
}
.pp-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.pp-presets button {
  display: grid;
  gap: 6px;
  padding: 6px 6px 7px;
  border-radius: 8px;
  background: #2a2b2f;
  box-shadow: inset 0 0 0 1.5px transparent;
  color: #c7c7cc;
  font: 500 10.5px/1.2 var(--sys);
  text-align: center;
  transition: box-shadow 0.3s, background 0.3s;
}
.pp-presets button:hover {
  background: #313237;
}
.pp-presets button[aria-pressed="true"] {
  background: #0a84ff21;
  box-shadow: inset 0 0 0 1.5px var(--mac-blue);
  color: #fff;
}
.pp-presets button {
  align-content: start;
}
.pp-ico {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background: #3a3b40;
  overflow: hidden;
}
.pp-ico b,
.pp-ico s {
  position: absolute;
  border-radius: 2px;
}
.pp-ico b {
  background: #3b7bf6;
}
.pp-ico b::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 0 2px #fff;
  transform: translate(-50%, -80%);
  clip-path: inset(-2px -4px 2px -4px);
}
.pp-ico s {
  background: #6c6d73;
}
.pp-ico-news b { inset: 0; border-radius: 0; }
.pp-ico-news s { inset: auto 0 10% 0; height: 16%; background: var(--warm); border-radius: 0; }
.pp-ico-pip s { inset: 0; border-radius: 0; }
.pp-ico-pip b { right: 6%; bottom: 8%; width: 36%; height: 40%; }
.pp-ico-pip b::after { width: 5px; height: 5px; box-shadow: 0 4px 0 1px #fff; }
.pp-ico-sbs b { left: 5%; top: 22%; width: 43%; height: 56%; }
.pp-ico-sbs s { right: 5%; top: 22%; width: 43%; height: 56%; }
.pp-ico-spot { background: #4a3a78; }
.pp-ico-spot b { left: 50%; top: 14%; width: 30%; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); }
.pp-ico-spot b::after { width: 5px; height: 5px; box-shadow: 0 4px 0 1px #fff; }
.pp-ico-spot s { display: none; }
.pp-ico-vert {
  width: 31.64%;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
}
.pp-tall .pp-ico {
  background: none;
  overflow: visible;
}
.pp-tall .pp-ico-wrap {
  display: block;
}
.pp-ico-vert s { inset: 0 0 50% 0; border-radius: 0; }
.pp-ico-vert b { inset: 50% 0 0 0; border-radius: 0; }
.pp-ico-vert b::after { width: 5px; height: 5px; box-shadow: 0 4px 0 1px #fff; }
.pp-banners {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pp-banners li {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: 8px;
  transition: background 0.3s;
}
.pp-banners li:has([aria-checked="true"]) {
  background: #ffffff08;
}
.pp-banners b {
  display: block;
  font-size: 12px;
  font-weight: 550;
}
.pp-banners small {
  display: block;
  font-size: 10.5px;
}

.pp-recipes.layout-examples {
  margin-top: 16px;
}
.pp-recipe.layout-example {
  position: relative;
  display: flex;
  flex-direction: column;
  border-color: #ffffff17;
  background: #141516;
  transition: border-color 0.4s, background 0.4s, transform 0.4s var(--ease);
}
.pp-recipe.layout-example:hover {
  transform: translateY(-2px);
  border-color: #ffffff30;
}
.pp-recipe[aria-current="true"] {
  border-color: #ff723b73;
  background: linear-gradient(180deg, #ff723b17, #141516 70%);
}
.pp-recipe:has(:focus-visible) {
  outline: 2px solid #ffa174;
  outline-offset: 4px;
}
.pp-recipe-num {
  padding: clamp(14px, 2vw, 24px) clamp(14px, 2vw, 24px) 0;
  color: #c98563;
  font: 11px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pp-recipe .layout-example-copy {
  padding-top: 8px;
}
.pp-recipe h3 button {
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
}
.pp-recipe h3 button::after {
  content: "";
  position: absolute;
  inset: 0;
}
.pp-recipe h3 button:focus-visible {
  outline: none;
}
.pp-recipe .layout-example-copy h3 { color: #d7d4cc; transition: color 0.3s; }
.pp-recipe .layout-example-copy p { color: #a9a59d; }
.pp-recipe[aria-current="true"] .layout-example-copy h3 { color: #fff1df; }
.pp-recipe[aria-current="true"] .layout-example-copy p { color: #d8c6b7; }
.pp-recipe-progress {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: #ffffff0a;
}
.pp-recipe-progress b {
  display: block;
  height: 100%;
  background: var(--warm);
  transform: scaleX(0);
  transform-origin: left;
}

/* ───────────── 3 · Recording outputs edit suite ───────────── */

.output-proof.ro-suite {
  --gutter: 92px;
  padding: 0;
  border: 1px solid #ffffff1d;
  border-radius: 18px;
  background:
    radial-gradient(70% 50% at 70% 0%, #ff723b14, transparent 60%),
    #111213;
  color: var(--ink);
  box-shadow: 0 50px 100px -50px #000;
}
.ro-bar {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 11px 18px;
  border-bottom: 1px solid #ffffff10;
  background: #17181af2;
}
.ro-bar h3 {
  margin: 0;
  color: #d9d8d2;
  font: 600 13px var(--sans);
  letter-spacing: 0;
}
.ro-meta {
  color: #8b8a85;
  font: 11px var(--mono);
}
.ro-clock {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-left: auto;
}
.ro-clock output {
  color: #fff;
  font: 500 clamp(16px, 1.6vw, 21px) var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.ro-clock span {
  color: #8b8a85;
  font: 11px var(--mono);
}
.ro-monitors {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
  padding: clamp(12px, 1.8vw, 22px);
}
.ro-mon-label {
  display: block;
  margin-bottom: 9px;
  color: #8b8a85;
  font: 10.5px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ro-display {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #000;
  overflow: hidden;
}
.ro-display > :is(img, canvas) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ro-program .ro-display {
  box-shadow: 0 0 0 1px #ffffff21, 0 30px 60px -30px #000;
}
.ro-tally {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 6px;
  background: #000000b8;
  backdrop-filter: blur(8px);
  color: #fff;
  font: 600 11.5px var(--mono);
}
.ro-tally::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--tally, var(--cam-a));
  transition: background 0.3s;
}
.ro-flash {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
.ro-isos {
  display: grid;
  grid-template-rows: auto repeat(3, minmax(0, 1fr));
  gap: 9px;
  min-width: 0;
}
.ro-iso {
  --c: var(--cam-a);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 12px;
  align-items: center;
  padding: 6px;
  border-radius: 11px;
  background: #18191b;
  box-shadow: inset 0 0 0 1px #ffffff12;
  text-align: left;
  transition: box-shadow 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.ro-iso[data-angle="1"] { --c: var(--cam-b); }
.ro-iso[data-angle="2"] { --c: var(--cam-c); }
.ro-iso .ro-display {
  border-radius: 7px;
}
.ro-iso-meta b {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #ecebe5;
  font-size: 13.5px;
  font-weight: 600;
}
.ro-iso-meta b::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--c);
}
.ro-iso-meta small {
  display: block;
  margin-top: 2px;
  color: #85847e;
  font: 10.5px var(--mono);
}
.ro-pgm {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #ff3b30;
  color: #fff;
  font: 700 9.5px var(--mono);
  font-style: normal;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s, transform 0.35s var(--ease);
}
.ro-iso.is-pgm {
  box-shadow: inset 0 0 0 1.5px #ff3b30b3;
  background: #1d1617;
}
.ro-iso.is-pgm .ro-pgm {
  opacity: 1;
  transform: none;
}
.ro-suite.has-selection .ro-iso {
  cursor: pointer;
}
.ro-suite.has-selection .ro-iso:hover {
  transform: translateX(-3px);
  box-shadow: inset 0 0 0 1.5px var(--warm);
}
.ro-iso.is-choice {
  box-shadow: inset 0 0 0 1.5px var(--warm), 0 0 0 4px #ff723b26;
}
.ro-timeline {
  position: relative;
  padding: 2px clamp(12px, 1.8vw, 22px) 10px;
}
.ro-ruler {
  position: relative;
  height: 30px;
  margin-left: var(--gutter);
}
.ro-ticks {
  position: absolute;
  inset: auto 0 0;
  height: 9px;
  background:
    repeating-linear-gradient(90deg, #ffffff40 0 1px, transparent 1px calc(100% / 9)),
    repeating-linear-gradient(90deg, #ffffff1c 0 1px, transparent 1px calc(100% / 54));
  background-size: 100% 100%, 100% 55%;
  background-position: 0 0, 0 100%;
  background-repeat: no-repeat;
}
.ro-times {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  justify-content: space-between;
  color: #85847e;
  font: 10px var(--mono);
}
.ro-times b {
  font-weight: 400;
}
.ro-ruler input {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.ro-ruler:has(input:focus-visible) {
  outline: 2px solid #ffa174;
  outline-offset: 2px;
  border-radius: 4px;
}
.ro-tracks {
  position: relative;
  display: grid;
  gap: 4px;
}
.ro-track {
  display: grid;
  grid-template-columns: calc(var(--gutter) - 6px) minmax(0, 1fr);
  gap: 6px;
}
.ro-track-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 9px;
  border-radius: 6px;
  background: #18191b;
  color: #d1d0ca;
  font: 600 10px/1.2 var(--mono);
}
.ro-track-name small {
  color: #7d7c76;
  font-weight: 400;
}
.ro-lane {
  position: relative;
  min-height: 18px;
  border-radius: 6px;
  background: #0b0c0d;
  overflow: hidden;
}
.ro-v1 .ro-lane {
  height: clamp(46px, 5vw, 62px);
}
.ro-clip {
  --c: var(--cam-a);
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--s) * 1%);
  width: calc(var(--len) * 1% - 2px);
  border-radius: 5px;
  background: var(--thumb) 0 50% / auto 100% repeat-x, #222;
  box-shadow: inset 0 3px 0 var(--c), inset 0 0 0 1px #0009;
  color: #fff;
  font: 600 10.5px var(--mono);
  text-align: left;
  overflow: hidden;
  transition: box-shadow 0.25s, filter 0.3s;
}
.ro-clip[data-cam="1"] { --c: var(--cam-b); }
.ro-clip[data-cam="2"] { --c: var(--cam-c); }
.ro-clip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #000c, transparent 60%);
}
.ro-clip span {
  position: absolute;
  left: 8px;
  bottom: 6px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.ro-clip span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  background: var(--c);
}
.ro-clip:hover {
  filter: brightness(1.15);
}
.ro-clip[aria-pressed="true"] {
  box-shadow: inset 0 3px 0 var(--c), inset 0 0 0 2px var(--warm), 0 0 0 0 #0000;
  filter: brightness(1.1);
}
.ro-clip.is-swapped {
  animation: ro-swap 0.7s var(--ease);
}
@keyframes ro-swap {
  0% { filter: brightness(2.4); }
  100% { filter: brightness(1.1); }
}
.ro-iso-bar {
  position: absolute;
  inset: 4px 0;
  border-radius: 3px;
  background: repeating-linear-gradient(135deg, #ffffff0a 0 4px, transparent 4px 8px), #ffffff0a;
}
.ro-iso-track[data-iso="0"] { --c: var(--cam-a); }
.ro-iso-track[data-iso="1"] { --c: var(--cam-b); }
.ro-iso-track[data-iso="2"] { --c: var(--cam-c); }
.ro-iso-track .ro-iso-bar {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent);
}
.ro-use {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: calc(var(--s) * 1%);
  width: calc(var(--len) * 1%);
  border-radius: 3px;
  background: var(--c);
  opacity: 0.9;
  transition: left 0.5s var(--ease), width 0.5s var(--ease), opacity 0.3s;
}
.ro-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ro-a1 .ro-lane {
  height: 34px;
}
.ro-playhead {
  position: absolute;
  z-index: 4;
  top: 2px;
  bottom: 10px;
  left: calc(clamp(12px, 1.8vw, 22px) + var(--gutter) + (100% - 2 * clamp(12px, 1.8vw, 22px) - var(--gutter)) * var(--p, 0));
  width: 2px;
  margin-left: -1px;
  background: var(--warm);
  box-shadow: 0 0 10px #ff723b99;
  pointer-events: none;
}
.ro-playhead::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 11px;
  height: 12px;
  background: var(--warm);
  clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%);
  transform: translateX(-50%);
}
.ro-transport {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  padding: 12px clamp(12px, 1.8vw, 22px) 16px;
  border-top: 1px solid #ffffff10;
}
.ro-hint {
  flex: 1;
  min-width: 180px;
  margin: 0;
  color: #8f8e88;
  font-size: 13px;
}
.ro-hint b {
  color: #ffc0a5;
  font-weight: 600;
}
.ro-reset,
.ro-reel {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 99px;
  box-shadow: inset 0 0 0 1px #ffffff2e;
  color: #ecebe5;
  font-size: 13px;
  font-weight: 600;
  transition: box-shadow 0.2s, background 0.2s;
}
.ro-reset:hover,
.ro-reel:hover {
  background: #ffffff0d;
  box-shadow: inset 0 0 0 1px #ffffff55;
}
.ro-reel svg {
  width: 13px;
  height: 13px;
}

.ro-files.output-files > div {
  position: relative;
  padding: 24px 18px 28px;
}
.ro-file-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 9px;
  background: #ff723b17;
  box-shadow: inset 0 0 0 1px #ff723b33;
}
.ro-file-ico svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #ffb08a;
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.ro-files code {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 12px;
  color: #8f8e88;
  font: 11px var(--mono);
}
.ro-files code::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #5ee08a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.3 2.3 2.3 4.7-5' stroke='%23062b12' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.3s, transform 0.5s var(--ease);
}
.ro-files .is-done code {
  color: #dddcd6;
}
.ro-files .is-done code::after {
  opacity: 1;
  transform: none;
}
.ro-render {
  position: absolute;
  inset: auto 18px 12px;
  height: 2px;
  border-radius: 2px;
  background: #ffffff0d;
  overflow: hidden;
}
.ro-render b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ff723b, #ffb08a);
  transform: scaleX(0);
  transform-origin: left;
}

/* ───────────── Responsive ───────────── */

@container (max-width: 620px) {
  .lx-scene:not(.is-active) { display: none; }
  .lx-mode,
  .fx-more { display: none; }
  .fx-ratios + .fx-files { order: 3; }
  .fx-frames { padding: 4cqw 0; }
  .fx-wide { width: 60cqw; }
  .fx-second { height: 46cqw; width: calc(46cqw * var(--r)); }
  .fx[data-ratio="1x1"] .fx-second,
  .fx[data-ratio="4x5"] .fx-second { width: 30cqw; height: calc(30cqw / var(--r)); }
  .fx-files { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .mx { flex-direction: column; }
  .mx-panel { gap: 12px; }
  .mx-bridge { flex: none; height: 150px; min-height: 0; }
  .mx-row {
    grid-template-columns: 18px minmax(0, 1fr) 40px 22px;
    grid-template-rows: auto auto 3px;
  }
  .mx-row label { grid-column: 2 / -1; display: flex; gap: 8px; align-items: baseline; }
  .mx-row input[type="range"] { grid-column: 2; grid-row: 2; }
  .mx-row output { grid-column: 3; grid-row: 2; }
  .mx-row .mx-mute { grid-column: 4; grid-row: 2; }
  .mx-meter { grid-column: 2; grid-row: 3; }
  .ey-row small { font-size: 12px; }
}

@media (max-width: 1060px) {
  .pp-studio { grid-template-columns: 1fr; }
  .pp-panel {
    contain: none;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    column-gap: 22px;
  }
  .pp-panel > .pp-panel-head:first-child,
  .pp-panel > .app-seg,
  .pp-panel > .pp-presets { grid-column: 1; }
  .pp-banners-head,
  .pp-banners { grid-column: 2; }
  .pp-banners-head { grid-row: 1; margin-top: 0; padding-top: 0; border-top: 0; }
  .pp-banners { grid-row: 2 / span 2; align-content: start; }
  .pp-panel { align-content: start; grid-template-rows: auto auto 1fr; }
  .pp-panel > * { align-self: start; }
  .pp-presets { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .lx-theater { grid-template-columns: 1fr; }
  .lx-rail { position: static; order: 2; }
  .lx-stage { aspect-ratio: auto; }
  .ro-monitors { grid-template-columns: 1fr; }
  .ro-isos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto;
  }
  .ro-isos .ro-mon-label { grid-column: 1 / -1; margin-bottom: 0; }
  .ro-iso { grid-template-columns: 1fr; gap: 6px; }
  .ro-iso-meta { padding: 0 4px 2px; }
}

@media (max-width: 640px) {
  .pp-panel { display: flex; }
  .pp-presets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pp-status .pp-res { display: none; }
  .output-proof.ro-suite { --gutter: 58px; }
  .ro-track-name { padding: 0 6px; font-size: 9px; }
  .ro-track-name small { display: none; }
  .ro-iso-meta small { display: none; }
  .ro-bar h3,
  .ro-meta { display: none; }
  .ro-hint { order: 3; flex-basis: 100%; }
  .fx-bar .lx-play { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .lx *,
  .pp *,
  .ro * {
    animation-duration: 0.01s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01s !important;
  }
}
.ro-reset[hidden] {
  display: none;
}
