.cf-editor {
  box-sizing: border-box;
  width: 100%;
  max-width: 1180px;
  margin: clamp(28px,6vw,72px) auto 0;
  padding: clamp(18px,4vw,48px);
  overflow: hidden;
  border: 1px solid #2b333e;
  border-radius: 18px;
  background: #0d1117;
  color: #f5f2ec;
  font-family: var(--cf-body,inherit);
  color-scheme: dark;
}

.cf-editor[hidden],.cf-editor [hidden] {
  display: none !important;
}

.cf-editor button,.cf-editor input,.cf-editor a {
  font: inherit;
}

.cf-editor .cf-editor-head,.cf-editor .cf-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.cf-editor h2,.cf-editor h3,.cf-editor p {
  margin: 0;
}

.cf-editor h2 {
  font: 700 clamp(1.65rem,4vw,2.8rem)/1.05 var(--cf-body,inherit);
  letter-spacing: -.045em;
}

.cf-editor h3 {
  font: 650 1.05rem/1.25 var(--cf-body,inherit);
}

.cf-editor .cf-kicker {
  margin-bottom: 8px !important;
  color: #ff776b;
  font: 700 .75rem/1.2 var(--cf-mono,monospace);
  letter-spacing: .11em;
  text-transform: uppercase;
}

.cf-editor .cf-text-button {
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid #77808d;
  background: none;
  color: #cbd2dc;
  cursor: pointer;
}

.cf-editor .cf-text-button:hover {
  color: #fff;
  border-color: #ff776b;
}

.cf-editor .cf-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid #424b57;
  border-radius: 7px;
  background: #202630;
  color: #f7f9fc;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.cf-editor .cf-button:hover {
  border-color: #75808f;
  background: #282f3a;
}

.cf-editor .cf-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.cf-editor .cf-button-primary {
  border-color: #ff776b;
  background: #ff776b;
  color: #1b1110;
}

.cf-editor .cf-button-primary:hover {
  border-color: #ff9187;
  background: #ff9187;
}

.cf-editor .cf-button-quiet {
  background: transparent;
}

.cf-editor .cf-notice,.cf-editor .cf-status,.cf-editor .cf-control-card {
  border: 1px solid #313945;
  background: #171c24;
}

.cf-editor .cf-notice {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-left: 3px solid #ff776b;
}

.cf-editor .cf-notice label {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: #e6e9ed;
}

.cf-editor .cf-notice input[type=checkbox] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #ff776b;
}

.cf-editor .cf-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cf-editor .cf-small {
  color: #9ca7b5;
  font-size: .875rem;
  line-height: 1.55;
}

.cf-editor .cf-status {
  margin: 14px 0;
  padding: 12px 15px;
  color: #cdd4dc;
  font: 500 .875rem/1.45 var(--cf-mono,monospace);
}

.cf-editor .cf-status[data-kind=error] {
  border-color: #b75454;
  color: #ffb5b1;
}

.cf-editor .cf-status[data-kind=success] {
  border-color: #3b7967;
  color: #a7e5cf;
}

.cf-editor .cf-progress {
  height: 3px;
  overflow: hidden;
  background: #29313c;
}

.cf-editor .cf-progress span {
  display: block;
  width: 38%;
  height: 100%;
  background: #ff776b;
  animation: cf-scan 1.3s ease-in-out infinite;
}

@keyframes cf-scan {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(300%);
  }
}

.cf-editor .cf-candidates {
  margin: 34px 0;
}

.cf-editor .cf-section-heading>p {
  max-width: 44ch;
  color: #9ca7b5;
}

.cf-editor .cf-candidate-list {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
}

.cf-editor .cf-candidate {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 16px;
  text-align: left;
  border: 1px solid #333c48;
  border-radius: 8px;
  background: #151a21;
  color: #f4f6f8;
  cursor: pointer;
}

.cf-editor .cf-candidate:hover,.cf-editor .cf-candidate[aria-pressed=true] {
  border-color: #ff776b;
  background: #211c20;
}

.cf-editor .cf-candidate strong {
  font-size: 1rem;
}

.cf-editor .cf-candidate time {
  color: #ff9d92;
  font: 600 .82rem/1 var(--cf-mono,monospace);
}

.cf-editor .cf-candidate span {
  color: #aab4c0;
  font-size: .875rem;
  line-height: 1.45;
}

.cf-editor .cf-workbench {
  display: grid;
  grid-template-columns: minmax(260px,390px) minmax(0,1fr);
  gap: clamp(22px,4vw,48px);
  align-items: start;
}

.cf-editor .cf-stage-column {
  position: sticky;
  top: 22px;
}

.cf-editor .cf-stage {
  position: relative;
  width: min(100%,360px);
  aspect-ratio: 9/16;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #444d59;
  border-radius: 14px;
  background: #080a0e;
  box-shadow: 0 22px 70px rgba(0,0,0,.35);
}

.cf-editor .cf-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.cf-editor .cf-safe-lines {
  position: absolute;
  inset: 7% 6%;
  pointer-events: none;
  border: 1px dashed rgba(255,255,255,.17);
  border-radius: 6px;
}

.cf-editor .cf-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%,360px);
  margin: 12px auto;
}

.cf-editor .cf-round-button {
  min-width: 70px;
  min-height: 40px;
  padding: 7px 15px;
  border: 1px solid #4b5563;
  border-radius: 999px;
  background: #202630;
  color: #fff;
  cursor: pointer;
}

.cf-editor .cf-timecode {
  color: #bbc4cf;
  font: 500 .82rem/1 var(--cf-mono,monospace);
}

.cf-editor .cf-range-label {
  display: grid;
  gap: 8px;
  color: #d9dfe6;
  font-size: .875rem;
}

.cf-editor .cf-stage-column>.cf-range-label {
  width: min(100%,360px);
  margin: 0 auto;
}

.cf-editor .cf-range-label input[type=range] {
  width: 100%;
  accent-color: #ff776b;
}

.cf-editor .cf-range-ends {
  display: flex;
  justify-content: space-between;
  color: #8793a2;
  font-size: .75rem;
}

.cf-editor .cf-controls {
  display: grid;
  gap: 12px;
}

.cf-editor .cf-control-card {
  padding: 18px;
}

.cf-editor .cf-control-title {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 16px;
}

.cf-editor .cf-control-title>span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid #ff776b;
  border-radius: 50%;
  color: #ff9187;
  font: 600 .7rem/1 var(--cf-mono,monospace);
}

.cf-editor .cf-time-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 9px;
}

.cf-editor .cf-time-inputs label {
  display: grid;
  gap: 7px;
  color: #aeb8c4;
  font-size: .82rem;
}

.cf-editor .cf-time-inputs input,.cf-editor .cf-caption-row input {
  min-width: 0;
  border: 1px solid #3e4855;
  border-radius: 5px;
  background: #0f1319;
  color: #f4f6f8;
}

.cf-editor .cf-time-inputs input {
  height: 43px;
  padding: 8px 10px;
  font-family: var(--cf-mono,monospace);
}

.cf-editor .cf-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
  padding: 3px;
  border: 1px solid #3c4551;
  border-radius: 7px;
  background: #10151b;
}

.cf-editor .cf-segmented button {
  min-height: 40px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #aeb8c4;
  cursor: pointer;
}

.cf-editor .cf-segmented button[aria-pressed=true] {
  background: #303845;
  color: #fff;
}

.cf-editor .cf-caption-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.cf-editor .cf-caption-row {
  display: grid;
  grid-template-columns: 82px 82px minmax(0,1fr) 36px;
  gap: 7px;
  align-items: start;
}

.cf-editor .cf-caption-row input {
  height: 39px;
  padding: 7px 8px;
}

.cf-editor .cf-caption-row input[data-cf-caption-text] {
  font-family: inherit;
}

.cf-editor .cf-caption-row button {
  height: 39px;
  border: 1px solid #424b57;
  border-radius: 5px;
  background: #1f252e;
  color: #c7ced7;
  cursor: pointer;
}

.cf-editor .cf-empty {
  margin-top: 12px !important;
  color: #8793a2;
  font-size: .875rem;
}

.cf-editor .cf-export-card {
  border-color: #4b4b51;
}

.cf-editor .cf-export-card>p {
  margin-bottom: 15px;
  max-width: 55ch;
  color: #b5bec9;
  line-height: 1.55;
}

.cf-editor .cf-export-card progress {
  width: 100%;
  height: 8px;
  margin: 14px 0;
  accent-color: #ff776b;
}

.cf-editor .cf-export-card [data-cf-export-note] {
  margin-top: 10px !important;
}

.cf-editor .cf-download {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #39424e;
}

.cf-editor .cf-download video {
  display: block;
  width: min(100%,280px);
  aspect-ratio: 9/16;
  border-radius: 8px;
  background: #090b0e;
}

.cf-editor .cf-download a {
  width: max-content;
}

.cf-editor .cf-mp4-actions {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #3a4450;
  border-radius: 7px;
  background: #11161d;
}

.cf-editor .cf-mp4-actions>p {
  margin: 0 !important;
}

.cf-editor .cf-mp4-actions>a {
  width: max-content;
}

.cf-editor :focus-visible {
  outline: 3px solid #f5ae47;
  outline-offset: 3px;
}

.cf-editor input:focus-visible {
  outline-offset: 0;
}

@media (max-width:760px) {
  .cf-editor .cf-editor-head,.cf-editor .cf-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .cf-editor .cf-candidate-list {
    grid-template-columns: 1fr;
  }

  .cf-editor .cf-workbench {
    grid-template-columns: 1fr;
  }

  .cf-editor .cf-stage-column {
    position: static;
  }

  .cf-editor .cf-controls {
    min-width: 0;
  }

  .cf-editor .cf-caption-row {
    grid-template-columns: 1fr 1fr 38px;
  }

  .cf-editor .cf-caption-row input[data-cf-caption-text] {
    grid-column: 1/-1;
    grid-row: 2;
  }

  .cf-editor .cf-caption-row button {
    grid-column: 3;
    grid-row: 1;
  }

  .cf-editor .cf-time-inputs {
    grid-template-columns: 1fr;
  }

  .cf-editor .cf-inline-actions>.cf-button {
    flex: 1 1 180px;
  }
}

.cf-editor h2,
.cf-editor h3 {
  color: var(--cf-paper-light, #fffdf7);
}
