.qr-batch-workbench { margin: 22px 0 26px; padding: 28px; border: 1px solid #ddd7ce; border-radius: 24px; background: rgba(255, 254, 250, .9); box-shadow: 0 20px 55px rgba(57, 51, 43, .06); }
.qr-batch-workbench [hidden] { display: none !important; }
.qr-batch-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.qr-batch-heading > div:first-child { display: grid; gap: 6px; }
.qr-batch-heading span { color: #c84d2d; font: 800 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.qr-batch-heading h2 { margin: 0; font-size: clamp(25px, 3vw, 38px); letter-spacing: -.045em; }
.qr-batch-heading p { max-width: 680px; margin: 0; color: #746e66; font-size: 11px; line-height: 1.7; }
.qr-batch-private { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 8px 11px; color: #35745e; background: #edf5f1; font-size: 9px; font-weight: 800; }
.qr-batch-private::before { width: 7px; height: 7px; border-radius: 50%; background: #4fa982; content: ''; }
.qr-batch-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 18px; align-items: stretch; }
.qr-batch-input-card, .qr-batch-preview-card { min-width: 0; border: 1px solid #e2ddd4; border-radius: 19px; padding: 21px; background: #fffefa; }
.qr-batch-stage-heading { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 15px; }
.qr-batch-stage-heading > span { color: #c84d2d; font: 900 16px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0; }
.qr-batch-stage-heading > div { display: grid; gap: 3px; }
.qr-batch-stage-heading strong { font-size: 14px; }
.qr-batch-stage-heading small { color: #918a82; font-size: 9px; line-height: 1.5; }
.qr-batch-source-label { display: grid; gap: 7px; color: #5f5a53; font-size: 9px; font-weight: 800; }
.qr-batch-source-label > span { display: flex; justify-content: space-between; gap: 12px; }
#qrBatchCount { color: #9a938b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
#qrBatchSource { width: 100%; min-height: 190px; resize: vertical; border: 1px solid #d7d1c8; border-radius: 13px; outline: 0; padding: 13px 14px; color: #302e2b; background: #fff; font: 10px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; }
#qrBatchSource:focus { border-color: #6589af; box-shadow: 0 0 0 4px rgba(101, 137, 175, .09); }
.qr-batch-file-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 15px; color: #8b847c; font-size: 9px; line-height: 1.5; }
.qr-batch-file-label { flex: 0 0 auto; position: relative; overflow: hidden; border: 1px solid #d6d0c7; border-radius: 8px; padding: 8px 10px; color: #655f57; background: #f6f3ed; font-weight: 800; cursor: pointer; }
.qr-batch-file-label input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.qr-batch-settings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-top: 1px solid #ebe6df; padding-top: 14px; }
.qr-batch-settings label { min-width: 0; display: grid; gap: 5px; color: #7e776f; font-size: 8px; font-weight: 800; }
.qr-batch-settings select, .qr-batch-settings input[type="color"] { width: 100%; height: 38px; border: 1px solid #d8d2c9; border-radius: 8px; padding: 4px 7px; color: #4f4a44; background: #f8f5ef; }
.qr-batch-actions { display: grid; grid-template-columns: 1.1fr 1.35fr .7fr .7fr; gap: 7px; margin-top: 13px; }
.qr-batch-actions button { min-height: 42px; border: 1px solid #d6d0c7; border-radius: 9px; color: #655f57; background: #f5f2ec; font-size: 9px; font-weight: 850; cursor: pointer; }
.qr-batch-actions button:disabled { cursor: progress; opacity: .55; }
.qr-batch-actions .primary-action { border-color: #292725; color: #fff; background: #292725; }
.qr-batch-actions .export-action { border-color: #c84d2d; color: #fff; background: #c84d2d; }
.qr-batch-preview-card { display: flex; min-height: 100%; flex-direction: column; }
.qr-batch-preview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.qr-batch-preview-grid article { width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; border: 1px solid #e2ddd4; border-radius: 11px; padding: 7px; background: #f8f5ef; }
.qr-batch-preview-grid canvas { width: 100% !important; max-width: 100%; min-width: 0; height: auto !important; aspect-ratio: 1; display: block; border-radius: 6px; background: #fff; }
.qr-batch-preview-grid strong, .qr-batch-preview-grid small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr-batch-preview-grid strong { color: #4e4943; font-size: 8px; }
.qr-batch-preview-grid small { color: #9b948b; font: 7px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.qr-batch-empty { min-height: 250px; display: grid; place-items: center; border: 1px dashed #d1cbc2; border-radius: 14px; padding: 30px; color: #9b948b; background: linear-gradient(145deg, #faf7f1, #f4f7f8); font-size: 10px; line-height: 1.65; text-align: center; }
.qr-batch-status { min-height: 21px; margin: auto 0 0; padding-top: 14px; color: #7d766e; font-size: 9px; line-height: 1.55; }
.qr-batch-status[data-state="ready"], .qr-batch-status[data-state="success"] { color: #3e8168; }
.qr-batch-status[data-state="busy"] { color: #527aa5; }
.qr-batch-status[data-state="error"] { color: #c7513f; }
#qrBatchProgress { width: 100%; height: 5px; margin-top: 8px; accent-color: #c84d2d; }

@media (max-width: 900px) {
  .qr-batch-layout { grid-template-columns: 1fr; }
  .qr-batch-preview-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .qr-batch-workbench { padding: 16px; border-radius: 19px; }
  .qr-batch-heading { display: grid; }
  .qr-batch-private { justify-self: start; }
  .qr-batch-input-card, .qr-batch-preview-card { padding: 16px; }
  .qr-batch-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qr-batch-actions { grid-template-columns: 1fr 1fr; }
  .qr-batch-actions .primary-action, .qr-batch-actions .export-action { grid-column: span 1; }
}
@media (max-width: 430px) {
  .qr-batch-file-row { align-items: flex-start; flex-direction: column; }
  .qr-batch-actions { grid-template-columns: 1fr; }
  .qr-batch-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
