.batch-qr-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
}
.qr-settings-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  overflow: hidden;
  position: sticky;
  top: 24px;
}
.batch-generate-btn {
  width: 100%; padding: 13px;
  background: var(--p); color: #fff; border: none;
  border-radius: var(--r); font-size: 14.5px; font-weight: 700;
  font-family: 'Inter', sans-serif; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 16px rgba(105,56,239,.35);
  transition: background .18s, transform .12s;
}
.batch-generate-btn:hover { background: var(--p-d); transform: translateY(-1px); }
.qr-count-note {
  text-align: center; font-size: 12px; color: var(--text3);
  font-weight: 600; min-height: 18px; margin-top: 4px;
}
.color-input-wrapper {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--border); border-radius: 9px;
  padding: 6px 10px; background: #fff;
  transition: border-color .18s;
}
.color-input-wrapper:focus-within { border-color: var(--p); box-shadow: 0 0 0 3px rgba(105,56,239,.1); }
.color-input-wrapper input[type=color] {
  width: 28px; height: 28px; border: none; border-radius: 6px;
  cursor: pointer; padding: 0; background: none;
}
.color-input-wrapper span { font-size: 12.5px; color: var(--text2); font-weight: 600; }

.qr-output-area {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  padding: 0;
  overflow: hidden;
}
.qr-output-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--p-llt), var(--p-lt));
}
.qr-output-title {
  font-size: 13.5px; font-weight: 700; color: var(--text);
}
.download-all-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 8px;
  background: var(--p-lt); color: var(--p);
  border: 1px solid rgba(105,56,239,.2);
  font-size: 12px; font-weight: 700; cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background .15s;
}
.download-all-btn:hover { background: #ddd6fe; }

.qr-empty-state {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; padding: 60px 24px;
  text-align: center;
}
.qr-empty-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--p-lt); color: var(--p);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(105,56,239,.2);
}
.qr-empty-state p { font-size: 14px; color: var(--text3); max-width: 320px; line-height: 1.6; }

.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  padding: 20px;
}
.qr-item {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px;
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
}
.qr-item:hover { border-color: var(--p); box-shadow: 0 4px 16px rgba(105,56,239,.1); }
.qr-canvas-wrap {
  display: flex; align-items: center; justify-content: center;
  min-height: 120px; margin-bottom: 10px;
}
.qr-canvas-wrap img, .qr-canvas-wrap canvas {
  border-radius: 8px;
  max-width: 100%; height: auto;
}
.qr-label {
  font-size: 11.5px; color: var(--text2); font-weight: 500;
  margin-bottom: 10px; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dl-qr-btn {
  width: 100%; padding: 7px 12px;
  background: var(--p-lt); color: var(--p);
  border: 1px solid rgba(105,56,239,.2);
  border-radius: 8px; cursor: pointer;
  font-size: 11.5px; font-weight: 700;
  font-family: 'Inter', sans-serif;
  transition: background .15s;
}
.dl-qr-btn:hover { background: #ddd6fe; }

@media (max-width: 900px) {
  .batch-qr-layout { grid-template-columns: 1fr; }
  .qr-settings-panel { position: static; }
}
