@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap");
:root {
  --paper: #f6f5ef;
  --ink: #1a2723;
  --green: #d5ed86;
  --muted: #7a847a;
  --line: #d9ddd1;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  font: inherit;
}
a {
  color: inherit;
}
header {
  height: 94px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 35px;
  padding: 0 5vw;
}
.logo {
  font-size: 45px;
  letter-spacing: -5px;
  text-decoration: none;
  font-weight: 700;
}
.logo span {
  font-size: 33px;
  letter-spacing: 0;
  color: #819c43;
  margin-left: 8px;
}
.edition {
  font-size: 10px;
  letter-spacing: 2px;
}
header > #forge-link {
  margin-left: auto;
  font-size: 12px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 12px 18px;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 0 5vw;
}
.intro {
  padding: 65px 0 42px;
  position: relative;
}
.kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.kicker span {
  width: 7px;
  height: 7px;
  background: #89a651;
  border-radius: 50%;
}
h1 {
  font-size: 78px;
  line-height: 0.95;
  letter-spacing: -4px;
  font-weight: 500;
  margin: 28px 0 22px;
}
h1 em {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  color: #6b8350;
}
.intro p {
  position: absolute;
  right: 0;
  bottom: 50px;
  font-size: 15px;
  line-height: 1.7;
  color: #76806e;
}
.workspace {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  align-items: start;
}
.director,
.preview-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffef9;
  padding: 24px;
}
.panel-top {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1.3px;
  color: var(--muted);
  padding-bottom: 25px;
}
#connection {
  color: #6b8350;
}
label {
  display: block;
  font-size: 20px;
  letter-spacing: -0.5px;
  margin: 12px 0 18px;
}
textarea {
  width: 100%;
  min-height: 170px;
  resize: vertical;
  border: 0;
  background: #f5f5ee;
  padding: 20px;
  border-radius: 10px;
  font:
    16px/1.6 "DM Sans",
    Arial;
  color: var(--ink);
  outline-color: #91ab64;
}
textarea::placeholder {
  color: #939a8e;
}
.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 30px;
}
.suggestions button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 8px 12px;
  font-size: 10px;
  color: #65725d;
}
.suggestions button:hover {
  background: #eef2df;
}
.form-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.form-bottom > span {
  font-size: 10px;
  color: var(--muted);
}
#create {
  background: var(--ink);
  color: white;
  border: 0;
  padding: 16px 20px;
  border-radius: 7px;
  font-size: 12px;
}
#create span {
  margin-left: 20px;
}
#create:disabled {
  opacity: 0.5;
  cursor: wait;
}
#activity {
  border-top: 1px solid var(--line);
  margin-top: 27px;
  padding-top: 22px;
  color: #7d8776;
  font-size: 12px;
  line-height: 1.6;
}
.preview-panel {
  background: #eeefe6;
}
.preview-panel .panel-top {
  padding-bottom: 15px;
}
#preview {
  max-width: 275px;
  margin: auto;
}
.empty-frame {
  aspect-ratio: 9/16;
  border-radius: 9px;
  background: #192a25;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #eef3da;
}
.orb {
  position: absolute;
  width: 210px;
  height: 210px;
  border: 1px solid #899b5940;
  border-radius: 50%;
  top: 63px;
}
.orb:before,
.orb:after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid #899b5955;
  border-radius: 50%;
}
.orb:after {
  inset: -30px;
}
.frame-word {
  z-index: 1;
  font-size: 76px;
  font-family: "Instrument Serif", Georgia;
  letter-spacing: -6px;
}
.frame-word > span {
  color: var(--green);
}
.empty-frame p {
  font-family: "Instrument Serif", Georgia;
  font-size: 25px;
  text-align: center;
  line-height: 1.1;
  margin-top: 28px;
}
.empty-frame small {
  position: absolute;
  bottom: 25px;
  font-size: 7px;
  letter-spacing: 1.6px;
  color: #9caa85;
}
video {
  display: block;
  width: 100%;
  border-radius: 8px;
  background: #192a25;
}
#video-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 15px;
  flex-wrap: wrap;
}
#video-actions a {
  font-size: 11px;
  text-decoration: none;
  background: #d8e4b6;
  border-radius: 6px;
  padding: 10px 15px;
}
.library {
  margin: 55px 0;
}
.library-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.library h2 {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.5px;
}
.library h2 span {
  font-size: 10px;
  vertical-align: super;
  margin-left: 9px;
  color: #87917e;
}
.library-title > span {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.project-card {
  text-align: left;
  background: #fffef9;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.15s;
}
.project-card:hover {
  transform: translateY(-3px);
}
.project-card strong {
  display: block;
  font-size: 17px;
  line-height: 1.25;
  margin: 14px 0;
}
.project-card small {
  font-size: 10px;
  color: #7d8776;
}
.project-card .tag {
  font-size: 8px;
  letter-spacing: 1px;
  background: #e9efd9;
  padding: 5px 8px;
  border-radius: 4px;
}
.project-card .failed {
  background: #ffe0d4;
}
.muted {
  font-size: 12px;
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
  padding: 23px 0 30px;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
}
.message {
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  border-left: 2px solid #b4ce76;
  margin-top: 20px;
  padding-left: 15px;
  max-height: 260px;
  overflow: auto;
}
.text-button {
  border: 0;
  background: transparent;
  padding: 15px 0 0;
  color: #607441;
  font-size: 11px;
}
.error {
  color: #aa4930 !important;
}
.progress-frame {
  aspect-ratio: 9/16;
  background: #192a25;
  color: #d5ed86;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  line-height: 1.6;
}
.progress-frame span {
  font-size: 12px;
  display: block;
  color: #a7b392;
  margin-top: 20px;
}
@media (max-width: 850px) {
  h1 {
    font-size: 66px;
  }
  .intro p {
    position: static;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
  .library-title > span {
    display: none;
  }
  .edition {
    display: none;
  }
  .intro {
    padding-top: 40px;
  }
  .form-bottom {
    flex-wrap: wrap;
  }
  footer {
    gap: 20px;
    line-height: 1.5;
  }
}
@media (max-width: 480px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
  .director,
  .preview-panel {
    padding: 20px;
  }
  .intro p {
    font-size: 14px;
  }
  h1 {
    font-size: 58px;
  }
  header {
    height: 78px;
  }
  .desktop {
    display: none;
  }
}
#video-mode {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  margin-bottom: 10px;
}
#presenter-inputs {
  padding: 8px 0 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 15px;
}
#presenter-inputs label {
  font-size: 13px;
  margin: 15px 0 8px;
}
#presenter-inputs input {
  font: inherit;
  font-size: 12px;
  width: 100%;
}
#presenter-inputs p {
  line-height: 1.6;
}

.usage-panel {
  font-size: 12px;
  line-height: 1.6;
  margin-top: 20px;
  border-top: 1px solid #cccdbb;
  padding-top: 16px;
  color: #566252;
}
.usage-panel strong {
  font-size: 16px;
  color: #263c2a;
}
.usage-panel dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 14px;
}
.usage-panel dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.usage-panel p {
  margin: 8px 0;
}
.usage-panel summary {
  cursor: pointer;
}

.model-controls {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.model-controls > div {
  min-width: 0;
}
.cost-preview {
  margin: 8px 0 24px;
  padding: 14px;
  border: 1px solid #d9d9ce;
  border-radius: 12px;
  background: #f5f5ec;
  font-size: 12px;
  line-height: 1.5;
}
.cost-preview strong {
  font-size: 14px;
}
.cost-preview p {
  margin: 8px 0;
}
.cost-preview summary {
  cursor: pointer;
}
@media (max-width: 480px) {
  .model-controls {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.creative-controls {
  margin: 0 0 22px;
  padding: 16px;
  border: 1px solid #d9d9ce;
  border-radius: 12px;
}
.creative-controls summary,
.shot-plan summary {
  cursor: pointer;
  font-weight: 600;
}
.creative-controls label {
  margin-top: 16px;
}
.creative-controls output {
  float: right;
  color: #657f44;
}
.creative-controls input[type="range"] {
  width: 100%;
  padding: 0;
  accent-color: #6a854b;
}
.creative-controls textarea {
  min-height: 88px;
  font-size: 14px;
}
.mix-endpoints {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: #697565;
}
.shot-plan {
  padding: 16px;
  font-size: 13px;
  line-height: 1.5;
}
.shot-plan ol {
  padding-left: 20px;
}
.shot-plan li {
  margin: 12px 0;
}
.shot-plan p {
  color: #697565;
}
.shot-kind {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  border: 1px solid #d9d9ce;
  border-radius: 5px;
  font-size: 11px;
}

[hidden] {
  display: none !important;
}
#account-controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
#account-email {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-dialog {
  width: min(460px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 90px #14241c33;
}
.account-dialog::backdrop {
  background: #17261de0;
  backdrop-filter: blur(8px);
}
.account-dialog h2 {
  font:
    42px/1.05 "Instrument Serif",
    Georgia,
    serif;
  margin: 22px 0 12px;
}
.account-dialog p {
  color: #64725c;
  font-size: 14px;
  line-height: 1.5;
}
.account-dialog label {
  font-size: 13px;
  margin: 20px 0 8px;
}
.account-dialog input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
  color: var(--ink);
  font: inherit;
}
.account-dialog button[type="submit"] {
  width: 100%;
  margin-top: 24px;
  border: 0;
  border-radius: 8px;
  padding: 14px;
  background: var(--ink);
  color: white;
}
.account-dialog button:disabled {
  opacity: 0.6;
  cursor: wait;
}
#users-list ul {
  padding: 0;
  list-style: none;
}
#users-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  overflow-wrap: anywhere;
}
#users-list li span {
  margin-left: 8px;
}
#close-users {
  float: right;
}
@media (max-width: 650px) {
  #account-controls {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 12px;
  }
  #account-email {
    width: 100%;
    text-align: right;
  }
  header:has(#account-controls:not([hidden])) .edition {
    display: none;
  }
}

.asset-library-list {
  max-height: 280px;
  overflow: auto;
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.asset-library-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line, #d4d8ce);
  border-radius: 8px;
}
.asset-library-item input {
  width: auto;
  margin-top: 4px;
}
.asset-library-item span {
  min-width: 0;
}
.asset-library-item strong,
.asset-library-item small {
  display: block;
  overflow-wrap: anywhere;
}
.asset-library-item small {
  font-weight: 400;
  opacity: 0.7;
  margin-top: 4px;
  font-size: 11px;
}

.asset-library-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  flex: 0 0 44px;
}
.clip-marker {
  display: grid;
  place-items: center;
  background: #dde7df;
  color: #244b39;
}

.library-clip-previews {
  display: grid;
  gap: 14px;
  margin: 14px 0;
}
.clip-trim-card {
  padding: 14px;
  border: 1px solid var(--line, #d9ded1);
  border-radius: 10px;
  background: #fff;
  min-width: 0;
}
.clip-trim-card > strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
  margin-bottom: 10px;
}
.clip-trim-card video {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: #15221e;
  border-radius: 6px;
}
.clip-trim-card label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.clip-trim-card input[type="range"] {
  width: 100%;
  margin: 5px 0 12px;
}
.clip-trim-card output {
  font-variant-numeric: tabular-nums;
  color: #658240;
}
