:root {
  color-scheme: dark;
  --bg: #101210;
  --surface: #191c19;
  --input: #121512;
  --ink: #f6f3e8;
  --muted: #adafa6;
  --line: #363a34;
  --lime: #c9f86d;
  --serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --sans: Inter, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.55 var(--sans);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button,
a,
input,
textarea,
select {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--lime);
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
svg.icon {
  width: 18px;
  height: 18px;
  flex: none;
  vertical-align: middle;
}
a,
button {
  transition:
    color 0.18s,
    background 0.18s,
    border-color 0.18s,
    transform 0.18s;
}
.mast {
  border-bottom: 1px solid #30332e;
  background: #121411;
}
.mast-inner,
main,
footer {
  width: min(1512px, 100%);
  margin: 0 auto;
  padding-inline: clamp(20px, 3.5vw, 68px);
}
.mast-inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 70px);
}
.brand,
.account,
nav,
.text-link,
.quiet,
.primary,
.glass,
.dialog-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.brand {
  gap: 10px;
}
.brand b,
.dialog-brand {
  font: italic 700 29px/0.9 var(--serif);
  letter-spacing: -1.7px;
}
.brand span {
  border-left: 1px solid #4d5148;
  padding-left: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}
.account {
  margin-left: auto;
  border: 1px solid #42463e;
  background: #1c1f1b;
  border-radius: 99px;
  padding: 7px 14px;
  color: #e5e8dd;
  font-size: 13px;
  max-width: 240px;
}
.account span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account:hover,
.quiet:hover {
  border-color: #8d9b7a;
}
.mast nav {
  height: 100%;
  gap: 30px;
}
.mast nav a {
  height: 100%;
  display: grid;
  align-content: center;
  position: relative;
  color: #aeb2a8;
  font-weight: 550;
}
.mast nav a:hover,
.text-link:hover,
.dialog-toggle:hover {
  color: var(--lime);
}
.mast nav a.current {
  color: var(--lime);
}
.mast nav a.current:after {
  content: "";
  height: 2px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--lime);
}
main {
  padding-top: 32px;
  padding-bottom: 46px;
  flex: 1;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
}
h1 {
  font-size: clamp(32px, 2.9vw, 48px);
  line-height: 1.25;
  letter-spacing: -1.5px;
  margin: 0 0 23px;
}
h1 em,
h2 em {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.6px;
  color: #c2c3b7;
  margin-left: 10px;
  font-size: 0.7em;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(340px, 0.8fr) minmax(0, 1.45fr);
  gap: 17px;
  align-items: stretch;
}
.creator {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(130deg, #20231e 0%, #181b17 77%);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: clamp(18px, 1.6vw, 27px);
}
.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #3f453b;
  border-radius: 9px;
  padding: 3px;
  background: #121512;
}
.mode-switch button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  height: 36px;
  color: #b6b9ae;
  font-size: 14px;
  font-weight: 650;
}
.mode-switch button[aria-pressed="true"] {
  background: #29321e;
  color: var(--lime);
  border-color: #56653c;
}
.mode-switch button:not([aria-pressed="true"]):hover {
  background: #20251e;
}
label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #e9ebdf;
}
label em {
  font: italic 13px var(--serif);
  margin-left: 5px;
  color: #b1b3a8;
}
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.label-row span {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.creator input,
textarea,
.select,
.model,
dialog input {
  width: 100%;
  border: 1px solid #40453b;
  background: var(--input);
  border-radius: 7px;
}
.creator input,
dialog input {
  padding: 11px 12px;
}
textarea {
  display: block;
  resize: vertical;
  min-height: 87px;
  height: clamp(92px, 7vw, 116px);
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.7;
}
::placeholder {
  color: #92978b;
  opacity: 1;
}
.model,
.select {
  display: flex;
  align-items: center;
  height: 39px;
  gap: 10px;
  padding-left: 12px;
}
.model {
  font-size: 14px;
  font-weight: 550;
}
.model span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.model svg {
  color: #b8c4a7;
}
.option-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}
.select {
  position: relative;
  padding: 0;
  gap: 0;
}
.select svg:first-child {
  position: absolute;
  left: 12px;
  color: #c2c7b9;
  pointer-events: none;
  width: 15px;
}
.select svg:last-child {
  position: absolute;
  right: 10px;
  width: 14px;
  pointer-events: none;
  color: var(--muted);
}
select {
  background: transparent;
  width: 100%;
  height: 100%;
  appearance: none;
  border: none;
  padding: 0 28px 0 36px;
  cursor: pointer;
}
option {
  background: #1d201a;
}
.primary {
  width: 100%;
  background: var(--lime);
  color: #18200e;
  min-height: 44px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.04em;
}
.creator .primary {
  margin-top: auto;
}
.primary:hover {
  background: #dcff91;
}
.primary:active,
.quiet:active {
  transform: translateY(1px);
}
.poster {
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  min-height: 370px;
  background: #ac5b30;
  isolation: isolate;
}
.poster-img,
.tile img {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
}
.poster:after,
.tile:after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(31, 14, 7, 0.76), transparent 50%);
}
.poster-bottom {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: clamp(23px, 2.5vw, 42px);
  gap: 12px;
  color: #fff2d9;
}
.poster-name {
  display: block;
  font: italic 400 clamp(75px, 7.6vw, 128px)/0.9 var(--serif);
  letter-spacing: -0.075em;
}
.poster h2 {
  font-size: clamp(23px, 2.2vw, 36px);
  margin: 6px 0 0;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 17px;
}
.poster h2:after {
  content: "";
  height: 1px;
  width: 45px;
  background: #f9dfb5;
}
.glass {
  color: #fff7e8;
  border: 1px solid #ffffff80;
  background: #24180e54;
  border-radius: 30px;
  padding: 9px 14px;
  font-size: 13px;
  backdrop-filter: blur(7px);
  white-space: nowrap;
}
.glass:hover {
  background: #31281ee8;
}
.section-heading,
.works-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.section-heading {
  margin: 27px 0 15px;
}
.section-heading h2 {
  font-size: clamp(23px, 1.8vw, 30px);
  letter-spacing: -0.4px;
}
.text-link {
  color: #c8ccbe;
  font-size: 13px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: block;
  aspect-ratio: 2.35;
  width: 100%;
  color: #fff6e7;
  border-radius: 12px;
  text-align: left;
  padding: 0;
  background: #242821;
  border: 1px solid #353a30;
}
.tile img {
  transition: transform 0.5s ease;
}
.tile:hover img {
  transform: scale(1.045);
}
.tile:after {
  background: linear-gradient(0deg, #060b0ce8, transparent 77%);
}
.tile-text {
  position: absolute;
  z-index: 1;
  left: 20px;
  bottom: 15px;
}
.tile-title {
  font: 600 clamp(19px, 1.5vw, 25px)/1.4 var(--serif);
  display: block;
  letter-spacing: 0.05em;
}
.tile-en {
  font: italic 15px/1.2 var(--serif);
  color: #f2e9d7;
}
.tile-arrow {
  position: absolute;
  z-index: 1;
  right: 17px;
  bottom: 18px;
  border-radius: 50%;
  border: 1px solid #ffffff80;
  background: #17181750;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}
.tile-arrow svg {
  width: 15px;
}
.library-tiles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.intro {
  color: var(--muted);
  margin: -9px 0 24px;
}
footer {
  padding-block: 18px;
  display: flex;
  justify-content: space-between;
  color: #9a9f92;
  border-top: 1px solid #2b2f28;
  font-size: 12px;
}
footer span:first-child {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
}
dialog {
  position: fixed;
  width: min(410px, calc(100% - 32px));
  max-height: 90dvh;
  overflow: auto;
  border: 1px solid #484e42;
  border-radius: 16px;
  background: #1b1e19;
  padding: 30px;
  color: var(--ink);
  box-shadow: 0 25px 120px #0008;
}
dialog::backdrop {
  background: #060806ba;
  backdrop-filter: blur(6px);
}
.close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  border: 1px solid #53584e;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  background: #111710cc;
  color: #fff;
  z-index: 1;
}
.dialog-brand {
  font-size: 23px;
  margin-bottom: 19px;
}
dialog h2 {
  font-size: 27px;
  margin-bottom: 16px;
}
dialog label {
  margin-top: 15px;
}
dialog .primary {
  margin-top: 20px;
}
.dialog-toggle {
  width: 100%;
  margin-top: 14px;
  color: #c5c9bd;
  font-size: 13px;
}
.error {
  color: #ffae99;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.error:not([hidden]) {
  margin: 4px 0;
}
#preset-dialog {
  padding: 0 24px 24px;
}
#preset-photo {
  width: calc(100% + 48px);
  margin: 0 -24px 20px;
  height: 180px;
  object-fit: cover;
}
#preset-description,
#profile-name {
  color: #c7cdbe;
  line-height: 1.8;
}
#profile-name {
  margin-bottom: 18px;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: #edf4df;
  color: #22301b;
  border-radius: 8px;
  box-shadow: 0 8px 35px #0007;
  padding: 11px 19px;
  text-align: center;
  max-width: 90%;
  width: max-content;
}
.quiet {
  border-radius: 7px;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 6px 13px;
}
.works-heading {
  margin-bottom: 20px;
}
.works-heading h1 {
  margin: 0;
}
.empty {
  text-align: center;
  border: 1px dashed #42483d;
  border-radius: 14px;
  padding: 70px 18px;
  background: #151814;
}
.empty > svg {
  width: 30px;
  height: 30px;
  color: #afc19a;
}
.empty h2 {
  font-size: 23px;
  margin: 12px 0 8px;
}
.empty p,
.job-meta {
  color: var(--muted);
  font-size: 13px;
}
.empty .quiet {
  margin-top: 19px;
}
.job-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
  align-items: start;
}
.job {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  min-width: 0;
}
.job video {
  width: 100%;
  max-height: 300px;
  border-radius: 6px;
  background: #070807;
}
.job-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 7px 0;
}
.status {
  color: var(--lime);
}
.job p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.job-actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 12px;
}
@media (min-width: 1700px) {
  main {
    padding-top: 43px;
  }
  .creator {
    gap: 22px;
  }
}
@media (max-width: 900px) {
  .mast-inner {
    gap: 27px;
  }
  .workspace {
    grid-template-columns: minmax(305px, 0.88fr) minmax(0, 1fr);
  }
  .poster-bottom {
    flex-wrap: wrap;
  }
  .tiles {
    gap: 10px;
  }
  .tile {
    aspect-ratio: 1.8;
  }
  .tile-text {
    left: 13px;
  }
  .tile-arrow {
    right: 12px;
  }
  .brand b {
    font-size: 24px;
  }
}
@media (max-width: 700px) {
  .mast-inner,
  main,
  footer {
    padding-inline: 18px;
  }
  .mast-inner {
    height: auto;
    min-height: 90px;
    flex-wrap: wrap;
    gap: 0;
    padding-top: 13px;
  }
  .brand b {
    font-size: 24px;
  }
  .brand img {
    width: 28px;
    height: 28px;
  }
  .brand span {
    font-size: 13px;
  }
  .mast nav {
    order: 3;
    flex-basis: 100%;
    height: 41px;
    justify-content: flex-start;
    gap: 26px;
  }
  .account {
    font-size: 12px;
    padding: 5px 10px;
  }
  .account svg {
    width: 15px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
    gap: 13px;
  }
  .creator {
    padding: 16px;
    gap: 14px;
  }
  .poster {
    min-height: 0;
    aspect-ratio: 1.95;
  }
  .poster-bottom {
    padding: 18px;
    flex-wrap: nowrap;
  }
  .poster-name {
    font-size: 58px;
  }
  .poster h2 {
    font-size: 19px;
    gap: 9px;
  }
  .poster h2:after {
    width: 22px;
  }
  .glass {
    font-size: 12px;
    padding: 6px 10px;
  }
  .glass svg {
    width: 13px;
  }
  main {
    padding-top: 23px;
    padding-bottom: 32px;
  }
  h1 {
    font-size: 32px;
    margin-bottom: 16px;
  }
  .tiles,
  .library-tiles {
    grid-template-columns: 1fr;
  }
  .tile {
    aspect-ratio: 2.55;
  }
  .section-heading {
    margin: 22px 0 13px;
  }
  .text-link {
    font-size: 12px;
  }
  .section-heading h2 {
    font-size: 23px;
  }
  .section-heading h2 em {
    font-size: 15px;
    margin-left: 5px;
  }
  .intro {
    font-size: 13px;
  }
  .tile-text {
    left: 18px;
    bottom: 14px;
  }
  .tile-title {
    font-size: 23px;
  }
  .tile-arrow {
    right: 16px;
  }
  .empty {
    padding: 48px 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--muted);
}
.pager button:disabled {
  cursor: default;
  opacity: 0.4;
}
