@font-face {
  font-family: Editorial;
  src: local("Georgia");
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #101713;
  color: #edf0e6;
  font:
    15px/1.6 Arial,
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid #57675a;
  background: transparent;
  color: inherit;
  padding: 11px 17px;
  border-radius: 6px;
  min-height: 44px;
}
button:hover {
  background: #26372c;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #d5ddae;
  outline-offset: 3px;
}
button.primary,
.upload-label {
  background: #dce5cc;
  color: #13291c;
  border-color: #dce5cc;
}
button.primary:hover,
.upload-label:hover {
  background: #edf2e4;
}
button.quiet {
  border: 0;
  text-decoration: underline;
  text-underline-offset: 5px;
  padding-left: 0;
  text-align: left;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
}
h1 {
  font-size: clamp(34px, 4vw, 58px);
  margin: 16px 0;
}
h2 {
  font-size: 32px;
  margin-bottom: 12px;
}
h3 {
  font-size: 25px;
}
a {
  color: inherit;
}
p {
  color: #bdc9bd;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: #c1cfaf;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #101713f7;
  border-bottom: 1px solid #37473b;
  padding: 18px 4vw;
  display: flex;
  align-items: center;
  gap: 20px;
  backdrop-filter: blur(12px);
}
.wordmark {
  font:
    28px Georgia,
    serif;
  text-decoration: none;
}
.wordmark span {
  letter-spacing: 4px;
  font-size: 19px;
}
.draft-label {
  border-left: 1px solid #637361;
  padding-left: 20px;
  font-size: 10px;
  letter-spacing: 1.3px;
  color: #b6c9ab;
}
.top-actions {
  display: flex;
  gap: 12px;
  margin-left: auto;
  align-items: center;
}
.top-actions span {
  font-size: 12px;
  color: #b7c8b1;
}
.intro,
.tabs,
.tab-panel,
.notice,
footer {
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 4vw;
  padding-right: 4vw;
}
.intro {
  padding-top: 55px;
  padding-bottom: 25px;
}
.intro p {
  max-width: 700px;
}
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid #37473b;
  overflow-x: auto;
}
.tabs button {
  border: 0;
  border-radius: 0;
  padding: 16px 0;
  white-space: nowrap;
  color: #b6c1b4;
}
.tabs button[aria-current] {
  color: #f1f4e8;
  border-bottom: 2px solid #dce5cc;
}
.tab-panel {
  padding-top: 35px;
  padding-bottom: 60px;
  min-height: 480px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 30px;
}
.section-head p {
  max-width: 600px;
  margin-bottom: 0;
}
.section-head > label {
  width: min(100%, 420px);
  flex-shrink: 0;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #d6dfd0;
  font-size: 13px;
}
input,
select {
  background: #19261e;
  color: #edf0e6;
  border: 1px solid #58665a;
  padding: 12px;
  border-radius: 5px;
  width: 100%;
  min-height: 46px;
}
select option {
  background: #19261e;
}
input[type="range"] {
  accent-color: #d9e1bc;
  padding: 0;
  min-height: 30px;
}
output {
  font-size: 11px;
  color: #aebda9;
  margin-top: -7px;
}
.cover-editor {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr);
  gap: 42px;
}
.canvas-panel {
  background: #17221b;
  border: 1px solid #304236;
  border-radius: 10px;
  padding: 22px;
}
.preview-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}
.preview-tabs [aria-pressed="true"] {
  background: #dce5cc;
  color: #14261b;
}
.crop-frame {
  margin: auto;
  max-width: 100%;
  height: 460px;
  aspect-ratio: 4/5;
  background: #0a0f0b;
  border-radius: 5px;
  overflow: hidden;
}
.crop-frame.phone {
  height: 460px;
  aspect-ratio: 9/16;
}
.crop-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.settings {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}
.settings h3 {
  margin: 0;
  overflow-wrap: anywhere;
}
.settings .hint {
  margin-top: -10px;
  margin-bottom: 0;
}
.hint {
  font-size: 12px;
  color: #a7b5a3;
}
.canvas-panel > .hint {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 0;
}
.notice {
  padding-top: 14px;
  padding-bottom: 14px;
  background: #314632;
  border: 1px solid #6b8460;
}
.notice.error {
  background: #482d29;
  border-color: #b98570;
}
.slide-list {
  display: grid;
  gap: 16px;
}
.slide-card {
  display: grid;
  grid-template-columns: 44px 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid #3d4e40;
  border-radius: 8px;
}
.slide-card img {
  width: 120px;
  height: 86px;
  object-fit: cover;
  border-radius: 4px;
}
.slide-card .slide-copy {
  min-width: 0;
  overflow-wrap: anywhere;
}
.slide-card h3 {
  margin: 0 0 8px;
}
.slide-card p {
  margin: 0;
  font-size: 12px;
}
.slide-card .order-controls {
  display: flex;
  gap: 8px;
}
.film-card {
  border: 1px solid #425443;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
.film-card > .order-handle {
  align-self: start;
}
.film-card > div {
  min-width: 0;
}
.reorder-card {
  background: #131d17;
  scroll-margin-top: 180px;
  transition:
    border-color 160ms,
    box-shadow 160ms;
}
.reorder-card:hover {
  border-color: #657b62;
}
.order-handle,
.order-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid transparent;
  color: #b9cbaa;
}
.order-handle {
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.order-handle:hover {
  color: #eff5e4;
  background: #2b3b2d;
}
.order-handle:active {
  cursor: grabbing;
}
.order-arrow:disabled {
  opacity: 0.25;
}
.order-chosen {
  border-color: #c7d7b2;
}
.order-placeholder {
  background: #243629;
  border: 1px dashed #bdcda9;
  box-shadow: inset 4px 0 #c9d8b6;
}
.order-placeholder > * {
  opacity: 0.22;
}
.order-floating {
  opacity: 0.98 !important;
  background: #1c2b21;
  border-color: #d3dfbf;
  box-shadow: 0 18px 44px #0009;
  pointer-events: none;
}
.is-sorting,
.is-sorting * {
  cursor: grabbing !important;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .reorder-card {
    transition: none;
  }
}
.film-card video {
  width: 100%;
  max-height: 360px;
  background: #070b08;
}
.film-card .film-settings {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.upload-box {
  border: 1px dashed #7c8e71;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 32px;
  max-width: 800px;
}
.upload-label {
  display: inline-flex;
  cursor: pointer;
  border-radius: 6px;
  padding: 12px 22px;
  margin-bottom: 20px;
  font-size: 15px;
}
.upload-label input {
  max-width: 360px;
  color: #13291c;
  background: #edf2e4;
}
.upload-box p {
  margin-bottom: 12px;
}
progress {
  display: block;
  width: 100%;
  accent-color: #c3d5ad;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.media-tile {
  text-align: left;
  padding: 0;
  overflow: hidden;
  background: #18251d;
  border-color: #3b4d3d;
}
.media-tile img,
.media-tile video,
.video-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: #23382a;
}
.video-placeholder {
  display: grid;
  place-items: center;
  font-size: 30px;
}
.media-tile span {
  display: block;
  padding: 10px 12px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.media-tile small {
  display: block;
  font-size: 10px;
  color: #afc0a6;
}
.version-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid #3c4a3b;
}
.version-row p {
  margin: 0;
}
footer {
  border-top: 1px solid #3c4a3b;
  padding-top: 28px;
  padding-bottom: 35px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  font-size: 12px;
}
footer p {
  max-width: 550px;
}
.gate {
  max-width: 700px;
  margin: 16vh auto;
  padding: 35px;
}
.gate h1 {
  max-width: 580px;
}
dialog {
  width: min(1100px, 94vw);
  max-height: 90vh;
  border: 1px solid #65775d;
  border-radius: 12px;
  padding: 28px;
  background: #142019;
  color: #edf0e6;
  overflow: auto;
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(4px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.dialog-head h2 {
  margin: 10px 0 0;
}
.library-filters {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  margin-bottom: 15px;
}
#library-more {
  margin-top: 24px;
}
#library-count {
  font-size: 12px;
}
#save-state {
  min-width: 90px;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  .intro,
  .tabs,
  .tab-panel,
  .notice,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (max-width: 900px) {
  .slide-card {
    grid-template-columns: 44px 100px minmax(0, 1fr);
  }
  .slide-card img {
    width: 100px;
  }
  .slide-card .order-controls {
    grid-column: 2/-1;
    justify-content: flex-end;
  }
  .draft-label {
    display: none;
  }
  .section-head {
    display: block;
  }
  .section-head > label {
    margin-top: 24px;
    width: 100%;
  }
  .cover-editor {
    gap: 24px;
    grid-template-columns: 1fr 1fr;
  }
  .media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .crop-frame {
    height: 350px;
  }
  .crop-frame.phone {
    height: 350px;
  }
}
@media (max-width: 650px) {
  .topbar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 5vw;
  }
  .wordmark {
    font-size: 23px;
  }
  .top-actions {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .top-actions #save-state {
    grid-column: 1/-1;
    min-height: 18px;
  }
  .intro {
    padding-top: 32px;
  }
  .tabs {
    gap: 20px;
  }
  .tab-panel {
    padding-top: 25px;
  }
  .cover-editor {
    grid-template-columns: 1fr;
  }
  .crop-frame {
    height: 340px;
  }
  .canvas-panel {
    padding: 16px;
  }
  .slide-card {
    grid-template-columns: 44px 76px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 10px;
  }
  .slide-card img {
    width: 76px;
    height: 76px;
  }
  .slide-card h3 {
    font-size: 21px;
  }
  .slide-card .order-controls {
    width: 100%;
    justify-content: flex-end;
  }
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .film-card {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 16px;
    gap: 12px;
  }
  .film-card .film-settings {
    grid-column: 1/-1;
  }
  .upload-box {
    padding: 20px;
  }
  .upload-label input {
    max-width: 100%;
  }
  .library-filters {
    grid-template-columns: 1fr;
  }
  dialog {
    padding: 20px;
  }
  .dialog-head h2 {
    font-size: 25px;
  }
  footer {
    display: block;
  }
}

.film-location {
  display: flex;
  gap: 14px;
  min-width: 0;
  max-width: 50%;
}
.film-location label:first-child {
  min-width: 0;
  flex: 1;
}
.film-location select {
  max-width: 100%;
}
@media (max-width: 900px) {
  .film-location {
    max-width: 100%;
    margin-top: 24px;
  }
}
@media (max-width: 650px) {
  .film-location {
    display: grid;
    grid-template-columns: 1fr;
  }
}
.top-actions svg {
  vertical-align: middle;
  margin-left: 4px;
  flex-shrink: 0;
}
.cover-editor > * {
  min-width: 0;
}
.crop-frame,
.crop-frame.phone {
  width: 100%;
  height: auto;
  max-height: none;
}
@media (max-width: 650px) {
  .tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    overflow: visible;
  }
  .tabs button {
    text-align: left;
    white-space: normal;
    padding: 12px 0;
  }
  .intro {
    padding-bottom: 12px;
  }
}
