:root {
  color-scheme: dark;
  --bg: #0d0f12;
  --panel: #181b20;
  --panel-2: #20242a;
  --panel-3: #282d34;
  --line: #3a414a;
  --line-soft: #2b3138;
  --text: #edf1f4;
  --muted: #a0a8b0;
  --quiet: #69737d;
  --accent: #2fc6b5;
  --accent-2: #f6a52d;
  --accent-3: #e95268;
  --accent-4: #4fa3ff;
  --shadow: 0 18px 60px rgba(0, 0, 0, .38);
  --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #0b0d10;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 34rem),
    linear-gradient(135deg, rgba(79, 163, 255, .05), transparent 42%),
    #090b0e;
}

button,
a,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

.startup-screen,
.project-home {
  width: min(1180px, calc(100vw - 24px));
  min-height: calc(100vh - 24px);
  margin: 12px auto;
}

.startup-screen[hidden],
.project-home[hidden],
.app-shell[hidden] {
  display: none;
}

.startup-screen {
  display: grid;
  place-items: center;
}

.startup-window {
  position: relative;
  width: min(720px, 100%);
  min-height: 430px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 18px;
  padding: 46px;
  overflow: hidden;
  border: 1px solid #303842;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.01)),
    #12161b;
  box-shadow: 0 32px 90px rgba(0,0,0,.52);
}

.startup-window::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035), rgba(255,255,255,.035) 1px, transparent 1px, transparent 6px);
  opacity: .36;
  animation: startupSweep 2.4s ease-in-out infinite;
}

.startup-chrome {
  position: absolute;
  top: 14px;
  left: 16px;
  display: flex;
  gap: 7px;
}

.window-controls button {
  width: 10px;
  aspect-ratio: 1;
  padding: 0;
  border-radius: 50%;
  background: var(--accent-3);
  cursor: pointer;
}

.window-controls button:nth-child(2) {
  background: var(--accent-2);
}

.window-controls button:nth-child(3) {
  background: var(--accent);
}

.window-controls button:hover,
.window-controls button:focus-visible {
  transform: scale(1.18);
  outline: 1px solid rgba(255,255,255,.5);
  outline-offset: 2px;
}

.startup-mark {
  position: relative;
  z-index: 1;
  width: 108px;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px;
  border: 1px solid #303842;
  border-radius: 8px;
  background: #0b0f13;
}

.startup-mark span {
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), #126b62);
  animation: startupTile 1.3s ease-in-out infinite alternate;
}

.startup-mark span:nth-child(2) {
  background: linear-gradient(180deg, var(--accent-2), #8b621b);
  animation-delay: 160ms;
}

.startup-mark span:nth-child(3) {
  background: linear-gradient(180deg, var(--accent-4), #255b98);
  animation-delay: 320ms;
}

.startup-kicker,
.project-home-head p,
.project-card-type {
  margin: 0;
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.startup-window h1 {
  position: relative;
  z-index: 1;
  max-width: 590px;
  margin: 0;
  text-align: center;
  font-size: clamp(34px, 6vw, 58px);
  line-height: .98;
  letter-spacing: 0;
}

.startup-steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  width: min(460px, 100%);
}

.startup-steps span {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  color: #dbe3e8;
  border: 1px solid #29313a;
  border-radius: 6px;
  background: #151a20;
  font-size: 12px;
}

.startup-steps span::before {
  content: "";
  width: 7px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--quiet);
}

.startup-steps span.is-active::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 198, 181,.14);
}

.startup-progress {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #080b0e;
  border: 1px solid #29313a;
}

.startup-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-4));
  animation: startupLoad 15s ease forwards;
}

.startup-window .mini-button {
  position: relative;
  z-index: 1;
  height: 32px;
  color: var(--text);
  background: #1d2329;
}

.project-home {
  display: grid;
  grid-template-rows: 60px 1fr;
  border: 1px solid #252d35;
  border-radius: 8px;
  overflow: hidden;
  background: #101215;
  box-shadow: var(--shadow);
}

.project-home-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border-bottom: 1px solid #2a323b;
  background: linear-gradient(180deg, #20252b, #15191e);
}

.project-home-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-home-head h1 {
  margin: 2px 0 0;
  font-size: 17px;
  letter-spacing: 0;
}

.project-home-body {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 24px;
  padding: clamp(18px, 3vw, 34px);
  min-height: 0;
}

.project-home-hero {
  align-self: stretch;
  display: grid;
  align-content: end;
  gap: 12px;
  min-height: 430px;
  padding: 22px;
  border-right: 1px solid #252d35;
}

.project-home-hero h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: .96;
  letter-spacing: 0;
}

.project-home-hero p:last-child {
  margin: 0;
  max-width: 320px;
  color: #c7d0d6;
  line-height: 1.55;
}

.hero-action {
  width: max-content;
  max-width: 100%;
  padding: 0 14px;
}

.project-library {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
}

.project-card {
  position: relative;
  min-height: 170px;
  display: grid;
  align-content: end;
  gap: 9px;
  padding: 16px;
  color: var(--text);
  border: 1px solid #2a323b;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), transparent 48%),
    #151a20;
  text-align: left;
  cursor: pointer;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  width: 42px;
  height: 26px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 5px;
  background:
    linear-gradient(90deg, var(--accent), transparent 48%),
    #0b0f13;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: rgba(47, 198, 181,.65);
  background:
    linear-gradient(180deg, rgba(47, 198, 181,.11), transparent 52%),
    #171e24;
}

.project-card.is-featured::before {
  background:
    linear-gradient(90deg, var(--accent-3), var(--accent-2)),
    #0b0f13;
}

.project-card.new-card::before {
  background:
    linear-gradient(90deg, transparent 44%, var(--accent) 44% 56%, transparent 56%),
    linear-gradient(0deg, transparent 41%, var(--accent) 41% 59%, transparent 59%),
    #0b0f13;
}

.project-card strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.project-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

@keyframes startupLoad {
  to { transform: scaleX(1); }
}

@keyframes startupSweep {
  0%, 100% { transform: translateX(-38%); }
  50% { transform: translateX(38%); }
}

@keyframes startupTile {
  from { transform: translateY(0); opacity: .78; }
  to { transform: translateY(-8px); opacity: 1; }
}

.app-shell {
  width: min(1680px, calc(100vw - 24px));
  min-height: calc(100vh - 88px);
  margin: 12px auto 0;
  display: grid;
  grid-template-rows: 48px minmax(640px, 1fr) 58px;
  border: 1px solid #252d35;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.topbar,
.page-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(180deg, #20252b, #15191e);
  border-bottom: 1px solid #2a323b;
}

.topbar {
  padding: 0 14px;
}

.traffic {
  display: flex;
  gap: 7px;
}

.traffic button {
  width: 11px;
  aspect-ratio: 1;
  padding: 0;
  border-radius: 50%;
  background: var(--accent-3);
  cursor: pointer;
}

.traffic button:nth-child(2) {
  background: var(--accent-2);
}

.traffic button:nth-child(3) {
  background: var(--accent);
}

body.is-window-small {
  overflow: auto;
}

body.is-window-small .startup-screen,
body.is-window-small .project-home,
body.is-window-small .app-shell,
body.is-window-small .contact-dock {
  transform: scale(.78);
  transform-origin: top center;
}

body.is-window-small .app-shell {
  min-height: calc(100vh - 220px);
}

body.is-window-small .project-home,
body.is-window-small .startup-screen {
  min-height: auto;
}

body.is-window-fullscreen {
  overflow: auto;
}

body.is-window-fullscreen .startup-screen,
body.is-window-fullscreen .project-home,
body.is-window-fullscreen .app-shell,
body.is-window-fullscreen .contact-dock {
  width: 100%;
  margin: 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}

body.is-window-fullscreen .startup-screen,
body.is-window-fullscreen .project-home {
  min-height: 100vh;
}

body.is-window-fullscreen .app-shell {
  min-height: calc(100vh - 84px);
}

.project-title {
  min-width: 220px;
  display: grid;
  gap: 1px;
}

.project-title strong {
  font-size: 13px;
  letter-spacing: 0;
}

.project-title span,
.panel-head,
.viewer-toolbar,
.timeline-ruler,
.clip-meta,
.form-row label,
.metric span,
.node small {
  color: var(--muted);
  font-size: 11px;
}

.workspace-tabs {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.mode-button,
.mini-button,
.bin,
.tool-dot,
.page-node,
.icon-button,
.transport-button {
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.mode-button {
  min-width: 68px;
  height: 30px;
  border-radius: 6px;
  font-size: 12px;
}

.mode-button:hover,
.mode-button.is-active,
.page-node:hover,
.page-node.is-active {
  color: var(--text);
  background: #2a3139;
}

.top-actions {
  display: flex;
  gap: 8px;
}

.owner-button {
  min-width: 62px;
  height: 34px;
  color: #081411;
  background: var(--accent-2);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.icon-button,
.transport-button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
}

.icon {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
}

.icon.mail {
  border: 1.8px solid currentColor;
  border-radius: 3px;
}

.icon.mail::before {
  content: "";
  position: absolute;
  inset: 3px 1px auto;
  height: 8px;
  border-left: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(-45deg);
}

.icon.send::before,
.icon.next::before,
.icon.prev::before,
.icon.play::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-style: solid;
}

.icon.send::before {
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent currentColor;
  transform: skewX(-10deg);
}

.icon.play::before {
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent currentColor;
  left: 4px;
}

.icon.next::before,
.icon.prev::before {
  width: 9px;
  height: 9px;
  border-width: 2px 2px 0 0;
  border-color: currentColor currentColor transparent transparent;
  transform: rotate(45deg);
}

.icon.prev::before {
  transform: rotate(-135deg);
  left: 5px;
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(520px, 1fr) minmax(260px, 340px);
  min-height: 0;
}

.app-shell[data-mode="media"] .editor-grid {
  grid-template-columns: minmax(330px, 420px) minmax(520px, 1fr) minmax(250px, 320px);
}

.app-shell[data-mode="cut"] .editor-grid,
.app-shell[data-mode="edit"] .editor-grid {
  grid-template-columns: minmax(250px, 310px) minmax(560px, 1fr) minmax(270px, 350px);
}

.app-shell[data-mode="fusion"] .editor-grid,
.app-shell[data-mode="color"] .editor-grid,
.app-shell[data-mode="fairlight"] .editor-grid,
.app-shell[data-mode="deliver"] .editor-grid {
  grid-template-columns: minmax(210px, 260px) minmax(560px, 1fr) minmax(320px, 430px);
}

.panel {
  min-width: 0;
  min-height: 0;
  background: var(--panel);
  border-right: 1px solid #252d35;
}

.media-pool {
  display: flex;
  flex-direction: column;
}

.panel-head {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line-soft);
  text-transform: uppercase;
}

.mini-button {
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 11px;
}

.mini-button.danger {
  color: #ffdbe2;
  border-color: rgba(233, 82, 104, .55);
  background: rgba(233, 82, 104, .11);
}

.bin-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.bin {
  min-height: 32px;
  padding: 0 9px;
  border-radius: 5px;
  text-align: left;
  background: #11151a;
  border: 1px solid transparent;
  font-size: 12px;
}

.bin.is-active {
  color: var(--text);
  border-color: rgba(47, 198, 181, .48);
  background: rgba(47, 198, 181, .12);
}

.clip-browser {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 9px;
}

.clip-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  width: 100%;
  min-height: 62px;
  padding: 7px;
  color: var(--text);
  background: #11151a;
  border: 1px solid #242c34;
  border-radius: 7px;
  text-align: left;
  cursor: grab;
}

.clip-card[draggable="true"] {
  user-select: none;
}

.clip-card:active {
  cursor: grabbing;
}

.app-shell[data-mode="media"] .clip-browser {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-shell[data-mode="media"] .clip-card {
  grid-template-columns: 1fr;
}

.app-shell[data-mode="media"] .thumb {
  width: 100%;
}

.clip-card.is-active {
  border-color: rgba(79, 163, 255, .75);
  background: #17202a;
}

.thumb {
  width: 76px;
  aspect-ratio: 16 / 9;
  border-radius: 5px;
  object-fit: cover;
  background: #080a0d;
}

.clip-title {
  display: block;
  font-size: 12px;
  line-height: 1.25;
}

.clip-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.clip-meta span {
  padding: 2px 5px;
  border-radius: 4px;
  background: #20262d;
}

.viewer-stack {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(390px, 1fr) 225px;
}

.viewer {
  display: grid;
  grid-template-rows: 38px minmax(280px, 1fr) 54px;
  border-right: 1px solid #252d35;
}

.viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid var(--line-soft);
  font-variant-numeric: tabular-nums;
}

.viewer-tools {
  display: flex;
  gap: 5px;
}

.tool-dot {
  height: 22px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 10px;
  background: #11151a;
}

.tool-dot.is-on {
  color: #101215;
  background: var(--accent-2);
}

.preview-frame {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: end start;
  margin: 12px;
  border-radius: 7px;
  background: #07090c;
  border: 1px solid #313944;
}

.preview-frame[data-preview="social"] {
  place-items: center;
}

.preview-frame img,
.preview-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(var(--sat, 1.05)) contrast(var(--contrast, 1.02)) brightness(var(--bright, .92));
  transform: scale(var(--zoom-scale, 1.015)) rotate(var(--rotate, 0deg)) skewX(var(--angle, 0deg));
  transform-origin: center;
}

.preview-frame video[hidden] {
  display: none;
}

.preview-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,7,10,.82), rgba(5,7,10,.22) 56%, rgba(5,7,10,.7)),
    linear-gradient(0deg, rgba(0,0,0,.52), transparent 44%);
}

.preview-frame[data-preview="social"]::after {
  background:
    radial-gradient(circle at 50% 48%, rgba(216, 91, 159, .18), transparent 28rem),
    linear-gradient(90deg, rgba(5,7,10,.84), rgba(5,7,10,.28) 50%, rgba(5,7,10,.72));
}

.social-player {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(190px, 280px) minmax(180px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 22px clamp(22px, 5vw, 58px);
  pointer-events: none;
}

.social-player[hidden] {
  display: none;
}

.phone-view {
  position: relative;
  justify-self: center;
  width: min(240px, 42vw);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 26px;
  background: #07090c;
  box-shadow: 0 24px 70px rgba(0,0,0,.5), inset 0 0 0 8px rgba(255,255,255,.035);
  transform: scale(var(--zoom, 1)) rotate(var(--rotate, 0deg)) skewX(var(--angle, 0deg));
  transform-origin: center;
}

.phone-view::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 3;
  width: 66px;
  height: 17px;
  border-radius: 999px;
  background: #030508;
  transform: translateX(-50%);
}

.reel-stack {
  position: absolute;
  inset: 0;
  display: grid;
}

.reel-stack span {
  grid-area: 1 / 1;
  background:
    linear-gradient(160deg, rgba(216,91,159,.95), transparent 48%),
    radial-gradient(circle at 32% 30%, rgba(246, 165, 45,.85), transparent 22%),
    radial-gradient(circle at 72% 68%, rgba(47, 198, 181,.75), transparent 24%),
    #141820;
  transform: translateY(100%);
}

.reel-stack span:nth-child(1) {
  transform: translateY(0);
}

.reel-stack span:nth-child(2) {
  background:
    linear-gradient(160deg, rgba(79, 163, 255,.9), transparent 48%),
    radial-gradient(circle at 74% 28%, rgba(233, 82, 104,.75), transparent 22%),
    #101820;
}

.reel-stack span:nth-child(3) {
  background:
    linear-gradient(160deg, rgba(87,198,111,.86), transparent 50%),
    radial-gradient(circle at 36% 62%, rgba(246, 165, 45,.8), transparent 24%),
    #111712;
}

.preview-frame.is-playing .reel-stack span {
  animation: reelSlide 4.8s infinite;
}

.preview-frame.is-playing .reel-stack span:nth-child(2) {
  animation-delay: 1.6s;
}

.preview-frame.is-playing .reel-stack span:nth-child(3) {
  animation-delay: 3.2s;
}

.reel-ui {
  position: absolute;
  inset: auto 14px 18px;
  z-index: 4;
  display: grid;
  gap: 5px;
}

.reel-ui strong,
.reel-ui span {
  width: max-content;
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(0,0,0,.48);
  backdrop-filter: blur(10px);
}

.reel-ui strong {
  font-size: 13px;
}

.reel-ui span {
  color: #d9e1e6;
  font-size: 11px;
}

.waveform {
  display: grid;
  grid-template-columns: repeat(6, minmax(10px, 1fr));
  align-items: end;
  gap: 8px;
  height: 160px;
  max-width: 380px;
  opacity: var(--volume-opacity, .86);
}

.waveform span {
  height: 40%;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}

.waveform span:nth-child(2) { height: 72%; }
.waveform span:nth-child(3) { height: 48%; }
.waveform span:nth-child(4) { height: 88%; }
.waveform span:nth-child(5) { height: 56%; }
.waveform span:nth-child(6) { height: 76%; }

.preview-frame.is-playing .waveform span {
  animation: mixBounce 900ms infinite alternate;
}

.preview-frame.is-playing .waveform span:nth-child(2n) {
  animation-delay: 180ms;
}

.preview-frame[data-preview="social"] .preview-copy {
  justify-self: end;
  align-self: end;
  width: min(520px, 46%);
}

@keyframes reelSlide {
  0% { transform: translateY(100%); }
  8%, 32% { transform: translateY(0); }
  44%, 100% { transform: translateY(-100%); }
}

@keyframes mixBounce {
  from { transform: scaleY(.72); }
  to { transform: scaleY(1.08); }
}

.scanline {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.035), rgba(255,255,255,.035) 1px, transparent 1px, transparent 5px);
  mix-blend-mode: screen;
  opacity: .2;
}

.preview-copy {
  position: relative;
  z-index: 2;
  width: min(680px, calc(100% - 32px));
  padding: 0 0 28px 28px;
}

.kicker {
  margin: 0 0 7px;
  color: var(--accent-2);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.preview-copy h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(34px, 5.2vw, 72px);
  line-height: .95;
  letter-spacing: 0;
}

.preview-copy p:last-of-type {
  max-width: 590px;
  margin: 14px 0 0;
  color: #d6dde2;
  font-size: 15px;
  line-height: 1.55;
}

.preview-link {
  width: max-content;
  max-width: 100%;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  margin-top: 15px;
  padding: 0 12px;
  color: #081411;
  background: var(--accent);
  border-radius: 6px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.transport {
  display: grid;
  grid-template-columns: 34px 42px 34px minmax(120px, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 12px 12px;
}

.transport-button.primary {
  width: 42px;
  color: #07100e;
  background: var(--accent);
  border-color: transparent;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.timeline {
  border-top: 1px solid #252d35;
  border-right: 1px solid #252d35;
  background: #12161b;
}

.edit-toolbar {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-bottom: 1px solid #262d35;
  background: #151a20;
}

.edit-toolbar span {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

.timeline-ruler {
  height: 30px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding-left: 64px;
  border-bottom: 1px solid #262d35;
  font-variant-numeric: tabular-nums;
}

.tracks {
  display: grid;
  grid-template-columns: 56px 1fr;
  height: calc(100% - 66px);
}

.track-labels {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  border-right: 1px solid #262d35;
}

.track-labels span {
  display: grid;
  place-items: center;
  color: var(--quiet);
  font-size: 11px;
  border-bottom: 1px solid #20262d;
}

.track-lanes {
  position: relative;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  overflow: hidden;
  cursor: crosshair;
  background-image: linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 12.5% 100%;
}

.track-lanes.is-targeted,
.track-lanes.is-ready-for-drop {
  outline: 2px solid rgba(47, 198, 181,.85);
  outline-offset: -4px;
  background-color: rgba(47, 198, 181,.08);
}

.track-lanes.is-targeted::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--drop, 50%);
  width: 2px;
  background: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(246, 165, 45, .18);
  z-index: 5;
  pointer-events: none;
}

.timeline-clip {
  position: absolute;
  top: var(--top);
  left: var(--start);
  width: var(--width);
  height: calc(33.333% - 18px);
  min-width: 76px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #eef2f5;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(180deg, var(--clip), color-mix(in srgb, var(--clip), #000 34%));
  box-shadow: inset 0 1px rgba(255,255,255,.13);
  cursor: pointer;
  font-size: 11px;
  overflow: hidden;
  white-space: nowrap;
}

.timeline-clip::before {
  content: "";
  width: 8px;
  height: 60%;
  flex: 0 0 auto;
  margin-right: 7px;
  border-radius: 3px;
  background: rgba(255,255,255,.58);
}

.timeline-clip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-clip small {
  margin-left: auto;
  padding-left: 8px;
  color: rgba(255,255,255,.72);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.timeline-clip.is-active {
  outline: 2px solid #f6a52d;
  outline-offset: 2px;
}

.playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--playhead, 0%);
  width: 2px;
  background: #ff506c;
  box-shadow: 0 0 0 1px rgba(255, 80, 108, .25);
  z-index: 4;
  pointer-events: none;
}

.inspector {
  border-right: 0;
}

.status-pill {
  padding: 3px 7px;
  color: #081411;
  border-radius: 999px;
  background: var(--accent);
  text-transform: none;
}

.inspector-content {
  height: calc(100% - 38px);
  overflow: auto;
  padding: 13px;
}

.section-title {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 13px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.metric,
.info-box,
.deliver-card {
  border: 1px solid #2b333c;
  border-radius: 7px;
  background: #11151a;
}

.control-bank {
  display: grid;
  gap: 3px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid #2b333c;
  border-radius: 7px;
  background: #11151a;
}

.metric {
  min-height: 70px;
  padding: 10px;
}

.metric strong {
  display: block;
  margin-top: 7px;
  font-size: 22px;
}

.info-box {
  padding: 12px;
  margin-bottom: 12px;
}

.info-box p {
  margin: 0;
  color: #cdd5db;
  font-size: 13px;
  line-height: 1.5;
}

.tag-list,
.node-board,
.audio-bars,
.deliver-list,
.assembly-list {
  display: grid;
  gap: 8px;
}

.tag-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tag-list span {
  min-height: 30px;
  display: grid;
  place-items: center;
  color: #dce4e9;
  border: 1px solid #2d3640;
  border-radius: 5px;
  background: #1b2027;
  font-size: 12px;
}

.form-row {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.form-row.compact {
  margin-bottom: 8px;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  min-height: 34px;
  color: var(--text);
  background: #0e1216;
  border: 1px solid #2c3540;
  border-radius: 6px;
  padding: 8px 9px;
  resize: vertical;
}

.form-row textarea {
  min-height: 86px;
}

.node-board {
  position: relative;
  min-height: 250px;
  padding: 12px;
  border-radius: 7px;
  background:
    linear-gradient(#20262d 1px, transparent 1px),
    linear-gradient(90deg, #20262d 1px, transparent 1px),
    #11151a;
  background-size: 28px 28px;
}

.node {
  position: relative;
  padding: 10px;
  border-radius: 7px;
  border: 1px solid #3b4652;
  background: #1a2027;
}

.node strong,
.node small {
  display: block;
}

.node::after {
  content: "";
  position: absolute;
  left: calc(100% + 1px);
  top: 50%;
  width: 20px;
  height: 1px;
  background: var(--accent-2);
}

.node:last-child::after {
  display: none;
}

.wheel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}

.wheel {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #37424d;
  background:
    radial-gradient(circle at 50% 50%, #e7edf0 0 5%, transparent 6%),
    conic-gradient(#e95268, #f6a52d, #57c66f, #2fc6b5, #4fa3ff, #b67cff, #e95268);
}

.audio-bars {
  grid-template-columns: repeat(9, minmax(8px, 1fr));
  align-items: end;
  height: 160px;
  padding: 12px;
  border: 1px solid #2b333c;
  border-radius: 7px;
  background: #11151a;
}

.audio-bars span {
  height: var(--h);
  min-height: 14px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
}

.deliver-card {
  padding: 12px;
}

.action-button {
  width: 100%;
  min-height: 36px;
  color: #081411;
  background: var(--accent);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.compact-action {
  width: auto;
  min-width: 92px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  white-space: nowrap;
}

.danger-button {
  width: 100%;
  min-height: 36px;
  color: #ffdbe2;
  background: rgba(233, 82, 104, .14);
  border: 1px solid rgba(233, 82, 104, .5);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.quick-actions,
.edit-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.assembly-list {
  align-content: start;
}

.sequence-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 10px;
  color: var(--text);
  text-align: left;
  border: 1px solid #2b333c;
  border-radius: 6px;
  background: #11151a;
  cursor: pointer;
}

.sequence-row.is-active {
  border-color: rgba(246, 165, 45,.75);
  background: #1b2027;
}

.sequence-row span,
.sequence-row small {
  color: var(--muted);
  font-size: 11px;
}

.source-card {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
  padding: 11px;
  border: 1px solid #2f3943;
  border-radius: 7px;
  background: #0f1419;
}

.source-card span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.source-card a {
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.owner-panel {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  justify-items: end;
  background: rgba(0,0,0,.46);
  backdrop-filter: blur(8px);
}

.owner-panel[hidden] {
  display: none;
}

.owner-drawer {
  width: min(760px, 100vw);
  height: 100vh;
  overflow: auto;
  border-left: 1px solid #303842;
  background: #12161b;
  box-shadow: -24px 0 70px rgba(0,0,0,.45);
}

.owner-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 14px 16px;
  border-bottom: 1px solid #29323b;
  background: linear-gradient(180deg, #20252b, #15191e);
}

.owner-head p,
.owner-head h2 {
  margin: 0;
}

.owner-head p {
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.owner-head h2 {
  margin-top: 3px;
  font-size: 22px;
}

.owner-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.owner-lock,
.owner-editor {
  padding: 16px;
}

.owner-grid {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(320px, 1.28fr);
  gap: 14px;
  align-items: start;
}

.owner-section {
  padding: 12px;
  border: 1px solid #2b333c;
  border-radius: 7px;
  background: #11151a;
}

.owner-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.owner-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.drive-status {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.backup-box {
  width: 100%;
  min-height: 130px;
  margin-top: 10px;
  color: var(--text);
  background: #0e1216;
  border: 1px solid #2c3540;
  border-radius: 6px;
  padding: 10px;
  font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  resize: vertical;
}

.owner-error {
  min-height: 18px;
  margin: 10px 0 0;
  color: #ff9aad;
  font-size: 12px;
}

.deliver-list a,
.contact-actions a {
  color: var(--text);
  text-decoration: none;
}

.deliver-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border-radius: 6px;
  background: #1a2027;
  border: 1px solid #2c3540;
}

.deliver-list a strong {
  text-align: right;
}

.page-strip {
  justify-content: center;
  border-top: 1px solid #2a323b;
  border-bottom: 0;
}

.page-node {
  width: 82px;
  height: 42px;
  display: grid;
  place-items: center;
  gap: 4px;
  border-radius: 6px;
  font-size: 11px;
}

.page-node span {
  width: 18px;
  height: 13px;
  border: 1px solid currentColor;
  border-radius: 3px;
}

.contact-dock {
  width: min(1680px, calc(100vw - 24px));
  margin: 10px auto 24px;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border: 1px solid #27313a;
  border-radius: var(--radius);
  background: #12161b;
}

.contact-dock p,
.contact-dock h2 {
  margin: 0;
}

.contact-dock p {
  color: var(--accent-2);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
}

.contact-dock h2 {
  margin-top: 4px;
  font-size: 24px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.contact-actions a {
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid #35404b;
  border-radius: 6px;
  background: #1a2027;
}

@media (max-width: 1120px) {
  .project-home-body {
    grid-template-columns: 1fr;
  }

  .project-home-hero {
    min-height: auto;
    align-content: start;
    border-right: 0;
    border-bottom: 1px solid #252d35;
  }

  .project-library {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell {
    grid-template-rows: auto minmax(720px, 1fr) auto;
  }

  .topbar {
    flex-wrap: wrap;
    min-height: 92px;
    padding: 10px;
  }

  .workspace-tabs {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .editor-grid {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .inspector {
    grid-column: 1 / -1;
    border-top: 1px solid #252d35;
  }

  .inspector-content {
    max-height: 360px;
  }

  .owner-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    background: #0b0d10;
  }

  .startup-screen,
  .project-home {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .startup-window {
    min-height: 100vh;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    padding: 28px 18px;
  }

  .startup-window h1 {
    font-size: 38px;
  }

  .project-home {
    grid-template-rows: auto 1fr;
  }

  .project-home-head {
    grid-template-columns: auto 1fr;
    min-height: 84px;
    align-items: center;
  }

  .project-home-actions {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-home-head .owner-button,
  .project-home-actions .compact-action {
    width: 100%;
  }

  .project-home-body {
    padding: 14px;
  }

  .project-home-hero {
    padding: 12px 0 18px;
  }

  .project-home-hero h2 {
    font-size: 38px;
  }

  .project-library {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 132px;
  }

  .app-shell,
  .contact-dock {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .app-shell {
    min-height: auto;
    grid-template-rows: auto auto auto;
  }

  .project-title {
    min-width: 160px;
  }

  .mode-button {
    min-width: 62px;
  }

  .owner-drawer {
    width: 100vw;
  }

  .owner-two,
  .owner-actions {
    grid-template-columns: 1fr;
  }

  .editor-grid {
    display: flex;
    flex-direction: column;
  }

  .media-pool {
    order: 2;
    max-height: 310px;
    border-top: 1px solid #252d35;
  }

  .viewer-stack {
    order: 1;
    grid-template-rows: 420px 210px;
  }

  .inspector {
    order: 3;
  }

  .preview-copy {
    width: calc(100% - 24px);
    padding: 0 0 22px 18px;
  }

  .social-player {
    grid-template-columns: 1fr;
    place-items: center;
    padding: 14px;
  }

  .phone-view {
    width: min(175px, 48vw);
  }

  .waveform {
    display: none;
  }

  .preview-frame[data-preview="social"] .preview-copy {
    width: calc(100% - 24px);
  }

  .preview-copy h1 {
    font-size: 36px;
  }

  .preview-copy p:last-of-type {
    font-size: 13px;
  }

  .page-strip {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 8px;
  }

  .page-node {
    flex: 0 0 74px;
  }

  .contact-dock {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}
