/* 素材生产与电脑端采用同样的信息层级；窄屏顺排，宽屏为编辑区 + 制作说明。 */
.production-dialog {
  max-height: calc(var(--visible-height, 100dvh) - 20px) !important;
}
.result-header {
  max-height: min(180px, calc(var(--visible-height, 100dvh) * .3));
  overflow-y: auto;
}
.result-close {
  min-width: 44px;
}
.result-body {
  flex: 1 1 auto;
}
.result-footer .actions > * {
  min-height: 44px;
}
:root {
  --studio-ink: #232637;
  --studio-muted: #646c80;
}
.result-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.result-gallery article {
  min-width: 0;
}
.result-gallery h3 {
  font-size: 14px;
}
.result-gallery .cloud-preview {
  height: 270px;
  object-fit: contain;
}
.result-gallery .secondary {
  font-size: 12px;
}
summary {
  cursor: pointer;
  min-height: 48px;
  padding: 13px 0;
  font-size: 13px;
  color: #6942aa;
}
details[open] summary {
  border-bottom: 1px solid #ece6f4;
  margin-bottom: 12px;
}
.production-tools {
  max-width: 100%;
}
@media (max-width: 599px) {
  .result-gallery {
    grid-template-columns: 1fr;
  }
  .result-gallery .cloud-preview {
    height: auto;
  }
}
html {
  scrollbar-gutter: stable;
}
body {
  overflow-wrap: anywhere;
}
button,
input,
select,
textarea,
a {
  min-width: 0;
}
button:disabled {
  cursor: not-allowed;
}
.page-intro p,
.production-heading p {
  font-size: 13px;
}
.form label {
  font-size: 13px;
}
.fineprint {
  color: #6e6b7c;
}
.availability {
  color: #655e76 !important;
}
.production-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.production-heading h1 {
  font-size: 28px;
}
.production-heading .secondary {
  flex-shrink: 0;
  font-size: 12px;
}
.production-tools {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 3px 2px 12px;
  margin-bottom: 12px;
  scrollbar-width: thin;
}
.production-tools a {
  flex: 1 0 128px;
  padding: 12px;
  border: 1px solid #e1dfeb;
  border-radius: 13px;
  background: #fff;
  color: #424a60;
}
.production-tools strong,
.production-tools span {
  display: block;
}
.production-tools strong {
  font-size: 13px;
}
.production-tools span {
  font-size: 11px;
  color: #687085;
  margin-top: 5px;
}
.production-tools [aria-current] {
  border-color: #8760dc;
  background: #f2edff;
  box-shadow: inset 0 0 0 1px #8760dc;
  color: #5c2db7;
}
.production-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.production-work,
.production-aside {
  min-width: 0;
}
.production-form {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible;
  isolation: isolate;
}
.production-section {
  border: 0;
  border-bottom: 1px solid #edeaf3;
  margin: 0;
  padding: 24px;
  min-width: 0;
}
.production-section:first-child {
  border-radius: 19px 19px 0 0;
}
.production-section legend {
  float: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: #272d40;
  margin: 0 0 12px;
  padding: 0;
}
.production-section legend b {
  width: 27px;
  height: 27px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #eee7ff;
  color: #6f3dc8;
  font-size: 13px;
  flex-shrink: 0;
}
.production-section legend + * {
  clear: both;
}
.section-help {
  font-size: 12px;
  color: var(--studio-muted);
  line-height: 1.7;
  margin: 0 0 12px;
}
.production-section label:first-of-type {
  margin-top: 10px;
}
.production-section .row {
  align-items: start;
}
.production-section input[type='file'] {
  background: #f9f7ff;
  border: 1px dashed #aa94d1;
  padding: 18px 12px;
  min-height: 80px;
  white-space: normal;
}
.production-section input[type='file']::file-selector-button {
  border: 0;
  border-radius: 8px;
  padding: 9px;
  background: #eee6ff;
  color: #6339aa;
  margin-right: 10px;
}
.production-section textarea {
  min-height: 148px;
}
.production-section select {
  padding-right: 28px;
  text-overflow: ellipsis;
}
.production-submit {
  padding: 20px 24px;
  background: #fcfbff;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-radius: 0 0 19px 19px;
}
.production-submit p {
  flex: 1;
  min-width: 170px;
  font-size: 12px;
  color: #66627a;
  margin: 0;
}
.production-submit .primary {
  margin: 0;
  min-width: 165px;
}
.production-draft {
  display: block;
  font-size: 11px;
  color: #627569;
  margin: 10px 24px;
}
.production-guide h2 {
  margin-top: 13px;
  font-size: 18px;
}
.production-guide ol {
  padding-left: 22px;
  color: #4d586f;
  font-size: 13px;
  line-height: 2.4;
}
.production-guide p {
  font-size: 12px;
  color: #677085;
}
.production-aside .card:first-child {
  margin-top: 0;
}
.production-recent {
  padding: 17px;
}
.production-recent h2 {
  font-size: 15px;
}
.production-recent button {
  background: #fff;
  display: block;
  text-align: left;
  width: 100%;
  border-bottom: 1px solid #ece8f3;
  padding: 12px 0;
  color: #333b51;
}
.production-recent button span {
  display: block;
  font-size: 11px;
  color: #697086;
  margin-top: 5px;
}
.production-recent button:last-child {
  border: 0;
}
.production-error {
  margin: 12px 24px;
  font-size: 13px;
  color: #a43343;
}
.production-error:empty {
  display: none;
}
.selected-file-preview {
  padding: 10px;
  border: 1px solid #e6deef;
  border-radius: 12px;
  margin-top: 10px;
  min-width: 0;
}
.selected-file-preview img,
.selected-file-preview video {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #f3f0f7;
}
.selected-file-preview p {
  font-size: 12px;
  color: #5b6174;
  margin: 6px 0;
}
.selected-file-preview button {
  font-size: 12px;
  color: #6c41b3;
  background: #f1ebfc;
  padding: 8px 12px;
  border-radius: 8px;
  min-height: 44px;
}
.studio-reference-roles {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}
.studio-reference-role {
  min-width: 0;
  padding: 13px;
  border: 1px solid #e6e0ef;
  border-radius: 13px;
  background: #faf8ff;
}
.studio-reference-role label {
  margin-top: 0;
}
.studio-reference-role select {
  width: 100%;
}
.generation-quote {
  min-width: 0;
  margin: 12px 0;
  padding: 13px 15px;
  border: 1px solid #e6ddf8;
  border-radius: 12px;
  background: #f5f0ff;
  color: #604184;
  line-height: 1.8;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.generation-quote:empty {
  display: none;
}
.production-advanced {
  min-width: 0;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}
.production-advanced summary {
  padding: 16px 2px;
}
.mobile-editing-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.mobile-editing-picker:has(audio) {
  grid-template-columns: minmax(0, 1fr);
}
.mobile-editing-choice {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  overflow: hidden;
}
.mobile-editing-choice > strong {
  display: block;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}
.mobile-editing-choice > p {
  font-size: 12px;
  line-height: 1.7;
}
.mobile-editing-choice :is(img, video) {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 300px;
  object-fit: contain;
  border-radius: 10px;
  background: #f1eef7;
  margin: 0 0 10px;
}
.mobile-editing-choice:has(video) > img {
  display: none;
}
.mobile-editing-choice audio {
  width: 100%;
  margin: 10px 0 14px;
}
.mobile-editing-choice > button {
  min-height: 48px;
  margin-top: auto;
  padding: 10px 7px;
  font-size: 13px;
}
@media (max-width: 350px) {
  .mobile-editing-picker {
    gap: 8px;
  }
  .mobile-editing-choice {
    padding: 9px;
  }
}
.material-groups .section-head {
  align-items: flex-end;
}
.material-groups .section-head p {
  margin: 0;
  color: #646c80;
  font-size: 12px;
}
.material-groups .business-tile {
  background: #fff;
  border: 1px solid #e8e3f2;
  min-height: 135px;
}
.material-groups .business-tile p {
  font-size: 12px;
}
.material-groups .business-tile h3 {
  font-size: 16px;
}
.material-groups .business-tile .icon-box {
  width: 36px;
  height: 36px;
}
.material-groups .business-tile .availability {
  font-size: 11px;
}
.material-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  background: linear-gradient(110deg, #ede4ff, #e4f8f4);
  border: 1px solid #e3ddef;
  border-radius: 20px;
  margin: 15px 0;
}
.material-summary h2 {
  margin: 0 0 5px;
}
.material-summary p {
  color: #5c6479;
  font-size: 13px;
}
.material-summary a {
  flex-shrink: 0;
  font-size: 12px;
}
dialog {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
dialog h2,
dialog p {
  overflow-wrap: anywhere;
}
.result-open {
  overflow: hidden;
}
.production-dialog {
  width: min(900px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 1px solid #e6e0ef;
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
}
.production-dialog[open] {
  display: flex;
  flex-direction: column;
}
.result-header {
  padding: 20px 24px;
  border-bottom: 1px solid #ece8f1;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-shrink: 0;
  background: #fbfaff;
}
.result-header > div {
  flex: 1;
  min-width: 0;
}
.result-header h2 {
  margin: 0;
  font-size: 22px;
  outline: none;
}
.result-header p {
  margin: 5px 0 0;
  font-size: 12px;
  color: #686278;
}
.result-header .eyebrow {
  font-size: 10px;
  margin: 0 0 8px;
}
.result-close {
  width: 44px;
  height: 44px;
  border: 1px solid #e8e1f0;
  background: #fff;
  color: #504960;
  border-radius: 12px;
  font-size: 26px;
  flex-shrink: 0;
}
.result-body {
  padding: 22px 24px;
  overflow: auto;
  min-height: 80px;
  overscroll-behavior: contain;
}
.result-body .card {
  margin-top: 0;
}
.result-body video,
.result-body .cloud-preview {
  max-height: 50dvh;
  object-fit: contain;
  width: 100%;
  display: block;
}
.result-body .actions {
  margin-bottom: 16px;
}
.result-body .progress {
  margin-top: 25px;
}
.result-footer {
  padding: 14px 24px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid #ece8f1;
  background: #fcfbfe;
  flex-shrink: 0;
}
.result-footer p {
  font-size: 11px;
  color: #706981;
  margin: 0;
}
.result-footer .actions {
  margin-top: 10px;
}
.result-footer .actions > * {
  font-size: 13px;
}
.result-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}
.result-status button {
  font-size: 12px;
  color: #7043bb;
  padding: 10px;
  background: #f3edfb;
  border-radius: 10px;
}
.result-fallback {
  font-size: 13px;
  color: #90631d;
  background: #fff6e5;
  padding: 16px;
  border-radius: 12px;
}
.result-media-error {
  font-size: 12px;
  color: #9b4c2a;
  padding: 12px;
  background: #fff4e9;
  border-radius: 10px;
}
.row > * {
  min-width: 0;
}
.actions > * {
  overflow-wrap: anywhere;
}
.checkline input {
  margin-top: 3px;
  min-height: 20px !important;
  padding: 0;
}
@media (min-width: 1050px) {
  body.production-page main,
  body.production-page .topbar {
    max-width: 1180px;
  }
  body.production-page .production-layout {
    grid-template-columns: minmax(0, 1fr) 285px;
  }
  body.production-page .production-aside {
    align-self: start;
  }
  body.production-page .business-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .production-tools a {
    flex-basis: 0;
  }
}
@media (max-width: 599px) {
  html {
    scrollbar-gutter: auto;
  }
  .production-heading {
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .production-heading h1 {
    font-size: 24px;
  }
  .production-heading .secondary {
    padding: 8px 10px;
    min-height: 44px;
  }
  .production-heading .eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .production-section {
    padding: 18px 16px;
  }
  .production-section legend {
    font-size: 16px;
  }
  .production-section .row {
    grid-template-columns: 1fr;
  }
  .production-submit {
    padding: 17px 16px;
    gap: 12px;
    position: sticky;
    bottom: calc(var(--mobile-tabbar-height) + env(safe-area-inset-bottom));
    z-index: 3;
    border-top: 1px solid #ece6f4;
    box-shadow: 0 -6px 18px #30245108;
  }
  .production-submit .primary {
    width: 100%;
    min-height: 50px;
  }
  .production-draft {
    margin: 10px 16px;
  }
  .production-error {
    margin: 12px 16px;
  }
  .production-tools {
    margin-right: 0;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .production-tools::-webkit-scrollbar {
    display: none;
  }
  .production-tools a {
    flex-basis: 132px;
    scroll-snap-align: start;
  }
  .production-aside .production-guide {
    display: none;
  }
  .material-summary {
    display: block;
    padding: 18px;
  }
  .material-summary a {
    margin-top: 10px;
  }
  .material-groups .business-tile {
    padding: 15px 12px;
  }
  .material-groups .business-tile .tile-heading {
    align-items: flex-start;
    gap: 8px;
  }
  .material-groups .business-tile h3 {
    font-size: 14px;
  }
  .material-groups .business-tile .icon-box {
    width: 28px;
    height: 28px;
  }
  .production-dialog {
    width: calc(100vw - 12px - env(safe-area-inset-left) - env(safe-area-inset-right));
    max-height: calc(var(--visible-height, 100dvh) - 12px - env(safe-area-inset-top)) !important;
    border-radius: 22px;
    overscroll-behavior: contain;
  }
  .result-header {
    padding: 15px;
    gap: 8px;
  }
  .result-header h2 {
    font-size: 19px;
  }
  .result-header p {
    line-height: 1.6;
  }
  .result-body {
    padding: 16px;
    min-height: 0;
  }
  .result-footer {
    padding: 12px 15px max(12px, env(safe-area-inset-bottom));
  }
  .result-footer .actions {
    gap: 8px;
  }
  .result-footer .actions > * {
    min-width: 0;
    padding: 10px 7px;
    font-size: 12px;
    flex-basis: 0;
  }
  .result-body .actions > * {
    min-width: 110px;
  }
  .result-body .cloud-preview,
  .result-body video {
    max-height: 40dvh;
  }
  .form input,
  .form textarea,
  .form select {
    font-size: 16px;
  }
  .fineprint {
    font-size: 11px;
  }
  .production-heading > div {
    min-width: 0;
    flex: 1 1 210px;
  }
  .production-section input[type='file'] {
    font-size: 14px;
  }
  .production-section input[type='file']::file-selector-button {
    min-height: 44px;
    padding: 11px 12px;
  }
  .production-section textarea {
    min-height: 176px;
    scroll-margin-bottom: 220px;
  }
  .production-section :is(input, select) {
    scroll-margin-bottom: 220px;
  }
  .selected-file-preview img,
  .selected-file-preview video {
    border-radius: 10px;
    height: auto;
    min-height: 130px;
    max-height: 260px;
  }
  .keyboard-open .production-submit {
    position: static;
    box-shadow: none;
  }
  .keyboard-open .production-section :is(input, select, textarea) {
    scroll-margin-bottom: 28px;
  }
  .result-status {
    flex-wrap: wrap;
  }
  .result-status button {
    min-height: 44px;
  }
  .cloud-job .list-row {
    padding: 0;
  }
  .production-recent button {
    min-height: 60px;
    line-height: 1.7;
  }
  .compute-recharge :is(button, a),
  .cr-payment-dialog button {
    min-height: 44px;
  }
  .compute-recharge .cr-heading {
    flex-wrap: wrap;
  }
  .compute-recharge .cr-orders article > div {
    min-width: 0;
    flex-basis: 100%;
  }
  .compute-recharge .cr-packages strong {
    font-size: clamp(18px, 5vw, 22px);
    overflow-wrap: anywhere;
  }
  .cr-payment-dialog [data-cr-close] {
    min-width: 44px;
    min-height: 44px;
  }
  .cr-payment-dialog .cr-payment-channels label {
    min-width: 0;
  }
  .cr-payment-dialog .cr-qr-area {
    min-height: 200px;
  }
  .cr-payment-dialog .cr-qr-area img {
    max-height: 40dvh;
    object-fit: contain;
  }
}
@media (max-height: 500px) {
  .production-dialog {
    max-height: calc(100dvh - 12px);
  }
  .result-header {
    padding: 10px 16px;
  }
  .result-header .eyebrow,
  .result-header p,
  .result-footer p {
    display: none;
  }
  .result-footer {
    padding: 7px 16px;
  }
  .result-footer .actions {
    margin-top: 0;
  }
  .result-body {
    padding: 12px 16px;
  }
  .production-submit {
    position: static;
  }
}
