/* ══════════════════════════════════════
   KISI-KISI SOAL — app.css
   ══════════════════════════════════════ */

/* ── CSS VARIABLES LOKAL ── */
:root {
  --ink         : #1a1a1a;
  --ink-light   : #555555;
  --ink-faint   : #888888;
  --paper       : #ffffff;
  --paper-warm  : #f5f1ea;
  --ui-bg       : #f0ece4;
  --ui-border   : #d4cfc6;
  --accent      : #e07b39;
  --rule        : #d4cfc6;
  --rule-dark   : #bbb8b2;
}

[data-theme="dark"] {
  --ink         : #deddda;
  --ink-light   : #9a9996;
  --ink-faint   : #77767b;
  --paper       : #1a1a1a;
  --paper-warm  : #2d2d2d;
  --ui-bg       : #1a1a1a;
  --ui-border   : #3d3d3d;
  --accent      : #e07b39;
  --rule        : #3d3d3d;
  --rule-dark   : #4d4d4d;
}

/* ═══════════════════════════════════════
   ISOLATED HEADER STYLES - Kisi-Kisi Soal
   Hanya berlaku untuk aplikasi ini
   Specificity: [data-shared-header="v1"]
   ═══════════════════════════════════════ */

/* UNIFIED APP HEADER */
.app-header[data-shared-header="v1"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 20px;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--ui-border);
  flex-shrink: 0;
  min-height: 56px;
}

/* HEADER-LEFT WRAPPER */
.app-header[data-shared-header="v1"] .header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.app-header[data-shared-header="v1"] .app-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-header[data-shared-header="v1"] .app-header-icon {
  width: 28px;
  height: 28px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ui-bg);
  border-radius: 6px;
  flex-shrink: 0;
}

.app-header[data-shared-header="v1"] .app-header-titles {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.2;
}

.app-header[data-shared-header="v1"] .app-header-titles h1 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.app-header[data-shared-header="v1"] .app-header-titles h2 {
  font-size: 10px;
  font-weight: 500;
  margin: 0;
  color: var(--ink-faint);
  opacity: 0.8;
}

/* HEADER-RIGHT */
.app-header[data-shared-header="v1"] .app-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: nowrap;
  flex-shrink: 1;
}

/* Action buttons container (samakan pola dengan Parser Soal) */
.app-header[data-shared-header="v1"] .app-header-right .action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 1;
  flex-wrap: nowrap;
}

/* Button base class */
.app-header[data-shared-header="v1"] .app-header-right .btn {
  white-space: nowrap;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* btn-primary */
.app-header[data-shared-header="v1"] .app-header-right .btn-primary {
  background: var(--accent);
  color: #fff;
}

.app-header[data-shared-header="v1"] .app-header-right .btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* btn-secondary */
.app-header[data-shared-header="v1"] .app-header-right .btn-secondary {
  background: var(--paper);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.app-header[data-shared-header="v1"] .app-header-right .btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}

/* btn-dashboard */
.app-header[data-shared-header="v1"] .app-header-right .btn-dashboard {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(224,123,57,0.3);
}

.app-header[data-shared-header="v1"] .app-header-right .btn-dashboard:hover {
  background: #d06a30;
  box-shadow: 0 4px 16px rgba(224,123,57,0.5);
  transform: translateY(-1px);
}

/* btn-theme-toggle */
.app-header[data-shared-header="v1"] .app-header-right .btn-theme-toggle {
  background: transparent;
  border: 1px solid var(--ui-border) !important;
  color: var(--ink-light);
}

.app-header[data-shared-header="v1"] .app-header-right .btn-theme-toggle:hover {
  background: var(--ui-bg);
  color: var(--ink);
}

/* RESPONSIVE HEADER - Tablet (max 1024px) */
@media (max-width: 1024px) {
  .app-header[data-shared-header="v1"] {
    padding: 10px 16px;
    gap: 8px;
  }

  .app-header[data-shared-header="v1"] .app-header-right {
    gap: 6px;
  }

  .app-header[data-shared-header="v1"] .app-header-right .btn {
    padding: 6px 12px;
    font-size: 11px;
  }
}

/* Tablet: icon only (samakan dengan Parser Soal) */
@media (max-width: 768px) {
  .app-header[data-shared-header="v1"] .app-header-right .action-buttons .btn .btn-text {
    display: none;
  }
}

/* RESPONSIVE HEADER - Mobile (max 480px) */
@media (max-width: 480px) {
  .app-header[data-shared-header="v1"] {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
  }

  .app-header[data-shared-header="v1"] .header-left {
    width: 100%;
  }

  .app-header[data-shared-header="v1"] .app-header-right {
    width: 100%;
    flex-wrap: nowrap;
    gap: 6px;
    flex-direction: column;
    align-items: stretch;
  }

  .app-header[data-shared-header="v1"] .app-header-right .action-buttons {
    width: 100%;
    gap: 6px;
    flex-shrink: unset;
    justify-content: flex-start;
    flex-wrap: nowrap;
    flex-direction: column;
  }

  .app-header[data-shared-header="v1"] .app-header-right .action-buttons .btn {
    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    min-width: 0;
    justify-content: flex-start;
    border-radius: 8px;
    flex: 0 0 auto;
  }

  .app-header[data-shared-header="v1"] .app-header-right .action-buttons .btn .btn-text {
    display: inline;
  }

  .app-header[data-shared-header="v1"] .app-header-right .action-buttons .btn .btn-icon {
    font-size: 14px;
  }

  .app-header[data-shared-header="v1"] .app-header-titles h1 {
    font-size: 14px;
  }

  .app-header[data-shared-header="v1"] .app-header-titles h2 {
    font-size: 9px;
  }
}

/* Dark mode overrides */
[data-theme="dark"] .app-header[data-shared-header="v1"] .app-header-icon {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .app-header[data-shared-header="v1"] .app-header-right .btn-theme-toggle {
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: var(--ink-light);
}

[data-theme="dark"] .app-header[data-shared-header="v1"] .app-header-right .btn-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 13px;
  background: var(--ui-bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── HEADER — Legacy (kept for backward compatibility) ── */
/* Header styling now handled by isolated header styles above */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 20px;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--ui-border);
  flex-shrink: 0;
  min-height: 56px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.app-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-header-icon {
  width: 28px;
  height: 28px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ui-bg);
  border-radius: 6px;
  flex-shrink: 0;
}

.app-header-titles {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.2;
}

.app-header-titles h1 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.app-header-titles h2 {
  font-size: 10px;
  font-weight: 500;
  margin: 0;
  color: var(--ink-faint);
  opacity: 0.8;
}

.app-subtitle {
  /* Legacy class — deprecated, use .app-header-titles h2 */
  font-size: 12px;
  color: var(--ink-faint);
  font-weight: 500;
}

.btn-back {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.btn-back:hover { text-decoration: underline; }

.btn-theme-toggle {
  background: none;
  border: 1px solid var(--ui-border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--ink-light);
  cursor: pointer;
}

/* ── NAVIGASI TAB MODUL ── */
.module-nav {
  display: flex;
  gap: 8px;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--ui-border);
  padding: 10px 20px;
  flex-shrink: 0;
  align-items: center;
}

.module-tab {
  background: transparent;
  border: 1px solid var(--ui-border);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-faint);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.module-tab:hover {
  color: var(--ink);
  background: var(--ui-bg);
  border-color: var(--ink-light);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.module-tab.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(224, 123, 57, 0.25);
}

/* ── LAYOUT UTAMA ── */
.app-body {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.module-panel {
  display: none;
  height: 100%;
  grid-template-columns: 380px 1fr;
}

.module-panel.active {
  display: grid;
}

.panel-input {
  border-right: 1px solid var(--ui-border);
  overflow-y: auto;
  padding: 20px;
  background: var(--paper-warm);
  height: calc(100vh - 120px);
}

.panel-preview {
  overflow-y: auto;
  padding: 20px;
  background: var(--ui-bg);
  height: calc(100vh - 120px);
}

/* ── PLACEHOLDER ── */
.placeholder-text {
  color: var(--ink-faint);
  font-style: italic;
  font-size: 13px;
  padding: 40px 20px;
  text-align: center;
}

/* ── PANEL SECTION TITLE ── */
.panel-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ui-border);
}

/* ── RESPONSIVE DASAR ── */
@media (max-width: 1024px) {
  .app-header {
    padding: 10px 16px;
    gap: 8px;
  }

  .app-header-right {
    gap: 6px;
  }

  .app-header-right .btn {
    padding: 6px 12px;
    font-size: 11px;
  }

  .module-panel {
    grid-template-columns: 1fr;
  }

  .panel-input {
    border-right: none;
    border-bottom: 1px solid var(--ui-border);
  }
}

@media (max-width: 768px) {
  .module-panel {
    grid-template-columns: 1fr;
  }
  
  .panel-input {
    border-right: none;
    border-bottom: 1px solid var(--ui-border);
  }

  /* Tab navigasi: tetap 1 baris + bisa digeser */
  .module-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .module-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .app-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
  }

  .header-left {
    width: 100%;
  }

  .app-header-right {
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }

  .app-header-right .btn {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
    font-size: 11px;
  }

  .app-header-titles h1 {
    font-size: 14px;
  }

  .app-header-titles h2 {
    font-size: 9px;
  }

  .module-nav {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: visible;
  }

  .module-tab {
    width: 100%;
    flex: 0 0 auto;
    min-width: 0;
    text-align: center;
  }
}

/* ── SEKSI CARD ── */
.seksi-card {
  background: var(--paper);
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.seksi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--ui-border);
}

.seksi-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.seksi-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-faint);
}

.seksi-body {
  padding: 14px;
}

.seksi-hint {
  font-size: 11px;
  color: var(--ink-faint);
  margin-bottom: 12px;
  line-height: 1.5;
}

/* ── PASTE AREA ── */
.paste-area {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--ui-border);
}

/* ── DIVIDER ATAU ── */
.divider-atau {
  display: flex;
  align-items: center;
  margin: 12px 0;
  color: var(--ink-faint);
}

.divider-atau::before,
.divider-atau::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ui-border);
}

.divider-atau span {
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.paste-area textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--ui-border);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  font-family: monospace;
  font-size: 10px;
  resize: vertical;
  margin: 6px 0 8px;
}

/* ── FIELD GROUP ── */
.field-group {
  margin-bottom: 12px;
}

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-light);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field-hint {
  display: block;
  font-size: 10px;
  color: var(--ink-faint);
  margin-bottom: 8px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input-with-unit {
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-with-unit input {
  width: 80px;
  padding: 6px 8px;
  border: 1px solid var(--ui-border);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
}

.unit-label {
  font-size: 11px;
  color: var(--ink-faint);
}

input[type="date"] {
  padding: 6px 8px;
  border: 1px solid var(--ui-border);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  width: 100%;
}

.field-input-text {
  padding: 6px 8px;
  border: 1px solid var(--ui-border);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  width: 100%;
}

.field-input-text:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(224, 123, 57, 0.1);
}

/* ── CLOUD DROPDOWN ── */
.cloud-load-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cloud-load-row select {
  flex: 1;
  min-width: 0;
}

select {
  padding: 6px 8px;
  border: 1px solid var(--ui-border);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
}

select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(224, 123, 57, 0.1);
}

/* ── BUTTON SIZE VARIANTS ── */
.btn-sm {
  padding: 4px 10px;
  font-size: 11px;
}

/* ── RESET BUTTON SECTION ── */
#seksi-reset .seksi-body {
  padding: 10px 14px;
}

#seksi-reset button {
  width: 100%;
}

/* ── DOKUMEN CLOUD ── */
.dokumen-kosong {
  padding: 20px;
  text-align: center;
  color: var(--ink-faint);
  font-style: italic;
}

.dokumen-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid var(--ui-border);
  gap: 12px;
}

.dokumen-item:last-child {
  border-bottom: none;
}

.dokumen-info {
  flex: 1;
  min-width: 0;
}

.dokumen-nama {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  word-break: break-word;
}

.dokumen-meta {
  font-size: 11px;
  color: var(--ink-faint);
}

.dokumen-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ── RADIO GROUP ── */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.radio-group.horizontal {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink);
  cursor: pointer;
}

.radio-item input[type="radio"] {
  accent-color: var(--accent);
  cursor: pointer;
}

/* ── VALIDASI ITEM ── */
.validasi-item {
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 8px;
  line-height: 1.4;
}

.validasi-item.ok {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.validasi-item.warn {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.validasi-item.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ── TOMBOL ── */
.btn-primary {
  display: inline-block;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
}

.btn-primary:hover { opacity: 0.88; }

.btn-dashboard {
  display: inline-block;
  padding: 8px 16px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(224,123,57,0.3);
  white-space: nowrap;
}

.btn-dashboard:hover {
  opacity: 0.88;
  box-shadow: 0 4px 16px rgba(224,123,57,0.5);
  transform: translateY(-1px);
}

.btn-dashboard:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(224,123,57,0.3);
}

.btn-secondary {
  display: inline-block;
  padding: 6px 12px;
  background: var(--paper);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.btn-secondary:hover { background: var(--paper-warm); }

/* ── HASIL PEMETAAN — SUMMARY STATS ── */
.hasil-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.summary-stat {
  background: var(--paper);
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.stat-label {
  display: block;
  font-size: 10px;
  color: var(--ink-faint);
  margin-top: 4px;
  line-height: 1.3;
}

/* ── REKAP PREVIEW ── */
.rekap-preview {
  background: var(--paper);
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}

.rekap-preview-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.rekap-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--ui-border);
  font-size: 12px;
}

.rekap-row:last-child {
  border-bottom: none;
}

.rekap-elemen {
  color: var(--ink);
  font-weight: 500;
}

.rekap-angka {
  color: var(--accent);
  font-weight: 700;
  font-size: 11px;
}

/* ── HASIL ACTIONS ── */
.hasil-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── WORKSPACE AI — 2 KOLOM LAYOUT ── */
.ai-workspace-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ai-col-left {
  display: flex;
  flex-direction: column;
}

.ai-col-right {
  display: flex;
  flex-direction: column;
}

.prompt-block {
  background: var(--ui-bg);
  border: 1px solid var(--ui-border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.prompt-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--ui-border);
}

.prompt-block-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}

.btn-copy {
  background: none;
  border: 1px solid var(--ui-border);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-light);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-copy:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.prompt-block-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 9px;
  color: var(--ink);
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

#inputIndikatorAI {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--ui-border);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  font-family: monospace;
  font-size: 10px;
  resize: vertical;
  flex: 1;
}

/* ── RESPONSIVE: WORKSPACE AI ── */
@media (max-width: 1200px) {
  .ai-workspace-grid {
    grid-template-columns: 1fr;
  }
}


/* ── BATCH CONTAINER ── */
.batch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.batch-header .field-label {
  margin-bottom: 0;
  flex: 1;
}

.batch-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding: 8px;
  background: var(--paper-warm);
  border: 1px solid var(--ui-border);
  border-radius: 6px;
}

.batch-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid var(--ui-border);
  border-radius: 5px;
  position: relative;
}

.batch-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.batch-label-text {
  flex: 1;
}

.btn-remove-batch {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 4px;
  transition: all 0.15s;
}

.btn-remove-batch:hover {
  color: #991b1b;
  transform: scale(1.1);
}

.batch-textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--ui-border);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font-family: monospace;
  font-size: 10px;
  resize: vertical;
  min-height: 80px;
}

.batch-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(224, 123, 57, 0.1);
}

.batch-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
