.batch-page {
  min-width: 1080px;
  background: #fff;
  color: #333840;
  padding-bottom: 72px;
}

.batch-eyebrow {
  margin: 0 0 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
}

.batch-eyebrow { color: #aa2d00; }

.batch-workspace {
  padding: 34px 0 72px;
  border-bottom: 1px solid #e0e2e6;
  background: #f8fafc;
}

.batch-workspace-head { max-width: 1180px; margin-bottom: 22px; }
.batch-workspace-head .batch-eyebrow { margin-bottom: 7px; }
.batch-workspace-head h1 { margin: 0 0 8px; color: #181d26; font-size: 32px; font-weight: 500; line-height: 1.2; }
.batch-workspace-head > p:last-child { margin: 0; color: #41454d; font-size: 16px; line-height: 1.6; }

.batch-layout {
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, .9fr);
  gap: 24px;
}

.batch-panel {
  padding: 40px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fff;
}

.batch-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.batch-panel h2,
.batch-aside h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 400;
}

.batch-panel h2 { color: #181d26; }
.batch-panel-head p { margin: 0; color: #41454d; }
.batch-account { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; color: #41454d; font-size: 13px; }
.batch-share-label { display: flex; align-items: center; gap: 10px; }
.batch-platform-icons { display: inline-flex; align-items: center; gap: 8px; }
.batch-platform-icons img { display: block; object-fit: contain; }
.batch-platform-icons img:last-child { border-radius: 50%; }
.batch-form-guide { margin: 0 0 22px; color: #41454d; font-size: 14px; }
.batch-form-guide a { color: #254cce; font-weight: 600; text-underline-offset: 3px; }

.batch-account button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #9297a0;
  border-radius: 6px;
  background: #fff;
  color: #181d26;
  font-size: 13px;
  cursor: pointer;
}

.batch-account button[hidden] { display: none; }
#batchForm { display: flex; flex-direction: column; }
#batchForm > label:not(.batch-checkbox) { margin: 0 0 8px; color: #181d26; font-size: 16px; font-weight: 500; }

#batchForm > input,
.batch-share-input > input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin-bottom: 24px;
  padding: 12px 16px;
  border: 1px solid #9297a0;
  border-radius: 6px;
  background: #fff;
  color: #181d26;
  font-size: 14px;
}

#batchForm > input:focus { outline: 2px solid #181d26; outline-offset: 2px; }
.batch-share-input { display: flex; gap: 10px; align-items: stretch; margin-bottom: 6px; }
.batch-share-input > input { flex: 1; margin-bottom: 0; }
.batch-share-input > input:focus { outline: 2px solid #181d26; outline-offset: 2px; }
.batch-share-input > button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; flex: 0 0 86px; padding: 10px 14px; border: 1px solid #9297a0; border-radius: 6px; background: #f8fafc; color: #253149; font-size: 14px; cursor: pointer; }
.batch-share-input > button:hover { background: #edf2fc; border-color: #5869d8; }
.batch-share-input > button:disabled { opacity: .6; cursor: wait; }
#batchForm input[aria-invalid="true"] { border-color: #b42318; background: #fff9f8; }
#batchForm input[aria-invalid="true"]:focus { outline-color: #b42318; }
#batchForm > #recipientEmail { margin-bottom: 6px; }
.batch-field-hint { margin: 0 0 20px; color: #626b78; font-size: 13px; }
.batch-field-error { margin: -12px 0 18px; color: #b42318; font-size: 13px; }
.batch-field-error[hidden] { display: none; }
.batch-checkbox { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; color: #333840; cursor: pointer; }
.batch-checkbox input { width: 18px; height: 18px; accent-color: #181d26; }

.batch-submit,
.batch-modal-action {
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 12px;
  background: #181d26;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.batch-submit:active,
.batch-modal-action:active { background: #0d1218; }
.batch-submit:disabled,
.batch-modal-action:disabled { opacity: .6; cursor: wait; }
.batch-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.batch-submit.is-loading::before { content: ''; width: 17px; height: 17px; flex: 0 0 17px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: batch-login-spin .9s linear infinite; }
.batch-message { min-height: 22px; margin: 18px 0 0; color: #41454d; }
.batch-message.error { color: #aa2d00; }
.batch-message.success { color: #006400; }
.batch-plugin-tip { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 14px; margin-top: 20px; padding: 17px; border: 1px solid #ded7f5; border-radius: 8px; background: #f7f4ff; }
.batch-plugin-tip > img { display: block; width: 44px; height: 44px; object-fit: contain; }
.batch-plugin-tip strong { display: block; margin-bottom: 5px; color: #33264f; font-size: 14px; font-weight: 600; }
.batch-plugin-tip p { margin: 0; color: #514664; font-size: 14px; line-height: 1.65; }
.batch-plugin-tip a { display: inline-block; margin-top: 8px; color: #603ab6; font-size: 14px; font-weight: 600; text-underline-offset: 3px; }

.batch-aside {
  padding: 48px;
  border-radius: 12px;
  background: #e8efff;
  color: #202e4c;
}

.batch-aside h2 { color: #202e4c; }
.batch-aside ul { margin: 22px 0 26px; padding: 0; list-style: none; }
.batch-aside li { padding: 16px 0; border-bottom: 1px solid #c3d0eb; line-height: 1.6; }
.batch-aside li strong { display: block; font-size: 22px; font-weight: 400; }
.batch-aside p { margin: 0; color: #394968; line-height: 1.75; }

.batch-history {
  max-width: 1180px;
  margin-top: 24px;
  padding: 36px 40px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fff;
}

.batch-history-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.batch-history-head .batch-eyebrow { margin-bottom: 9px; }
.batch-history-head h2 { margin: 0 0 7px; color: #181d26; font-size: 28px; font-weight: 400; }
.batch-history-head p:last-child { margin: 0; color: #41454d; }
.batch-history-head button,
.batch-history-pagination button,
.batch-history-item button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #9297a0;
  border-radius: 6px;
  background: #fff;
  color: #181d26;
  font-size: 14px;
  cursor: pointer;
}
.batch-history-head button:disabled,
.batch-history-pagination button:disabled,
.batch-history-item button:disabled { opacity: .55; cursor: wait; }
#historyMessage { margin: 24px 0 0; color: #41454d; }
#historyMessage.error { color: #aa2d00; }
.batch-history-list { margin-top: 20px; border-top: 1px solid #ddd; }
.batch-history-list:empty { display: none; }
.batch-history-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px 22px; align-items: center; padding: 20px 0; border-bottom: 1px solid #ddd; }
.batch-history-item h3 { margin: 0 0 6px; color: #181d26; font-size: 17px; font-weight: 500; }
.batch-history-item p { margin: 4px 0; color: #41454d; overflow-wrap: anywhere; }
.batch-history-item .batch-history-status { display: inline-block; max-width: 100%; padding: 5px 10px; border-radius: 6px; background: #f1f3f6; color: #5d6675; font-size: 14px; font-weight: 500; line-height: 1.6; }
.batch-history-status::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.batch-history-item .batch-history-status[data-state="queued"] { background: #fff4dc; color: #8a4b06; }
.batch-history-item .batch-history-status[data-state="running"] { background: #eaf1ff; color: #1e4fbd; }
.batch-history-item .batch-history-status[data-state="succeeded"] { background: #e9f7ee; color: #146438; }
.batch-history-item .batch-history-status[data-state="failed"],
.batch-history-item .batch-history-status[data-state="error"] { background: #fff0ee; color: #b42318; }
.batch-history-item .batch-history-download-error { color: #b42318; font-size: 14px; }
.batch-history-actions { display: flex; gap: 8px; align-items: center; }
.batch-history-item .batch-download { background: #181d26; color: #fff; border-color: #181d26; }
.batch-history { scroll-margin-top: 84px; }
.batch-history-pagination { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 24px; }
.batch-history-pagination[hidden] { display: none; }
.batch-history-pagination p { margin: 0; color: #626b78; font-size: 14px; font-variant-numeric: tabular-nums; }

.batch-guide, .batch-faq, .batch-reference { max-width: 1180px; padding-top: 76px; }
.batch-guide .batch-eyebrow, .batch-faq .batch-eyebrow, .batch-reference .batch-eyebrow { margin-bottom: 10px; }
.batch-guide h2, .batch-faq h2, .batch-reference h2 { margin: 0 0 14px; color: #181d26; font-size: 32px; font-weight: 500; line-height: 1.25; }
.batch-reference-intro { max-width: 920px; margin: 0 0 26px; color: #41454d; font-size: 16px; line-height: 1.75; }
.batch-table-wrap { overflow: hidden; border: 1px solid #dce1eb; border-radius: 12px; }
.batch-reference-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
.batch-reference-table caption { padding: 14px 24px; background: #f8fafc; color: #626b78; font-size: 13px; text-align: left; }
.batch-reference-table thead { background: #edf2fc; color: #253149; }
.batch-reference-table th, .batch-reference-table td { padding: 22px 24px; border-top: 1px solid #dce1eb; vertical-align: top; line-height: 1.7; }
.batch-reference-table th:first-child { width: 22%; }
.batch-reference-table th { font-weight: 600; }
.batch-reference-table tbody th { color: #181d26; }
.batch-reference-table tbody td { color: #41454d; }
.batch-reference-table tbody th span { display: block; margin-top: 4px; color: #626b78; font-size: 13px; font-weight: 400; }
.batch-reference-table a { display: block; margin-top: 8px; color: #254cce; font-weight: 500; text-underline-offset: 3px; }
.batch-reference-table code { padding: 2px 5px; border-radius: 4px; background: #edf1f9; color: #243861; font-size: 13px; overflow-wrap: anywhere; }
.batch-reference-note { margin: 16px 0 0; color: #626b78; font-size: 14px; line-height: 1.7; }
.batch-guide-intro { max-width: 830px; margin: 0 0 30px; color: #41454d; font-size: 16px; line-height: 1.7; }
.batch-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.batch-steps figure { min-width: 0; margin: 0; padding: 20px; border: 1px solid #dce1eb; border-radius: 12px; background: #fff; }
.batch-step-title { display: flex; align-items: baseline; gap: 12px; min-height: 52px; }
.batch-step-title span { color: #375fec; font-size: 15px; font-weight: 700; }
.batch-step-title h3 { margin: 0; color: #181d26; font-size: 18px; font-weight: 500; }
.batch-steps img { display: block; width: 100%; height: auto; border: 1px solid #edf0f5; border-radius: 6px; }
.batch-steps figcaption { margin-top: 13px; color: #41454d; line-height: 1.65; }
.batch-guide-finish { margin-top: 26px; padding: 24px 30px; border-left: 4px solid #375fec; background: #f2f5ff; }
.batch-guide-finish h3 { margin: 0 0 9px; color: #181d26; font-size: 19px; }
.batch-guide-finish p { margin: 7px 0; line-height: 1.7; }
.batch-guide a, .batch-faq a { color: #254cce; text-underline-offset: 3px; }
.batch-faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.batch-faq-list article { padding: 26px 28px; border: 1px solid #dce1eb; border-radius: 10px; background: #fff; }
.batch-faq-list h3 { margin: 0 0 11px; color: #181d26; font-size: 19px; font-weight: 500; line-height: 1.4; }
.batch-faq-list p { margin: 0; color: #41454d; line-height: 1.75; }
.batch-faq-more { margin: 24px 0 0; color: #41454d; line-height: 1.7; }
.batch-guide code, .batch-faq code { padding: 1px 4px; border-radius: 4px; background: #edf1f9; color: #243861; font-size: .92em; }

.batch-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; }
.batch-modal.visible { display: flex; }
.batch-backdrop { position: absolute; inset: 0; background: rgba(24,29,38,.62); }
.batch-modal-card { position: relative; width: min(430px,100%); overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.22); }
.batch-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid #ddd; }
.batch-modal-head h2 { margin: 0; color: #181d26; font-size: 20px; font-weight: 400; }
.batch-modal-head button { width: 36px; height: 36px; border: 1px solid #ddd; border-radius: 50%; background: #fff; font-size: 23px; cursor: pointer; }
.batch-modal-body { padding: 24px; text-align: center; }
.batch-qr { display: grid; place-items: center; width: 226px; height: 226px; margin: 0 auto 16px; overflow: hidden; border: 1px solid #ddd; border-radius: 10px; background: #f8fafc; }
.batch-qr img { width: 100%; height: 100%; object-fit: contain; }
.batch-modal-body p { margin: 10px 0; color: #41454d; }
.batch-modal-body .error { color: #aa2d00; }
.batch-modal-action { width: 100%; margin-top: 14px; }

#loginModal .batch-backdrop { background: rgba(19, 26, 39, .56); backdrop-filter: blur(4px); }
#loginModal .batch-login-card { display: grid; grid-template-columns: 300px minmax(0, 1fr); width: min(760px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 16px; box-shadow: 0 28px 90px rgba(17, 24, 39, .26); }
.batch-login-close { position: absolute; top: 15px; right: 15px; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid #e0e2e6; border-radius: 8px; background: #fff; color: #626b78; cursor: pointer; }
.batch-login-close:hover { background: #f3f5f8; color: #181d26; }
.batch-login-about { display: flex; flex-direction: column; gap: 30px; padding: 34px 30px 28px; background: #181d26; color: #fff; }
.batch-login-brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; }
.batch-login-brand > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #fff; }
.batch-login-brand img { display: block; object-fit: contain; }
.batch-login-kicker { margin: 0 0 14px; color: #b8c8fa; font-size: 12px; letter-spacing: .08em; }
.batch-login-about h3 { margin: 0 0 15px; color: #fff; font-size: 29px; font-weight: 500; line-height: 1.35; }
.batch-login-description { margin: 0; color: #c7cdd8; font-size: 14px; line-height: 1.8; }
.batch-login-about ul { display: grid; gap: 15px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.batch-login-about li { display: flex; gap: 9px; align-items: baseline; line-height: 1.6; }
.batch-login-about li::before { content: '✓'; color: #a8d8c4; font-weight: 600; }
.batch-login-vip-note { margin: auto 0 0; padding-top: 20px; border-top: 1px solid #39404d; color: #aeb7c6; font-size: 12px; line-height: 1.8; }
.batch-login-main { padding: 43px 36px 25px; text-align: center; }
.batch-login-main h2 { margin: 0 0 10px; color: #181d26; font-size: 25px; font-weight: 500; line-height: 1.3; }
.batch-login-intro { margin: 0 0 23px; color: #626b78; font-size: 13px; line-height: 1.6; }
.batch-login-qr { position: relative; width: 232px; height: 232px; margin: 0 auto; padding: 12px; border: 1px solid #dce1eb; border-radius: 12px; background: #fff; }
.batch-login-qr > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.batch-login-qr > img[hidden], .batch-login-qr-cover[hidden] { display: none; }
.batch-login-qr-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; border-radius: 11px; background: rgba(248, 250, 252, .96); color: #626b78; font-size: 14px; }
.batch-login-spinner { width: 30px; height: 30px; border: 3px solid #e0e6f1; border-top-color: #5869d8; border-radius: 50%; animation: batch-login-spin .9s linear infinite; }
.batch-login-refresh-symbol { display: none; color: #aa2d00; font-size: 34px; line-height: 1; }
#loginModal[data-qr-state="expired"] #loginQr { filter: blur(3px); opacity: .3; }
#loginModal[data-qr-state="expired"] .batch-login-spinner, #loginModal[data-qr-state="error"] .batch-login-spinner { display: none; }
#loginModal[data-qr-state="expired"] .batch-login-refresh-symbol, #loginModal[data-qr-state="error"] .batch-login-refresh-symbol { display: block; }
.batch-login-status { min-height: 62px; margin-top: 16px; }
#loginMessage { margin: 0; color: #41454d; font-size: 13px; line-height: 1.6; }
#loginMessage.error { color: #aa2d00; }
#loginModal[data-qr-state="ready"] #loginMessage::before, #loginModal[data-qr-state="success"] #loginMessage::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #24804b; vertical-align: 1px; }
#loginCountdown { min-height: 20px; margin: 5px 0 0; color: #7a8391; font-size: 12px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.batch-login-refresh { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 14px; border: 1px solid #dce1eb; border-radius: 7px; background: #fff; color: #333840; font-size: 13px; cursor: pointer; }
.batch-login-refresh:hover { border-color: #9297a0; background: #f8fafc; }
.batch-login-refresh:disabled { color: #9297a0; cursor: wait; background: #f8fafc; border-color: #e0e2e6; }
.batch-login-close:focus-visible, .batch-login-refresh:focus-visible { outline: 2px solid #5869d8; outline-offset: 3px; }
.batch-login-legal { display: flex; justify-content: center; gap: 10px; margin: 22px 0 0; color: #9297a0; font-size: 12px; }
.batch-login-legal a { color: #7a8391; text-decoration: none; }
.batch-login-legal a:hover { color: #333840; text-decoration: underline; }
@keyframes batch-login-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .batch-login-spinner, .batch-submit.is-loading::before { animation: none; } }

