:root {
  color-scheme: light;
  --bg: #f7f7f2;
  --ink: #20231e;
  --dim: #65675d;
  --line: #dddcd3;
  --orange: #ff885a;
  --dark: #252a21;
  --paper: #fffef9;
  --muted: #eeeee6;
  --green: #475c38;
  --radius: 15px;
  font-family: Inter,"Segoe UI","Malgun Gothic","Apple SD Gothic Neo",Arial,sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 280px;
}

button,input {
  font: inherit;
}

button,a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .56;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,a:focus-visible,input:focus-visible,video:focus-visible {
  outline: 3px solid #2875bd;
  outline-offset: 3px;
}

h1,h2,h3,p {
  margin: 0;
}

button {
  color: inherit;
}

main,footer,.top-inner {
  width: min(1240px,calc(100% - 96px));
  margin: auto;
}

[hidden] {
  display: none!important;
}

.skip {
  position: fixed;
  z-index: 5;
  top: -80px;
  left: 10px;
  padding: 12px;
  background: white;
}

.skip:focus {
  top: 10px;
}

.top {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.top-inner {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 54px;
}

.brand {
  font-family: "Arial Black",Arial,sans-serif;
  font-size: 26px;
  font-weight: 950;
  letter-spacing: -2.1px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.brand-period {
  color: #bf4d2d;
}

.logo {
  position: relative;
  width: 33px;
  height: 32px;
  background: var(--orange);
  border-radius: 8px;
  margin-right: 9px;
  overflow: hidden;
  display: inline-block;
}

.logo:before,.logo:after {
  content: "";
  position: absolute;
  background: #24291f;
  transform: skew(-20deg);
  height: 8px;
  top: 8px;
  left: 9px;
  width: 17px;
}

.logo:after {
  top: 17px;
  left: 6px;
  width: 13px;
}

.top nav {
  display: flex;
  align-self: stretch;
  gap: 27px;
}

.top nav a {
  display: grid;
  align-content: center;
  position: relative;
  color: var(--dim);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.top nav a.active {
  color: var(--ink);
}

.top nav a.active:after {
  content: "";
  position: absolute;
  height: 3px;
  background: var(--ink);
  bottom: 0;
  left: 0;
  right: 0;
}

.account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.text-btn {
  border: 0;
  background: transparent;
  padding: 7px 0;
  font-weight: 650;
}

.credit {
  font-size: 13px;
}

.credit>span:first-child {
  color: #ac4b25;
  font-size: 18px;
  vertical-align: -1px;
}

.account-btn,.light-btn,.dark-btn,.secondary,.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 7px;
  font-weight: 720;
  font-size: 14px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  text-align: center;
  line-height: 1.3;
}

.account-btn {
  background: var(--dark);
  color: white;
  border-color: var(--dark);
  padding: 9px 18px;
}

.light-btn,.secondary {
  background: white;
}

.dark-btn {
  background: var(--dark);
  color: white;
  border-color: var(--dark);
}

.dark-btn:not(:disabled):hover,.account-btn:hover {
  background: #39432e;
}

.light-btn:hover,.secondary:hover {
  border-color: #888d7b;
  background: #faf9f2;
}

.hero-action:hover {
  background: #ffa179;
}

.text-btn:hover,.back:hover {
  text-decoration: underline;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 49% 51%;
  min-height: 360px;
  overflow: hidden;
  margin-top: 32px;
  background: #262d23;
  color: #fffdf1;
  border-radius: 20px;
  isolation: isolate;
}

.hero-copy {
  padding: 42px 0 40px 52px;
  z-index: 2;
  align-self: center;
}

.eyebrow,.mono,.art-caption {
  font-family: "Courier New",monospace;
  letter-spacing: .12em;
  font-weight: bold;
  font-size: 11px;
}

.eyebrow {
  color: #626857;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dddfc7;
  font-size: 11px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.hero h1 {
  font-size: clamp(47px,4.4vw,72px);
  letter-spacing: -.075em;
  line-height: 1.09;
  font-weight: 850;
  margin: 17px 0 16px;
}

.hero h1 em {
  font-style: normal;
  color: #ffa473;
}

.hero p {
  font-size: 14px;
  line-height: 1.65;
  color: #d4d8cc;
  letter-spacing: -.026em;
}

.hero-action {
  display: inline-flex;
  background: var(--orange);
  color: #221f18;
  border: 0;
  margin-top: 22px;
  padding: 11px 15px;
  gap: 24px;
}

.hero-art {
  position: relative;
  overflow: visible;
  min-height: 100%;
}

.art-grid {
  position: absolute;
  inset: 0 -1px 0 -20%;
  background-image: linear-gradient(#b7c4ab18 1px,transparent 1px),linear-gradient(90deg,#b7c4ab18 1px,transparent 1px);
  background-size: 31px 31px;
  mask-image: linear-gradient(90deg,transparent,#000 26%);
  transform: skewX(-4deg);
  transform-origin: bottom;
}

.stack {
  position: absolute;
  left: 45%;
  top: 51%;
  width: 0;
  height: 0;
}

.poster {
  position: absolute;
  width: 150px;
  height: 244px;
  left: -75px;
  top: -122px;
  overflow: hidden;
  border: 4px solid #fff9e8;
  border-radius: 9px;
  background: #fff9e8;
  box-shadow: 0 16px 24px #111a0e66;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #252a21;
  transform-origin: center;
}

.poster b {
  width: 100%;
  background: #000;
  color: #fff;
  font-weight: 900;
  line-height: 1.17;
  text-align: center;
  letter-spacing: -.07em;
  font-size: 14px;
  padding: 6px 0;
}

.poster img {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
}

.poster small {
  width: 100%;
  padding: 3px;
  text-align: center;
  font-size: 9px;
  background: #000;
  color: #fff;
}

.p1 {
  transform: translate(-101px,0) rotate(-13deg);
}

.p3 {
  transform: translate(107px,-2px) rotate(14deg);
}

.p2 {
  transform: translate(1px,-6px) rotate(-1deg) scale(1.08);
}

.art-caption {
  position: absolute;
  right: 21px;
  bottom: 16px;
  color: #d3d8c7;
  font-family: inherit;
  letter-spacing: .02em;
  font-weight: 550;
  font-size: 10px;
}

.work-heading,.page-heading {
  margin: 38px 0 19px;
}

.work-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  scroll-margin-top: 18px;
}

.work-heading h2,.page-heading h1 {
  font-size: 32px;
  letter-spacing: -.063em;
  margin-top: 5px;
  line-height: 1.22;
}

.cost {
  padding: 6px 10px;
  background: #e9eddf;
  border-radius: 5px;
  color: #49543e;
  font-size: 12px;
  font-weight: 650;
}

.work-grid,.edit-grid {
  display: grid;
  grid-template-columns: minmax(0,1.73fr) minmax(256px,1fr);
  gap: 19px;
}

.upload-card,.format-card,.box,.clip-editor,.video-pane {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 23px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
}

.panel-heading h3,.box h2,.clip-editor h3 {
  font-size: 18px;
  letter-spacing: -.05em;
}

.mono {
  font-size: 10px;
  color: var(--dim);
}

.drop {
  border: 1.5px dashed #aaad9e;
  background: #f8f8f1;
  border-radius: 9px;
  padding: 20px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 178px;
  text-align: center;
  transition: background .16s,border-color .16s;
}

.drop.over {
  background: #fce2d2;
  border-color: #bd5b31;
}

.drop strong {
  font-size: 15px;
  max-width: 100%;
  overflow-wrap: anywhere;
  letter-spacing: -.03em;
}

.drop p {
  color: var(--dim);
  font-size: 12px;
  margin-top: 5px;
}

.drop .light-btn {
  padding: 7px 16px;
  margin-top: 12px;
  font-size: 12px;
}

.upload-icon {
  display: grid;
  place-items: center;
  position: relative;
  width: 37px;
  height: 34px;
  background: #e8ebdc;
  border-radius: 8px;
  color: #48553d;
  font: 700 22px Arial;
  margin-bottom: 8px;
}

.upload-icon i {
  position: absolute;
  width: 17px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-top: 0;
  border-radius: 0 0 2px 2px;
  bottom: 6px;
}

.submit-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.submit-row>span {
  font-size: 12px;
  color: var(--dim);
  margin-right: auto;
}

.feature {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid #e7e7dc;
}

.feature:last-child {
  padding-bottom: 0;
}

.feature b {
  font-size: 14px;
  letter-spacing: -.036em;
}

.feature p {
  font-size: 12px;
  line-height: 1.55;
  color: var(--dim);
  margin-top: 4px;
  word-break: keep-all;
}

.glyph {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #eeefe5;
  color: #4f5c44;
  font-size: 17px;
}

.letters {
  font: 750 15px Georgia,serif;
}

.global-note {
  margin-top: 18px;
  border: 1px solid #dbcf9a;
  border-radius: 8px;
  background: #fff4d3;
  padding: 12px 15px;
  color: #554416;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.global-note button {
  margin-left: 12px;
}

.back {
  display: inline-block;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 650;
  color: var(--green);
}

.page-heading {
  margin-top: 22px;
}

.page-heading p,.body-text {
  color: var(--dim);
  font-size: 14px;
  margin-top: 8px;
  line-height: 1.65;
}

.page-heading h1 {
  overflow-wrap: anywhere;
}

.box {
  margin: 12px 0;
}

.box>p {
  margin: 9px 0 16px;
}

.project-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
}

.project-link:hover {
  background: white;
  border-color: #8f9984;
}

.project-link strong {
  display: block;
  overflow-wrap: anywhere;
}

.project-link small {
  color: var(--dim);
}

.project-icon {
  display: grid;
  place-items: center;
  background: #eceede;
  color: #58664c;
  border-radius: 8px;
  min-width: 37px;
  height: 40px;
}

.project-link .state {
  margin-left: auto;
  flex-shrink: 0;
}

.state {
  background: #e8eddf;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 12px;
  color: var(--green);
}

.tabs {
  display: flex;
  gap: 6px;
  margin: 18px 0;
  flex-wrap: wrap;
}

.tab {
  background: var(--paper);
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 650;
}

.tab.selected {
  background: var(--dark);
  color: white;
  border-color: var(--dark);
}

.edit-grid {
  grid-template-columns: minmax(230px,.86fr) minmax(0,1.4fr);
  align-items: start;
}

.video-pane {
  display: grid;
  place-items: center;
  background: #20261e;
  padding: 18px;
  min-height: 290px;
}

.video-pane video {
  display: block;
  width: min(100%,265px);
  max-height: 490px;
  aspect-ratio: 9/16;
  background: #10120f;
  object-fit: contain;
}

.video-pane p {
  color: #e7e9df;
  font-size: 14px;
}

.legacy-entry {display:block;margin-top:14px;color:inherit;width:fit-content}
.home-continue:not([hidden]) {display:grid;grid-template-columns:92px minmax(0,1fr) auto;gap:18px;align-items:center;margin:20px 0;padding:17px 21px;border:1px solid var(--line);border-radius:14px;background:var(--paper)}
.home-continue h2 {font-size:1.25rem;overflow-wrap:anywhere;margin:4px 0}
.home-continue p,.home-continue small {color:var(--dim)}
.continue-thumb {display:grid;place-items:center;aspect-ratio:4/3;overflow:hidden;border-radius:7px;background:#383e32;color:#f4f5ef}
.continue-thumb img {width:100%;height:100%;object-fit:cover}
.home-legacy {margin:20px 0 36px;font-size:.9rem}
@media(max-width:520px) {
  .home-continue:not([hidden]) {grid-template-columns:72px minmax(0,1fr);gap:9px 13px;padding:13px}
  .home-continue .secondary {grid-column:2;justify-self:start}
}
.candidate-frame {position:relative;width:min(100%,265px);aspect-ratio:9/16}
.video-pane .candidate-frame video {width:100%;height:100%;max-height:none}
.candidate-guide {position:absolute;inset:14.84375% 8.333333%;border:1px dashed turquoise;pointer-events:none}
.candidate-toggle {color:white;font-size:14px;padding:8px;cursor:pointer}
.framing-fields {margin:14px 0}
.framing-fields summary {font-weight:700;cursor:pointer}
.framing-fields p {font-size:.85rem}
.framing-fields fieldset {border:1px solid #ccc;border-radius:8px;display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.framing-fields label {flex:1;min-width:65px}
.framing-fields input {width:100%;display:block;padding:5px}

.field {
  display: block;
  font-size: 13px;
  font-weight: 670;
  margin-top: 16px;
}

.field input {
  display: block;
  background: white;
  padding: 11px 12px;
  border: 1px solid #bfc1b4;
  border-radius: 6px;
  width: 100%;
  margin-top: 7px;
  color: var(--ink);
}

.switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  font-size: 14px;
  font-weight: 640;
}

.switch-row input {
  appearance: none;
  position: relative;
  width: 37px;
  height: 22px;
  background: #85897d;
  border-radius: 20px;
  margin: 0;
  cursor: pointer;
}

.switch-row input:before {
  content: "";
  display: block;
  background: white;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin: 3px;
  transition: transform .15s;
}

.switch-row input:checked {
  background: #526d40;
}

.switch-row input:checked:before {
  transform: translateX(15px);
}

.switch-row input:disabled {
  opacity: .5;
}
.sound-option > small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.5; color: var(--dim); }

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.feedback {
  color: #934224;
  font-size: 13px;
  line-height: 1.55;
  margin-top: 12px;
  overflow-wrap: anywhere;
}

.feedback:empty {
  display: none;
}

.progress-track {
  width: 100%;
  accent-color: #5c704f;
  height: 13px;
}

.back-link {
  background: transparent;
  border: none;
  text-decoration: underline;
  font-size: 13px;
  padding: 7px 0;
}

.modal-note {
  background: #f0f0e7;
  border-radius: 6px;
  color: #545b4f;
  font-size: 13px;
  padding: 11px 12px;
  line-height: 1.6;
  margin-top: 16px;
}

dialog {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 15px;
  width: min(420px,calc(100% - 32px));
  max-height: 90dvh;
  overflow: auto;
  padding: 28px;
  box-shadow: 0 24px 80px #1a211d55;
}

dialog::backdrop {
  background: #20271dd1;
}

dialog h2 {
  font-size: 25px;
  margin: 5px 28px 0 0;
  letter-spacing: -.06em;
}

dialog form .dark-btn,dialog .wide {
  width: 100%;
  margin-top: 18px;
}

.dialog-close {
  position: absolute;
  right: 15px;
  top: 13px;
  font: 24px/1 Arial;
  background: transparent;
  border: none;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 0;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.price b {
  font-size: 25px;
  letter-spacing: -.05em;
}

.foot-brand {
  font: 900 14px Arial;
  letter-spacing: -1px;
  color: #31362a;
}

footer {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dim);
  margin-top: 42px;
  padding: 23px 0 32px;
  font-size: 11px;
}

#library,#detail {
  min-height: 63vh;
}

@media(min-width:1450px) {
  .hero {
    min-height: 389px;
  }
  .poster {
    width: 162px;
    height: 262px;
    left: -81px;
    top: -131px;
  }
  .p1 {
    transform: translate(-117px,0) rotate(-13deg);
  }
  .p3 {
    transform: translate(121px,-2px) rotate(14deg);
  }
}

@media(max-width:950px) {
  main,footer,.top-inner {
    width: calc(100% - 48px);
  }
  .top-inner {
    gap: 30px;
  }
  .hero-copy {
    padding-left: 34px;
  }
  .hero {
    min-height: 335px;
  }
  .stack {
    transform: scale(.82);
    left: 47%;
  }
  .work-grid {
    grid-template-columns: minmax(0,1.35fr) minmax(230px,1fr);
  }
  .upload-card,.format-card {
    padding: 19px;
  }
}

@media(max-width:680px) {
  main,footer,.top-inner {
    width: calc(100% - 32px);
  }
  .top-inner {
    height: auto;
    min-height: 85px;
    gap: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 52px 33px;
  }
  .brand {
    font-size: 21px;
    justify-self: start;
  }
  .logo {
    width: 27px;
    height: 27px;
    margin-right: 6px;
  }
  .logo:before {
    top: 6px;
    left: 7px;
  }
  .logo:after {
    top: 15px;
    left: 5px;
  }
  .top nav {
    grid-row: 2;
    grid-column: 1/-1;
    gap: 24px;
  }
  .top nav a {
    font-size: 12px;
  }
  .account {
    grid-column: 2;
    grid-row: 1;
    gap: 12px;
  }
  .account-btn {
    font-size: 12px;
    padding: 7px 11px;
  }
  .credit {
    font-size: 12px;
  }
  .hero {
    margin-top: 16px;
    border-radius: 14px;
    min-height: 0;
    display: block;
  }
  .hero-copy {
    padding: 26px 24px 17px;
  }
  .hero h1 {
    font-size: 49px;
    margin: 13px 0 11px;
  }
  .hero p {
    font-size: 13px;
  }
  .hero-action {
    font-size: 12px;
    margin-top: 15px;
  }
  .hero-art {
    height: 170px;
    min-height: 0;
    overflow: hidden;
  }
  .art-grid {
    inset: 0;
    mask-image: linear-gradient(180deg,transparent,#000 35%);
  }
  .stack {
    left: 54%;
    top: 62%;
    transform: scale(.62);
  }
  .art-caption {
    right: 10px;
    bottom: 8px;
    font-size: 9px;
  }
  .work-heading {
    margin: 26px 0 14px;
  }
  .work-heading h2,.page-heading h1 {
    font-size: 26px;
  }
  .work-grid,.edit-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 12px;
  }
  .format-card,.upload-card,.clip-editor,.video-pane {
    padding: 17px;
  }
  .format-card .panel-heading {
    margin-bottom: 5px;
  }
  .feature {
    padding: 11px 0;
  }
  .cost {
    font-size: 10px;
  }
  .drop {
    min-height: 155px;
  }
  .desktop-break {
    display: none;
  }
  .page-heading {
    margin: 20px 0 14px;
  }
  .tabs {
    gap: 5px;
  }
  .video-pane video {
    max-height: 350px;
  }
  .box {
    padding: 17px;
  }
  .project-link {
    gap: 8px;
    padding: 11px;
  }
  .project-icon {
    display: none;
  }
  .global-note {
    font-size: 12px;
  }
  footer {
    margin-top: 25px;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    transition: none!important;
    scroll-behavior: auto!important;
  }
}

#seller {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

#seller a {
  text-decoration: underline;
}

.delete-link {
  display: block;
  margin: 22px 0 0 auto;
  border: 0;
  background: transparent;
  padding: 7px;
  color: #84482e;
  text-decoration: underline;
  font-size: 12px;
}

@media(max-width:680px) {
  footer {
    flex-wrap: wrap;
  }
  #seller:not(:empty) {
    width: 100%;
    margin: 0;
  }
}

@font-face {
  font-family: "Black Han Sans";
  src: url("/static/assets/BlackHanSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

.poster b {
  font-family: "Black Han Sans",sans-serif;
  font-weight: 400;
}

.art-caption {
  background: #22281fdb;
  border: 1px solid #65715e;
  border-radius: 5px;
  padding: 7px 10px;
  color: #f4f3e8;
}

.art-caption:hover {
  background: #3a4432;
}

.hero-label {
  font-family: inherit;
  letter-spacing: .04em;
}

.sample-still {
  position: relative;
  width: min(240px,100%);
  aspect-ratio: 9/16;
  border-radius: 6px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  margin: 18px auto 10px;
}

.sample-still b {
  position: absolute;
  z-index: 1;
  top: 14.84375%;
  left: 8.3333%;
  width: 83.3333%;
  padding: 1.1% 2.22%;
  background: #000;
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  justify-items: center;
  text-align: center;
  font-family: "Cutroom-freesentation",sans-serif;
  font-weight: 700;
}

.sample-still span {
  white-space: nowrap;
  line-height: 1.14;
}
.sample-still span:empty, .word-preview b:empty {display: none;}
.sample-still b, .word-preview-title, .type-sample-main { font-synthesis: weight; }
.sample-still small {
  position: absolute;
  left: 8.3333%; width: 83.3333%; top: 71.80%; transform: translateY(-50%);
  color: white; text-align: center; font-weight: 400;
  font-size: 13px;
  text-shadow: 0 1px 2px #000b;
}
.sample-still .sample-footer {
  position: absolute;
  left: 8.3333%; bottom: 14.84375%; width: 83.3333%;
  padding: .18em 2.22%;
  background: #000; color: #fff;
  line-height: 1.14; text-align: center;
  font-family: "Cutroom-freesentation",sans-serif;
}

.sample-still img {
  position: absolute;
  display: block;
  left: 8.3333%;
  top: 14.84375%;
  width: 83.3333%;
  height: 70.3125%;
  object-fit: cover;
}

.brand-choice {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5px 14px;
  margin: 0 0 15px;
}

.brand-choice label, .library-filter {
  font-size: 13px;
  font-weight: 650;
}

.brand-choice .back-link {
  padding: 3px 0;
  color: var(--green);
}

select {
  max-width: 100%;
  font: inherit;
  color: var(--ink);
  background: white;
  border: 1px solid #bfc1b4;
  border-radius: 6px;
  padding: 9px 11px;
}

select:focus-visible {
  outline: 3px solid #2875bd;
  outline-offset: 2px;
}

.brand-choice select, .brand-choice p {
  grid-column: 1 / -1;
}

.brand-choice select {
  width: 100%;
  font-size: 14px;
}

.brand-example {
  margin: 6px 0;
  font-size: 12px;
  color: var(--green);
  overflow-wrap: anywhere;
  line-height: 1.5;
}

dialog:has(.brand-tool) {
  width: min(484px, calc(100% - 28px));
}

.brand-list {
  display: grid;
  gap: 6px;
  margin-top: 15px;
}

.brand-list > p {
  background: var(--muted);
  padding: 15px;
  border-radius: 6px;
  color: var(--dim);
  font-size: 13px;
}

.brand-row {
  display: flex;
  width: 100%;
  gap: 13px;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 12px;
  text-align: left;
}

.brand-row strong, .brand-row small {
  display: block;
  overflow-wrap: anywhere;
}

.brand-row small, .row-action, .field small {
  font-size: 12px;
  font-weight: 400;
  color: var(--dim);
}

.row-action { white-space: nowrap; }
.brand-row:hover { border-color: var(--green); }
.field select { display: block; width: 100%; margin-top: 7px; }

.brand-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

.token-set { margin-top: 16px; }
.token-set p { font-size: 12px; color: var(--dim); line-height: 1.5; }
.token-set [role=group] { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.token-btn { border: 1px solid #d0d6c4; border-radius: 5px; padding: 5px 8px; background: #edf0e6; color: #3e5033; font-size: 12px; }
.token-btn:hover { background: #e0e6d7; }

.word-preview {
  margin-top: 16px;
  overflow-wrap: anywhere;
}
.word-preview strong { display: block; font-size: 11px; color: var(--dim); margin-bottom: 8px; }
.word-preview-picture { container-type: inline-size; width: min(100%,360px); background: center / cover url("/static/assets/still-2.jpg"); min-height: 95px; display: flex; flex-direction: column; justify-content: space-between; text-align: center; color: white; }
.word-preview-title { background: black; padding: .2em .4em; }
.word-preview b, .word-preview-picture small { font-size: var(--sample-size, 5.56cqw); line-height: 1.2; }
.word-preview b { display: block; color: white; font-weight: 700; }
.word-preview-picture small { padding: .18em .4em; background: #000; color: #fff; line-height: 1.14; }
.brand-tool .actions .dark-btn { width: auto; margin: 0; }
.brand-tool .actions .delete-link { margin: 0 0 0 auto; }

.project-tools { display: flex; gap: 12px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.project-tools .delete-link { margin: 0 0 0 auto; }
.library-filter { display: flex; gap: 10px; align-items: center; margin: 12px 0 18px; }
.library-filter select { flex: 0 1 180px; }

.upload-wording { min-width: 0; border: 0; margin: 20px 0 0; padding: 0; }
.upload-wording legend { padding: 0; font-size: 15px; font-weight: 700; }
.upload-wording p { margin: 4px 0 12px; color: var(--dim); font-size: 14px; line-height: 1.5; }
.upload-wording .field { margin: 7px 0; }
.upload-wording input { min-width: 0; }
.upload-titles { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.upload-titles [hidden] { display: none; }
.one-line-title { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; }
.test-payment { padding: 10px 12px; color: #67430d; background: #fff0ce; border-radius: 6px; font-weight: 650; }

.video-style { min-width: 0; padding: 0; margin: 18px 0 0; border: 0; }
.video-style legend { font-weight: 700; }
.type-controls { display: grid; grid-template-columns: minmax(0,1fr) minmax(105px,.4fr); gap: 12px; align-items: end; }
.type-sample { margin: 6px 0 12px; }
.type-sample small { color: var(--dim); font-size: 12px; }
.type-sample > div { container-type: inline-size; width: min(100%,360px); }
.type-sample span { display: block; line-height: 1.3; overflow-wrap: anywhere; font-weight: 400; }
.type-sample [data-size-sample] { color: #fff; text-align: center; padding: .18em .4em; }
.type-sample [data-size-sample="main"] { background: #000; font-weight: 700; }
.type-sample-middle { background: center 65% / cover url("/static/assets/still-2.jpg"); }
.type-sample [data-size-sample="middle"] { padding: .65em .4em; text-shadow: 0 1px 2px #000b; }
.video-style .field, #brandTypography .field { min-width: 0; margin: 7px 0; }
.video-style input, .video-style select, #brandTypography input { min-width: 0; width: 100%; }
.manual-captions { margin: 15px 0; border-top: 1px solid var(--line); padding-top: 14px; }
.manual-captions h4 { margin: 0; font-size: 15px; }
.manual-captions h4 small { margin-left: 3px; font-size: 12px; font-weight: 500; color: var(--dim); }
.manual-captions .cue-help { margin: 5px 0 10px; line-height: 1.5; color: var(--dim); font-size: 13px; }
.cue-row { min-width: 0; margin: 9px 0; padding: 6px 12px 8px; border-radius: 8px; border: 1px solid var(--line); }
.cue-row legend { padding: 0 3px; font-size: 12px; color: var(--green); }
.cue-times { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap: 10px; align-items: end; }
.cue-remove { margin: 0 0 12px; }
.cue-add { padding: 8px 12px; }
.manual-captions [hidden] { display: none; }
.cue-interval { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(150px,100%),1fr)); gap: 0 12px; }
.manual-captions textarea { box-sizing: border-box; width: 100%; min-height: 106px; resize: vertical; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 10px 12px; font: inherit; font-weight: 450; line-height: 1.6; color: inherit; }
.manual-captions textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.cue-timing-feedback { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: var(--dim); font-size: 13px; line-height: 1.5; }
.cue-timing-feedback button { font-size: 13px; }
.speech-times { margin-top: 7px; color: var(--dim); font-size: 13px; line-height: 1.6; }
.speech-times summary { cursor: pointer; }
.speech-times ol { padding-left: 22px; margin: 4px 0; overflow-wrap: anywhere; }
.guide-link { display: inline-block; margin-top: 6px; color: var(--green); text-underline-offset: 3px; font-size: 13px; }

@media(max-width:470px) {
  .upload-titles { grid-template-columns: minmax(0,1fr); gap: 0; }
  .brand-fields { grid-template-columns: minmax(0,1fr); gap: 0; }
  .brand-tool .actions { gap: 7px; }
}
