/* Batch article creation page. */
.user-app:has(.batch-page-head) {
  background: #f6f8fc;
}

.user-app:has(.batch-page-head) .u-main {
  max-width: 1180px;
  padding-top: 26px;
}

.user-app:has(.batch-page-head) .batch-page-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 252px;
  align-items: center;
  gap: 24px;
  min-height: 226px;
  margin-bottom: 18px;
  padding: 26px 28px;
  overflow: hidden;
  border: 1px solid rgba(212, 180, 112, 0.42);
  border-radius: 16px;
  color: #f8fafc;
  background:
    linear-gradient(90deg, transparent 0 72%, rgba(240, 220, 174, 0.06) 72% 72.4%, transparent 72.4%),
    linear-gradient(rgba(136, 177, 218, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(136, 177, 218, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 12% 0%, rgba(45, 120, 182, 0.24), transparent 34%),
    linear-gradient(135deg, #08111f 0%, #102b4d 58%, #0b1d35 100%);
  background-size: auto, 30px 30px, 30px 30px, auto, auto;
  box-shadow: 0 20px 42px rgba(7, 18, 34, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.user-app:has(.batch-page-head) .batch-page-head::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, #d9b86e, #f0dcae 46%, rgba(240, 220, 174, 0.1));
}

.user-app:has(.batch-page-head) .batch-page-head::after {
  content: "";
  position: absolute;
  right: 252px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(214, 230, 246, 0.16), transparent);
}

.user-app:has(.batch-page-head) .batch-poster-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.user-app:has(.batch-page-head) .batch-poster-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.user-app:has(.batch-page-head) .batch-page-kicker {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid rgba(240, 220, 174, 0.25);
  border-radius: 999px;
  color: #f0dcae;
  background: rgba(240, 220, 174, 0.08);
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0.2px;
}

.user-app:has(.batch-page-head) .batch-poster-code {
  color: rgba(196, 216, 237, 0.48);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.user-app:has(.batch-page-head) .batch-page-head h2 {
  max-width: 670px;
  margin: 0;
  color: #f8fafc;
  font-size: clamp(27px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.4px;
}

.user-app:has(.batch-page-head) .batch-page-head h2 em {
  color: #f0dcae;
  font-style: normal;
}

.user-app:has(.batch-page-head) .batch-title-main {
  white-space: nowrap;
}

.user-app:has(.batch-page-head) .batch-page-head p {
  max-width: 650px;
  margin-top: 9px;
  color: rgba(222, 232, 244, 0.68);
  font-size: 12.5px;
  line-height: 1.7;
}

.user-app:has(.batch-page-head) .batch-poster-points {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.user-app:has(.batch-page-head) .batch-poster-points span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid rgba(207, 222, 239, 0.13);
  border-radius: 999px;
  color: rgba(228, 237, 247, 0.78);
  background: rgba(255, 255, 255, 0.045);
  font-size: 10.5px;
  font-weight: 750;
  white-space: nowrap;
}

.user-app:has(.batch-page-head) .batch-poster-points i {
  color: #a9eadf;
}

.user-app:has(.batch-page-head) .batch-poster-visual {
  position: relative;
  z-index: 1;
  width: 224px;
  height: 166px;
  justify-self: center;
}

.user-app:has(.batch-page-head) .batch-poster-sheet {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 136px;
  height: 150px;
  padding: 17px 15px;
  border: 1px solid rgba(214, 229, 244, 0.18);
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(235, 243, 253, 0.17), rgba(117, 151, 184, 0.07));
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform-origin: center;
}

.user-app:has(.batch-page-head) .batch-poster-sheet b {
  display: block;
  color: rgba(232, 241, 250, 0.62);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 11px;
  letter-spacing: 0.8px;
}

.user-app:has(.batch-page-head) .batch-poster-sheet i {
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 13px;
  border-radius: 999px;
  background: rgba(215, 229, 244, 0.2);
}

.user-app:has(.batch-page-head) .batch-poster-sheet i:nth-of-type(2) {
  width: 76%;
  margin-top: 7px;
}

.user-app:has(.batch-page-head) .batch-poster-sheet i:nth-of-type(3) {
  width: 88%;
  margin-top: 7px;
}

.user-app:has(.batch-page-head) .batch-poster-sheet-back {
  transform: translate(-50%, -50%) translate(38px, -5px) rotate(9deg);
  opacity: 0.48;
}

.user-app:has(.batch-page-head) .batch-poster-sheet-middle {
  transform: translate(-50%, -50%) translate(18px, 0) rotate(4deg);
  opacity: 0.7;
}

.user-app:has(.batch-page-head) .batch-poster-sheet-front {
  border-color: rgba(240, 220, 174, 0.42);
  background:
    linear-gradient(145deg, rgba(240, 220, 174, 0.14), transparent 42%),
    linear-gradient(160deg, #17395d, #0b1c32);
  transform: translate(-50%, -50%) translate(-5px, 3px) rotate(-3deg);
}

.user-app:has(.batch-page-head) .batch-poster-sheet-front b {
  color: #f0dcae;
}

.user-app:has(.batch-page-head) .batch-poster-sheet-front i {
  background: rgba(240, 220, 174, 0.24);
}

.user-app:has(.batch-page-head) .batch-poster-sheet-front em {
  position: absolute;
  right: 13px;
  bottom: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(169, 234, 223, 0.32);
  border-radius: 9px;
  color: #a9eadf;
  background: rgba(33, 115, 106, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-family: Georgia, serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.4px;
}

.user-app:has(.batch-page-head) .batch-poster-tools {
  position: absolute;
  top: 20px;
  right: 22px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-app:has(.batch-page-head) .batch-poster-seal {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid rgba(103, 214, 196, 0.22);
  border-radius: 999px;
  color: #a9eadf;
  background: rgba(28, 116, 108, 0.16);
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.user-app:has(.batch-page-head) .batch-poster-tools .btn {
  min-height: 32px;
  padding: 0 11px;
  border-color: rgba(226, 235, 246, 0.24);
  color: #f4f7fb;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.user-app:has(.batch-page-head) .batch-poster-tools .btn:hover {
  border-color: rgba(240, 220, 174, 0.44);
  color: #f0dcae;
  background: rgba(240, 220, 174, 0.1);
}

.user-app:has(.batch-page-head) .batch-layout {
  grid-template-columns: minmax(350px, 0.88fr) minmax(0, 1.12fr);
  gap: 18px;
}

.user-app:has(.batch-page-head) .batch-form-card {
  overflow: hidden;
  padding: 0;
  border-color: #dce4ee;
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(19, 45, 89, 0.06);
}

.user-app:has(.batch-page-head) .batch-form-head {
  align-items: center;
  margin: 0;
  padding: 19px 22px;
  border-bottom: 1px solid #e7edf5;
  background: #fff;
}

.user-app:has(.batch-page-head) .batch-form-head b {
  color: #0a1d3b;
  font-size: 16px;
  font-weight: 900;
}

.user-app:has(.batch-page-head) .batch-form-head span {
  color: #66758e;
}

.user-app:has(.batch-page-head) .batch-form-section {
  padding: 20px 22px 4px;
  border-bottom: 1px solid #e7edf5;
  background: #fff;
}

.user-app:has(.batch-page-head) .batch-form-section:last-of-type {
  padding-bottom: 18px;
}

.user-app:has(.batch-page-head) .batch-form-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.user-app:has(.batch-page-head) .batch-form-section-head > div {
  flex: 1;
  min-width: 0;
}

.user-app:has(.batch-page-head) .batch-source-clear {
  flex: 0 0 auto;
  margin-left: auto;
}

.user-app:has(.batch-page-head) .batch-form-section-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid #dbe4ff;
  border-radius: 8px;
  color: #2949d8;
  background: #f3f6ff;
}

.user-app:has(.batch-page-head) .batch-form-section-head b,
.user-app:has(.batch-page-head) .batch-form-section-head small {
  display: block;
}

.user-app:has(.batch-page-head) .batch-form-section-head b {
  color: #0a1d3b;
  font-size: 14px;
  font-weight: 850;
}

.user-app:has(.batch-page-head) .batch-form-section-head small {
  margin-top: 2px;
  color: #66758e;
  font-size: 10.5px;
}

.user-app:has(.batch-page-head) .field label {
  color: #344764;
  font-weight: 750;
}

.user-app:has(.batch-page-head) .batch-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.user-app:has(.batch-page-head) .batch-link-row .btn {
  min-width: 110px;
  justify-content: center;
}

.user-app:has(.batch-page-head) .batch-link-result {
  min-height: 34px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #e7edf5;
  border-radius: 7px;
  background: #f8fafc;
  color: #66758e;
}

.user-app:has(.batch-page-head) .batch-link-summary {
  display: flex;
  align-items: center;
  gap: 7px;
}

.user-app:has(.batch-page-head) .batch-link-summary .badge {
  flex: 0 0 auto;
  white-space: nowrap;
}

.user-app:has(.batch-page-head) .batch-link-result b {
  min-width: 0;
  overflow: hidden;
  color: #0a1d3b;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-app:has(.batch-page-head) .batch-link-result small {
  flex-shrink: 0;
  color: #66758e;
  font-size: 10.5px;
}

.user-app:has(.batch-page-head) .batch-link-image-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #e4eaf3;
  color: #53627b;
  font-size: 11px;
  font-weight: 800;
}

.user-app:has(.batch-page-head) .batch-link-image-head span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.user-app:has(.batch-page-head) .batch-link-image-head em {
  color: #7a879b;
  font-style: normal;
  font-weight: 700;
}

.user-app:has(.batch-page-head) .batch-link-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 7px;
  max-height: 220px;
  margin-top: 8px;
  padding-right: 2px;
  overflow-y: auto;
}

.user-app:has(.batch-page-head) .batch-link-image-item {
  position: relative;
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dfe6f0;
  border-radius: 7px;
  background: #fff;
}

.user-app:has(.batch-page-head) .batch-link-image-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.user-app:has(.batch-page-head) .batch-link-image-item.removed img {
  opacity: 0.28;
  filter: grayscale(1);
}

.user-app:has(.batch-page-head) .batch-link-image-item figcaption {
  position: absolute;
  top: 5px;
  left: 5px;
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(10, 29, 59, 0.74);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.user-app:has(.batch-page-head) .batch-link-image-toggle {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: rgba(10, 29, 59, 0.78);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.user-app:has(.batch-page-head) .batch-link-image-item.removed .batch-link-image-toggle {
  background: #2949d8;
}

.user-app:has(.batch-page-head) .batch-link-image-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 7px;
}

.user-app:has(.batch-page-head) .batch-link-no-images {
  margin: 9px 0 2px;
  color: #7a879b;
  font-size: 11px;
}

.user-app:has(.batch-page-head) .batch-count-step {
  border-color: #dce4ee;
  color: #53627b;
}

.user-app:has(.batch-page-head) .batch-count-step:hover:not(:disabled) {
  border-color: #bccbe3;
  color: #1f3fbd;
  background: #f3f6ff;
}

.user-app:has(.batch-page-head) .batch-count-input {
  height: 48px;
  border-color: #dce4ee;
  box-shadow: inset 0 1px 0 rgba(19, 45, 89, 0.02);
}

.user-app:has(.batch-page-head) .batch-count-input:focus-within {
  border-color: #8fa8e8;
  box-shadow: 0 0 0 3px rgba(41, 73, 216, 0.08);
}

.user-app:has(.batch-page-head) .batch-count-input .input {
  color: #0a1d3b;
}

.user-app:has(.batch-page-head) .batch-count-quick button {
  border-radius: 6px;
  color: #53627b;
  background: #fff;
}

.user-app:has(.batch-page-head) .batch-count-quick button:hover {
  border-color: #bccbe3;
  color: #1f3fbd;
  background: #f3f6ff;
}

.user-app:has(.batch-page-head) .batch-count-quick button.active {
  border-color: #8fa8e8;
  color: #1f3fbd;
  background: #eef3ff;
}

.user-app:has(.batch-page-head) .batch-generate-btn {
  width: calc(100% - 44px);
  min-height: 50px;
  margin: 20px 22px 22px;
  border-radius: 7px;
  background: #2949d8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 24px rgba(41, 73, 216, 0.2);
}

.user-app:has(.batch-page-head) .batch-generate-btn:hover {
  background: #1f3fbd;
}

.user-app:has(.batch-page-head) .batch-results-panel {
  position: sticky;
  top: 88px;
}

.user-app:has(.batch-page-head) .batch-empty {
  min-height: 430px;
  border-color: #d5dfec;
  border-radius: 8px;
  background:
    linear-gradient(rgba(41, 73, 216, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 73, 216, 0.03) 1px, transparent 1px),
    #fff;
  background-size: 36px 36px;
  box-shadow: 0 14px 38px rgba(19, 45, 89, 0.045);
}

.user-app:has(.batch-page-head) .batch-empty > span {
  width: 58px;
  height: 58px;
  color: #2949d8;
  border: 1px solid #dbe4ff;
  background: #f3f6ff;
  box-shadow: none;
}

.user-app:has(.batch-page-head) .batch-empty b {
  color: #0a1d3b;
  font-size: 17px;
  font-weight: 900;
}

.user-app:has(.batch-page-head) .batch-progress {
  border-color: #dce4ee;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(19, 45, 89, 0.045);
}

.user-app:has(.batch-page-head) .batch-progress-track i {
  background: #2949d8;
}

@media (max-width: 860px) {
  .user-app:has(.batch-page-head) .u-main {
    padding: 18px 16px 92px;
  }

  .user-app:has(.batch-page-head) .batch-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .user-app:has(.batch-page-head) .batch-results-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .user-app:has(.batch-page-head) .batch-page-head {
    grid-template-columns: minmax(0, 1fr);
    min-height: 246px;
    padding: 22px 20px;
  }

  .user-app:has(.batch-page-head) .batch-page-head::after {
    display: none;
  }

  .user-app:has(.batch-page-head) .batch-poster-copy {
    max-width: calc(100% - 26px);
  }

  .user-app:has(.batch-page-head) .batch-poster-visual {
    position: absolute;
    right: -18px;
    top: 48px;
    width: 190px;
    height: 170px;
    opacity: 0.2;
    pointer-events: none;
    transform: scale(0.92);
    transform-origin: right center;
  }

  .user-app:has(.batch-page-head) .batch-poster-tools {
    top: 16px;
    right: 16px;
  }
}

@media (max-width: 560px) {
  .user-app:has(.batch-page-head) .batch-page-head {
    min-height: 254px;
    padding: 18px 16px;
  }

  .user-app:has(.batch-page-head) .batch-poster-topline {
    margin-bottom: 9px;
  }

  .user-app:has(.batch-page-head) .batch-poster-code {
    display: none;
  }

  .user-app:has(.batch-page-head) .batch-page-head h2 {
    max-width: 310px;
    font-size: 23px;
  }

  .user-app:has(.batch-page-head) .batch-page-head p {
    max-width: 330px;
    font-size: 11.5px;
    line-height: 1.6;
  }

  .user-app:has(.batch-page-head) .batch-poster-points {
    gap: 6px;
    margin-top: 12px;
  }

  .user-app:has(.batch-page-head) .batch-poster-points span {
    min-height: 26px;
    padding: 0 8px;
    font-size: 9.5px;
  }

  .user-app:has(.batch-page-head) .batch-poster-visual {
    right: -65px;
    top: 60px;
    opacity: 0.14;
  }

  .user-app:has(.batch-page-head) .batch-poster-seal {
    display: none;
  }

  .user-app:has(.batch-page-head) .batch-poster-tools .btn {
    min-height: 30px;
    padding: 0 9px;
    font-size: 10.5px;
  }

  .user-app:has(.batch-page-head) .batch-form-head,
  .user-app:has(.batch-page-head) .batch-form-section {
    padding-left: 17px;
    padding-right: 17px;
  }

  .user-app:has(.batch-page-head) .batch-link-row {
    grid-template-columns: 1fr;
  }

  .user-app:has(.batch-page-head) .batch-link-row .btn {
    width: 100%;
  }

  .user-app:has(.batch-page-head) .batch-generate-btn {
    width: calc(100% - 34px);
    margin-left: 17px;
    margin-right: 17px;
  }

  .user-app:has(.batch-page-head) .batch-empty {
    min-height: 310px;
  }
}

@media (max-width: 400px) {
  .user-app:has(.batch-page-head) .batch-poster-copy {
    max-width: 100%;
  }

  .user-app:has(.batch-page-head) .batch-title-lead {
    display: block;
  }

  .user-app:has(.batch-page-head) .batch-title-main {
    display: block;
  }

  .user-app:has(.batch-page-head) .batch-page-head h2 {
    max-width: 300px;
  }

  .user-app:has(.batch-page-head) .batch-page-head p {
    max-width: 286px;
  }

  .user-app:has(.batch-page-head) .batch-poster-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, auto));
    justify-content: start;
  }

  .user-app:has(.batch-page-head) .batch-poster-points span:last-child {
    grid-column: 1 / -1;
  }
}
