/* shared/language-ui.css */
.ui-language-control {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
}
.ui-language-control select {
  font: inherit;
  font-size: 12px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 26px 8px 12px;
  min-height: 36px;
  max-width: 145px;
  cursor: pointer;
}
.ui-language-control select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
#account-dialog > .ui-language-control {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 16px;
}
.editor-flow .submission-nav {
  gap: 18px;
}
@media (max-width: 760px) {
  .editor-flow .topbar {
    flex-wrap: wrap;
  }
  .editor-flow .submission-nav {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .ui-language-control select {
    max-width: 124px;
    font-size: 12px;
    padding-top: 7px;
    padding-bottom: 7px;
  }
  header nav {
    flex-wrap: wrap;
  }
}

/* shared/control-spacing.css */
:root {
  --control-chevron-size:16px;
  --control-chevron-inset:12px;
  --control-text-inset:12px;
  --control-trailing-space:40px;
  --control-height:38px;
}
html body select:not([multiple]):not([size]),
html body select:not([multiple])[size="0"],
html body select:not([multiple])[size="1"] {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  background-image: url("./chevron-down-NGA7OWN5.svg");
  background-repeat: no-repeat;
  background-position: right var(--control-chevron-inset) center;
  background-size: var(--control-chevron-size) var(--control-chevron-size);
  padding-inline-start: var(--control-text-inset);
  padding-inline-end: var(--control-trailing-space);
  min-height: var(--control-height);
  line-height: 1.4;
  cursor: pointer;
  max-width: 100%;
  text-overflow: ellipsis;
}
html body .ui-language-control select,
html body.editor-flow .ui-language-control select {
  width: 128px;
  min-width: 112px;
  max-width: none;
  padding-block: 8px;
  flex-shrink: 0;
}
html body .ui-language-control {
  min-width: 0;
}
html body #editor .canvas-toolbar select {
  min-width: 100px;
}
html body #editor #font-menu > summary {
  gap: 12px;
  min-width: 0;
  padding: 11px 12px;
  line-height: 1.4;
}
html body #editor #font-menu > summary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html body #editor #font-menu > summary svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
html body.editor-flow :is(#account-form, #email-bind-form, #password-reset-form, #redemption-form) input:not([type=checkbox]):not([type=radio]) {
  box-sizing: border-box;
  min-width: 0;
  padding-inline: 14px;
  line-height: 1.4;
}
html body #editor #properties :is(input:not([type=color]):not([type=checkbox]):not([type=radio]), textarea) {
  padding-inline: 12px;
  line-height: 1.4;
}
html body #editor :is(header, .canvas-toolbar) button svg {
  flex-shrink: 0;
}
@media (forced-colors: active) {
  html body select:not([multiple]):not([size]),
  html body select:not([multiple])[size="0"],
  html body select:not([multiple])[size="1"] {
    appearance: auto;
    -webkit-appearance: auto;
    background-image: none;
    padding-inline-end: 12px;
  }
}

/* src/style.css */
:root {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color-scheme: dark;
  --bg: #121411;
  --panel: #191c17;
  --surface: #22261e;
  --line: #30362a;
  --muted: #939b89;
  --text: #eef0e7;
  --accent: #c3ed8b;
  --ink: #18220e;
  --danger: #f5b0a4;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
button,
a,
input,
textarea,
summary {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  background: none;
  color: inherit;
  border-radius: 7px;
}
svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  stroke-width: 1.6;
}
[hidden] {
  display: none !important;
}
.topbar {
  height: 68px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
}
.brand > svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
}
.brand strong {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
}
.brand span {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 14px;
  margin-left: 5px;
}
.top-right {
  display: flex;
  gap: 22px;
  align-items: center;
}
.local-badge {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 5px 9px;
  border-radius: 20px;
}
.quiet {
  font-size: 12px;
  color: var(--muted);
}
.workspace {
  display: grid;
  grid-template-columns: 310px minmax(280px, 1fr) 230px;
  min-height: calc(100vh - 68px);
}
.input-panel {
  background: var(--panel);
  padding: 30px 24px 24px;
  border-right: 1px solid var(--line);
}
.section-label {
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--muted);
}
h1 {
  font-size: 23px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: -0.7px;
  margin: 11px 0 10px;
}
.intro {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin: 0 0 23px;
}
.upload-zone {
  width: 100%;
  min-height: 142px;
  border: 1px dashed #555e48;
  flex-direction: column;
  gap: 11px;
  border-radius: 10px;
  background: #1c2118;
}
.upload-zone:hover,
.upload-zone.dragging {
  background: #28321e;
  border-color: var(--accent);
}
.upload-zone svg {
  color: var(--accent);
  width: 23px;
  height: 23px;
}
.upload-zone strong {
  font-size: 12px;
  font-weight: 500;
}
.upload-zone span {
  font-size: 10px;
  color: var(--muted);
}
#source-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
#source-thumb {
  width: 42px;
  height: 58px;
  object-fit: cover;
  border-radius: 4px;
}
#source-card > div {
  min-width: 0;
  flex: 1;
}
#source-name {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
}
#source-size {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.field-label {
  display: block;
  font-size: 12px;
  margin: 24px 0 9px;
}
.field-label span {
  font-size: 10px;
  color: var(--muted);
  margin-left: 5px;
}
input,
textarea {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 11px;
  font-size: 12px;
  line-height: 1.6;
  resize: vertical;
}
input:focus,
textarea:focus {
  outline: 1px solid #8cac66;
  border-color: transparent;
}
input::placeholder,
textarea::placeholder {
  color: #737d67;
}
details {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
}
summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary > span {
  margin-left: auto;
  font-size: 10px;
  color: var(--muted);
}
.settings-body {
  padding-top: 9px;
}
.settings-body label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin: 11px 0 6px;
}
.helper {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.privacy {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  margin: 17px 0 13px;
}
.primary {
  background: var(--accent);
  color: var(--ink);
  min-height: 43px;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 16px;
}
.primary:hover:not(:disabled) {
  background: #d3f5a9;
}
#generate {
  width: 100%;
}
#generate svg:last-child {
  margin-left: auto;
}
#generate svg:first-child {
  margin-right: 0;
}
.demo-button {
  width: 100%;
  margin-top: 10px;
  padding: 10px 0;
  font-size: 11px;
  color: var(--muted);
}
.demo-button span {
  font-size: 10px;
  padding: 2px 5px;
  background: var(--surface);
  border-radius: 3px;
}
.secondary {
  border: 1px solid #434b39;
  padding: 10px 13px;
  background: var(--surface);
  font-size: 12px;
}
.secondary:hover:not(:disabled) {
  border-color: #778366;
}
#cancel {
  width: 100%;
  margin-top: 8px;
}
.preview-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: calc(100vh - 68px);
  min-height: 690px;
  position: sticky;
  top: 0;
}
.preview-toolbar {
  height: 58px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 21px;
}
.view-tabs {
  display: flex;
  gap: 16px;
  height: 100%;
}
.view-tabs button {
  font-size: 11px;
  border-radius: 0;
  padding: 0;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.view-tabs .active {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.subtle {
  font-size: 10px;
  color: var(--muted);
}
#notice {
  font-size: 11px;
  line-height: 1.8;
  padding: 10px 20px;
  background: #242d1d;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
#notice.error {
  background: #35221e;
  color: var(--danger);
}
.stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px;
  background-color: #141712;
  background-image: radial-gradient(#303629 1px, transparent 1px);
  background-size: 18px 18px;
}
.empty-state {
  align-self: center;
  text-align: center;
  margin: auto;
  max-width: 420px;
}
.empty-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9eae8b;
  margin-bottom: 30px;
}
.empty-symbol svg {
  width: 64px;
  height: 64px;
  stroke-width: 0.65;
}
.eyebrow {
  display: block;
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--muted);
}
h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.5;
}
.empty-state p {
  font-size: 12px;
  color: var(--muted);
  line-height: 2;
  margin-bottom: 25px;
}
.empty-state button {
  font-size: 11px;
}
.empty-bottom {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 10px;
  color: #737e68;
  margin-top: 60px;
}
.canvas-footer {
  height: 47px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
  gap: 12px;
}
.zoom-controls {
  display: flex;
  align-items: center;
  gap: 3px;
}
.zoom-controls output {
  min-width: 33px;
  text-align: center;
}
.icon-button {
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 5px;
  color: var(--muted);
}
.icon-button:hover {
  background: var(--surface);
  color: var(--text);
}
.icon-button svg {
  width: 15px;
  height: 15px;
}
#canvas-wrap {
  position: relative;
  flex-shrink: 0;
  margin: auto;
  box-shadow: 0 15px 40px #0005;
}
#canvas-mount {
  transform-origin: top left;
  position: absolute;
  left: 0;
  top: 0;
  width: max-content;
}
.reference-image {
  display: block;
  max-width: none;
}
.selected-node {
  outline: 2px solid #68a9ff !important;
  outline-offset: 0;
}
#canvas-mount [data-node] {
  cursor: crosshair;
}
#assets-grid {
  width: 100%;
  max-width: 650px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.8;
}
#assets-grid h3 {
  font-size: 15px;
  font-weight: 500;
}
#assets-grid figure {
  margin: 15px 0;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
#assets-grid img {
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
}
#assets-grid figcaption {
  color: var(--muted);
  font-size: 11px;
  margin-top: 8px;
}
#assets-grid ul {
  padding-left: 18px;
  color: var(--muted);
}
#assets-grid li {
  margin-bottom: 10px;
}
.layers-panel {
  background: var(--panel);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 68px);
  min-height: 690px;
  position: sticky;
  top: 0;
}
.panel-title {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.panel-title span {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
}
.layer-list {
  flex: 1;
  overflow: auto;
  padding: 10px 0;
  min-height: 180px;
}
.placeholder {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  padding: 14px 18px;
}
.layer-row {
  width: 100%;
  justify-content: flex-start;
  border-radius: 0;
  font-size: 11px;
  min-height: 34px;
  color: #c7cdbd;
  padding: 6px 12px;
  gap: 8px;
}
.layer-row svg {
  width: 13px;
  height: 13px;
  color: #89957a;
}
.layer-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.layer-row:hover {
  background: var(--surface);
}
.layer-row.selected {
  background: #303e25;
  color: var(--accent);
}
.selected-info {
  font-size: 10px;
  line-height: 1.7;
  min-height: 49px;
  padding: 12px 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.delivery {
  border-top: 1px solid var(--line);
  padding: 23px 18px 17px;
}
.delivery h3 {
  font-size: 13px;
  font-weight: 500;
  margin: 10px 0;
}
.delivery p {
  font-size: 10px;
  line-height: 1.9;
  color: var(--muted);
  margin: 0 0 16px;
}
.delivery .secondary {
  width: 100%;
  font-size: 11px;
}
.text-button {
  font-size: 10px;
  color: var(--muted);
  padding: 12px 0;
  width: 100%;
}
.text-button svg {
  width: 13px;
  height: 13px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  padding: 30px;
  max-width: 540px;
  width: calc(100% - 32px);
  box-shadow: 0 30px 100px #0008;
}
dialog::backdrop {
  background: #000a;
}
.close-dialog {
  position: absolute;
  right: 14px;
  top: 14px;
}
dialog p,
dialog li {
  font-size: 12px;
  line-height: 1.9;
  color: #b7c0ac;
}
dialog ol {
  padding-left: 18px;
}
dialog li {
  margin-bottom: 12px;
}
dialog code {
  color: var(--accent);
  font-size: 11px;
}
dialog .primary {
  width: 100%;
  margin-top: 12px;
}
svg.lucide-loader-circle {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1500px) {
  .workspace {
    grid-template-columns: 330px minmax(280px, 1fr) 260px;
  }
  .input-panel {
    padding: 35px 30px;
  }
  .preview-toolbar {
    padding: 0 28px;
  }
}
@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 290px minmax(280px, 1fr);
  }
  .layers-panel {
    grid-column: 2;
    height: auto;
    min-height: 0;
    position: static;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 230px;
  }
  .panel-title {
    grid-column: 1;
  }
  .layer-list {
    grid-column: 1;
    max-height: 220px;
  }
  .selected-info {
    grid-column: 1;
  }
  .delivery {
    grid-column: 2;
    grid-row: 1/4;
    border-left: 1px solid var(--line);
    border-top: 0;
  }
  .input-panel {
    grid-row: 1/3;
  }
  .preview-panel {
    position: static;
    min-height: 680px;
  }
  .subtle {
    max-width: 112px;
    text-align: right;
  }
}
@media (max-width: 720px) {
  .topbar {
    height: 60px;
    padding: 0 17px;
  }
  .brand span {
    display: none;
  }
  .top-right {
    gap: 10px;
  }
  .quiet {
    font-size: 10px;
  }
  .local-badge {
    font-size: 10px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .input-panel {
    padding: 24px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  h1 {
    font-size: 25px;
  }
  h1 br {
    display: none;
  }
  .intro br {
    display: none;
  }
  .upload-zone {
    min-height: 110px;
  }
  .preview-panel {
    height: 720px;
    min-height: 560px;
  }
  .layers-panel {
    display: grid;
    border-left: 0;
  }
  .stage {
    padding: 20px;
  }
  .canvas-footer {
    font-size: 9px;
    padding: 0 12px;
  }
  .preview-toolbar {
    padding: 0 16px;
  }
  .empty-state h2 {
    font-size: 22px;
  }
  .view-tabs {
    gap: 18px;
  }
  .delivery {
    padding: 20px 14px;
  }
  .layers-panel {
    grid-template-columns: minmax(140px, 1fr) 185px;
  }
  .empty-bottom {
    gap: 20px;
  }
  .section-label {
    letter-spacing: 0.7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }
}
.budget-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 14px;
}
.budget-control input {
  width: 90px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
}
.budget-confirm-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
#budget-confirm-dialog {
  max-width: 460px;
  width: calc(100% - 40px);
}
.figma-delivery-panel {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.figma-delivery-panel[hidden] {
  display: none;
}
.figma-delivery-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.figma-delivery-panel a {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* src/dialogs-approved.css */
body.editor-flow :is(#account-dialog, #submission-dialog, #coin-admin-dialog, #coin-revoke-dialog) {
  --dialog-panel:#f9fbfd;
  --dialog-text:#121b29;
  --dialog-muted:#626d7e;
  --dialog-surface:#f0f3f6;
  --dialog-line:#d8dee6;
  --dialog-selected:#526a85;
  --text:var(--dialog-text);
  --muted:var(--dialog-muted);
  --surface:var(--dialog-surface);
  --line:var(--dialog-line);
  --accent:var(--dialog-selected);
  color: var(--dialog-text);
  background: var(--dialog-panel);
  border: 1px solid rgba(255, 255, 255, .94);
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 6px 24px rgba(18, 26, 41, .05);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  max-height: calc(100svh - 48px);
  overflow: auto;
}
body.editor-flow :is(#account-dialog, #submission-dialog, #coin-admin-dialog, #coin-revoke-dialog)::backdrop {
  background: rgba(18, 27, 41, .22);
  backdrop-filter: none;
}
body.editor-flow :is(#account-dialog, #submission-dialog, #coin-admin-dialog, #coin-revoke-dialog) h2 {
  font-size: 24px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: -.43px;
  margin: 0 40px 24px 0;
}
body.editor-flow :is(#account-dialog, #submission-dialog, #coin-admin-dialog, #coin-revoke-dialog) :is(p, li) {
  color: var(--dialog-text);
  font-size: 14px;
  line-height: 22px;
  overflow-wrap: anywhere;
}
body.editor-flow :is(#account-dialog, #submission-dialog, #coin-admin-dialog, #coin-revoke-dialog) .close-dialog {
  top: 14px;
  right: 12px;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--dialog-muted);
  box-shadow: none;
}
body.editor-flow :is(#account-dialog, #submission-dialog, #coin-admin-dialog, #coin-revoke-dialog) .close-dialog svg {
  width: 12px;
  height: 12px;
  stroke-width: 1.5;
}
body.editor-flow :is(#account-dialog, #submission-dialog) :is(input, select) {
  color: var(--dialog-text);
  background: var(--panel);
  border: 1px solid var(--dialog-line);
  font: inherit;
  min-width: 0;
}
body.editor-flow :is(#account-dialog, #submission-dialog) :is(.primary, .secondary) {
  min-height: 44px;
  line-height: 18px;
  border-radius: 999px;
  font-size: 12px;
}
body.editor-flow :is(#account-dialog, #submission-dialog) .primary {
  background: var(--dialog-text);
  color: var(--panel);
  font-weight: 600;
}
body.editor-flow :is(#account-dialog, #submission-dialog) .secondary {
  background: var(--dialog-surface);
  color: var(--dialog-text);
  border-color: var(--dialog-line);
}
body.editor-flow #account-dialog {
  width: min(420px, calc(100vw - 32px));
}
body.editor-flow #account-dialog[data-account-panel=profile] {
  width: min(440px, calc(100vw - 32px));
  padding: 30px 32px;
  border-radius: 20px;
  background: var(--panel);
}
body.editor-flow #account-dialog[data-account-panel=profile] h2 {
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  margin: 0 32px 30px 0;
  outline: none;
}
body.editor-flow #account-dialog:is([data-account-panel=profile], [data-account-panel=change]) > .ui-language-control {
  display: none;
}
body.editor-flow #account-dialog[data-account-panel=profile] .close-dialog {
  top: 24px;
  right: 24px;
}
body.editor-flow #account-profile {
  display: flex;
  flex-direction: column;
  gap: 0;
}
body.editor-flow #account-profile .account-details {
  display: grid;
  gap: 20px;
  margin: 0;
}
body.editor-flow #account-profile .account-detail-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
}
body.editor-flow #account-profile dt {
  font-size: 14px;
  line-height: 24px;
  white-space: nowrap;
  color: var(--dialog-muted);
}
body.editor-flow #account-profile dd {
  font-size: 16px;
  line-height: 24px;
  margin: 0;
  color: var(--dialog-text);
  overflow-wrap: anywhere;
  min-width: 0;
}
body.editor-flow #account-profile .account-tools {
  border-top: 1px solid var(--dialog-line);
  margin-top: 28px;
  padding-top: 12px;
  display: grid;
  gap: 0;
}
body.editor-flow #account-profile .account-tools button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  min-height: 48px;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--dialog-text);
  font-size: 15px;
}
body.editor-flow #account-profile .account-disclosure {
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-right: 4px;
  color: var(--dialog-muted);
  flex: none;
}
body.editor-flow #account-dialog .account-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}
body.editor-flow #account-dialog .account-actions button {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  font-size: 14px;
  line-height: 20px;
  border-radius: 10px;
  background: var(--panel);
  border-color: var(--dialog-line);
}
body.editor-flow #account-dialog .account-actions button:only-child {
  grid-column: 1/-1;
}
body.editor-flow #account-dialog #account-change-password {
  background: var(--dialog-surface);
}
body.editor-flow #account-dialog[data-account-panel=change] h2 {
  margin-bottom: 24px;
}
body.editor-flow #account-dialog #reset-email[readonly] {
  color: var(--dialog-muted);
  background: var(--dialog-surface);
}
body.editor-flow #account-dialog :is(label, .helper) {
  color: var(--dialog-muted);
}
body.editor-flow #account-dialog :is(#account-error, .email-error, [role=alert]) {
  color: var(--danger);
}
body.editor-flow #submission-dialog[data-section=wallet] {
  width: min(560px, calc(100vw - 32px));
  max-width: 560px;
}
body.editor-flow #submission-dialog[data-section=wallet][data-wallet-view=recharge] h2,
body.editor-flow #submission-dialog[data-section=wallet][data-wallet-view=redemption] h2 {
  margin-bottom: 0;
}
body.editor-flow #submission-dialog .recharge-methods {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 29px 0 20px;
}
body.editor-flow #submission-dialog .recharge-methods button {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 11px 12px;
  background: var(--panel);
  border: 1px solid var(--dialog-line);
  border-radius: 999px;
  font-size: 16px;
  line-height: 20px;
  color: var(--dialog-muted);
}
body.editor-flow #submission-dialog .recharge-methods button[aria-pressed=true] {
  background: var(--dialog-surface);
  border-color: var(--dialog-selected);
  color: var(--dialog-text);
}
body.editor-flow #stripe-recharge > p:not([hidden]) {
  font-size: 14px;
  line-height: 17px;
  color: var(--dialog-muted);
  margin: 0 0 24px;
}
body.editor-flow #stripe-amount-form label {
  font-size: 14px;
  line-height: 17px;
  color: var(--dialog-muted);
  margin: 0 0 10px;
}
body.editor-flow #stripe-amount-form input {
  width: 100%;
  height: 48px;
  padding: 10px 16px;
  border-radius: 18px;
  font-size: 16px;
  line-height: 20px;
  margin: 0;
}
body.editor-flow #stripe-recharge .primary {
  min-height: 44px;
  margin: 16px 0 0;
  padding: 12px 22px;
  font-size: 12px;
  line-height: 18px;
}
body.editor-flow #stripe-quote:not(:empty) {
  margin-top: 24px;
}
body.editor-flow #stripe-quote p {
  color: var(--dialog-muted);
  font-size: 14px;
  line-height: 22px;
  margin: 0 0 14px;
}
body.editor-flow #stripe-message:not([hidden]) {
  margin: 16px 0 0;
}
body.editor-flow #redemption-form > p {
  color: var(--dialog-muted);
  font-size: 14px;
  line-height: 20px;
  margin: 0 0 24px;
}
body.editor-flow #redemption-form label {
  color: var(--dialog-muted);
  margin: 0 0 10px;
}
body.editor-flow #redemption-form .primary {
  margin-top: 16px;
  min-height: 44px;
  padding: 12px 22px;
}
body.editor-flow :is(#budget-confirm-dialog, #cancel-generation-dialog) :is(p, li) {
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
body.editor-flow :is(#budget-confirm-dialog, #cancel-generation-dialog)::backdrop {
  backdrop-filter: none;
}
@media (max-width: 480px) {
  body.editor-flow :is(#account-dialog, #submission-dialog, #coin-admin-dialog, #coin-revoke-dialog) {
    padding: 28px 24px;
  }
  body.editor-flow #submission-dialog .recharge-methods button {
    font-size: 14px;
    padding: 11px 8px;
  }
  body.editor-flow #account-dialog[data-account-panel=profile] {
    padding: 28px 24px;
  }
  body.editor-flow #account-dialog .account-actions {
    margin-top: 28px;
  }
  body.editor-flow #account-profile .account-detail-row {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
  }
}
body.editor-flow #stripe-amount-form input[type=range] {
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  accent-color: var(--dialog-text);
  cursor: pointer;
  margin-top: 10px;
}
body.editor-flow #stripe-amount-form .coin-presets {
  display: flex;
  gap: 8px;
  margin: 4px 0 18px;
}
body.editor-flow #stripe-amount-form .coin-presets button {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--dialog-line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--dialog-text);
}
body.editor-flow #stripe-amount-form .coin-presets button[aria-pressed=true] {
  background: var(--dialog-surface);
  border-color: var(--dialog-selected);
}
body.editor-flow #stripe-price {
  margin: 0;
  font-size: 16px;
  color: var(--dialog-text);
}
body.editor-flow .redemption-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
body.editor-flow #redemption-form .redemption-label label {
  margin: 0;
}
body.editor-flow #buy-redemption-code {
  font-size: 13px;
  color: var(--dialog-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* website/product.css */
:root {
  color-scheme: only light;
  --bg:#fafafa;
  --panel:#fff;
  --surface:#f5f5f7;
  --line:#e0dfe5;
  --muted:#72736e;
  --text:#20211e;
  --accent:#20211e;
  --ink:#fff;
  --selection:#b18bdc;
  --selection-surface:#f0e8fb;
}
html.submission-preview-root {
  color-scheme: only light;
  background: #fafafa;
}
body.editor-flow {
  color-scheme: only light;
  --primitive-bg:#fafafa;
  --primitive-panel:#fff;
  --primitive-surface:#f5f5f7;
  --primitive-line:#e0dfe5;
  --primitive-muted:#72736e;
  --primitive-text:#20211e;
  --primitive-action:#20211e;
  --primitive-outline:#b1aeb9;
  --action:#20211e;
  --accent:#20211e;
  --control-outline:#b1aeb9;
}
body.editor-flow .topbar {
  border-color: var(--line);
  background: var(--panel);
}
.topbar .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.topbar .brand::before {
  content: "";
  display: block;
  width: 27px;
  height: 27px;
  flex: none;
  background: url("./cat-ZYR3NRQL.png") center/contain no-repeat;
}
.topbar .brand > svg,
.topbar .brand > span {
  display: none;
}
body.editor-flow .brand strong {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -.6px;
}
body.editor-flow .topbar .wallet {
  gap: 14px;
}
body.editor-flow #submission-recharge {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 15px;
  min-height: 38px;
  background: var(--panel);
}
body.editor-flow .flow-upload-form,
body.editor-flow .flow-process {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 5px 18px #24202c04;
}
body.editor-flow .flow-upload-image-well,
body.editor-flow .flow-source-well {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
body.editor-flow .upload-zone {
  border-radius: 12px;
  background: var(--panel);
  border-color: #ccc6d4;
}
body.editor-flow .upload-zone:hover,
body.editor-flow .upload-zone.dragging {
  background: #faf8fd;
  border-color: #b18bdc;
}
body.editor-flow #generate,
body.editor-flow #flow-open-editor,
body.editor-flow #agent-resume {
  border-radius: 8px;
  background: var(--text);
  color: var(--panel);
  box-shadow: none;
}
body.editor-flow #generate:disabled {
  background: var(--surface);
  color: #85847e;
  border-color: var(--line);
}
body.editor-flow #flow-runtime #cancel {
  background: var(--panel);
  border-radius: 8px;
}
body.editor-flow :is(#account-dialog, #submission-dialog, #coin-admin-dialog, #coin-revoke-dialog) {
  --dialog-panel:#fff;
  --dialog-text:#20211e;
  --dialog-muted:#72736e;
  --dialog-surface:#f5f5f7;
  --dialog-line:#e0dfe5;
  --dialog-selected:#b18bdc;
  border: 1px solid var(--dialog-line);
  border-radius: 16px;
  box-shadow: 0 16px 50px #25202d12;
}
body.editor-flow :is(#account-dialog, #submission-dialog, #coin-admin-dialog, #coin-revoke-dialog)::backdrop {
  background: #25202d32;
  backdrop-filter: none;
}
body.editor-flow :is(#account-dialog, #submission-dialog) :is(.primary, .secondary, input:not([type=range]), select) {
  border-radius: 8px;
}
body.editor-flow #account-dialog .account-actions {
  margin-top: 40px;
  gap: 12px;
}
body.editor-flow #submission-dialog .recharge-methods button,
body.editor-flow #stripe-amount-form .coin-presets button {
  border-radius: 8px;
}
body.editor-flow .recharge-methods button[aria-pressed=true] {
  background: #f0e8fb;
  border-color: #c3addf;
}
body.editor-flow .task-history-row {
  border-radius: 10px;
  border-color: var(--line);
  background: var(--panel);
}
body.editor-flow .task-history-row:hover {
  background: #faf8fd;
}
body.editor-flow :is(#budget-confirm-dialog, #cancel-generation-dialog) {
  border-color: var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
}
body > #editor > header {
  background: var(--panel);
  border-color: var(--line);
}
body > #editor > header button,
.canvas-toolbar button,
#empty button,
.export-actions button,
.leave-actions button {
  border-radius: 8px;
}
#layers-panel,
#properties-panel {
  background: var(--panel);
  border-color: var(--line);
}
#layers button[aria-pressed=true] {
  background: var(--selection-surface);
  color: var(--text);
}
#viewport {
  background: var(--surface);
}
#properties :is(input, textarea, select),
#font-menu > summary {
  background: var(--panel);
  border-color: var(--line);
  border-radius: 8px;
}
#font-options button[aria-pressed=true],
#font-options button:hover {
  background: var(--selection-surface);
}
#export-dialog,
#leave-dialog,
#replicate-dialog {
  background: var(--panel);
  border-color: var(--line);
  border-radius: 14px;
}
@media (max-width: 760px) {
  body.editor-flow .flow-upload-form,
  body.editor-flow .flow-process {
    padding: 22px;
  }
  body.editor-flow .brand strong {
    font-size: 21px;
  }
  body.editor-flow .topbar .wallet {
    gap: 10px;
  }
  body.editor-flow #submission-recharge {
    padding: 8px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .topbar *,
  dialog * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* website/video/style.css */
body.video-app {
  --bg:var(--panel);
  background: var(--panel);
  color: var(--text);
  min-height: 100vh;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    sans-serif;
  font-size: 16px;
}
.video-app [hidden] {
  display: none !important;
}
.video-app a {
  color: inherit;
}
.video-app .topbar {
  max-width: none;
  height: 76px;
  margin: 0;
  padding: 0 max(24px, calc((100vw - 1320px)/2));
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 40px;
  align-items: center;
}
.video-app .topbar .brand:before {
  display: none;
}
.video-app .brand strong {
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -1.2px;
}
.video-app .product-nav-products {
  margin-right: auto;
}
.video-app .product-nav-utilities {
  margin-left: auto;
}
.video-app #submission-account {
  border: 0;
  background: none;
  color: var(--text);
  font-size: 14px;
  min-height: 44px;
  padding: 8px 0;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.video-app .ui-language-control {
  margin: 0;
  border: 0;
  background: none;
  padding: 0;
}
.video-app .ui-language-control select {
  font: inherit;
  font-size: 13px;
  border: 0;
  background: transparent;
  color: var(--text);
  max-width: 95px;
  min-height: 40px;
}
.video-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.video-app h1,
.video-app h2,
.video-app p {
  margin: 0;
}
.video-app h1 {
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 700;
  letter-spacing: -1.7px;
  line-height: 1.15;
}
.video-app h2 {
  font-size: 30px;
  letter-spacing: -.9px;
  font-weight: 650;
  line-height: 1.2;
}
.catalog-heading {
  padding: 65px 0 56px;
}
.catalog-heading h1 {
  font-size: clamp(42px, 5.3vw, 70px);
  letter-spacing: -2.4px;
  line-height: 1.05;
}
.catalog-heading > p,
.video-heading > p {
  color: var(--muted);
  font-size: 22px;
  line-height: 1.5;
  margin-top: 14px;
}
.video-feature {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  margin: 0 0 64px;
  padding: 0;
}
.video-media {
  min-width: 0;
  position: relative;
}
.video-media video {
  display: block;
  width: 100%;
  aspect-ratio: 4/7;
  object-fit: contain;
  background: var(--surface);
  border-radius: 12px;
}
.video-media #video-preview-status {
  position: absolute;
  bottom: 44px;
  left: 12px;
  right: 12px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 8px;
  border-radius: 6px;
}
.video-preview-caption {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}
.video-catalog .video-preview-caption {
  display: none;
}
.template-number {
  font-size: 13px;
  letter-spacing: .03em;
  display: block;
  margin-bottom: 20px;
}
.catalog-template h2 {
  font-size: clamp(32px, 3.5vw, 46px);
  letter-spacing: -1.6px;
}
.template-description {
  font-size: 22px;
  color: var(--muted);
  line-height: 1.5;
  margin: 18px 0 28px !important;
}
.video-kicker {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}
.video-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 32px 0 24px;
}
.video-price strong {
  font-size: 40px;
  letter-spacing: -1.2px;
  line-height: 1.1;
  font-weight: 650;
}
.video-price span {
  font-size: 13px;
  color: var(--muted);
}
.video-app .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 8px;
  background: var(--text);
  color: var(--panel);
  text-decoration: none;
  border: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}
.video-app .primary:hover {
  opacity: .85;
}
.video-app button:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.catalog-template .primary {
  margin-top: 6px;
  min-width: 210px;
}
.video-how {
  display: flex;
  align-items: start;
  gap: 50px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 38px 0;
  margin-bottom: 42px;
}
.video-how h2 {
  font-size: 28px;
  white-space: nowrap;
}
.video-how ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  flex: 1;
  padding: 0;
  margin: 0;
}
.video-how li {
  border-inline-start: 1px solid var(--line);
  padding-left: 22px;
  line-height: 1.5;
}
.video-how li > span {
  display: block;
  font-weight: 650;
  font-size: 20px;
  margin-bottom: 7px;
}
.video-how li p {
  font-size: 15px;
}
.video-faq {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 40px;
  margin: 0 0 56px;
}
.video-faq h2 {
  font-size: 30px;
  padding-top: 20px;
}
.video-faq-row {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.video-faq-row summary,
.video-privacy summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  min-height: 66px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
}
.video-faq-row summary::-webkit-details-marker,
.video-privacy summary::-webkit-details-marker {
  display: none;
}
.video-faq-row svg,
.video-privacy summary svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform .15s;
}
.video-faq-row[open] svg,
.video-privacy[open] summary svg {
  transform: rotate(180deg);
}
.video-faq-row p {
  padding: 0 34px 22px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.video-footer {
  max-width: 1120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 36px auto 0;
  padding: 30px 24px 40px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.video-footer .footer-brand {
  font-size: 26px;
  letter-spacing: -1px;
  font-weight: 700;
}
.video-footer nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  line-height: 1.6;
}
.video-breadcrumb {
  display: flex;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
  margin: 30px 0;
}
.video-breadcrumb a {
  text-decoration: none;
}
.video-breadcrumb > span {
  color: var(--muted);
}
.video-heading {
  margin-bottom: 48px;
}
.video-layout {
  display: grid;
  grid-template-columns: minmax(0, 390px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  margin-bottom: 54px;
}
.video-form {
  min-width: 0;
  padding-top: 4px;
}
.video-form h2 {
  font-size: 32px;
  margin: 0 0 28px;
}
.video-form #video-availability {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.6;
}
.video-photo-well {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 180px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
  cursor: pointer;
}
.video-photo-well input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.video-photo-well small {
  font-size: 12px;
  color: var(--muted);
}
.video-photo-well:focus-within {
  outline: 2px solid var(--selection);
  outline-offset: 3px;
}
.video-photo-well > svg {
  width: 24px;
  height: 24px;
}
.video-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
}
.video-consent input {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  accent-color: var(--text);
}
.video-form #video-review {
  width: 100%;
}
.video-form #video-payment-notice {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 16px;
}
.video-form #video-message {
  font-size: 13px;
  line-height: 1.6;
  color: var(--danger);
  overflow-wrap: anywhere;
  margin-top: 14px;
}
.video-form #video-photo-preview {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 150px;
}
.video-form #video-photo-image {
  display: block;
  width: 76px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
}
.video-photo-file {
  min-width: 0;
}
.video-photo-file strong {
  display: block;
  font-size: 15px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-bottom: 9px;
}
.video-photo-file span {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.video-change-photo {
  border: 0;
  background: none;
  padding: 0;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.video-form #video-clear {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  padding: 4px;
  border: 0;
  color: var(--muted);
}
.video-form #video-clear svg {
  width: 16px;
  height: 16px;
}
.video-privacy {
  margin: 30px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.video-privacy summary {
  font-size: 14px;
  min-height: 58px;
}
.video-privacy p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 14px;
}
.video-privacy > a {
  font-size: 13px;
  display: inline-block;
  margin-bottom: 20px;
}
.video-form #video-job {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 24px;
}
.video-form #video-job h2 {
  font-size: 22px;
  margin-bottom: 12px;
}
.video-form #video-job-status {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.video-form #video-order-ref {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  overflow-wrap: anywhere;
  margin: 14px 0;
}
.video-form #video-check,
.video-form #video-cancel-payment {
  display: inline-flex;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 6px;
  padding: 8px 14px;
  margin: 10px 8px 0 0;
  font-size: 13px;
}
.video-form #video-result {
  display: block;
  width: 100%;
  max-height: 460px;
  border-radius: 10px;
  margin-bottom: 16px;
  background: var(--surface);
}
.video-about {
  border-top: 1px solid var(--line);
  padding-top: 34px;
  margin-bottom: 34px;
}
.video-about h2 {
  font-size: 27px;
  margin-bottom: 12px;
}
.video-about p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
.video-faq.detail-faq {
  display: block;
}
.video-app dialog {
  max-width: calc(100vw - 32px);
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  width: 440px;
}
.video-app dialog::backdrop {
  background: rgba(18, 27, 41, .22);
}
.video-app dialog h2 {
  font-size: 22px;
  margin: 0 0 24px;
}
.video-app dialog p {
  font-size: 14px;
  line-height: 1.6;
}
.video-app #submission-dialog-close {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 5px;
  width: 28px;
  height: 28px;
}
.video-app #submission-dialog :is(input, select) {
  width: 100%;
  margin: 6px 0;
}
.video-info {
  max-width: 720px;
  margin: 48px auto;
  padding: 0 24px 56px;
}
.video-info h1 {
  font-size: 32px;
  margin-bottom: 36px;
}
.video-info section {
  margin: 28px 0;
}
.video-info h2 {
  font-size: 18px;
}
.video-info p {
  color: var(--muted);
  line-height: 1.8;
}
.video-info a {
  color: var(--text);
}
@media (max-width: 1000px) {
  .video-app .topbar {
    gap: 26px;
    padding-inline: 24px;
  }
  .video-app .product-nav-products {
    gap: 20px;
    font-size: 14px;
  }
  .video-layout {
    gap: 40px;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  }
  .video-feature {
    gap: 40px;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  }
  .video-form #video-photo-preview {
    padding: 20px;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
  }
  .video-form #video-photo-image {
    width: 64px;
    height: 84px;
    grid-row: 1 / 3;
  }
  .video-change-photo {
    grid-column: 2;
    min-height: 30px;
  }
  .video-how {
    gap: 24px;
  }
  .video-how h2 {
    font-size: 24px;
  }
  .video-how ol {
    gap: 14px;
  }
  .video-how li {
    padding-left: 14px;
  }
}
@media (max-width: 760px) {
  .video-app .topbar {
    height: auto;
    min-height: 112px;
    padding: 9px 20px;
    gap: 4px 12px;
    flex-wrap: wrap;
  }
  .video-app .brand strong {
    font-size: 25px;
  }
  .video-app .product-nav-products {
    flex-basis: 100%;
    order: 3;
    gap: 24px;
    font-size: 13px;
  }
  .video-app .product-nav-utilities {
    gap: 8px;
  }
  .video-app #submission-account {
    font-size: 12px;
    max-width: 105px;
    min-height: 38px;
  }
  .video-app .ui-language-control select {
    max-width: 82px;
    font-size: 12px;
  }
  .video-content {
    padding: 0 20px;
    max-width: 540px;
  }
  .catalog-heading {
    padding: 34px 0;
  }
  .catalog-heading h1 {
    font-size: 44px;
    letter-spacing: -1.5px;
  }
  .catalog-heading > p,
  .video-heading > p {
    font-size: 17px;
    margin-top: 12px;
  }
  .video-feature,
  .video-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    margin-bottom: 40px;
  }
  .video-media {
    width: 100%;
    max-width: 300px;
    margin-inline: auto;
  }
  .catalog-template h2 {
    font-size: 34px;
  }
  .template-description {
    font-size: 19px;
    margin: 12px 0 20px !important;
  }
  .template-number {
    margin-bottom: 12px;
  }
  .catalog-template .primary {
    width: 100%;
  }
  .video-kicker {
    font-size: 13px;
  }
  .video-price {
    margin: 24px 0 20px;
    gap: 8px;
  }
  .video-price strong {
    font-size: 34px;
  }
  .video-price span {
    font-size: 12px;
  }
  .video-how {
    display: block;
    padding: 24px 0;
    margin-bottom: 24px;
  }
  .video-how h2 {
    margin-bottom: 24px;
  }
  .video-how ol {
    display: block;
  }
  .video-how li {
    border: 0;
    padding: 0;
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin: 14px 0;
  }
  .video-how li > span {
    font-size: 18px;
    margin: 0;
  }
  .video-how li p {
    font-size: 15px;
  }
  .video-faq {
    display: block;
    margin-bottom: 32px;
  }
  .video-faq h2 {
    font-size: 26px;
    margin-bottom: 10px;
  }
  .video-faq-row summary {
    font-size: 14px;
    min-height: 62px;
    gap: 14px;
  }
  .video-faq-row p {
    font-size: 13px;
  }
  .video-breadcrumb {
    font-size: 12px;
    margin: 25px 0;
  }
  .video-heading {
    margin-bottom: 30px;
  }
  .video-app h1 {
    font-size: 32px;
    letter-spacing: -1px;
    text-wrap: balance;
  }
  .video-form h2 {
    font-size: 28px;
    margin-bottom: 22px;
  }
  .video-form .video-photo-well {
    min-height: 164px;
  }
  .video-form #video-photo-preview {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 18px;
  }
  .video-consent {
    font-size: 13px;
  }
  .video-footer {
    display: block;
    margin: 24px auto 0;
    padding: 28px 20px 32px;
    max-width: 540px;
  }
  .video-footer nav {
    font-size: 12px;
    gap: 16px 22px;
    margin-top: 22px;
  }
  .video-footer .footer-brand {
    font-size: 25px;
  }
  .video-about {
    padding-top: 28px;
  }
  .video-about h2 {
    font-size: 24px;
  }
  .video-app dialog {
    padding: 24px;
  }
  .video-info {
    margin: 30px auto;
  }
  .video-info h1 {
    font-size: 28px;
  }
}
.video-app .video-faq-row {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}
.video-app .video-privacy {
  padding-top: 0;
}
.video-app .video-faq-row summary > span,
.video-app .video-privacy summary > span {
  margin: 0;
  flex: 1;
  font: inherit;
  color: inherit;
}

/* website/video/navigation.css */
.product-site-header .product-nav-products {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  white-space: nowrap;
}
.product-nav-products a,
.video-footer a {
  color: inherit;
  text-decoration: none;
}
.product-nav-products a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  position: relative;
}
.product-nav-products a[aria-current=page] {
  font-weight: 600;
}
.product-nav-products a[aria-current=page]:after {
  content: "";
  height: 1px;
  background: currentColor;
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
}
.product-site-header .product-nav-utilities {
  display: flex;
  align-items: center;
  gap: 20px;
}
.product-site-header .brand {
  white-space: nowrap;
}
.product-nav-products a:hover,
.video-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.product-site-header .product-nav-products a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.has-product-navigation .product-site-header > nav.nav {
  max-width: 1320px;
  width: calc(100% - 64px);
  height: 76px;
  gap: 36px;
}
.has-product-navigation .product-site-header .product-nav-products {
  margin-right: auto;
}
.has-product-navigation .product-site-header .nav-end {
  gap: 20px;
}
@media (max-width: 760px) {
  .product-site-header .product-nav-products {
    order: 3;
    flex: 0 0 100%;
    justify-content: flex-start;
    gap: 24px;
    font-size: 13px;
  }
  .product-site-header .product-nav-products a {
    min-height: 38px;
  }
  .product-site-header .product-nav-utilities {
    margin-left: auto;
    gap: 10px;
  }
  .has-product-navigation .product-site-header > nav.nav {
    width: calc(100% - 36px);
    height: auto;
    min-height: 112px;
    flex-wrap: wrap;
    gap: 4px 12px;
    padding: 8px 0;
  }
  .has-product-navigation .product-site-header .brand {
    font-size: 24px;
  }
  .has-product-navigation .canvas-cover {
    padding-top: 124px;
  }
  .has-product-navigation .product-site-header .nav-end {
    font-size: 12px;
    gap: 8px;
  }
  .has-product-navigation .product-site-header .nav-end .primary {
    font-size: 12px;
    padding: 8px 10px;
  }
  .has-product-navigation .product-site-header .nav-end .icon-button {
    display: inline-flex;
    width: 26px;
    height: 32px;
  }
}

/* website/video/detail-layout.css */
html.preview-section-scroll {
  --preview-nav:76px;
  scroll-padding-top: var(--preview-nav);
  scroll-behavior: auto;
}
.video-detail-layout .topbar {
  position: sticky;
  top: 0;
  z-index: 30;
}
.video-detail-layout .preview-content {
  max-width: 1380px;
  margin: auto;
  padding: 0 32px;
}
.preview-first-screen,
.preview-support {
  min-height: calc(100svh - var(--preview-nav));
  box-sizing: border-box;
}
.preview-first-screen {
  display: flex;
  flex-direction: column;
  padding-bottom: 36px;
}
.video-detail-layout .video-breadcrumb {
  margin: 24px 0 22px;
  flex: none;
}
.preview-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  flex: 1;
  min-height: 580px;
  box-sizing: border-box;
  background: var(--panel);
  box-shadow: 0 3px 12px -6px rgb(32 33 30 / .1), 0 22px 54px -22px rgb(32 33 30 / .13);
}
.preview-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  box-shadow: 0 34px 54px -22px rgb(32 33 30 / .09);
  opacity: var(--stage-shadow-opacity,0);
  will-change: opacity;
}
.preview-form {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.video-detail-layout .preview-heading h1 {
  font-size: clamp(28px, 2.7vw, 38px);
  line-height: 1.17;
  letter-spacing: -1.2px;
  text-wrap: balance;
}
.preview-heading > p {
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 14px !important;
}
#video-upload {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  margin-top: 32px;
}
.preview-dropzone {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 13px;
  min-height: 188px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
}
.preview-dropzone:focus-within {
  outline: 2px solid var(--selection);
  outline-offset: 3px;
}
.preview-dropzone > svg {
  width: 25px;
  height: 25px;
  stroke-width: 1.65;
}
.preview-dropzone > span {
  font-size: 16px;
  line-height: 1.45;
}
.preview-dropzone small,
.preview-photo-selected small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.preview-dropzone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.preview-photo-selected {
  position: relative;
  display: grid;
  flex: 1;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 188px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-sizing: border-box;
}
.preview-photo-selected > img {
  width: 90px;
  height: 126px;
  object-fit: cover;
  border-radius: 5px;
}
.preview-photo-selected > div {
  min-width: 0;
  padding-right: 14px;
}
.preview-photo-selected strong {
  display: block;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 10px;
}
.preview-photo-selected small {
  display: block;
}
#video-change-photo {
  display: block;
  background: none;
  border: 0;
  padding: 10px 0;
  min-height: 40px;
  text-decoration: underline;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}
#video-clear {
  position: absolute;
  right: 10px;
  top: 10px;
  border: 0;
  background: none;
  color: var(--muted);
  width: 30px;
  height: 30px;
  padding: 6px;
  cursor: pointer;
}
#video-clear svg {
  width: 18px;
  height: 18px;
}
.preview-consent {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  cursor: pointer;
}
.preview-consent input {
  width: 16px;
  height: 16px;
  flex: none;
  margin: 0;
  accent-color: var(--text);
}
.preview-action {
  margin-top: auto;
  padding-top: 16px;
}
.preview-action .video-price {
  margin: 0 0 18px;
  gap: 10px 12px;
}
.preview-action .video-price strong {
  font-size: 39px;
}
.preview-action .video-price span {
  font-size: 12px;
}
.preview-action .primary {
  width: 100%;
  min-height: 54px;
}
#video-message {
  font-size: 13px;
  line-height: 1.6;
  color: var(--danger);
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.preview-media {
  position: relative;
  align-self: center;
  width: clamp(286px, calc((100svh - 236px)*4/7), 392px);
  max-width: 100%;
  aspect-ratio: 4/7;
  background: var(--surface);
  border-radius: 11px;
  overflow: hidden;
}
.preview-media > video,
.preview-media > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
#video-preview-playback {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 20, 20, .67);
  color: var(--panel);
  cursor: pointer;
}
#video-preview-playback:hover {
  background: rgba(20, 20, 20, .83);
}
#video-preview-playback svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}
#video-preview-status {
  position: absolute;
  inset: auto 12px 12px;
  text-align: center;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  padding: 9px;
  border-radius: 5px;
}
.preview-support {
  padding: 32px 0 24px;
  display: flex;
  flex-direction: column;
}
.preview-support-panel {
  flex: 1;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: translateY(var(--support-slide,36px));
  will-change: transform;
}
.preview-support .video-faq {
  margin-bottom: 0;
}
.preview-support .video-about {
  border-top: 0;
  padding-top: 0;
  margin-bottom: 28px;
}
.preview-support .video-about h2 {
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -.4px;
  color: var(--muted);
}
.preview-support .video-about p {
  font-size: 13px;
  max-width: 760px;
  line-height: 1.8;
}
.preview-support [data-video-guide] {
  display: inline-block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  text-underline-offset: 3px;
}
.preview-support .video-faq-row {
  border-color: color-mix(in srgb, var(--line) 65%, transparent);
}
.preview-support .video-faq-row summary {
  min-height: 60px;
  font-size: 14px;
  font-weight: 450;
  color: var(--muted);
  transition: color 160ms ease;
}
.preview-support .video-faq-row summary:is(:hover, :focus-visible) {
  color: var(--text);
}
.preview-support .video-faq-row p {
  font-size: 13px;
}
.video-detail-layout .video-footer {
  max-width: 1000px;
  width: 100%;
  align-self: center;
  margin: 24px 0 0;
  padding: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.video-detail-layout .video-footer .footer-brand {
  font-size: 21px;
  font-weight: 650;
}
.video-detail-layout dialog .primary {
  margin-top: 20px;
}
@media (prefers-reduced-motion: reduce) {
  .preview-stage::after {
    will-change: auto;
  }
  .preview-support-panel {
    transform: none;
    will-change: auto;
  }
  .preview-support .video-faq-row summary {
    transition: none;
  }
}
@media (max-width: 1000px) and (min-width: 761px) {
  .preview-stage {
    gap: 28px;
    padding: 24px;
  }
  .preview-content {
    padding-inline: 24px !important;
  }
  .preview-media {
    width: 286px;
  }
  .preview-heading > p {
    font-size: 16px;
  }
  .preview-action .video-price {
    gap: 8px;
  }
}
@media (max-width: 760px) {
  html.preview-section-scroll {
    --preview-nav:112px;
  }
  .video-detail-layout .preview-content {
    padding: 0 18px;
    max-width: 540px;
  }
  .preview-first-screen {
    padding-bottom: 32px;
  }
  .video-detail-layout .video-breadcrumb {
    margin: 20px 0;
  }
  .preview-stage {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 0;
    padding: 22px 18px;
    border-radius: 12px;
  }
  .preview-form {
    display: contents;
  }
  .preview-heading {
    order: 0;
  }
  .video-detail-layout .preview-heading h1 {
    font-size: 28px;
    letter-spacing: -.85px;
  }
  .preview-heading > p {
    font-size: 15px;
    margin-top: 10px !important;
  }
  .preview-media {
    order: 1;
    width: min(100%, 286px);
    align-self: center;
  }
  #video-upload {
    order: 2;
    margin: 0;
    flex: none;
  }
  .preview-dropzone,
  .preview-photo-selected {
    flex: none;
  }
  .preview-dropzone {
    min-height: 170px;
    padding: 16px;
  }
  .preview-dropzone > span {
    font-size: 14px;
  }
  .preview-photo-selected {
    min-height: 170px;
    padding: 18px;
    gap: 16px;
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .preview-photo-selected > img {
    width: 72px;
    height: 105px;
  }
  .preview-action {
    padding-top: 4px;
  }
  .preview-action .video-price strong {
    font-size: 35px;
  }
  .preview-action .video-price {
    margin-bottom: 16px;
  }
  .preview-support {
    padding: 24px 0;
  }
  .preview-support-panel {
    padding: 28px 4px;
  }
  .video-detail-layout .video-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
.video-detail-layout .preview-job-wrap {
  display: contents;
}
.video-detail-layout #video-payment-notice {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 16px;
}
.video-detail-layout #video-availability {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 16px;
}
.video-detail-layout #video-job {
  min-width: 0;
}
@media (max-width: 760px) {
  .video-detail-layout #video-job {
    order: 3;
    width: 100%;
  }
}

/* website/video/generation.css */
.video-detail-layout .video-active-heading {
  margin: 0 0 28px;
}
.video-detail-layout .video-active-heading h1 {
  font-size: clamp(28px, 2.7vw, 38px);
  line-height: 1.17;
  letter-spacing: -1.2px;
}
.video-generation-workspace {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 500px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 3px 12px -6px rgb(32 33 30 / .1), 0 22px 54px -22px rgb(32 33 30 / .13);
}
.video-generation-source {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 80px;
  padding: 14px 28px;
  box-sizing: border-box;
}
.video-generation-source > img {
  width: 40px;
  height: 54px;
  object-fit: cover;
  border-radius: 3px;
  flex: none;
}
.video-generation-source > div {
  min-width: 0;
  flex: 1;
}
.video-generation-source strong {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.video-generation-source span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.video-generation-source .primary {
  min-height: 42px;
  font-size: 13px;
  flex: none;
}
.video-generation-media {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 360px;
  background: var(--surface);
}
.video-loading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex: 1;
  padding: 40px 24px;
  box-sizing: border-box;
  text-align: center;
}
.video-loading-spinner {
  width: 42px;
  height: 42px;
  box-sizing: border-box;
  border: 3px solid var(--line);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: video-spin 1s linear infinite;
}
.video-loading-progress {
  width: min(280px, 70%);
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.video-loading-progress > span {
  display: block;
  width: 24%;
  height: 100%;
  background: var(--text);
  border-radius: inherit;
  animation: video-indeterminate 1.8s ease-in-out infinite;
}
#video-job-status {
  font-size: 18px;
  font-weight: 550;
  line-height: 1.5;
  margin: 0;
}
#video-elapsed {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-top: -15px;
}
.video-generation-media #video-result {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: contain;
  background: var(--surface);
}
.video-generation-actions {
  padding: 16px 28px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.video-generation-actions :is(button, a) {
  font-size: 13px;
  min-height: 42px;
}
.video-generation-actions button {
  padding: 9px 14px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
}
#video-generation-error {
  font-size: 13px;
  line-height: 1.6;
  color: var(--danger);
  margin: 0;
  flex-basis: 100%;
  overflow-wrap: anywhere;
}
#video-order-details {
  max-width: 100%;
  font-size: 12px;
  color: var(--muted);
}
#video-order-details summary {
  min-height: 42px;
  padding: 10px 0;
  cursor: pointer;
}
#video-order-ref {
  overflow-wrap: anywhere;
  margin: 0;
}
@keyframes video-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes video-indeterminate {
  0% {
    transform: translateX(-105%);
  }
  50% {
    transform: translateX(160%);
  }
  100% {
    transform: translateX(420%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .video-loading-spinner,
  .video-loading-progress > span {
    animation: none;
  }
  .video-loading-progress > span {
    transform: translateX(160%);
  }
}
@media (max-width: 760px) {
  .video-detail-layout .video-active-heading {
    margin-bottom: 20px;
  }
  .video-detail-layout .video-active-heading h1 {
    font-size: 28px;
    letter-spacing: -.85px;
  }
  .video-generation-workspace {
    min-height: max(460px, calc(100svh - var(--preview-nav) - 190px));
    border-radius: 12px;
  }
  .video-generation-source {
    padding: 12px 14px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .video-generation-source strong {
    font-size: 12px;
  }
  .video-generation-source span {
    font-size: 11px;
  }
  .video-generation-source .primary {
    margin-left: auto;
  }
  .video-generation-media {
    min-height: 330px;
  }
  .video-generation-actions {
    padding: 14px;
  }
  #video-job-status {
    font-size: 16px;
  }
}
/* Castario video dark theme */
html:has(>body.video-app){color-scheme:only dark;background:#080808}body.editor-flow.video-app{color-scheme:only dark;--primitive-bg: #080808;--primitive-panel: #151515;--primitive-surface: #1b1b1b;--primitive-line: #373737;--primitive-muted: #b6b6b6;--primitive-text: #f5f5f5;--primitive-action: #f5f5f5;--primitive-outline: #666666;--bg: var(--primitive-bg);--panel: var(--primitive-panel);--surface: var(--primitive-surface);--line: var(--primitive-line);--muted: var(--primitive-muted);--text: var(--primitive-text);--action: var(--primitive-action);--accent: var(--primitive-action);--control-outline: var(--primitive-outline);--selection: #d4d4d4;--selection-surface: #2a2a2a;--video-glass: linear-gradient(145deg, rgb(33 33 33 / .84), rgb(15 15 15 / .94) 65%);--video-glass-border: rgb(255 255 255 / .22);--video-glass-inset: inset 0 1px 0 rgb(255 255 255 / .045), inset 0 -1px 0 rgb(255 255 255 / .025);--danger: #ffaaa3;--video-on-media: #ffffff;background:var(--bg);color:var(--text)}body.video-app .topbar{background:var(--bg)}body.video-app :is(.preview-stage,.video-generation-workspace){background:radial-gradient(ellipse at 15% 0,rgb(255 255 255 / .035),transparent 58%),var(--video-glass);border:1px solid var(--video-glass-border);border-radius:20px;box-shadow:var(--video-glass-inset),0 18px 48px -22px #000000bf;-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px)}body.video-app .preview-stage:after{box-shadow:0 30px 50px -24px #000000a6}body.video-app :is(.preview-dropzone,.preview-photo-selected,.video-photo-well){background:radial-gradient(ellipse at 18% 5%,rgb(255 255 255 / .035),transparent 65%),linear-gradient(145deg,#1f1f1fa3,#111111e0);border:1px solid rgb(255 255 255 / .2);border-radius:16px;box-shadow:var(--video-glass-inset);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}body.video-app .preview-dropzone{isolation:isolate;gap:16px;min-height:188px}body.video-app .preview-dropzone:before{content:"";position:absolute;pointer-events:none;left:50%;top:50%;transform:translate(-50%,-50%);width:clamp(120px,11vw,168px);height:calc(100% - 88px);min-height:112px;max-height:220px;opacity:.8;background:linear-gradient(var(--text),var(--text)) left top / 24px 1.5px,linear-gradient(var(--text),var(--text)) left top / 1.5px 24px,linear-gradient(var(--text),var(--text)) right top / 24px 1.5px,linear-gradient(var(--text),var(--text)) right top / 1.5px 24px,linear-gradient(var(--text),var(--text)) left bottom / 24px 1.5px,linear-gradient(var(--text),var(--text)) left bottom / 1.5px 24px,linear-gradient(var(--text),var(--text)) right bottom / 24px 1.5px,linear-gradient(var(--text),var(--text)) right bottom / 1.5px 24px;background-repeat:no-repeat;z-index:-1}body.video-app .preview-dropzone input{z-index:1}body.video-app .preview-dropzone>svg{width:28px;height:28px}body.video-app .preview-dropzone>span{font-size:18px}body.video-app .preview-dropzone small{font-size:13px}body.video-app .preview-dropzone:is(:hover,:focus-within){border-color:var(--control-outline)}body.video-app .preview-media{border:1px solid rgb(255 255 255 / .25);border-radius:14px;box-shadow:0 1px #ffffff06}body.video-app .preview-consent{flex:0 0 100%;font-size:13px;line-height:1.6;margin-top:2px;align-items:flex-start}body.video-app .preview-consent input{margin-top:2px}body.video-app .preview-action .video-price{gap:10px 16px}body.video-app .preview-action .primary{border:1px solid rgb(255 255 255 / .28);background:#ededed;color:#111;box-shadow:inset 0 1px #ffffffa6}body.video-app .preview-action .primary:disabled{opacity:.5}body.video-app .video-generation-source{border-bottom:1px solid rgb(255 255 255 / .08)}body.video-app .video-generation-media{box-shadow:inset 0 1px 18px #0000001f}@media(min-width:1101px){body.video-app[data-template-id=gta-diner] .preview-content{max-width:1600px;padding-inline:clamp(32px,3vw,44px)}body.video-app[data-template-id=gta-diner] .video-breadcrumb{margin:32px 0 34px}body.video-app[data-template-id=gta-diner] .preview-stage{padding:clamp(28px,2.7vw,40px);grid-template-columns:minmax(0,.53fr) minmax(0,1fr);gap:28px 32px}body.video-app[data-template-id=gta-diner] .preview-heading h1{font-size:clamp(32px,2.8vw,42px);letter-spacing:-1.2px}body.video-app[data-template-id=gta-diner] .preview-heading>p{font-size:clamp(18px,1.55vw,21px)}body.video-app[data-template-id=gta-diner] .preview-action{padding-top:20px}body.video-app[data-template-id=gta-diner] .video-price strong{font-size:42px}body.video-app[data-template-id=gta-diner] .preview-media{align-self:start}}@media(min-width:1101px)and (max-height:800px){body.video-app[data-template-id=gta-diner] .video-breadcrumb{margin:20px 0}body.video-app[data-template-id=gta-diner] .preview-stage{padding:28px;row-gap:24px}body.video-app[data-template-id=gta-diner] .preview-heading>p{font-size:18px;margin-top:12px!important}}@media(max-width:1100px){body.video-app[data-template-id=gta-diner] .preview-dropzone{min-height:210px}}@media(max-width:760px){body.video-app :is(.preview-stage,.video-generation-workspace){border-radius:14px}body.video-app :is(.preview-dropzone,.preview-photo-selected){border-radius:12px}body.video-app .preview-dropzone{min-height:188px;gap:13px}body.video-app .preview-dropzone:before{width:120px;height:calc(100% - 38px);max-height:160px}body.video-app .preview-dropzone>span{font-size:14px}body.video-app .preview-dropzone small{font-size:11px}body.video-app .preview-consent{font-size:12px}}@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){body.video-app :is(.preview-stage,.video-generation-workspace){background:#151515}body.video-app :is(.preview-dropzone,.preview-photo-selected){background:#1b1b1b}}body.video-app :is(.video-media video,.preview-media,.video-generation-media){background:var(--bg)}body.video-app #video-preview-playback{color:var(--video-on-media)}body.video-app :is(input,select,textarea,button,a):focus-visible,body.video-app summary:focus-visible{outline-color:var(--selection)}body.editor-flow.video-app :is(#account-dialog,#submission-dialog,#coin-admin-dialog,#coin-revoke-dialog){--dialog-panel: var(--primitive-panel);--dialog-text: var(--primitive-text);--dialog-muted: var(--primitive-muted);--dialog-surface: var(--primitive-surface);--dialog-line: var(--primitive-line);--dialog-selected: var(--selection);--panel: var(--dialog-panel);--text: var(--dialog-text);--muted: var(--dialog-muted);--surface: var(--dialog-surface);--line: var(--dialog-line);--accent: var(--dialog-selected);background:var(--dialog-panel);color:var(--dialog-text);border-color:var(--dialog-line);box-shadow:0 24px 80px #00000080}body.editor-flow.video-app :is(#account-dialog,#submission-dialog,#coin-admin-dialog,#coin-revoke-dialog)::backdrop{background:#000000b3}
/* End Castario video dark theme */
