@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

/* ==========================================================================
   TRAVELER — THE CUTTING ROOM (studio 02)
   One dark room, four pieces: slate, shot list, monitor, margin, and the cut.
   Scoped to body.st. Design study only.
   ========================================================================== */

:root {
  --poster: 'Anton', 'Arial Narrow', Impact, sans-serif;
  --e1: cubic-bezier(0.16, 1, 0.3, 1);
  --e2: cubic-bezier(0.65, 0.05, 0.36, 1);
  --e3: cubic-bezier(0.4, 0, 0.2, 1);
  --hair: rgba(243, 239, 229, 0.12);
  --hair-soft: rgba(243, 239, 229, 0.06);
  --room: #08090b;
  --panel: #0c0d10;
}

html, body { width: 100%; height: 100%; }
body.st {
  background: #060608;
  color: var(--text);
  position: relative;
  overflow: hidden;
  font-size: 13px;
}

.st .stage {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -450px 0 0 -720px;
  width: 1440px;
  height: 900px;
  overflow: hidden;
  background: radial-gradient(1100px 720px at 52% 42%, #101216 0%, #0a0b0e 52%, #070809 100%);
  isolation: isolate;
}
.st .stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  background-image:
    linear-gradient(rgba(243, 239, 229, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 239, 229, 0.03) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(80% 80% at 52% 44%, #000 10%, transparent 78%);
  mask-image: radial-gradient(80% 80% at 52% 44%, #000 10%, transparent 78%);
}

/* ==========================================================================
   SLATE
   ========================================================================== */

.slate {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 30;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 20px;
  gap: 18px;
  border-bottom: 1px solid var(--hair);
  background: rgba(9, 10, 12, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: opacity 0.5s var(--e3), transform 0.6s var(--e2);
}
.slate__l, .slate__r { display: flex; align-items: center; gap: 12px; }
.slate__l { flex: 1; min-width: 0; }
.slate__r { justify-content: flex-end; }

.brand { display: grid; place-items: center; }
.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--signal);
  color: #180a05;
  display: grid;
  place-items: center;
}
.brand__mark svg { width: 18px; height: 18px; }
.slate__rule { width: 1px; height: 22px; background: var(--hair); }

.slate__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--bone);
  font-family: var(--poster);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  transition: background 0.2s var(--e3);
}
.slate__title:hover { background: rgba(243, 239, 229, 0.06); }
.slate__title svg { color: var(--text-faint); }

.take {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(255, 77, 28, 0.4);
  border-radius: 5px;
  background: rgba(255, 77, 28, 0.08);
}
.take i {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 6.5px;
  letter-spacing: 0.16em;
  color: rgba(255, 122, 74, 0.8);
}
.take b {
  font-family: var(--poster);
  font-size: 15px;
  font-weight: 400;
  color: var(--signal-hi);
  line-height: 1;
}

.modes {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 3px;
  height: 36px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(15, 15, 18, 0.66);
  flex: none;
}
.modes__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc((100% - 6px) / 3);
  height: 28px;
  border-radius: 999px;
  background: var(--bone);
  transition: transform 0.5s var(--e1);
  z-index: 0;
}
.modes__item {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 28px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.35s var(--e3);
}
.modes__item:hover { color: var(--text); }
.modes__item.is-on { color: var(--ink); }
.stage[data-mode='cut'] .modes__thumb { transform: translateX(100%); }
.stage[data-mode='screen'] .modes__thumb { transform: translateX(200%); }

.slate__stat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}
.slate__chip {
  height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--hair);
  border-radius: 6px;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.slate__r .btn { height: 32px; padding: 0 14px; font-size: 11.5px; }
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ff7a4a, #c93407);
  color: #160a05;
  font-family: var(--font-display);
  font-size: 15px;
  border: 1px solid rgba(243, 239, 229, 0.18);
}

/* ==========================================================================
   PANELS
   ========================================================================== */

.p-shots,
.p-margin,
.p-cut {
  position: absolute;
  z-index: 20;
  background: var(--panel);
  display: flex;
  flex-direction: column;
}
.p-shots {
  left: 0;
  top: 64px;
  bottom: 196px;
  width: 288px;
  border-right: 1px solid var(--hair);
  transition: width 0.6s var(--e2), transform 0.6s var(--e2), opacity 0.4s var(--e3);
}
.p-margin {
  right: 0;
  top: 64px;
  bottom: 196px;
  width: 312px;
  border-left: 1px solid var(--hair);
  transition: width 0.6s var(--e2), transform 0.6s var(--e2), opacity 0.4s var(--e3);
}
.p-cut {
  left: 0;
  right: 0;
  bottom: 0;
  height: 196px;
  border-top: 1px solid var(--hair);
  transition: height 0.6s var(--e2), transform 0.6s var(--e2), opacity 0.4s var(--e3);
}
.p-monitor {
  position: absolute;
  top: 64px;
  left: 288px;
  right: 312px;
  bottom: 196px;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 16px 26px 18px;
  transition: top 0.6s var(--e2), left 0.6s var(--e2), right 0.6s var(--e2),
    bottom 0.6s var(--e2);
}

.p-head {
  flex: none;
  height: 44px;
  padding: 0 14px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--hair);
}
.p-head .label { font-size: 8px; }
.p-head__meta { font-size: 7.5px; letter-spacing: 0.12em; color: var(--text-faint); }
.p-foot {
  flex: none;
  padding: 9px 12px;
  border-top: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.p-foot__hint { font-size: 6.5px; letter-spacing: 0.14em; color: rgba(243, 239, 229, 0.24); }

/* ==========================================================================
   SHOT LIST
   ========================================================================== */

.shots {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 0;
  scrollbar-width: thin;
}
.shot {
  position: relative;
  display: grid;
  grid-template-columns: 20px 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  height: 57px;
  padding: 0 14px 0 12px;
  border-bottom: 1px solid var(--hair-soft);
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.shot::before {
  content: '';
  position: absolute;
  inset: 3px 6px;
  border-radius: 8px;
  background: var(--bone);
  opacity: 0;
  transition: opacity 0.22s var(--e3);
  z-index: 0;
}
.shot > * { position: relative; z-index: 1; }
.shot:hover::before { opacity: 0.05; }
.shot.is-on::before { opacity: 1; }
.shot.is-on { color: var(--ink); }
.shot.is-on .shot__n { color: var(--signal-deep); }
.shot.is-on .shot__body span,
.shot.is-on .shot__dur { color: rgba(10, 10, 11, 0.55); }
.shot.is-on .shot__mode { color: rgba(10, 10, 11, 0.4); border-color: rgba(10, 10, 11, 0.16); }
.shot.is-on img { filter: grayscale(0) saturate(1); }
.shot.is-dragging { z-index: 5; cursor: grabbing; }
.shot.is-dragging::before { opacity: 1; box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.9); }
.shot.is-over { box-shadow: inset 0 2px 0 var(--signal); }
.shot.is-new { animation: shot-in 0.6s var(--e1) both; }

@keyframes shot-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.shot__n {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}
.shot img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 7px;
  filter: grayscale(1) sepia(0.3) contrast(1.06) brightness(0.95);
  transition: filter 0.35s var(--e3);
}
.shot:hover img { filter: grayscale(0.2) sepia(0.1) contrast(1.05); }
.shot__body { min-width: 0; }
.shot__body b {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shot__body span {
  display: block;
  margin-top: 2px;
  font-size: 7px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
.shot__meta { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.shot__dur { font-size: 8.5px; color: var(--text-dim); }
.shot__mode {
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  border: 1px solid rgba(243, 239, 229, 0.14);
  border-radius: 3px;
  padding: 1px 3px;
}

.add-stop {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 10px;
  border: 1px dashed rgba(243, 239, 229, 0.2);
  border-radius: 8px;
  font-size: 11px;
  color: var(--text-dim);
  transition: border-color 0.2s var(--e3), color 0.2s var(--e3),
    background 0.2s var(--e3);
}
.add-stop:hover { border-color: var(--signal); color: var(--text); background: rgba(255, 77, 28, 0.05); }
.add-stop .kbd { margin-left: auto; }

/* ==========================================================================
   MONITOR
   ========================================================================== */

.monitor {
  width: 100%;
  max-width: 812px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: max-width 0.65s var(--e2);
}
.monitor__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 3px;
  background: #040507;
  box-shadow: 0 50px 90px -50px #000, 0 0 0 1px rgba(243, 239, 229, 0.07);
  transition: aspect-ratio 0.3s linear;
}
.frame__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 70% at 50% 46%, #0d1114 0%, #06080a 60%, #020304 100%);
}
.globe-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: translateY(1%);
}
.globe-wrap .globe { --gs: 690px; }
.frame__bg + .globe-wrap .globe__halo { opacity: 0.5; }

.lower-third {
  position: absolute;
  left: 14px;
  bottom: 30px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 8px;
  background: rgba(9, 10, 12, 0.72);
  border: 1px solid rgba(243, 239, 229, 0.14);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: opacity 0.4s var(--e3);
}
.lower-third img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.lower-third__n {
  display: block;
  font-size: 6.5px;
  letter-spacing: 0.16em;
  color: var(--signal-hi);
}
.lower-third b {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}
.lower-third__meta {
  display: block;
  margin-top: 3px;
  font-size: 6.5px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.safe {
  position: absolute;
  inset: 7% 8%;
  border: 1px dashed rgba(243, 239, 229, 0.13);
  pointer-events: none;
  transition: opacity 0.3s var(--e3);
}
.safe::before,
.safe::after {
  content: '';
  position: absolute;
  background: rgba(243, 239, 229, 0.24);
}
.safe::before { left: 50%; top: -5px; width: 1px; height: 10px; }
.safe::after { top: 50%; left: -5px; width: 10px; height: 1px; }
.thirds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, transparent 33.32%, rgba(243, 239, 229, 0.055) 33.32%, rgba(243, 239, 229, 0.055) 33.42%, transparent 33.42%),
    linear-gradient(90deg, transparent 66.62%, rgba(243, 239, 229, 0.055) 66.62%, rgba(243, 239, 229, 0.055) 66.72%, transparent 66.72%),
    linear-gradient(180deg, transparent 33.32%, rgba(243, 239, 229, 0.055) 33.32%, rgba(243, 239, 229, 0.055) 33.42%, transparent 33.42%),
    linear-gradient(180deg, transparent 66.62%, rgba(243, 239, 229, 0.055) 66.62%, rgba(243, 239, 229, 0.055) 66.72%, transparent 66.72%);
}
.corner {
  position: absolute;
  width: 13px;
  height: 13px;
  border-color: rgba(243, 239, 229, 0.42);
  border-style: solid;
  border-width: 0;
  z-index: 5;
}
.corner--tl { left: 8px; top: 8px; border-left-width: 1px; border-top-width: 1px; }
.corner--tr { right: 8px; top: 8px; border-right-width: 1px; border-top-width: 1px; }
.corner--bl { left: 8px; bottom: 8px; border-left-width: 1px; border-bottom-width: 1px; }
.corner--br { right: 8px; bottom: 8px; border-right-width: 1px; border-bottom-width: 1px; }

.hud {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.16em;
  color: rgba(243, 239, 229, 0.5);
  text-transform: uppercase;
  white-space: nowrap;
}
.hud b { font-weight: 400; color: rgba(243, 239, 229, 0.8); }
.hud--tl { left: 26px; top: 16px; }
.hud--tr { right: 26px; top: 16px; color: rgba(243, 239, 229, 0.36); }
.hud--bl { left: 26px; bottom: 14px; font-size: 8px; color: rgba(243, 239, 229, 0.72); }
.hud--br { right: 26px; bottom: 14px; }
.hud--bc { left: 50%; top: 16px; transform: translateX(-50%); }
.rec {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 2px rgba(255, 77, 28, 0.18);
  animation: rec-blink 2.4s steps(1) infinite;
}
.is-playing .rec { animation-duration: 0.8s; }
.rec + b { color: rgba(255, 122, 74, 0.9); }
@keyframes rec-blink { 0%, 70% { opacity: 1; } 71%, 100% { opacity: 0.25; } }

.monitor__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 4px;
  transition: opacity 0.4s var(--e3);
}
.transport { display: flex; align-items: center; gap: 4px; }
.transport .icon-btn { width: 28px; height: 28px; }
.play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--signal);
  color: #180a05;
  transition: transform 0.3s var(--e1), background 0.2s var(--e3);
}
.play:hover { background: var(--signal-hi); transform: scale(1.05); }
.play svg { width: 14px; height: 14px; margin-left: 1px; }
.is-playing .play svg { margin-left: 0; }

.monitor__tc { font-size: 8.5px; letter-spacing: 0.1em; color: var(--text-faint); display: flex; gap: 4px; }
.monitor__tc b { font-weight: 400; color: var(--bone); }
.scrub {
  position: relative;
  flex: 1;
  height: 20px;
  cursor: pointer;
  display: grid;
  align-items: center;
}
.scrub::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: rgba(243, 239, 229, 0.14);
}
.scrub__fill {
  position: absolute;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--signal);
  width: 53%;
}
.scrub__handle {
  position: absolute;
  left: 53%;
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--bone);
  box-shadow: 0 0 0 3px rgba(243, 239, 229, 0.12);
}
.cam {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 9px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  transition: color 0.2s var(--e3), border-color 0.2s var(--e3);
}
.cam:hover { color: var(--text); border-color: rgba(243, 239, 229, 0.28); }

/* ==========================================================================
   MARGIN — the assistant as a pencil note
   ========================================================================== */

.notes {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  scrollbar-width: thin;
}
.note {
  position: relative;
  background: var(--bone);
  color: var(--ink);
  border-radius: 6px;
  padding: 9px 11px 10px;
  box-shadow: 0 18px 32px -22px rgba(0, 0, 0, 0.9);
}
.note::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--signal-deep);
  border-radius: 2px;
}
.note__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 6.5px;
  letter-spacing: 0.12em;
  color: rgba(10, 10, 11, 0.45);
}
.note__kind {
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.14em;
  color: var(--signal-deep);
  border: 1px solid rgba(216, 58, 14, 0.35);
  border-radius: 3px;
  padding: 1px 4px;
}
.note p {
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.55;
  color: rgba(10, 10, 11, 0.74);
}
.note p em {
  font-style: normal;
  border-bottom: 1px solid rgba(216, 58, 14, 0.45);
  color: rgba(10, 10, 11, 0.9);
}
.note__actions { display: flex; gap: 6px; margin-top: 9px; }
.note__accept,
.note__reject {
  height: 24px;
  padding: 0 10px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 500;
  transition: background 0.2s var(--e3), color 0.2s var(--e3),
    border-color 0.2s var(--e3);
}
.note__accept { background: var(--ink); color: var(--bone); }
.note__accept:hover { background: #242428; }
.note__reject { border: 1px solid rgba(10, 10, 11, 0.18); color: rgba(10, 10, 11, 0.6); }
.note__reject:hover { border-color: rgba(10, 10, 11, 0.4); color: var(--ink); }
.note.is-applied { background: #d9e4c8; }
.note.is-applied::before { background: #4f6a2f; }
.note.is-applied .note__accept { display: none; }
.note.is-applied p { text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: rgba(10, 10, 11, 0.35); }
.note.is-applied .note__kind { color: #4f6a2f; border-color: rgba(79, 106, 47, 0.4); }
.note.is-rejected { background: transparent; color: var(--text-faint); box-shadow: none; border: 1px dashed var(--hair); padding: 8px 10px; }
.note.is-rejected::before { display: none; }
.note.is-rejected .note__head { color: var(--text-faint); }
.note.is-rejected p { color: var(--text-faint); text-decoration: line-through; }
.note.is-rejected .note__actions { display: none; }
.note.is-rejected .note__kind { opacity: 0.5; }
.note--done {
  background: transparent;
  border: 1px dashed var(--hair);
  box-shadow: none;
  color: var(--text-faint);
  padding: 8px 10px;
}
.note--done::before { display: none; }
.note--done .note__head { color: var(--text-faint); }
.note--done .note__kind { color: var(--text-faint); border-color: var(--hair); }
.note--done p { color: var(--text-faint); font-size: 10px; text-decoration: line-through; text-decoration-color: rgba(243, 239, 229, 0.22); }

.photos {
  flex: none;
  padding: 10px 14px 0;
  border-top: 1px dashed var(--hair);
}
.photos__head { display: flex; align-items: center; justify-content: space-between; }
.photos__head .label { font-size: 7px; }
.photos__head .mono { font-size: 6.5px; letter-spacing: 0.12em; color: var(--text-faint); }
.photos__row { display: flex; gap: 6px; margin-top: 8px; }
.ph {
  width: 58px;
  height: 42px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--hair-soft);
  transition: transform 0.35s var(--e1), border-color 0.2s var(--e3);
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) sepia(0.3) brightness(0.92);
  transition: filter 0.35s var(--e3);
}
.ph:hover { transform: translateY(-2px); border-color: rgba(243, 239, 229, 0.3); }
.ph:hover img { filter: none; }
.ph--more {
  display: grid;
  place-items: center;
  border-style: dashed;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-faint);
}
.ph--more:hover { color: var(--text); }

.ask {
  flex: none;
  margin: 10px 14px 14px;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(243, 239, 229, 0.03);
  transition: border-color 0.2s var(--e3), background 0.2s var(--e3);
}
.ask:focus-within { border-color: rgba(255, 77, 28, 0.5); background: rgba(255, 77, 28, 0.04); }
.ask__icon { color: var(--signal); flex: none; }
.ask input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font-size: 11px;
  color: var(--text);
}
.ask input::placeholder { color: var(--text-faint); }
.ask .kbd { flex: none; }

/* ==========================================================================
   THE CUT — filmstrip
   ========================================================================== */

.cut__head {
  flex: none;
  height: 40px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--hair);
}
.cut__head .label { font-size: 8px; }
.cut__tc { display: flex; align-items: baseline; gap: 5px; font-size: 9px; letter-spacing: 0.08em; color: var(--text-faint); }
.cut__tc b { font-weight: 400; color: var(--signal-hi); }
.cut__tc i { font-style: normal; color: rgba(243, 239, 229, 0.2); }
.cut__tools { display: flex; gap: 4px; margin-left: 4px; }
.cut__tool {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--hair);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s var(--e3), border-color 0.2s var(--e3);
}
.cut__tool:hover { color: var(--text); border-color: rgba(243, 239, 229, 0.26); }
.cut__range { margin-left: auto; font-size: 7.5px; letter-spacing: 0.1em; color: var(--text-faint); }
.cut__range b { font-weight: 400; color: var(--text-dim); }
.cut__zoom { font-size: 7px; letter-spacing: 0.1em; color: rgba(243, 239, 229, 0.3); }

.strip {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #060709;
  overflow: hidden;
  --in: 1%;
  --out: 98%;
}
.strip__track {
  position: absolute;
  inset: 15px 18px;
  display: flex;
  align-items: stretch;
}
.strip__spool {
  position: absolute;
  left: 0;
  right: 0;
  height: 13px;
  z-index: 3;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(243, 239, 229, 0.18) 1.7px, transparent 1.8px);
  background-size: 15px 13px;
  background-position: 8px center;
  opacity: 0.7;
}
.strip__spool--t { top: 1px; }
.strip__spool--b { bottom: 1px; }

.frame {
  position: relative;
  flex: 1 1 0;
  min-width: 42px;
  overflow: hidden;
  border-right: 1px solid rgba(0, 0, 0, 0.55);
  cursor: pointer;
  transition: box-shadow 0.25s var(--e3), opacity 0.25s var(--e3);
}
.frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) sepia(0.35) brightness(0.72) contrast(1.05);
  transition: filter 0.4s var(--e3), opacity 0.3s var(--e3);
}
.frame:hover img { filter: grayscale(0.3) sepia(0.1) brightness(0.9); }
.frame.is-on { box-shadow: inset 0 0 0 2px var(--signal); }
.frame.is-on img { filter: grayscale(0) sepia(0) brightness(0.95); }
.frame.is-off img { opacity: 0.4; }
.frame::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  pointer-events: none;
}
.frame__tag {
  position: absolute;
  left: 5px;
  bottom: 4px;
  z-index: 2;
  font-size: 6px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
}
.frame--card {
  flex: 0 0 62px;
  background:
    repeating-linear-gradient(180deg, rgba(243, 239, 229, 0.05) 0 1px, transparent 1px 7px),
    #101114;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: default;
}
.frame--card::after { display: none; }
.frame--card .mono { font-size: 5.5px; letter-spacing: 0.18em; color: var(--text-faint); }
.frame--card b { font-family: var(--poster); font-size: 13px; font-weight: 400; letter-spacing: 0.04em; color: var(--text-dim); }

.leg {
  flex: 0 0 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: #0a0b0e;
  border-left: 1px dashed rgba(243, 239, 229, 0.1);
  border-right: 1px dashed rgba(243, 239, 229, 0.1);
  cursor: default;
}
.leg .mono { font-size: 7px; letter-spacing: 0.04em; color: var(--text-dim); }
.leg em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 5.5px;
  letter-spacing: 0.16em;
  color: var(--text-faint);
}
.leg.is-trim { background: rgba(217, 255, 87, 0.07); }
.leg.is-trim .mono { color: var(--acid); }

.strip__dim {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  pointer-events: none;
  background: rgba(4, 5, 7, 0.62);
}
.strip__dim--l { left: 0; width: var(--in); }
.strip__dim--r { right: 0; width: calc(100% - var(--out)); }
.strip__io {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  z-index: 5;
  background: var(--signal);
  pointer-events: none;
}
.strip__io::after {
  content: '';
  position: absolute;
  left: -4px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--signal);
}
.strip__io--in { left: var(--in); }
.strip__io--out { left: var(--out); }

.playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 53%;
  width: 1px;
  z-index: 6;
  background: var(--signal);
  box-shadow: 0 0 12px rgba(255, 77, 28, 0.55);
  pointer-events: none;
}
.playhead::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  margin-left: -5px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--signal);
}
.playhead b {
  position: absolute;
  left: 4px;
  bottom: 4px;
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--signal);
  color: #180a05;
  font-size: 6.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ==========================================================================
   MODES
   ========================================================================== */

.stage[data-mode='plan'] .p-shots { width: 238px; }
.stage[data-mode='plan'] .p-margin { width: 268px; }
.stage[data-mode='plan'] .p-cut { height: 54px; }
.stage[data-mode='plan'] .p-monitor { left: 238px; right: 268px; bottom: 54px; }
.stage[data-mode='plan'] .monitor { max-width: 940px; }
.stage[data-mode='plan'] .monitor__frame { aspect-ratio: 16 / 9; }
.stage[data-mode='plan'] .notes { display: none; }
.stage[data-mode='plan'] .photos { flex: 1; border-top: 0; }

.stage[data-mode='screen'] .slate { opacity: 0; pointer-events: none; transform: translateY(-100%); }
.stage[data-mode='screen'] .p-shots { transform: translateX(-100%); opacity: 0; pointer-events: none; }
.stage[data-mode='screen'] .p-margin { transform: translateX(100%); opacity: 0; pointer-events: none; }
.stage[data-mode='screen'] .p-cut { transform: translateY(100%); opacity: 0; pointer-events: none; }
.stage[data-mode='screen'] .p-monitor { top: 0; left: 0; right: 0; bottom: 0; padding: 0; }
.stage[data-mode='screen'] .monitor { max-width: 1320px; }
.stage[data-mode='screen'] .monitor__frame { aspect-ratio: 2.39 / 1; border-radius: 0; }
.stage[data-mode='screen'] .monitor__bar { opacity: 0; pointer-events: none; }
.stage[data-mode='screen'] .safe,
.stage[data-mode='screen'] .thirds,
.stage[data-mode='screen'] .hud--tl,
.stage[data-mode='screen'] .hud--bc,
.stage[data-mode='screen'] .hud--br { opacity: 0; }
.stage[data-mode='screen'] .lower-third { opacity: 0; }

.screen-exit {
  position: absolute;
  right: 22px;
  top: 20px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(243, 239, 229, 0.16);
  background: rgba(9, 10, 12, 0.7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.45s var(--e3) 0.15s, transform 0.45s var(--e3) 0.15s;
}
.stage[data-mode='screen'] .screen-exit { opacity: 1; pointer-events: auto; transform: none; }
.screen-exit:hover { color: var(--text); border-color: rgba(243, 239, 229, 0.3); }

/* ==========================================================================
   FEEDBACK
   ========================================================================== */

.toast {
  position: absolute;
  left: 50%;
  bottom: 214px;
  z-index: 50;
  transform: translate(-50%, 10px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(243, 239, 229, 0.95);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 22px 40px -20px rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--e3), transform 0.4s var(--e1);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast b { font-weight: 600; color: var(--signal-deep); }

.stage.is-playing .frame.is-on { box-shadow: inset 0 0 0 2px var(--signal), inset 0 0 24px rgba(255, 77, 28, 0.25); }

@media (prefers-reduced-motion: reduce) {
  .st *, .st *::before, .st *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* the room's planet: ink sphere, warm land, ember limb --------------------- */
.st .globe-wrap .globe { --gs: 472px; }
.st .globe__halo {
  opacity: 0.38;
  filter: blur(30px);
  background: radial-gradient(circle at 54% 52%, rgba(255, 92, 40, 0.2),
    rgba(255, 77, 28, 0.05) 44%, transparent 66%);
}
.st .globe__sphere {
  background: radial-gradient(circle at 32% 24%, #1a2429 0%, #0c1215 34%,
    #05090b 66%, #020304 100%);
}
.st .globe__map {
  filter: grayscale(1) brightness(2.5) contrast(1.95) sepia(0.62) saturate(2.9)
    hue-rotate(-12deg);
  opacity: 0.64;
}
.st .globe__shade {
  background: radial-gradient(circle at 30% 22%, rgba(226, 238, 245, 0.1), transparent 30%),
    radial-gradient(circle at 72% 78%, rgba(0, 0, 0, 0.93) 0%, rgba(0, 0, 0, 0.46) 44%, transparent 70%),
    linear-gradient(112deg, transparent 32%, rgba(0, 0, 0, 0.46) 64%, rgba(0, 0, 0, 0.93) 100%);
}
.st .globe__rim {
  box-shadow: inset 0 0 0 1px rgba(255, 196, 160, 0.24),
    inset -12px -16px 52px rgba(255, 90, 40, 0.12),
    inset 26px 30px 90px rgba(0, 0, 0, 0.7);
}
.st .globe__orbit { opacity: 0.7; }

/* mode-specific surfaces -------------------------------------------------- */
.p-cut { overflow: hidden; }
.strip { overflow: hidden; }

.stage[data-mode='plan'] .globe-wrap .globe { --gs: 566px; }
.stage[data-mode='plan'] .photos {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 0;
}
.stage[data-mode='plan'] .photos__row {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 8px;
  min-height: 0;
}
.stage[data-mode='plan'] .ph { width: auto; height: auto; }
.stage[data-mode='plan'] .ph img { height: 100%; }
.stage[data-mode='plan'] .ph--more { font-size: 10px; }

.stage[data-mode='screen'] .monitor { max-width: 1440px; }
.stage[data-mode='screen'] .monitor__bar { display: none; }
.stage[data-mode='screen'] .globe-wrap .globe { --gs: 840px; }
.stage[data-mode='screen'] .monitor__frame { box-shadow: none; }

.note.is-applied .note__actions { display: none; }
.note.is-applied { background: #e8eddc; }

.stage[data-mode='plan'] .strip { display: none; }
.stage[data-mode='plan'] .photos__head { display: none; }

.stage[data-mode='plan'] .cut__tools { display: none; }

/* ==========================================================================
   GLOBE LAYERS — satellite / paper / night, and the imagery-safe chrome
   ========================================================================== */

.globe__relief,
.globe__lights {
  position: absolute;
  inset: -2%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.55s var(--e3);
}

/* satellite ---------------------------------------------------------------- */
.stage[data-layer='sat'] .globe__map {
  mix-blend-mode: normal;
  filter: saturate(1.5) contrast(1.12) brightness(2.75);
  opacity: 1;
}
.stage[data-layer='sat'] .globe__sphere {
  background: radial-gradient(circle at 34% 26%, #0e2a3c 0%, #081d2b 40%, #04121c 70%, #01070c 100%);
  box-shadow: inset -1px -1px 1px rgba(255, 255, 255, 0.16),
    inset -26px -34px 80px rgba(0, 0, 0, 0.92),
    inset 22px 24px 70px rgba(110, 180, 255, 0.14),
    0 90px 150px -60px rgba(0, 0, 0, 0.98);
}
.stage[data-layer='sat'] .globe__shade {
  background: radial-gradient(circle at 30% 22%, rgba(210, 235, 255, 0.1), transparent 32%),
    radial-gradient(circle at 74% 80%, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.22) 48%, transparent 74%),
    linear-gradient(112deg, transparent 40%, rgba(0, 0, 0, 0.16) 68%, rgba(0, 0, 0, 0.5) 100%);
}
.stage[data-layer='sat'] .globe__rim {
  box-shadow: inset 0 0 0 1px rgba(150, 210, 255, 0.3),
    inset 0 0 44px rgba(80, 160, 230, 0.2),
    inset -16px -20px 60px rgba(30, 110, 170, 0.18),
    inset 24px 28px 90px rgba(0, 0, 0, 0.55);
}
.stage[data-layer='sat'] .globe__halo { opacity: 0; }
.stage[data-layer='sat'] .globe__relief {
  opacity: 0.38;
  background: url('../public/textures/earth-topology.png') 76% 46% / 190% auto no-repeat;
  mix-blend-mode: overlay;
  filter: contrast(1.5) brightness(0.85);
}
.stage[data-layer='sat'] .thirds { opacity: 0.42; }
.stage[data-layer='sat'] .safe { border-color: rgba(243, 239, 229, 0.1); }

/* night -------------------------------------------------------------------- */
.stage[data-layer='night'] .globe__map {
  mix-blend-mode: normal;
  filter: grayscale(0.35) brightness(1.95) contrast(1.2) sepia(0.35) saturate(1.7);
  opacity: 0.92;
}
.stage[data-layer='night'] .globe__sphere {
  background: radial-gradient(circle at 34% 26%, #0a1a26 0%, #04101a 55%, #010508 100%);
}
.stage[data-layer='night'] .globe__shade {
  background: radial-gradient(circle at 30% 22%, rgba(255, 220, 170, 0.08), transparent 32%),
    radial-gradient(circle at 74% 80%, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.2) 48%, transparent 74%),
    linear-gradient(112deg, transparent 40%, rgba(0, 0, 0, 0.22) 68%, rgba(0, 0, 0, 0.6) 100%);
}
.stage[data-layer='night'] .globe__rim {
  box-shadow: inset 0 0 0 1px rgba(255, 180, 120, 0.24),
    inset 0 0 40px rgba(255, 140, 70, 0.12),
    inset -14px -18px 54px rgba(255, 120, 50, 0.16),
    inset 24px 28px 90px rgba(0, 0, 0, 0.6);
}
.stage[data-layer='night'] .globe__lights { opacity: 1; }
.stage[data-layer='night'] .globe__halo { opacity: 0.28; }

.globe__lights {
  mix-blend-mode: screen;
  filter: blur(0.4px);
  background-image:
    radial-gradient(circle at 53% 38%, rgba(255, 196, 128, 0.95) 0 1px, transparent 1.8px),
    radial-gradient(circle at 56% 41%, rgba(255, 210, 150, 0.8) 0 1.2px, transparent 2px),
    radial-gradient(circle at 58% 36%, rgba(255, 180, 110, 0.7) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 61% 40%, rgba(255, 200, 130, 0.85) 0 1px, transparent 1.9px),
    radial-gradient(circle at 63% 34%, rgba(255, 220, 160, 0.6) 0 1px, transparent 1.8px),
    radial-gradient(circle at 55% 48%, rgba(255, 190, 120, 0.7) 0 1.1px, transparent 2px),
    radial-gradient(circle at 59% 46%, rgba(255, 205, 140, 0.85) 0 1px, transparent 1.8px),
    radial-gradient(circle at 66% 38%, rgba(255, 210, 150, 0.6) 0 0.9px, transparent 1.6px),
    radial-gradient(circle at 68% 44%, rgba(255, 195, 130, 0.8) 0 1.1px, transparent 2px),
    radial-gradient(circle at 71% 36%, rgba(255, 220, 170, 0.65) 0 1px, transparent 1.8px),
    radial-gradient(circle at 62% 52%, rgba(255, 190, 120, 0.7) 0 1px, transparent 1.8px),
    radial-gradient(circle at 57% 55%, rgba(255, 205, 145, 0.6) 0 1.2px, transparent 2px),
    radial-gradient(circle at 65% 30%, rgba(255, 200, 140, 0.55) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 50% 44%, rgba(255, 190, 130, 0.5) 0 1px, transparent 1.8px),
    radial-gradient(circle at 74% 42%, rgba(255, 205, 150, 0.5) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 60% 58%, rgba(255, 195, 135, 0.5) 0 0.9px, transparent 1.7px);
}

/* tile fetch sweep when the layer changes ---------------------------------- */
.globe__sphere.is-switching::after {
  content: '';
  position: absolute;
  inset: -25%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(170, 220, 255, 0.16) 50%, transparent 62%);
  animation: tile-sweep 0.8s var(--e3) both;
  z-index: 3;
}
@keyframes tile-sweep {
  from { transform: translateX(-45%); }
  to { transform: translateX(45%); }
}

/* ==========================================================================
   IMAGERY-SAFE CHROME
   ========================================================================== */

.frame__scrim {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  pointer-events: none;
}
.frame__scrim--t {
  top: 0;
  height: 96px;
  background: linear-gradient(180deg, rgba(4, 5, 7, 0.74), rgba(4, 5, 7, 0));
}
.frame__scrim--b {
  bottom: 0;
  height: 132px;
  background: linear-gradient(0deg, rgba(4, 5, 7, 0.9), rgba(4, 5, 7, 0));
}

.hud {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.55);
}
.hud--tr,
.hud--br { align-items: flex-end; }
.hud__row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}
.hud__row--sub {
  font-size: 6.8px;
  letter-spacing: 0.12em;
  color: rgba(243, 239, 229, 0.55);
  text-transform: uppercase;
}

.lower-third {
  background: linear-gradient(100deg, rgba(6, 7, 9, 0.95) 0%, rgba(6, 7, 9, 0.8) 58%, rgba(6, 7, 9, 0.56) 100%);
  border-color: rgba(243, 239, 229, 0.18);
  box-shadow: 0 20px 34px -24px rgba(0, 0, 0, 0.95);
}
.lower-third img { box-shadow: 0 0 0 1px rgba(243, 239, 229, 0.12); }

.globe__arcs { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85)); }

/* ==========================================================================
   LAYER SWITCHER
   ========================================================================== */

.layers {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  height: 26px;
  padding: 0 3px 0 7px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(12, 13, 16, 0.7);
  flex: none;
}
.layers__icon {
  display: grid;
  place-items: center;
  margin-right: 3px;
  color: var(--text-faint);
}
.layers__icon svg { width: 11px; height: 11px; }
.layers__item {
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color 0.2s var(--e3), background 0.2s var(--e3);
}
.layers__item:hover { color: var(--text); }
.layers__item.is-on { background: var(--bone); color: var(--ink); }

.stage[data-layer='sat'] .hud__row--sub,
.stage[data-layer='night'] .hud__row--sub { color: rgba(243, 239, 229, 0.62); }
