:root {
  color-scheme: dark;
  --page: #111316;
  --header: #101113;
  --surface: #191c20;
  --raised: #22262a;
  --text: #f2f3f2;
  --muted: #abb0b5;
  --line: #363b40;
  --accent: #d2f57a;
  --accent-ink: #182303;
  --notice: #f3cc8c;
  --kicker: #c7df9d;
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  background: var(--page);
  color: var(--text);
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
select {
  cursor: pointer;
}
button {
  color: inherit;
}
[hidden] {
  display: none !important;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.sr,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  padding: 10px;
  z-index: 10;
  background: var(--surface);
}
.frame,
.bar {
  max-width: 1180px;
  width: calc(100% - 112px);
  margin-inline: auto;
}
.mast {
  background: var(--header);
  border-bottom: 1px solid var(--line);
}
.bar {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 45px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -1px;
  white-space: nowrap;
}
.brand img {
  object-fit: contain;
}
.brand b {
  font-weight: 400;
  color: var(--muted);
}
.nav {
  display: flex;
  align-items: stretch;
  gap: 28px;
  align-self: stretch;
}
.nav a {
  display: flex;
  align-items: center;
  position: relative;
  font-size: 14px;
  color: var(--muted);
}
.nav a[aria-current] {
  color: var(--text);
}
.nav a[aria-current]::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}
.account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.account-name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.nav-action,
.secondary,
.text-btn,
.primary,
.shelf-link,
.upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  font-weight: 600;
  line-height: 1.35;
}
.nav-action,
.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 6px;
  padding: 9px 15px;
  font-size: 14px;
}
.nav-action:hover,
.secondary:hover,
.upload:hover {
  background: var(--raised);
  border-color: var(--muted);
}
.primary {
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 13px 22px;
  font-size: 15px;
  white-space: nowrap;
}
.primary:hover {
  filter: brightness(1.07);
}
.primary span {
  font-size: 19px;
}
.text-btn {
  border: 0;
  background: none;
  padding: 8px 3px;
  color: var(--muted);
  font-size: 14px;
}
.text-btn:hover,
.shelf-link:hover {
  color: var(--accent);
}
button:disabled {
  opacity: 0.53;
  cursor: default;
}
.hero {
  overflow: hidden;
  position: relative;
  background: #101521;
  color: #f4f4f5;
}
.hero-photo {
  position: absolute;
  inset: 0 0 0 40%;
  background: url('/assets/studio-camera.jpg') center 52% / cover no-repeat;
}
.hero-photo:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #101521 0,
    rgba(16, 21, 33, 0.84) 12%,
    rgba(16, 21, 33, 0.08) 46%,
    transparent 100%
  );
}
.hero-inner {
  position: relative;
  min-height: 245px;
  display: flex;
  align-items: center;
}
.hero-copy {
  max-width: 59%;
  padding: 34px 0;
}
.kicker {
  margin: 0 0 12px;
  color: var(--kicker);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}
.hero .kicker {
  color: #d2f57a;
}
.hero h1,
.section-head h1 {
  font-size: clamp(38px, 5vw, 66px);
  letter-spacing: -0.065em;
  line-height: 1.15;
  margin: 0;
  font-weight: 730;
}
.hero h1 span {
  color: #d2f57a;
}
.hero-copy > p:last-child {
  margin: 17px 0 0;
  color: #c3c7d1;
  font-size: 15px;
  line-height: 1.6;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(26px, 4.6vw, 68px);
  padding-block: 38px 60px;
  align-items: start;
}
.composer {
  min-width: 0;
}
.no-field {
  border: 0;
  padding: 0;
  margin: 0;
}
.modes {
  display: inline-flex;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  padding: 3px;
}
.modes label {
  position: relative;
  cursor: pointer;
}
.modes input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.modes span {
  display: block;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--muted);
}
.modes input:checked + span {
  background: var(--raised);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 650;
}
.modes input:focus-visible + span {
  outline: 2px solid var(--accent);
}
label {
  font-size: 14px;
  font-weight: 580;
}
input:not([type='checkbox']):not([type='file']):not([type='radio']),
select,
textarea {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
}
textarea {
  width: 100%;
  resize: vertical;
  min-height: 112px;
  line-height: 1.65;
  font-size: 15px;
}
textarea::placeholder,
input::placeholder {
  color: var(--muted);
  opacity: 0.83;
}
.prompt-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 24px 0 8px;
}
.prompt-label span,
.help {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.help {
  margin: 4px 0 0;
}
.controls {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.controls label,
.ops-form > label:not(.check) {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.controls select,
.controls input {
  width: 100%;
  min-width: 0;
  font-size: 14px;
}
.submit-row {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.quote {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
}
.notice {
  line-height: 1.55;
  color: var(--notice);
  font-size: 14px;
  margin: 13px 0 0;
  overflow-wrap: anywhere;
}
.shelf {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: -0.035em;
}
.shelf h2 {
  font-size: 18px;
}
.summary {
  margin: 13px 0 18px;
}
.summary > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  font-size: 13px;
  line-height: 1.5;
}
.summary dt,
.muted {
  color: var(--muted);
}
.summary dd {
  margin: 0;
  text-align: right;
}
.shelf-link {
  justify-content: space-between;
  width: 100%;
  padding: 15px 0 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.shelf-link span {
  color: var(--muted);
}
.reference {
  margin-top: 18px;
}
.reference-row {
  margin-top: 7px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.upload {
  position: relative;
  min-height: 40px;
  padding: 8px 14px;
  max-width: 100%;
  border: 1px dashed var(--muted);
  border-radius: 5px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.upload input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.upload:focus-within {
  outline: 2px solid var(--accent);
}
.reference img {
  display: block;
  max-width: 180px;
  max-height: 90px;
  margin: 10px 0;
  object-fit: contain;
}
.works,
.ops-main {
  padding-block: 58px 70px;
}
.section-head,
.review-head,
.preview-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.section-head h1 {
  font-size: clamp(34px, 4vw, 52px);
}
.section-head p.muted,
.review-head p,
.ops-section p,
.muted {
  line-height: 1.65;
}
.works #library-message {
  margin-top: 32px;
}
.empty-action {
  margin-top: 10px;
}
.work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 22px 0;
  align-items: center;
}
.work h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.work p,
.review-item p {
  font-size: 13px;
  margin: 5px 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.work-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.state {
  display: inline-block;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}
.state[data-status='completed'] {
  color: var(--kicker);
}
.state[data-status='failed'],
.state[data-status='review'] {
  color: var(--notice);
}
dialog {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 26px;
  width: min(460px, calc(100% - 28px));
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #000b;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.dialog-actions .secondary,
.dialog-actions .primary {
  min-height: 43px;
}
#preview {
  width: min(850px, calc(100% - 28px));
}
#player {
  display: block;
  width: 100%;
  max-height: 60dvh;
  background: #000;
  margin-top: 16px;
  border-radius: 4px;
}
#preview-caption {
  overflow-wrap: anywhere;
}
.ops-back {
  margin-left: auto;
}
.ops-label {
  color: var(--muted);
  font-size: 14px;
}
.ops-section {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  margin-top: 30px;
}
.ops-form {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin-top: 18px;
}
.ops-form .controls {
  margin: 0;
}
.ops-form .primary {
  justify-self: start;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.review-head {
  align-items: flex-start;
}
.review-item {
  margin-top: 19px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.review-item .controls {
  margin: 14px 0;
}
.review-item .dialog-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}
.review-item input,
.review-item textarea {
  width: 100%;
}
.review-item textarea {
  min-height: 60px;
}
@media (prefers-color-scheme: light) {
  :root {
    --page: #f7f8f6;
    --header: #fff;
    --surface: #fff;
    --raised: #edf0e9;
    --text: #161a18;
    --muted: #59605d;
    --line: #d6dcd4;
    --accent: #456419;
    --accent-ink: #fff;
    --kicker: #4a6529;
    --notice: #875020;
  }
}
@media (max-width: 850px) {
  .frame,
  .bar {
    width: calc(100% - 48px);
  }
  .bar {
    gap: 24px;
  }
  .editor-grid {
    grid-template-columns: minmax(0, 1fr) 205px;
    gap: 23px;
  }
  .shelf {
    padding-left: 18px;
  }
  .nav {
    gap: 16px;
  }
  .brand {
    font-size: 18px;
  }
  .hero-inner {
    min-height: 218px;
  }
}
@media (max-width: 680px) {
  .frame,
  .bar {
    width: calc(100% - 32px);
  }
  .bar {
    min-height: 60px;
    column-gap: 12px;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 17px;
    letter-spacing: -0.8px;
  }
  .brand img {
    width: 29px;
    height: 29px;
  }
  .account {
    gap: 6px;
  }
  .account-name {
    max-width: 85px;
  }
  .nav-action {
    font-size: 12px;
    padding: 7px 9px;
    gap: 4px;
  }
  .nav {
    order: 3;
    width: 100%;
    height: 38px;
    gap: 23px;
  }
  .nav a {
    font-size: 13px;
  }
  .brand,
  .account {
    margin-top: 8px;
  }
  .ops-back {
    margin-block: 8px;
  }
  .hero-copy {
    max-width: 78%;
    padding: 24px 0;
  }
  .hero-inner {
    min-height: 172px;
  }
  .hero-copy > p:last-child {
    max-width: 230px;
    font-size: 13px;
    margin-top: 12px;
  }
  .hero-photo {
    inset: 0 -19% 0 28%;
    opacity: 0.72;
  }
  .hero-photo:before {
    background: linear-gradient(
      90deg,
      #101521 0,
      rgba(16, 21, 33, 0.9) 16%,
      rgba(16, 21, 33, 0.35) 53%,
      transparent 100%
    );
  }
  .hero h1 {
    font-size: 37px;
  }
  .editor-grid {
    display: block;
    padding-top: 22px;
  }
  .shelf {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px 0 0;
    margin-top: 30px;
  }
  .summary {
    margin: 10px 0;
  }
  .summary > div {
    padding: 5px 0;
  }
  .controls {
    gap: 10px;
  }
  .submit-row {
    align-items: center;
  }
  .primary {
    padding: 11px 16px;
  }
  .work {
    grid-template-columns: 1fr;
  }
  .works,
  .ops-main {
    padding-block: 32px;
  }
  .ops-label {
    display: none;
  }
  .ops-form .controls,
  .review-item .controls {
    grid-template-columns: 1fr;
  }
  .review-item {
    padding: 15px;
  }
  .prompt-label {
    margin-top: 16px;
  }
  dialog {
    padding: 18px;
  }
  .section-head {
    align-items: flex-start;
  }
}
