:root {
  --ink: #171813;
  --ink-soft: #55564f;
  --ink-faint: #82837b;
  --paper: #f4f1eb;
  --surface: rgba(255, 255, 252, 0.86);
  --surface-solid: #fffefa;
  --line: rgba(23, 24, 19, 0.13);
  --line-strong: rgba(23, 24, 19, 0.24);
  --accent: #c8f044;
  --accent-deep: #a9cf2d;
  --blue: #365bff;
  --danger: #c53d2d;
  --success: #267554;
  --shadow: 0 24px 80px rgba(36, 34, 27, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1280px;
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
label,
input[type="file"] {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(1px);
  pointer-events: none;
}

.ambient-a {
  top: -210px;
  right: -100px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(200, 240, 68, 0.3), rgba(200, 240, 68, 0) 68%);
}

.ambient-b {
  top: 650px;
  left: -330px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(54, 91, 255, 0.1), rgba(54, 91, 255, 0) 70%);
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 86px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
  font-family: Georgia, serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.brand small {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.header-icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  place-items: center;
  cursor: pointer;
  background: rgba(255, 255, 252, 0.72);
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.header-icon-button:hover,
.header-icon-button:focus-visible {
  border-color: var(--ink);
  background: var(--surface-solid);
  transform: translateY(-1px);
}

.header-icon-button svg {
  width: 19px;
  height: 19px;
  fill: var(--ink);
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
}

main {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 44px 0 42px;
}

.hero .eyebrow {
  grid-column: 1;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.hero h1 {
  max-width: 830px;
  margin: 0;
  font-size: clamp(50px, 6.1vw, 94px);
  font-weight: 690;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero h1 em {
  position: relative;
  z-index: 0;
  font-family: Georgia, "Songti SC", serif;
  font-weight: 500;
}

.hero h1 em::after {
  position: absolute;
  z-index: -1;
  right: -0.05em;
  bottom: 0.04em;
  left: -0.04em;
  height: 0.2em;
  border-radius: 999px;
  background: var(--accent);
  content: "";
  transform: rotate(-1.6deg);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.55fr);
  gap: 36px;
  align-items: start;
}

.preview-sticky {
  position: sticky;
  top: 24px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 252, 0.65);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.section-kicker {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-kicker span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  font-size: 9px;
  letter-spacing: 0;
}

.phone-shell {
  position: relative;
  width: min(100%, 330px);
  aspect-ratio: 9 / 16;
  margin: 24px auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 32px;
  background: transparent;
}

.demo-video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  box-sizing: border-box;
  border: 8px solid #171813;
  border-radius: 31px;
  background: #e7e4dd;
  box-shadow: 0 30px 60px rgba(23, 24, 19, 0.2);
  object-fit: cover;
  pointer-events: auto;
}

.template-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.template-meta div {
  padding: 15px 6px 13px;
  text-align: center;
}

.template-meta div + div {
  border-left: 1px solid var(--line);
}

.template-meta strong,
.template-meta span {
  display: block;
}

.template-meta strong {
  font-family: var(--font-mono);
  font-size: 14px;
}

.template-meta span {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 10px;
}

.quiet-note {
  margin: 15px 0 0;
  color: var(--ink-faint);
  font-size: 11px;
  text-align: center;
}

.form-column {
  min-width: 0;
}

.form-section,
.job-panel,
.task-list-panel {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.form-section + .form-section,
.job-panel {
  margin-top: 22px;
}

.task-list-heading {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.task-list-heading h2 {
  margin: 7px 0 0;
  font-size: 25px;
}

.task-list-tools {
  display: flex;
  gap: 8px;
  align-items: end;
}

.task-list-tools label {
  display: grid;
  gap: 4px;
}

.task-list-tools label > span {
  color: var(--ink-faint);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.task-list-tools select,
.task-list-tools button,
.task-list-pagination button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 9px;
  cursor: pointer;
}

.task-list-tools button:disabled,
.task-list-pagination button:disabled {
  cursor: default;
  opacity: 0.42;
}

.task-list {
  display: grid;
  gap: 8px;
  transition: opacity 140ms ease;
}

.task-list.is-loading {
  opacity: 0.55;
}

.task-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 70px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(248, 247, 242, 0.72);
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.task-list-item:hover {
  border-color: var(--line-strong);
  background: #fff;
  transform: translateY(-1px);
}

.task-list-item.is-current {
  border-color: rgba(169, 207, 45, 0.72);
  box-shadow: 0 0 0 3px rgba(200, 240, 68, 0.18);
}

.task-list-main {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.task-list-item-heading {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.task-list-item-heading strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-list-item-heading b {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(23, 24, 19, 0.06);
  font-size: 8px;
}

.task-list-item.is-success .task-list-item-heading b {
  color: var(--success);
  background: rgba(38, 117, 84, 0.1);
}

.task-list-item.is-error .task-list-item-heading b {
  color: var(--danger);
  background: rgba(197, 61, 45, 0.09);
}

.task-list-item.is-waiting .task-list-item-heading b {
  color: #755d0c;
  background: rgba(211, 173, 42, 0.13);
}

.task-list-main code {
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-list-meta {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 8px;
  align-items: center;
  color: var(--ink-faint);
  font-size: 8px;
  white-space: nowrap;
}

.task-list-meta i {
  color: var(--ink);
  font-size: 14px;
  font-style: normal;
}

.task-list-empty {
  margin: 0;
  padding: 24px 12px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--ink-faint);
  font-size: 10px;
  text-align: center;
}

.task-list-empty.is-error {
  color: var(--danger);
}

.task-list-pagination {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  color: var(--ink-faint);
  font-size: 9px;
}

.task-list-pagination > div {
  display: flex;
  gap: 8px;
  align-items: center;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 25px;
}

.section-heading > p {
  max-width: 330px;
  margin: 0;
  color: var(--ink-faint);
  font-size: 12px;
  text-align: right;
}

.section-heading h2,
.job-header h2 {
  margin: 8px 0 0;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.field-grid {
  display: grid;
  gap: 14px;
}

.field-grid-three {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.field {
  display: grid;
  gap: 7px;
}

.field > span,
.field-label-row > span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.field input,
.field select,
.item-meta input {
  width: 100%;
  min-width: 0;
  min-height: 45px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  color: var(--ink);
  background: rgba(248, 247, 242, 0.76);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input:focus,
.field select:focus,
.item-meta input:focus {
  border-color: rgba(23, 24, 19, 0.52);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(200, 240, 68, 0.25);
}

.asset-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.asset-grid-main {
  grid-template-columns: 1.35fr 1fr;
}

.upload-card {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 146px;
  padding: 20px;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  cursor: pointer;
  background: rgba(248, 247, 242, 0.72);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.upload-card:hover,
.upload-card.is-filled {
  border-color: rgba(23, 24, 19, 0.52);
  background: rgba(255, 255, 255, 0.9);
}

.upload-card:hover {
  transform: translateY(-1px);
}

.compact-upload input,
.item-upload input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  pointer-events: auto;
}

.locked-template-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.locked-template-card > div {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(248, 247, 242, 0.78);
}

.locked-template-card strong {
  font-size: 11px;
  letter-spacing: 0.03em;
}

.locked-template-card span {
  color: var(--ink-faint);
  font-size: 10px;
}

.native-upload {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #fff;
}

.native-upload-heading {
  display: flex;
  gap: 13px;
  align-items: center;
}

.native-upload-trigger {
  width: fit-content;
  cursor: pointer;
}

.native-upload-trigger:hover .upload-icon,
.native-upload:focus-within .upload-icon {
  border-color: rgba(23, 24, 19, 0.52);
  background: var(--acid);
  transform: translateY(-1px);
}

.native-upload-heading > span:last-child {
  display: grid;
  gap: 2px;
}

.native-upload-heading strong {
  font-size: 15px;
}

.native-upload-heading small,
.native-upload > small {
  color: var(--ink-faint);
  font-size: 10px;
}

.native-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.native-upload.is-filled {
  border-color: rgba(38, 117, 84, 0.48);
  box-shadow: 0 0 0 3px rgba(38, 117, 84, 0.08);
}

.identity-preview {
  display: grid;
  grid-template-columns: minmax(112px, 154px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(248, 247, 242, 0.78);
}

.identity-preview-frame {
  display: grid;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(45deg, rgba(23, 24, 19, 0.04) 25%, transparent 25%, transparent 75%, rgba(23, 24, 19, 0.04) 75%),
    linear-gradient(45deg, rgba(23, 24, 19, 0.04) 25%, transparent 25%, transparent 75%, rgba(23, 24, 19, 0.04) 75%),
    #fff;
  background-position: 0 0, 8px 8px;
  background-size: 16px 16px;
  place-items: center;
}

.identity-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.identity-preview-copy {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.identity-preview-copy > span {
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.identity-preview-copy strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-preview-copy small {
  color: var(--ink-faint);
  font-size: 10px;
}

.identity-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
}

.identity-preview-actions a,
.identity-preview-actions button {
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 9px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.identity-preview-actions button {
  color: var(--danger);
}

.advanced-customization {
  padding: 0;
  overflow: hidden;
}

.advanced-customization > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
}

.advanced-customization > summary::-webkit-details-marker {
  display: none;
}

.advanced-customization > summary span {
  display: grid;
  gap: 3px;
}

.advanced-customization > summary strong {
  font-size: 13px;
}

.advanced-customization > summary small,
.advanced-warning {
  color: var(--ink-faint);
  font-size: 10px;
}

.advanced-customization > summary i {
  font-size: 22px;
  font-style: normal;
  transition: transform 160ms ease;
}

.advanced-customization[open] > summary i {
  transform: rotate(45deg);
}

.advanced-customization-body {
  padding: 0 22px 24px;
  border-top: 1px solid var(--line);
}

.advanced-warning {
  margin: 16px 0;
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(200, 240, 68, 0.12);
}

.advanced-background {
  margin-top: 14px;
}

.upload-icon {
  display: grid;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-solid);
  font-size: 24px;
  font-weight: 300;
}

.upload-copy {
  min-width: 0;
}

.upload-copy strong,
.upload-copy small {
  display: block;
}

.upload-copy strong {
  font-size: 15px;
}

.upload-copy small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-action {
  margin-left: auto;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--accent);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.background-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(248, 247, 242, 0.66);
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.field-label-row small {
  color: var(--ink-faint);
  font-size: 10px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin: 12px 0;
  padding: 4px;
  border-radius: 11px;
  background: #e9e7e1;
}

.segmented label {
  cursor: pointer;
}

.segmented input {
  position: absolute;
  opacity: 0;
}

.segmented span {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 650;
  text-align: center;
  transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.segmented input:checked + span {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 2px 8px rgba(23, 24, 19, 0.08);
}

.color-field,
.compact-upload {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  background: #fff;
}

.color-field input {
  width: 30px;
  height: 30px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  background: transparent;
}

.color-field span {
  font-family: var(--font-mono);
  font-size: 11px;
}

.color-field small {
  margin-left: auto;
  color: var(--ink-faint);
  font-size: 10px;
}

.compact-upload {
  position: relative;
  justify-content: center;
  border-style: dashed;
}

.compact-upload strong {
  max-width: 170px;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rights-row {
  display: flex;
  gap: 24px;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.check-line {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 11px;
}

.check-line input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--ink);
}

.looks-container {
  display: grid;
  gap: 14px;
}

.look-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(248, 247, 242, 0.68);
  transition: opacity 160ms ease, border-color 160ms ease;
}

.look-card.is-inherited {
  border-style: dashed;
  background: rgba(240, 239, 233, 0.72);
}

.look-card-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 17px 19px;
}

.look-identity {
  display: flex;
  gap: 12px;
  align-items: center;
}

.look-number {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
}

.look-identity strong,
.look-identity small {
  display: block;
}

.look-identity strong {
  font-size: 14px;
}

.look-identity small {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 10px;
}

.inherit-toggle {
  display: flex;
  gap: 9px;
  align-items: center;
  cursor: pointer;
}

.inherit-toggle input {
  position: absolute;
  opacity: 0;
}

.inherit-toggle i {
  position: relative;
  display: block;
  width: 38px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #e4e2dc;
  transition: background 160ms ease;
}

.inherit-toggle i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(23, 24, 19, 0.2);
  content: "";
  transition: transform 160ms ease;
}

.inherit-toggle input:checked + i {
  background: var(--ink);
}

.inherit-toggle input:checked + i::after {
  transform: translateX(16px);
}

.inherit-toggle span {
  color: var(--ink-soft);
  font-size: 10px;
}

.look-body {
  padding: 0 19px 19px;
  border-top: 1px solid var(--line);
}

.look-card.is-inherited .look-body {
  display: none;
}

.inherited-summary {
  display: none;
  padding: 0 19px 17px;
  color: var(--ink-faint);
  font-size: 11px;
}

.look-card.is-inherited .inherited-summary {
  display: block;
}

.garment-mode-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px 0;
}

.garment-mode-row > span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 650;
}

.look-item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.item-slot {
  position: relative;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 252, 0.78);
}

.item-slot.is-disabled {
  background: rgba(235, 234, 228, 0.7);
}

.item-slot.is-hidden {
  display: none;
}

.item-slot-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.item-slot-header strong {
  font-size: 11px;
}

.item-slot-header small {
  color: var(--ink-faint);
  font-size: 9px;
}

.mini-toggle {
  display: flex;
  padding: 2px;
  border-radius: 999px;
  background: #e7e5df;
}

.mini-toggle label {
  cursor: pointer;
}

.mini-toggle input {
  position: absolute;
  opacity: 0;
}

.mini-toggle span {
  display: block;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--ink-faint);
  font-size: 9px;
}

.mini-toggle input:checked + span {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 4px rgba(23, 24, 19, 0.1);
}

.item-content {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 9px;
}

.item-slot.is-disabled .item-content {
  display: none;
}

.item-upload {
  position: relative;
  display: grid;
  min-height: 72px;
  padding: 8px;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink-faint);
  background: #f8f7f2;
  font-size: 9px;
  text-align: center;
}

.item-upload.is-filled {
  border-style: solid;
  color: var(--success);
  background: rgba(38, 117, 84, 0.06);
}

.item-upload .item-upload-plus {
  display: block;
  font-size: 19px;
  font-weight: 300;
  line-height: 1;
}

.item-upload [data-file-label] {
  display: block;
  max-width: 60px;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-meta {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.item-meta input {
  min-height: 32px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 10px;
}

.item-meta input:last-child {
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.submit-section {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  margin-top: 22px;
  padding: 24px 4px 6px;
  border-top: 1px solid var(--line);
}

.safety-note {
  display: flex;
  gap: 11px;
  align-items: start;
  max-width: 490px;
}

.safety-icon {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--success);
  background: rgba(38, 117, 84, 0.1);
  font-weight: 800;
}

.safety-note strong,
.safety-note p {
  display: block;
  margin: 0;
}

.safety-note strong {
  font-size: 12px;
}

.safety-note p {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 10px;
}

.button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease, background 150ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.button-primary {
  color: var(--paper);
  background: var(--ink);
  box-shadow: 0 12px 30px rgba(23, 24, 19, 0.14);
}

.button-primary:hover:not(:disabled) {
  background: #2b2d25;
  box-shadow: 0 16px 35px rgba(23, 24, 19, 0.18);
}

.button-accent {
  color: var(--ink);
  background: var(--accent);
}

.button-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 252, 0.5);
}

.button-small {
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 10px;
}

.button-large {
  flex: 0 0 auto;
  min-width: 220px;
  min-height: 56px;
  padding: 14px 19px;
  border-radius: 15px;
}

.button.is-loading {
  pointer-events: none;
}

.button.is-loading::before {
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  animation: spin 800ms linear infinite;
}

.form-error,
.dialog-error {
  color: var(--danger);
  font-size: 11px;
}

.form-error {
  flex-basis: 100%;
  margin: 0;
}

.job-panel {
  scroll-margin-top: 22px;
}

.job-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 20px;
}

.job-id-wrap {
  display: grid;
  gap: 3px;
  justify-items: end;
}

.job-id-wrap > span {
  color: var(--ink-faint);
  font-size: 9px;
}

.copy-id {
  max-width: 210px;
  padding: 0;
  overflow: hidden;
  border: 0;
  cursor: pointer;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-banner {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(248, 247, 242, 0.8);
}

.status-banner.is-error {
  border-color: rgba(197, 61, 45, 0.26);
  background: rgba(197, 61, 45, 0.05);
}

.status-banner.is-success {
  border-color: rgba(38, 117, 84, 0.26);
  background: rgba(38, 117, 84, 0.06);
}

.status-orb {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
}

.status-orb::after {
  position: absolute;
  inset: 10px;
  border: 2px solid var(--ink);
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  animation: spin 900ms linear infinite;
}

.status-banner.is-paused .status-orb::after,
.status-banner.is-success .status-orb::after,
.status-banner.is-error .status-orb::after {
  inset: 0;
  display: grid;
  border: 0;
  place-items: center;
  color: var(--ink);
  animation: none;
  content: "→";
  font-size: 17px;
  font-weight: 700;
}

.status-banner.is-success .status-orb {
  background: rgba(38, 117, 84, 0.16);
}

.status-banner.is-success .status-orb::after {
  color: var(--success);
  content: "✓";
}

.status-banner.is-error .status-orb {
  background: rgba(197, 61, 45, 0.13);
}

.status-banner.is-error .status-orb::after {
  color: var(--danger);
  content: "!";
}

.status-copy {
  min-width: 0;
}

.status-copy strong,
.status-copy p {
  display: block;
  margin: 0;
}

.status-copy strong {
  font-size: 13px;
}

.status-copy p {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 10px;
}

.charge-badge {
  margin-left: auto;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  white-space: nowrap;
}

.progress-track {
  height: 5px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e0da;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
  transition: width 350ms ease;
}

.progress-track span.is-live {
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 38%, var(--accent) 50%, var(--ink) 62%, var(--ink) 100%);
  background-size: 220% 100%;
  animation: progress-live 1.8s linear infinite;
}

@keyframes progress-live {
  from { background-position: 100% 0; }
  to { background-position: -120% 0; }
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--ink-faint);
  font-size: 9px;
}

.progress-label strong {
  color: var(--ink);
  font-family: var(--font-mono);
}

.progress-label small {
  color: var(--ink-faint);
  font: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .progress-track span.is-live { animation: none; }
}

.stepper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.stepper li {
  position: relative;
  display: grid;
  gap: 7px;
  justify-items: center;
  color: var(--ink-faint);
  text-align: center;
}

.stepper li::before {
  position: absolute;
  z-index: 0;
  top: 14px;
  right: 50%;
  left: -50%;
  height: 1px;
  background: var(--line);
  content: "";
}

.stepper li:first-child::before {
  display: none;
}

.stepper i {
  position: relative;
  z-index: 1;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-solid);
  font-family: var(--font-mono);
  font-size: 9px;
  font-style: normal;
}

.stepper strong,
.stepper small {
  display: block;
}

.stepper strong {
  color: inherit;
  font-size: 10px;
}

.stepper small {
  margin-top: 2px;
  font-size: 8px;
}

.stepper li.is-active,
.stepper li.is-done {
  color: var(--ink);
}

.stepper li.is-active i {
  border-color: var(--ink);
  color: var(--paper);
  background: var(--ink);
  box-shadow: 0 0 0 5px rgba(200, 240, 68, 0.32);
}

.stepper li.is-done i {
  border-color: var(--accent-deep);
  color: var(--ink);
  background: var(--accent);
}

.stepper li.is-done::before,
.stepper li.is-active::before {
  background: var(--accent-deep);
}

.keyframes-wrap {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.subsection-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: end;
  margin-bottom: 13px;
}

.subsection-heading span,
.subsection-heading h3 {
  display: block;
  margin: 0;
}

.subsection-heading span {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.subsection-heading h3 {
  margin-top: 3px;
  font-size: 16px;
}

.subsection-heading small {
  color: var(--ink-faint);
  font-size: 9px;
}

.keyframe-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.keyframe-grid.is-comparison {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.keyframe-comparison-group {
  min-width: 0;
  margin: 0;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.58);
}

.keyframe-comparison-group legend {
  padding: 0 6px;
  font-size: 10px;
  font-weight: 700;
}

.keyframe-comparison-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.keyframe-candidate {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #eceae4;
  cursor: pointer;
}

.keyframe-candidate:has(input:checked) {
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px rgba(200, 240, 68, 0.42);
}

.keyframe-candidate.is-unavailable {
  cursor: default;
  opacity: 0.58;
}

.keyframe-candidate input {
  position: absolute;
  z-index: 2;
  top: 7px;
  left: 7px;
  width: 16px;
  height: 16px;
  accent-color: var(--ink);
}

.keyframe-candidate img {
  grid-column: 1 / -1;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.keyframe-candidate-placeholder {
  display: grid;
  grid-column: 1 / -1;
  aspect-ratio: 2 / 3;
  place-items: center;
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.keyframe-candidate span,
.keyframe-candidate a {
  padding: 7px;
  color: var(--ink);
  font-size: 8px;
  text-decoration: none;
}

.keyframe-candidate span {
  font-weight: 700;
}

.keyframe-candidate a {
  color: var(--ink-faint);
  text-align: right;
}

.keyframe-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #eceae4;
  text-decoration: none;
}

.keyframe-card::before {
  display: block;
  padding-top: 150%;
  content: "";
}

.keyframe-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.keyframe-card span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  left: 6px;
  padding: 5px;
  border-radius: 7px;
  color: #fff;
  background: rgba(17, 18, 14, 0.74);
  font-size: 8px;
  text-align: center;
  backdrop-filter: blur(4px);
}

.keyframe-card.is-missing::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink-faint);
  content: "读取中";
  font-size: 9px;
}

.approval-hint {
  margin: 10px 0 0;
  color: var(--ink-faint);
  font-size: 9px;
}

.job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}

.action-note {
  flex: 1 1 260px;
  margin: 0;
  color: var(--ink-faint);
  font-size: 10px;
}

.retry-controls {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: minmax(100px, 0.8fr) minmax(130px, 1fr) auto;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
}

.retry-controls select {
  min-width: 0;
  height: 38px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 10px;
}

@media (max-width: 620px) {
  .keyframe-grid.is-comparison,
  .keyframe-comparison-options {
    grid-template-columns: 1fr;
  }

  .retry-controls {
    grid-template-columns: 1fr;
  }
}

.activity-log {
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.activity-log summary {
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  list-style: none;
}

.activity-log summary::-webkit-details-marker {
  display: none;
}

.activity-log summary::before {
  content: "＋";
}

.activity-log[open] summary::before {
  content: "−";
}

.activity-log summary span {
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 999px;
  background: #e7e5df;
  font-family: var(--font-mono);
  font-size: 8px;
}

.log-list {
  display: grid;
  gap: 8px;
  max-height: 230px;
  margin-top: 12px;
  overflow: auto;
}

.log-entry {
  display: grid;
  grid-template-columns: 65px 46px minmax(0, 1fr);
  gap: 9px;
  padding: 9px 10px;
  border-radius: 9px;
  background: rgba(240, 239, 233, 0.74);
  font-family: var(--font-mono);
  font-size: 8px;
}

.log-entry time,
.log-entry .log-level {
  color: var(--ink-faint);
}

.log-entry.is-error {
  color: var(--danger);
  background: rgba(197, 61, 45, 0.06);
}

.empty-log {
  margin: 0;
  color: var(--ink-faint);
  font-size: 10px;
}

footer {
  display: flex;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--max-width));
  margin: 80px auto 0;
  padding: 24px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.dialog {
  width: min(calc(100% - 32px), 480px);
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: 0 40px 120px rgba(23, 24, 19, 0.28);
}

.dialog::backdrop {
  background: rgba(23, 24, 19, 0.52);
  backdrop-filter: blur(8px);
}

.dialog.task-list-dialog {
  width: min(calc(100% - 32px), 760px);
  overflow: hidden;
}

.task-list-dialog-card {
  position: relative;
  max-height: calc(100vh - 32px);
  padding: 28px;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: var(--surface-solid);
  box-shadow: none;
  backdrop-filter: none;
}

.task-list-dialog .task-list {
  max-height: min(560px, calc(100vh - 230px));
  padding-right: 3px;
  overflow-y: auto;
}

.task-list-dialog .task-list-heading {
  padding-right: 40px;
}

.dialog-card {
  position: relative;
  display: grid;
  gap: 15px;
  padding: 31px;
  border-radius: 24px;
  background: var(--surface-solid);
}

.dialog-card h2,
.dialog-card p {
  margin: 0;
}

.dialog-card h2 {
  font-size: 25px;
  letter-spacing: -0.04em;
}

.dialog-card > p {
  color: var(--ink-faint);
  font-size: 11px;
}

.dialog-close {
  position: absolute;
  top: 17px;
  right: 17px;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  cursor: pointer;
  background: transparent;
  font-size: 19px;
  font-weight: 300;
}

.dialog-kicker {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.dialog-error {
  min-height: 1em;
}

.confirm-symbol {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--accent);
  font-family: Georgia, serif;
  font-size: 25px;
}

.confirm-facts {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f5f3ed;
}

.confirm-facts div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
}

.confirm-facts span {
  color: var(--ink-faint);
}

.confirm-check {
  align-items: start;
  padding: 12px;
  border-radius: 12px;
  background: rgba(200, 240, 68, 0.14);
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 9px;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  max-width: min(380px, calc(100% - 44px));
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  opacity: 0;
  color: #fff;
  background: rgba(23, 24, 19, 0.94);
  box-shadow: 0 18px 50px rgba(23, 24, 19, 0.2);
  font-size: 11px;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.is-hidden {
  display: none !important;
}

.header-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}

.account-button {
  display: grid;
  gap: 1px;
  min-height: 42px;
  padding: 6px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 252, 0.72);
  text-align: right;
}

.account-button span {
  color: var(--success);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.account-button strong {
  font-family: var(--font-mono);
  font-size: 9px;
}

.dialog.auth-dialog {
  width: min(calc(100% - 32px), 480px);
}

.auth-card,
.account-card,
.video-preview-card {
  position: relative;
  padding: 34px;
  border-radius: 24px;
  background: var(--surface-solid);
}

.auth-card {
  display: grid;
  gap: 16px;
}

.auth-card h2,
.auth-card p,
.account-card h2,
.account-card p,
.video-preview-card h2,
.video-preview-card p {
  margin: 0;
}

.auth-card h2,
.account-card h2,
.video-preview-card h2 {
  font-size: 27px;
  letter-spacing: -0.045em;
}

.auth-card > p,
.auth-policy,
.payment-note,
.video-preview-card p {
  color: var(--ink-faint);
  font-size: 11px;
}

.auth-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.auth-brand span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
  font-family: Georgia, serif;
  font-size: 18px;
  font-style: italic;
}

#loginForm {
  display: grid;
  gap: 13px;
}

.auth-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.auth-field span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  background: #fff;
}

.auth-field input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(200, 240, 68, 0.28);
}

.captcha-row,
.sms-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 10px;
  align-items: end;
}

.captcha-image {
  height: 48px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  background: var(--paper);
}

.captcha-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sms-row .button {
  min-height: 48px;
}

.auth-error {
  min-height: 18px;
  color: var(--danger);
  font-size: 11px;
}

.dialog.account-dialog {
  width: min(calc(100% - 32px), 940px);
}

.account-card {
  display: grid;
  gap: 22px;
}

.account-heading {
  display: flex;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
}

.account-heading p {
  margin-top: 4px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 10px;
}

.usage-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
}

.usage-summary div {
  display: grid;
  gap: 3px;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.usage-summary div:last-child {
  border-right: 0;
}

.usage-summary span {
  color: var(--ink-faint);
  font-size: 9px;
}

.usage-summary strong {
  font-size: 15px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.plan-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
}

.plan-card.is-featured {
  border-color: var(--ink);
  box-shadow: 0 14px 36px rgba(23, 24, 19, 0.09);
}

.plan-card > span {
  font-size: 11px;
  font-weight: 800;
}

.plan-card > strong {
  font-size: 29px;
  letter-spacing: -0.04em;
}

.plan-card > strong em {
  color: var(--ink-faint);
  font-size: 10px;
  font-style: normal;
}

.plan-card p {
  font-size: 11px;
  font-weight: 700;
}

.plan-card small {
  min-height: 32px;
  color: var(--ink-faint);
  font-size: 9px;
}

.payment-note {
  min-height: 18px;
}

.dialog.video-preview-dialog {
  width: min(calc(100% - 32px), 470px);
}

.video-preview-card {
  display: grid;
  gap: 14px;
}

.video-preview-card video {
  width: min(100%, 360px);
  max-height: min(70vh, 640px);
  margin: 0 auto;
  border-radius: 18px;
  background: #111;
  aspect-ratio: 9 / 16;
}

@media (max-width: 700px) {
  .account-button {
    display: none;
  }

  .auth-card,
  .account-card,
  .video-preview-card {
    padding: 25px 20px;
  }

  .plan-grid,
  .usage-summary {
    grid-template-columns: 1fr;
  }

  .usage-summary div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .usage-summary div:last-child {
    border-bottom: 0;
  }

  .captcha-row,
  .sms-row {
    grid-template-columns: minmax(0, 1fr) 124px;
  }
}

noscript {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 14px;
  border-radius: 12px;
  color: #fff;
  background: var(--danger);
  text-align: center;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1060px) {
  .hero {
    gap: 18px;
  }

  .hero .eyebrow {
    margin-bottom: -2px;
  }

  .workspace {
    grid-template-columns: minmax(280px, 0.6fr) minmax(0, 1fr);
    gap: 20px;
  }

  .preview-sticky,
  .form-section,
  .job-panel,
  .task-list-panel {
    padding: 23px;
  }

  .field-grid-three {
    grid-template-columns: repeat(2, 1fr);
  }

  .field-grid-three .field:first-child {
    grid-column: 1 / -1;
  }

  .asset-grid-main,
  .look-item-grid {
    grid-template-columns: 1fr;
  }

  .upload-card {
    min-height: 120px;
  }

  .submit-section {
    flex-wrap: wrap;
  }

  .button-large {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    min-height: 72px;
  }

  .brand small {
    display: none;
  }

  .header-icon-button {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding: 36px 0 34px;
  }

  .hero h1 {
    font-size: clamp(45px, 14vw, 70px);
  }

  .workspace {
    display: block;
  }

  .preview-sticky {
    position: relative;
    top: auto;
    display: grid;
    grid-template-columns: minmax(170px, 0.7fr) minmax(0, 1fr);
    gap: 0 20px;
    align-items: center;
    margin-bottom: 20px;
  }

  .preview-sticky > .section-kicker {
    grid-column: 1 / -1;
  }

  .phone-shell {
    grid-row: 2 / 5;
    width: 100%;
    margin: 20px 0 0;
    border-radius: 24px;
  }

  .demo-video {
    border-radius: 18px;
  }

  .template-meta {
    grid-template-columns: 1fr;
    margin-top: 20px;
    border: 0;
  }

  .template-meta div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
  }

  .template-meta div + div {
    border-left: 0;
  }

  .quiet-note {
    text-align: left;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 10px;
    text-align: left;
  }

  .rights-row {
    display: grid;
    gap: 10px;
  }

  .stepper strong {
    font-size: 9px;
  }

  .stepper small {
    display: none;
  }

  .keyframe-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .job-header {
    align-items: start;
  }

  .job-id-wrap {
    max-width: 150px;
  }
}

@media (max-width: 520px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .brand-mark {
    width: 33px;
    height: 33px;
  }

  .brand strong {
    font-size: 11px;
  }

  .button-small {
    padding: 7px 9px;
  }

  .hero {
    padding-top: 30px;
  }

  .hero .eyebrow span:last-child {
    display: none;
  }

  .preview-sticky {
    display: block;
    padding: 18px;
  }

  .phone-shell {
    width: min(100%, 280px);
    margin: 18px auto;
  }

  .template-meta {
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .template-meta div {
    display: block;
    padding: 12px 3px;
    border-bottom: 0;
    text-align: center;
  }

  .template-meta div + div {
    border-left: 1px solid var(--line);
  }

  .quiet-note {
    text-align: center;
  }

  .form-section,
  .job-panel,
  .task-list-panel {
    padding: 19px;
    border-radius: 22px;
  }

  .field-grid-three,
  .asset-grid-main {
    grid-template-columns: 1fr;
  }

  .field-grid-three .field:first-child {
    grid-column: auto;
  }

  .upload-card {
    display: grid;
    grid-template-columns: auto 1fr;
  }

  .upload-action {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
  }

  .task-list-heading {
    display: grid;
    align-items: start;
  }

  .task-list-tools {
    justify-content: space-between;
  }

  .task-list-tools label {
    flex: 1;
  }

  .task-list-tools select {
    width: 100%;
  }

  .task-list-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .task-list-meta {
    grid-template-columns: auto auto 1fr;
  }

  .task-list-meta i {
    justify-self: end;
  }

  .identity-preview {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
  }

  .looks-heading {
    display: block;
  }

  .look-card-header {
    align-items: start;
  }

  .inherit-toggle span {
    display: none;
  }

  .garment-mode-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .look-item-grid {
    grid-template-columns: 1fr;
  }

  .stepper {
    margin-right: -6px;
    margin-left: -6px;
  }

  .stepper strong {
    font-size: 8px;
  }

  .keyframe-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .status-banner {
    align-items: start;
  }

  .charge-badge {
    position: absolute;
    right: 34px;
  }

  .submit-section {
    padding-top: 18px;
  }

  .safety-note {
    margin-bottom: 2px;
  }

  .job-actions .button,
  .job-actions .action-note {
    width: 100%;
  }

  .dialog-card {
    padding: 26px 20px 20px;
  }

  .dialog-actions {
    grid-template-columns: 1fr;
  }

  .log-entry {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .log-entry .log-level {
    display: none;
  }

  footer {
    display: grid;
    gap: 8px;
  }
}

.template-selection {
  display: grid;
  gap: 20px;
}

.template-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.template-option {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.template-option:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 16, 16, 0.32);
}

.template-option.is-selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--ink), 0 16px 30px rgba(28, 24, 18, 0.11);
}

.template-option > input {
  position: absolute;
  inset: 10px auto auto 10px;
  z-index: 3;
  width: 17px;
  height: 17px;
  accent-color: var(--ink);
}

.template-option > img {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: cover;
  object-position: center 20%;
  background: #eeece7;
}

.template-option-copy {
  display: grid;
  gap: 6px;
  padding: 13px 14px 14px;
}

.template-option-copy strong {
  font-size: 15px;
  line-height: 1.2;
}

.template-option-copy small {
  min-height: 34px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.template-option-facts {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.template-wardrobe-panel {
  display: grid;
  gap: 14px;
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(244, 241, 235, 0.74);
}

.template-wardrobe-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.template-wardrobe-heading > span:first-child {
  display: grid;
  gap: 3px;
}

.template-wardrobe-heading strong {
  font-size: 13px;
}

.template-wardrobe-heading small {
  color: var(--muted);
  font-size: 10px;
}

.template-clothes-toggle {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.template-clothes-toggle input {
  position: absolute;
  opacity: 0;
}

.template-clothes-toggle i {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #d7d4cc;
}

.template-clothes-toggle i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 160ms ease;
}

.template-clothes-toggle input:checked + i {
  background: var(--ink);
}

.template-clothes-toggle input:checked + i::after {
  transform: translateX(16px);
}

.template-wardrobe-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.template-wardrobe-look {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.template-wardrobe-look img {
  display: block;
  width: 100%;
  height: 128px;
  object-fit: cover;
  object-position: center 18%;
}

.template-wardrobe-look span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 4px 6px;
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 18, 14, 0.8);
  font-family: var(--font-mono);
  font-size: 8px;
}

.wardrobe-catalog {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.wardrobe-option {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  cursor: pointer;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.wardrobe-option:hover {
  transform: translateY(-2px);
}

.wardrobe-option.is-selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--ink);
}

.wardrobe-option > input {
  position: absolute;
  opacity: 0;
}

.wardrobe-option > img {
  display: block;
  width: 100%;
  height: 142px;
  object-fit: cover;
  object-position: center 20%;
  background: #f2f0eb;
}

.wardrobe-option > b {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
}

.wardrobe-option > span {
  display: grid;
  gap: 2px;
  padding: 10px;
}

.wardrobe-option strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wardrobe-option small {
  color: var(--ink-faint);
  font-size: 9px;
}

.selected-looks-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.selected-looks-summary span {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(200, 240, 68, 0.16);
  font-size: 10px;
}

.selected-looks-summary b {
  font-family: var(--font-mono);
  font-size: 8px;
}

.custom-upload-toggle {
  margin: 16px 0 4px;
}

.segmented input:disabled + span {
  cursor: not-allowed;
  opacity: 0.38;
}

@media (max-width: 760px) {
  .template-picker {
    grid-template-columns: 1fr;
  }

  .template-option {
    display: grid;
    grid-template-columns: 104px 1fr;
  }

  .template-option > img {
    width: 104px;
    height: 100%;
    min-height: 118px;
  }

  .template-option-copy small {
    min-height: 0;
  }

  .template-wardrobe-heading {
    align-items: start;
    flex-direction: column;
  }

  .wardrobe-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .selected-looks-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
