@font-face {
  font-family: Montserrat;
  src: url("/Montserrat.ttf");
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f3f4ef;
  color: #18312e;
  font:
    14px/1.5 Montserrat,
    system-ui,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 0;
  background: #163f37;
  color: white;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 650;
}
button:hover {
  filter: brightness(1.12);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.secondary,
.button.secondary {
  background: #e8ece4;
  color: #29453d;
}
button.ghost {
  background: transparent;
  color: #51665e;
  border: 1px solid #d5ddd4;
}
.danger {
  color: #ac3c39 !important;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
.button {
  display: inline-block;
  text-decoration: none;
  background: #163f37;
  color: white;
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d8cd;
  border-radius: 7px;
  background: #fff;
  color: #18312e;
}
input[type="checkbox"] {
  width: auto;
  accent-color: #226750;
}
input[type="color"] {
  height: 46px;
  padding: 4px;
}
textarea {
  resize: vertical;
  min-height: 95px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin: 0 0 7px;
}
label.check {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
  font-weight: 500;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 34px;
  letter-spacing: -1.3px;
  line-height: 1.15;
  margin-bottom: 12px;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 15px;
}
small,
.muted {
  color: #758078;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  color: #79887b;
}
.shell {
  display: grid;
  grid-template-columns: 242px 1fr;
  min-height: 100vh;
}
.sidebar {
  padding: 30px 20px;
  background: #123b34;
  color: #eaf3e4;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  font-size: 24px;
  letter-spacing: -1.5px;
  font-weight: 800;
  margin-left: 9px;
}
.brand span {
  color: #a3e7ba;
}
.studio-label {
  font-size: 10px;
  letter-spacing: 3px;
  color: #aac5b6;
  margin: 3px 0 0 10px;
}
.sidebar button {
  background: transparent;
  text-align: left;
  width: 100%;
  color: #c3d7c9;
  margin-bottom: 5px;
}
.sidebar button.active {
  background: #31574a;
  color: #fff;
}
.sidebar .new {
  background: #b9e3b5;
  color: #163b31;
  text-align: center;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 12px;
  font-size: 11px;
  color: #9cbead;
  border-top: 1px solid #426356;
}
.main {
  max-width: 1480px;
  width: 100%;
  padding: 32px 44px 70px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dbe0d5;
  padding-bottom: 22px;
  margin-bottom: 34px;
}
.breadcrumb {
  font-size: 12px;
  color: #788177;
}
.private {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #60955f;
}
.head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 20px;
}
.head p {
  margin-bottom: 0;
  color: #6e7a70;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 20px;
}
.card,
.panel {
  background: #fff;
  border: 1px solid #dce2d7;
  border-radius: 12px;
  overflow: hidden;
}
.card {
  cursor: pointer;
  padding: 0;
  text-align: left;
  color: inherit;
  background: white;
}
.card:hover {
  filter: none;
  border-color: #7aa98a;
  box-shadow: 0 6px 24px #102a2310;
}
.card-art {
  height: 200px;
  background: #dfe9d8;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-art .play {
  height: 56px;
  width: 56px;
  border-radius: 50%;
  background: #ffffffbb;
  display: grid;
  place-items: center;
  color: #1c5140;
  font-size: 21px;
}
.card-art .duration {
  position: absolute;
  right: 14px;
  bottom: 14px;
  font-size: 11px;
  background: #153c31;
  color: white;
  border-radius: 4px;
  padding: 4px 7px;
}
.card-body {
  padding: 20px;
}
.card h3 {
  margin-bottom: 12px;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 5px;
  background: #eaf2e5;
  color: #3f6a40;
  font-weight: 650;
}
.pill.failed,
.pill.needs_attention,
.pill.interrupted {
  background: #fff0df;
  color: #97592c;
}
.pill.running,
.pill.queued {
  background: #e4efec;
  color: #246657;
}
.panel {
  padding: 25px;
  margin-bottom: 22px;
}
.empty {
  padding: 70px 30px;
  text-align: center;
  border: 1px dashed #c0cfbb;
  border-radius: 12px;
}
.empty p {
  max-width: 380px;
  margin: 10px auto 25px;
  color: #748071;
}
.form-layout {
  display: grid;
  grid-template-columns: minmax(400px, 1fr) 320px;
  gap: 24px;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}
.field {
  margin-bottom: 20px;
}
.upload {
  background: #f5f8f1;
  border: 1px dashed #9cb395;
  padding: 30px 22px;
  border-radius: 10px;
  text-align: center;
}
.upload p {
  font-size: 12px;
  color: #758473;
}
.upload input {
  border: 0;
  background: transparent;
  font-size: 12px;
}
.help {
  font-size: 11px;
  color: #788278;
  line-height: 1.6;
  margin: 8px 0;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.section-label {
  border-bottom: 1px solid #e8ece3;
  padding-bottom: 14px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.preview-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 350px;
  gap: 24px;
  align-items: start;
}
.viewer {
  padding: 22px;
  background: #e5e9df;
  border: 1px solid #d4dcd0;
  border-radius: 12px;
}
.video-wrap {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}
.video-wrap video {
  max-height: 660px;
  max-width: 100%;
  width: auto;
  background: #101b18;
  border-radius: 7px;
}
.video-wrap.compare video {
  max-width: 48%;
  max-height: 590px;
}
.viewer-top {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.viewer-top select {
  width: auto;
  max-width: 170px;
  font-size: 12px;
  background: #f6f8f2;
}
.version-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.version-strip button {
  font-size: 11px;
  padding: 9px 12px;
  background: #e8ede2;
  color: #53704f;
}
.version-strip button.active {
  background: #234e3e;
  color: white;
}
.changes {
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-line;
}
.event {
  padding: 13px 0;
  border-bottom: 1px solid #edf0e7;
}
.event strong {
  display: block;
  font-size: 12px;
}
.event p {
  font-size: 11px;
  color: #70806f;
  margin: 5px 0;
}
.event time {
  font-size: 10px;
  color: #95a08e;
}
.issue {
  font-size: 12px;
  padding: 12px;
  background: #fff5e6;
  border-radius: 7px;
  margin-bottom: 10px;
}
.issue p {
  margin: 5px 0;
}
.notice {
  padding: 14px 18px;
  background: #e6efdc;
  border: 1px solid #d0ddc4;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 22px;
}
.notice.error {
  background: #fff0e5;
  border-color: #efceb4;
  color: #83502c;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #153c34;
  padding: 24px;
}
.login .panel {
  width: 390px;
  max-width: 100%;
  padding: 36px;
}
.login .brand {
  margin: 0 0 30px;
}
.login h1 {
  font-size: 28px;
}
.login button {
  width: 100%;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 550px;
  background: #203e32;
  color: white;
  border-radius: 9px;
  box-shadow: 0 8px 30px #0002;
  padding: 14px 20px;
  display: none;
  z-index: 50;
}
.track {
  padding: 16px 0;
  border-bottom: 1px solid #e7ece1;
}
.track audio {
  width: 100%;
  height: 35px;
  margin: 10px 0;
}
.track .meta {
  font-size: 11px;
  color: #718168;
}
.track img {
  width: 100%;
  height: 120px;
  object-fit: contain;
}
.progress-ring {
  width: 20px;
  height: 20px;
  border: 2px solid #bdd4b4;
  border-top-color: #265c42;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 12px;
  vertical-align: middle;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
details {
  margin: 20px 0;
}
summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 15px;
}
.status-list {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  font-size: 12px;
}
.status-list strong {
  font-weight: 550;
}
.status-list span {
  color: #63805b;
}
.file-state {
  font-size: 12px;
  color: #5b7850;
  margin-top: 12px;
}
.wide {
  width: 100%;
}
.library-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}
.danger-zone {
  margin-top: 35px;
  border-top: 1px solid #ddd;
  padding-top: 20px;
}
.error-text {
  color: #a84436;
  font-size: 12px;
}
@media (max-width: 1050px) {
  .main {
    padding: 25px;
  }
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    padding: 25px 12px;
  }
  .form-layout,
  .preview-layout,
  .library-grid {
    grid-template-columns: 1fr;
  }
  .preview-layout > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .video-wrap video {
    max-height: 580px;
  }
}
@media (max-width: 650px) {
  .shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: relative;
    padding: 18px;
    gap: 15px;
  }
  .sidebar nav {
    display: flex;
    gap: 4px;
    overflow: auto;
  }
  .sidebar nav button {
    white-space: nowrap;
    font-size: 11px;
    padding: 8px;
  }
  .sidebar .new {
    display: none;
  }
  .sidebar-bottom,
  .studio-label {
    display: none;
  }
  .brand {
    font-size: 21px;
  }
  .main {
    padding: 20px 16px;
  }
  .topbar {
    margin-bottom: 24px;
  }
  .head {
    align-items: start;
  }
  h1 {
    font-size: 27px;
  }
  .row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .preview-layout > aside {
    display: block;
  }
  .panel {
    padding: 20px;
  }
  .video-wrap video {
    max-height: 520px;
  }
  .actions button,
  .actions .button {
    font-size: 11px;
  }
  .viewer {
    padding: 12px;
  }
  .viewer-top {
    flex-wrap: wrap;
  }
}
.project-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.card-art .play {
  position: relative;
}
.preview-layout > .panel {
  margin-top: 20px;
}
