/* ==========================================================================
   Label Tool V2 — Dispatch Workspace
   Full rewrite. V2 design language. Prefix: .v2-lt-*
   Also covers lt-* classes from label_tool_core.php partial.
   Tokens: var(--c-*), var(--font-*), var(--shadow-*) from main.css / app.css
   ========================================================================== */

/* ════════════════════════════════════════════════════════════
   1. PAGE ROOT
   ════════════════════════════════════════════════════════════ */

.v2-label-tool-page {
  --lt-gap: var(--v2-page-gap);
  --lt-card-radius: var(--v2-card-radius);
  --lt-inner-radius: var(--v2-card-radius-sm);
  --lt-input-radius: 12px;
  --lt-accent-rgb: oklch(0.62 0.22 256);
  --lt-success-rgb: oklch(0.7 0.16 155);
  --lt-warn-rgb: oklch(0.78 0.16 70);
}

.v2-label-tool-page .v2-page-shell-content {
  display: flex;
  flex-direction: column;
  gap: var(--lt-gap);
}

/* ════════════════════════════════════════════════════════════
   2. SHARED CARD SHELL
   Every major surface: command, workspace, controls, progress,
   results — all share the same base treatment.
   ════════════════════════════════════════════════════════════ */

.v2-lt-command,
.v2-lt-workspace,
.v2-lt-controls,
.v2-lt-progress-card,
.v2-lt-results-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92),
    rgba(246, 250, 255, 0.86)
  );
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--lt-card-radius);
  box-shadow: 0 8px 24px -8px oklch(0.5 0.15 256 / 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Ambient depth glow on every card */
.v2-lt-command::before,
.v2-lt-workspace::before,
.v2-lt-controls::before,
.v2-lt-progress-card::before,
.v2-lt-results-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at top left,    rgba(79, 110, 247, 0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.07), transparent 26%);
}

/* All direct children sit above the pseudo */
.v2-lt-command > *,
.v2-lt-workspace > *,
.v2-lt-controls > *,
.v2-lt-progress-card > *,
.v2-lt-results-card > * {
  position: relative;
  z-index: 1;
}

/* ════════════════════════════════════════════════════════════
   3. COMMAND DECK
   ════════════════════════════════════════════════════════════ */

.v2-lt-command {
  padding: 32px 36px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

/* Left copy block */
.v2-lt-command-copy {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Kicker / eyebrow pill */
.v2-lt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(79, 110, 247, 0.10);
  border: 1px solid rgba(79, 110, 247, 0.14);
  color: var(--c-accent);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 16px;
}

.v2-lt-eyebrow i {
  font-size: 11px;
}

/* Main heading */
.v2-lt-command-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--c-text);
  margin: 0 0 12px;
}

/* Sub-heading */
.v2-lt-command-sub {
  font-size: 14px;
  color: var(--c-text-dim);
  line-height: 1.70;
  max-width: 560px;
  margin: 0 0 22px;
}

/* Badge row — trust chips */
.v2-lt-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.v2-lt-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(124, 131, 255, 0.14);
  color: var(--c-text-faint);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.18s, background 0.18s;
}

.v2-lt-badge i {
  font-size: 11px;
  color: var(--c-accent);
}

/* Privacy variant — green tint */
.v2-lt-badge--privacy {
  background: rgba(16, 185, 129, 0.07);
  border-color: rgba(16, 185, 129, 0.24);
  color: oklch(0.44 0.15 155);
}

.v2-lt-badge--privacy i {
  color: oklch(0.52 0.15 155);
}

/* Count variant */
.v2-lt-badge--count {
  background: rgba(79, 110, 247, 0.08);
  border-color: rgba(79, 110, 247, 0.22);
  color: var(--c-accent);
}

/* Right meta block */
.v2-lt-command-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 10px;
  flex-shrink: 0;
  padding-top: 4px;
}

/* Numbered workflow steps */
.v2-lt-mini-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v2-lt-mini-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--c-text-faint);
  line-height: 1.4;
}

.v2-lt-mini-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(79, 110, 247, 0.30);
}

.v2-lt-mini-step strong {
  color: var(--c-text);
  font-weight: 700;
}

/* ════════════════════════════════════════════════════════════
   4. MAIN WORKSPACE — two-pane grid
   ════════════════════════════════════════════════════════════ */

.v2-lt-workspace {
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  min-height: 440px;
  align-items: stretch;
}

/* ── Shared pane label / title typography ── */
.v2-lt-pane-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--c-text-faint);
  margin-bottom: 5px;
}

.v2-lt-pane-label i {
  font-size: 11px;
  color: var(--c-accent);
}

.v2-lt-pane-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-text);
  line-height: 1.25;
}

/* ════════════════════════════════════════════════════════════
   4a. UPLOAD PANE
   ════════════════════════════════════════════════════════════ */

.v2-lt-upload-pane {
  padding: 30px 28px 26px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ── DROP ZONE ── */
.v2-lt-drop-zone {
  position: relative;
  border: 2px dashed rgba(79, 110, 247, 0.30);
  border-radius: 20px;
  background: rgba(79, 110, 247, 0.025);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  cursor: pointer;
  min-height: 220px;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.v2-lt-drop-zone:hover,
.v2-lt-drop-zone:focus-visible {
  border-color: var(--c-accent);
  background: rgba(79, 110, 247, 0.06);
  box-shadow: 0 0 0 4px rgba(79, 110, 247, 0.10);
  outline: none;
}

.v2-lt-drop-zone.is-dragging {
  border-color: var(--c-accent);
  background: rgba(79, 110, 247, 0.09);
  box-shadow:
    0 0 0 5px rgba(79, 110, 247, 0.12),
    0 16px 48px rgba(79, 110, 247, 0.18);
  transform: scale(1.014);
  animation: ltDropPulse 1.4s ease-in-out infinite;
}

@keyframes ltDropPulse {
  0%,  100% { box-shadow: 0 0 0 0   rgba(79, 110, 247, 0.24), 0 16px 48px rgba(79, 110, 247, 0.18); }
  50%        { box-shadow: 0 0 0 10px rgba(79, 110, 247, 0.00), 0 16px 48px rgba(79, 110, 247, 0.18); }
}

/* Upload icon widget */
.v2-lt-drop-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(79, 110, 247, 0.14),
    rgba(99, 146, 255, 0.18)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--c-accent);
  flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s;
  box-shadow: 0 6px 18px rgba(79, 110, 247, 0.20);
}

.v2-lt-drop-zone:hover .v2-lt-drop-icon,
.v2-lt-drop-zone.is-dragging .v2-lt-drop-icon {
  transform: translateY(-5px) scale(1.10);
  box-shadow: 0 12px 28px rgba(79, 110, 247, 0.30);
}

.v2-lt-drop-heading {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-text);
}

.v2-lt-drop-sub {
  font-size: 13px;
  color: var(--c-text-faint);
  line-height: 1.60;
  max-width: 320px;
}

/* Mini pills inside drop zone */
.v2-lt-drop-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2px;
}

.v2-lt-drop-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(124, 131, 255, 0.14);
  background: rgba(255, 255, 255, 0.80);
  font-size: 11px;
  font-weight: 600;
  color: var(--c-text-faint);
}

.v2-lt-drop-pill i {
  font-size: 10px;
  color: var(--c-accent);
}

/* ── QUICK STATS BAR ── */
.v2-lt-quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(124, 131, 255, 0.14);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.v2-lt-quick-stat {
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.v2-lt-quick-stat:not(:last-child) {
  border-right: 1px solid rgba(124, 131, 255, 0.10);
}

.v2-lt-quick-stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-text-faint);
}

.v2-lt-quick-stat-val {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
}

/* ════════════════════════════════════════════════════════════
   4b. BATCH PANE
   ════════════════════════════════════════════════════════════ */

.v2-lt-batch-pane {
  padding: 30px 32px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-left: 1px solid rgba(124, 131, 255, 0.10);
}

.v2-lt-batch-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

/* File count badge */
.v2-lt-file-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(79, 110, 247, 0.10);
  border: 1px solid rgba(79, 110, 247, 0.20);
  color: var(--c-accent);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
}

/* File list scroll area */
.v2-lt-file-list-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.v2-lt-file-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(124, 131, 255, 0.10);
  margin-bottom: 10px;
}

.v2-lt-file-list-header span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-faint);
}

/* Clear all btn */
.v2-lt-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(124, 131, 255, 0.16);
  background: none;
  color: var(--c-text-faint);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.18s ease;
}

.v2-lt-clear-btn:hover {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.06);
  color: var(--c-danger);
}

/* Scrollable file list */
.v2-lt-file-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 210px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 131, 255, 0.20) transparent;
}

.v2-lt-file-list::-webkit-scrollbar { width: 4px; }
.v2-lt-file-list::-webkit-scrollbar-track { background: transparent; }
.v2-lt-file-list::-webkit-scrollbar-thumb {
  background: rgba(124, 131, 255, 0.22);
  border-radius: 4px;
}

/* Individual file card */
.v2-lt-file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(124, 131, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.80);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.70);
  transition: all 0.16s ease;
  animation: ltFileIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes ltFileIn {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}

.v2-lt-file-item:hover {
  border-color: rgba(79, 110, 247, 0.22);
  background: rgba(79, 110, 247, 0.02);
}

/* PDF icon box */
.v2-lt-file-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.14), rgba(239, 68, 68, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: oklch(0.52 0.22 25);
  flex-shrink: 0;
}

.v2-lt-file-info {
  flex: 1;
  min-width: 0;
}

.v2-lt-file-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2-lt-file-meta {
  font-size: 11px;
  color: var(--c-text-faint);
  margin-top: 2px;
}

/* Page count badge on file item */
.v2-lt-file-pages {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(79, 110, 247, 0.08);
  border: 1px solid rgba(79, 110, 247, 0.14);
  color: var(--c-accent);
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Remove button */
.v2-lt-file-remove {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: none;
  background: none;
  color: var(--c-text-faint);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.16s ease;
  flex-shrink: 0;
}

.v2-lt-file-remove:hover {
  background: rgba(239, 68, 68, 0.10);
  color: var(--c-danger);
}

/* Empty state */
.v2-lt-file-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  text-align: center;
  gap: 10px;
  color: var(--c-text-faint);
}

.v2-lt-file-empty i {
  font-size: 30px;
  opacity: 0.30;
}

.v2-lt-file-empty p {
  font-size: 13px;
  line-height: 1.55;
  max-width: 240px;
}

/* ── GENERATE BUTTON ── */
.v2-lt-generate-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(
    135deg,
    oklch(0.62 0.22 256) 0%,
    oklch(0.54 0.24 262) 100%
  );
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow:
    0 8px 24px oklch(0.62 0.22 256 / 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.v2-lt-generate-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px oklch(0.62 0.22 256 / 0.44);
}

.v2-lt-generate-btn:not(:disabled):active {
  transform: translateY(0);
  box-shadow: 0 4px 14px oklch(0.62 0.22 256 / 0.30);
}

.v2-lt-generate-btn:disabled {
  opacity: 0.46;
  cursor: not-allowed;
  box-shadow: none;
  background: linear-gradient(135deg, oklch(0.72 0.10 256), oklch(0.68 0.12 256));
}

.v2-lt-action-hint {
  font-size: 12px;
  color: var(--c-text-faint);
  text-align: center;
  line-height: 1.55;
}

/* Reprocess notice */
.v2-lt-reprocess {
  display: none;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 15px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.07);
  color: oklch(0.42 0.12 70);
  font-size: 13px;
  line-height: 1.5;
}

.v2-lt-reprocess.is-visible {
  display: flex;
}

.v2-lt-reprocess i {
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 14px;
}

.v2-lt-reprocess button {
  border: none;
  background: none;
  color: oklch(0.38 0.14 70);
  font-weight: 700;
  font-family: var(--font-sans);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}

.v2-lt-reprocess button:hover {
  color: oklch(0.28 0.14 70);
}

/* ════════════════════════════════════════════════════════════
   5. CONTROLS PANEL
   ════════════════════════════════════════════════════════════ */

.v2-lt-controls {
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Panel header */
.v2-lt-controls-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.v2-lt-controls-head-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.v2-lt-controls-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-text);
}

.v2-lt-soft-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(124, 131, 255, 0.16);
  background: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-faint);
  flex-shrink: 0;
}

.v2-lt-soft-badge i {
  color: var(--c-accent);
  font-size: 11px;
}

/* ── SWITCH GRID ── */
.v2-lt-switches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

/* Switch card */
.v2-lt-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid rgba(124, 131, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.60);
  cursor: pointer;
  transition: all 0.20s ease;
  user-select: none;
}

.v2-lt-switch:hover {
  border-color: rgba(79, 110, 247, 0.24);
  background: rgba(79, 110, 247, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.60), 0 2px 8px rgba(79, 110, 247, 0.08);
}

.v2-lt-switch.checked {
  border-color: rgba(79, 110, 247, 0.28);
  background: rgba(79, 110, 247, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.60), 0 2px 10px rgba(79, 110, 247, 0.10);
}

.v2-lt-switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.v2-lt-switch-main {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
  min-width: 0;
}

/* Icon box */
.v2-lt-sw-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1px solid rgba(124, 131, 255, 0.14);
  background: rgba(246, 250, 255, 0.80);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--c-text-faint);
  flex-shrink: 0;
  transition: all 0.20s ease;
}

.v2-lt-switch.checked .v2-lt-sw-icon {
  background: rgba(79, 110, 247, 0.12);
  border-color: rgba(79, 110, 247, 0.22);
  color: var(--c-accent);
}

.v2-lt-sw-icon.solid {
  background: rgba(79, 110, 247, 0.10);
  border-color: rgba(79, 110, 247, 0.18);
  color: var(--c-accent);
}

.v2-lt-switch-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.v2-lt-sw-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.3;
}

.v2-lt-sw-help {
  font-size: 12px;
  color: var(--c-text-faint);
  line-height: 1.45;
}

/* Toggle pill */
.v2-lt-sw-toggle {
  width: 40px;
  height: 23px;
  border-radius: 999px;
  background: rgba(124, 131, 255, 0.22);
  position: relative;
  flex-shrink: 0;
  transition: background 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.v2-lt-sw-toggle span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.v2-lt-switch.checked .v2-lt-sw-toggle {
  background: var(--c-accent);
}

.v2-lt-switch.checked .v2-lt-sw-toggle span {
  transform: translateX(17px);
}

/* ── CUSTOM TEXT CONFIG ── */
.v2-lt-text-config {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid rgba(79, 110, 247, 0.18);
  border-radius: var(--lt-inner-radius);
  background: rgba(79, 110, 247, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  animation: ltSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes ltSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.v2-lt-text-config.is-open {
  display: flex;
}

/* Quick-insert buttons row */
.v2-lt-quick-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.v2-lt-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid rgba(124, 131, 255, 0.16);
  background: rgba(255, 255, 255, 0.80);
  color: var(--c-text-dim);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.18s ease;
}

.v2-lt-quick-btn:hover {
  border-color: rgba(79, 110, 247, 0.28);
  background: rgba(79, 110, 247, 0.06);
  color: var(--c-accent);
}

/* Label + input pair */
.v2-lt-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.v2-lt-field-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--c-text-faint);
}

.v2-lt-text-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(124, 131, 255, 0.20);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--c-text);
  font-size: 14px;
  font-family: var(--font-sans);
  transition: all 0.20s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.v2-lt-text-input::placeholder {
  color: var(--c-text-faint);
}

.v2-lt-text-input:focus {
  outline: none;
  border-color: var(--c-accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--c-accent-glow), inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Position selector row */
.v2-lt-position-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.v2-lt-position-row > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-faint);
  margin-right: 4px;
}

.v2-lt-pos-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(124, 131, 255, 0.16);
  background: rgba(255, 255, 255, 0.80);
  color: var(--c-text-faint);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: all 0.18s ease;
}

.v2-lt-pos-btn:hover,
.v2-lt-pos-btn.active {
  border-color: var(--c-accent);
  background: rgba(79, 110, 247, 0.08);
  color: var(--c-accent);
  box-shadow: 0 2px 8px rgba(79, 110, 247, 0.14);
}

/* ── CONTROLS FOOTER: qty select + trust notes ── */
.v2-lt-controls-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
  padding-top: 18px;
  border-top: 1px solid rgba(124, 131, 255, 0.10);
}

.v2-lt-qty-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v2-lt-qty-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.v2-lt-qty-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.3;
}

.v2-lt-qty-help {
  font-size: 12px;
  color: var(--c-text-faint);
  line-height: 1.45;
}

.v2-lt-qty-select {
  width: 100%;
  height: 44px;
  padding: 0 36px 0 14px;
  border: 1px solid rgba(124, 131, 255, 0.20);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7'%3E%3Cpath d='M0 0l5.5 7L11 0z' fill='%23888'/%3E%3C/svg%3E")
    no-repeat right 13px center;
  color: var(--c-text);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  appearance: none;
  transition: all 0.20s ease;
}

.v2-lt-qty-select:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-glow);
}

/* Trust notes column */
.v2-lt-trust-notes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.v2-lt-trust-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  color: var(--c-text-faint);
  line-height: 1.50;
}

.v2-lt-trust-note i {
  font-size: 13px;
  color: var(--c-accent);
  margin-top: 1px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════
   6. PROGRESS CARD
   ════════════════════════════════════════════════════════════ */

.v2-lt-progress-card {
  display: none;
  padding: 44px 48px;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.v2-lt-progress-card.is-visible {
  display: flex;
}

/* Spinner */
@keyframes ltSpin {
  to { transform: rotate(360deg); }
}

.v2-lt-spinner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3.5px solid rgba(79, 110, 247, 0.14);
  border-top-color: var(--c-accent);
  animation: ltSpin 0.78s linear infinite;
  flex-shrink: 0;
}

.v2-lt-progress-label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.01em;
}

/* Progress track + fill */
.v2-lt-progress-bar-wrap {
  width: 100%;
  max-width: 420px;
  height: 7px;
  border-radius: 999px;
  background: rgba(124, 131, 255, 0.12);
  overflow: hidden;
}

.v2-lt-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--c-accent) 0%,
    oklch(0.78 0.17 240) 100%
  );
  width: 0%;
  transition: width 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

/* Shimmer on progress fill */
.v2-lt-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: ltProgressShimmer 1.4s linear infinite;
}

@keyframes ltProgressShimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ════════════════════════════════════════════════════════════
   7. RESULTS CARD
   ════════════════════════════════════════════════════════════ */

.v2-lt-results-card {
  display: none;
  padding: 34px 36px;
  flex-direction: column;
  gap: 30px;
}

.v2-lt-results-card.is-visible {
  display: flex;
}

/* Top row: success message + actions */
.v2-lt-results-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.v2-lt-results-info {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 240px;
}

/* Success icon */
.v2-lt-results-icon {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--c-success);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

.v2-lt-results-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.v2-lt-results-sub {
  font-size: 13px;
  color: var(--c-text-dim);
  line-height: 1.60;
  margin-top: 5px;
}

.v2-lt-results-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* Primary download button */
.v2-lt-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(
    135deg,
    oklch(0.62 0.22 256) 0%,
    oklch(0.54 0.24 262) 100%
  );
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow:
    0 8px 26px oklch(0.62 0.22 256 / 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: -0.01em;
}

.v2-lt-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px oklch(0.62 0.22 256 / 0.42);
}

.v2-lt-download-btn:active {
  transform: translateY(0);
}

/* Secondary reset button */
.v2-lt-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid rgba(124, 131, 255, 0.20);
  background: rgba(255, 255, 255, 0.72);
  color: var(--c-text-dim);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.22s ease;
}

.v2-lt-reset-btn:hover {
  border-color: rgba(79, 110, 247, 0.26);
  background: rgba(255, 255, 255, 0.92);
  color: var(--c-text);
  box-shadow: 0 2px 12px rgba(79, 110, 247, 0.08);
}

/* ── STATS GRID ── */
.v2-lt-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.v2-lt-stat-card {
  padding: 20px 18px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(124, 131, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.60);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.20s, transform 0.20s;
}

.v2-lt-stat-card:hover {
  box-shadow:
    0 8px 24px -8px oklch(0.5 0.15 256 / 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.60);
  transform: translateY(-2px);
}

.v2-lt-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  background: var(--icon-bg, rgba(79, 110, 247, 0.10));
  color: var(--icon-c, var(--c-accent));
  flex-shrink: 0;
}

.v2-lt-stat-val {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--c-text);
}

.v2-lt-stat-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-faint);
}

/* ── TABLES GRID ── */
.v2-lt-tables-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 14px;
}

/* Table panel card */
.v2-lt-table-panel {
  border: 1px solid rgba(124, 131, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Panel header */
.v2-lt-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px 13px;
  border-bottom: 1px solid rgba(124, 131, 255, 0.10);
  flex-shrink: 0;
  background: rgba(246, 250, 255, 0.60);
}

.v2-lt-table-head h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.v2-lt-table-head h3 i {
  font-size: 13px;
  color: var(--c-accent);
}

/* Search inside panel header */
.v2-lt-search-wrap {
  position: relative;
  flex-shrink: 0;
}

.v2-lt-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--c-text-faint);
  pointer-events: none;
}

.v2-lt-search-input {
  height: 32px;
  padding: 0 10px 0 28px;
  border: 1px solid rgba(124, 131, 255, 0.16);
  border-radius: 9px;
  background: rgba(246, 250, 255, 0.80);
  color: var(--c-text);
  font-size: 12px;
  font-family: var(--font-sans);
  width: 136px;
  transition: all 0.20s ease;
}

.v2-lt-search-input::placeholder {
  color: var(--c-text-faint);
}

.v2-lt-search-input:focus {
  outline: none;
  border-color: var(--c-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.10);
  width: 160px;
}

/* Scrollable table wrapper */
.v2-lt-table-wrap {
  flex: 1;
  overflow-y: auto;
  max-height: 260px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 131, 255, 0.18) transparent;
}

.v2-lt-table-wrap::-webkit-scrollbar { width: 4px; }
.v2-lt-table-wrap::-webkit-scrollbar-track { background: transparent; }
.v2-lt-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(124, 131, 255, 0.20);
  border-radius: 4px;
}

.v2-lt-table-wrap--short {
  max-height: 190px;
}

/* Data table */
.v2-lt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.v2-lt-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 9px 18px;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-text-faint);
  background: rgba(246, 250, 255, 0.92);
  border-bottom: 1px solid rgba(124, 131, 255, 0.10);
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.v2-lt-table tbody tr {
  border-bottom: 1px solid rgba(124, 131, 255, 0.07);
  transition: background 0.12s ease;
}

.v2-lt-table tbody tr:last-child {
  border-bottom: none;
}

.v2-lt-table tbody tr:hover {
  background: rgba(79, 110, 247, 0.03);
}

.v2-lt-table td {
  padding: 10px 18px;
  color: var(--c-text-dim);
  vertical-align: middle;
}

.v2-lt-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--c-text);
}

/* ════════════════════════════════════════════════════════════
   8. TRUST / PRIVACY BANNER
   ════════════════════════════════════════════════════════════ */

.v2-lt-trust-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 16px;
  border: 1px solid rgba(16, 185, 129, 0.20);
  background: rgba(16, 185, 129, 0.06);
  font-size: 13px;
  font-weight: 600;
  color: oklch(0.38 0.12 155);
  line-height: 1.5;
}

.v2-lt-trust-banner i {
  font-size: 16px;
  color: oklch(0.52 0.15 155);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════
   9. REVEAL ANIMATION
   ════════════════════════════════════════════════════════════ */

.v2-app-reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: ltReveal 0.52s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.v2-app-reveal:nth-child(1) { animation-delay: 0.04s; }
.v2-app-reveal:nth-child(2) { animation-delay: 0.11s; }
.v2-app-reveal:nth-child(3) { animation-delay: 0.18s; }
.v2-app-reveal:nth-child(4) { animation-delay: 0.25s; }
.v2-app-reveal:nth-child(5) { animation-delay: 0.32s; }
.v2-app-reveal:nth-child(6) { animation-delay: 0.38s; }

@keyframes ltReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════════
   10. LEGACY CORE PARTIAL — lt-* CLASSES
   label_tool_core.php uses these. The V2 shell overrides the
   visual shell but the JS still reads and writes these elements.
   We restyle them to match V2 tokens exactly.
   ════════════════════════════════════════════════════════════ */

/* Workspace root */
.lt-workspace {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  min-height: 520px;
}

/* ── Sidebar ── */
.lt-sidebar {
  padding: 0;
}

.lt-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92),
    rgba(246, 250, 255, 0.86)
  );
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--lt-card-radius);
  box-shadow: 0 8px 24px -8px oklch(0.5 0.15 256 / 0.18);
  padding: 26px 24px;
}

.lt-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(79, 110, 247, 0.10), transparent 30%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.06), transparent 26%);
}

.lt-panel > * {
  position: relative;
  z-index: 1;
}

/* Hero panel in sidebar */
.lt-panel-hero {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--lt-card-radius);
}

.lt-panel-hero h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--c-text);
  margin-bottom: 10px;
}

.lt-panel-copy {
  font-size: 13px;
  color: var(--c-text-dim);
  line-height: 1.65;
  margin-bottom: 22px;
}

/* lt-eyebrow (alias of v2-lt-eyebrow, same treatment) */
.lt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(79, 110, 247, 0.10);
  border: 1px solid rgba(79, 110, 247, 0.14);
  color: var(--c-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 12px;
}

/* Mini steps in sidebar */
.lt-mini-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lt-mini-step {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13px;
  color: var(--c-text-faint);
  line-height: 1.45;
}

.lt-mini-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(79, 110, 247, 0.28);
  margin-top: 1px;
}

.lt-mini-step strong {
  color: var(--c-text);
  font-weight: 700;
  display: block;
  margin-bottom: 1px;
}

/* Main content area */
.lt-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
}

/* ── Primary grid (upload + batch side by side) ── */
.lt-primary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--lt-card-radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 250, 255, 0.86));
  box-shadow: 0 8px 24px -8px oklch(0.5 0.15 256 / 0.18);
}

/* ── Upload panel ── */
.lt-upload-panel {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 28px 26px 24px 28px;
}

.lt-upload-panel::before { display: none; }

/* Panel head shared layout */
.lt-panel-head {
  margin-bottom: 18px;
}

.lt-panel-head h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-text);
  margin-top: 4px;
}

.lt-panel-head-spread {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

/* Soft badge (used in panel heads) */
.lt-soft-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(124, 131, 255, 0.16);
  background: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-faint);
  flex-shrink: 0;
}

.lt-soft-badge i {
  font-size: 11px;
  color: var(--c-accent);
}

/* ── Upload zone (core partial version) ── */
.lt-upload {
  position: relative;
  border: 2px dashed rgba(79, 110, 247, 0.30);
  border-radius: 18px;
  background: rgba(79, 110, 247, 0.025);
  padding: 32px 22px;
  cursor: pointer;
  text-align: center;
  transition: all 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.lt-upload:hover,
.lt-upload:focus-visible {
  border-color: var(--c-accent);
  background: rgba(79, 110, 247, 0.055);
  box-shadow: 0 0 0 4px rgba(79, 110, 247, 0.10);
  outline: none;
}

.lt-upload.is-dragging {
  border-color: var(--c-accent);
  background: rgba(79, 110, 247, 0.09);
  box-shadow: 0 0 0 5px rgba(79, 110, 247, 0.12), 0 12px 36px rgba(79, 110, 247, 0.16);
  transform: scale(1.012);
}

.lt-upload-zone-tag {
  position: absolute;
  top: -1px;
  left: 18px;
  height: 24px;
  padding: 0 10px;
  border-radius: 0 0 9px 9px;
  background: var(--c-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lt-upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.lt-upload-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(79, 110, 247, 0.14), rgba(99, 146, 255, 0.18));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--c-accent);
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 5px 16px rgba(79, 110, 247, 0.20);
}

.lt-upload:hover .lt-upload-icon,
.lt-upload.is-dragging .lt-upload-icon {
  transform: translateY(-4px) scale(1.08);
}

.lt-upload-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.01em;
}

.lt-upload-sub {
  font-size: 13px;
  color: var(--c-text-faint);
  line-height: 1.60;
  max-width: 300px;
}

.lt-upload-callout {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--c-text-faint);
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(79, 110, 247, 0.06);
  border: 1px solid rgba(79, 110, 247, 0.12);
}

.lt-upload-callout i {
  color: var(--c-accent);
  font-size: 12px;
}

.lt-upload-highlights {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.lt-upload-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(124, 131, 255, 0.14);
  background: rgba(255, 255, 255, 0.80);
  font-size: 11px;
  font-weight: 600;
  color: var(--c-text-faint);
}

.lt-upload-highlights i {
  font-size: 10px;
  color: var(--c-accent);
}

/* Quick stats (core version) */
.lt-quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(124, 131, 255, 0.12);
  border-radius: 13px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.70);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.lt-quick-stat {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lt-quick-stat:not(:last-child) {
  border-right: 1px solid rgba(124, 131, 255, 0.10);
}

.lt-quick-stat span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-text-faint);
}

.lt-quick-stat strong {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
}

/* ── Batch panel (core version) ── */
.lt-batch-panel {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 28px 28px 24px 22px;
  border-left: 1px solid rgba(124, 131, 255, 0.10);
}

.lt-batch-panel::before { display: none; }

/* File count display */
.lt-file-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--c-text-faint);
}

.lt-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(79, 110, 247, 0.10);
  border: 1px solid rgba(79, 110, 247, 0.18);
  color: var(--c-accent);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
}

/* File wrapper / list (core) */
.lt-file-wrapper {
  background: rgba(246, 250, 255, 0.60);
  border: 1px solid rgba(124, 131, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
}

.lt-file-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(124, 131, 255, 0.10);
  background: rgba(246, 250, 255, 0.60);
}

.lt-file-header span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-faint);
}

.lt-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(124, 131, 255, 0.14);
  background: none;
  color: var(--c-text-faint);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.18s ease;
}

.lt-clear-btn:hover {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.06);
  color: var(--c-danger);
}

.lt-file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
  padding: 10px 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 131, 255, 0.18) transparent;
}

.lt-file-list::-webkit-scrollbar { width: 4px; }
.lt-file-list::-webkit-scrollbar-track { background: transparent; }
.lt-file-list::-webkit-scrollbar-thumb {
  background: rgba(124, 131, 255, 0.20);
  border-radius: 4px;
}

/* Individual lt-file-item */
.lt-file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(124, 131, 255, 0.12);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.80);
  transition: all 0.15s ease;
  animation: ltFileIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lt-file-item:hover {
  border-color: rgba(79, 110, 247, 0.20);
  background: rgba(79, 110, 247, 0.02);
}

/* Action row */
.lt-action-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lt-generate-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, oklch(0.62 0.22 256), oklch(0.54 0.24 262));
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 8px 24px oklch(0.62 0.22 256 / 0.32);
  transition: all 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.lt-generate-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px oklch(0.62 0.22 256 / 0.42);
}

.lt-generate-btn:disabled {
  opacity: 0.46;
  cursor: not-allowed;
  box-shadow: none;
}

.lt-action-help {
  font-size: 12px;
  color: var(--c-text-faint);
  text-align: center;
  line-height: 1.55;
}

/* Reprocess (core) */
.lt-reprocess {
  display: none;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 11px;
  border: 1px solid rgba(245, 158, 11, 0.26);
  background: rgba(245, 158, 11, 0.07);
  color: oklch(0.42 0.12 70);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 8px;
}

.lt-reprocess.is-visible {
  display: flex;
}

.lt-reprocess i {
  flex-shrink: 0;
  margin-top: 1px;
}

.lt-reprocess button {
  border: none;
  background: none;
  color: oklch(0.38 0.14 70);
  font-weight: 700;
  font-family: var(--font-sans);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}

/* ── Controls panel (core) ── */
.lt-controls-panel {
  padding: 26px 28px;
}

/* Switches row */
.lt-switches {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lt-switches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

/* lt-switch mirrors v2-lt-switch */
.lt-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(124, 131, 255, 0.14);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.60);
  cursor: pointer;
  transition: all 0.20s ease;
  user-select: none;
}

.lt-switch:hover {
  border-color: rgba(79, 110, 247, 0.24);
  background: rgba(79, 110, 247, 0.02);
}

.lt-switch.checked {
  border-color: rgba(79, 110, 247, 0.28);
  background: rgba(79, 110, 247, 0.04);
}

.lt-switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lt-switch-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.lt-sw-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(124, 131, 255, 0.12);
  background: rgba(246, 250, 255, 0.80);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--c-text-faint);
  flex-shrink: 0;
  transition: all 0.20s ease;
}

.lt-switch.checked .lt-sw-icon {
  background: rgba(79, 110, 247, 0.12);
  border-color: rgba(79, 110, 247, 0.22);
  color: var(--c-accent);
}

.lt-sw-icon.solid {
  background: rgba(79, 110, 247, 0.10);
  border-color: rgba(79, 110, 247, 0.18);
  color: var(--c-accent);
}

.lt-switch-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lt-sw-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.3;
}

.lt-sw-help {
  font-size: 12px;
  color: var(--c-text-faint);
  line-height: 1.45;
}

.lt-sw-toggle {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: rgba(124, 131, 255, 0.20);
  position: relative;
  flex-shrink: 0;
  transition: background 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.lt-sw-toggle span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.lt-switch.checked .lt-sw-toggle { background: var(--c-accent); }
.lt-switch.checked .lt-sw-toggle span { transform: translateX(16px); }

/* Text config (core) */
.lt-text-config {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid rgba(79, 110, 247, 0.18);
  border-radius: 16px;
  background: rgba(79, 110, 247, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  animation: ltSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lt-text-config.is-open { display: flex; }

.lt-quick-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lt-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid rgba(124, 131, 255, 0.16);
  background: rgba(255, 255, 255, 0.80);
  color: var(--c-text-dim);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.16s ease;
}

.lt-quick-btn:hover {
  border-color: rgba(79, 110, 247, 0.28);
  background: rgba(79, 110, 247, 0.06);
  color: var(--c-accent);
}

/* Controls footer (core) */
.lt-controls-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
  padding-top: 16px;
  border-top: 1px solid rgba(124, 131, 255, 0.10);
  margin-top: 4px;
}

/* Progress (core) */
.lt-progress {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 44px;
  text-align: center;
}

.lt-progress.is-visible { display: flex; }

/* Results (core) */
.lt-results {
  display: none;
  flex-direction: column;
  gap: 26px;
  padding: 30px 32px;
}

.lt-results.is-visible { display: flex; }

/* ════════════════════════════════════════════════════════════
   11. UTILITY CLASSES (V2 spec)
   ════════════════════════════════════════════════════════════ */

/* Colour utilities */
.col-success { color: oklch(0.55 0.16 155) !important; }
.col-warning { color: oklch(0.58 0.15 70)  !important; }
.col-danger  { color: oklch(0.52 0.22 25)  !important; }
.col-info    { color: oklch(0.52 0.18 240) !important; }
.col-accent  { color: var(--c-accent)      !important; }
.col-dim     { color: var(--c-text-faint)  !important; }

/* Font weights */
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }

/* Hidden */
.hidden { display: none !important; }

/* Badge variants (for JS-injected badges in table cells) */
.lt-badge-success,
.v2-lt-badge-success {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  color: oklch(0.55 0.16 155);
}

.lt-badge-warning,
.v2-lt-badge-warning {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.12);
  color: oklch(0.58 0.15 70);
}

.lt-badge-danger,
.v2-lt-badge-danger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.12);
  color: oklch(0.52 0.22 25);
}

.lt-badge-info,
.v2-lt-badge-info {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(59, 130, 246, 0.12);
  color: oklch(0.52 0.18 240);
}

/* Skeleton loading state */
@keyframes ltSkeletonSweep {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

.lt-skeleton,
.v2-lt-skeleton {
  background: linear-gradient(
    90deg,
    rgba(226, 232, 246, 0.80) 0%,
    rgba(241, 245, 255, 0.90) 50%,
    rgba(226, 232, 246, 0.80) 100%
  );
  background-size: 1200px 100%;
  animation: ltSkeletonSweep 1.6s ease-in-out infinite;
  border-radius: 8px;
}

/* Alert banner variants */
.lt-alert,
.v2-lt-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.55;
}

.lt-alert-warning,
.v2-lt-alert-warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.22);
  color: oklch(0.42 0.12 70);
}

.lt-alert-info,
.v2-lt-alert-info {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: oklch(0.38 0.12 240);
}

.lt-alert-success,
.v2-lt-alert-success {
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.20);
  color: oklch(0.38 0.12 155);
}

/* ════════════════════════════════════════════════════════════
   12. RESPONSIVE — TABLET (≤ 1100px)
   ════════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  /* Stats grid: 2 cols */
  .v2-lt-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Breakdown tables: 2 cols + last spans full */
  .v2-lt-tables-grid {
    grid-template-columns: 1fr 1fr;
  }

  .v2-lt-tables-grid .v2-lt-table-panel:last-child {
    grid-column: 1 / -1;
  }

  /* Controls footer: single column */
  .v2-lt-controls-footer {
    grid-template-columns: 1fr;
  }

  .lt-controls-footer {
    grid-template-columns: 1fr;
  }

  /* Core partial workspace: collapse sidebar */
  .lt-workspace {
    grid-template-columns: 1fr;
  }

  .lt-sidebar {
    display: none;
  }
}

/* ════════════════════════════════════════════════════════════
   13. RESPONSIVE — TABLET PORTRAIT (≤ 900px)
   ════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  /* Workspace panes stack vertically */
  .v2-lt-workspace {
    grid-template-columns: 1fr;
  }

  .v2-lt-batch-pane {
    border-left: none;
    border-top: 1px solid rgba(124, 131, 255, 0.10);
    padding: 26px 28px;
  }

  /* Core primary grid stacks */
  .lt-primary-grid {
    grid-template-columns: 1fr;
  }

  .lt-batch-panel {
    border-left: none;
    border-top: 1px solid rgba(124, 131, 255, 0.10);
  }

  /* Command deck: wrap with column layout at this size */
  .v2-lt-command {
    flex-direction: column;
    gap: 22px;
  }

  .v2-lt-command-meta {
    align-items: flex-start;
    width: 100%;
  }

  .v2-lt-mini-steps {
    flex-direction: row;
    gap: 18px;
    flex-wrap: wrap;
  }
}

/* ════════════════════════════════════════════════════════════
   14. RESPONSIVE — LARGE MOBILE (≤ 720px)
   ════════════════════════════════════════════════════════════ */

@media (max-width: 720px) {
  .v2-label-tool-page {
    --lt-gap: 16px;
  }

  .v2-lt-command {
    padding: 24px 22px;
  }

  .v2-lt-controls {
    padding: 24px 22px;
  }

  .v2-lt-results-card {
    padding: 26px 22px;
    gap: 22px;
  }

  .v2-lt-upload-pane {
    padding: 22px 20px;
  }

  .v2-lt-batch-pane {
    padding: 22px 20px;
  }

  /* Switches: single column */
  .v2-lt-switches-grid {
    grid-template-columns: 1fr;
  }

  .lt-switches-grid {
    grid-template-columns: 1fr;
  }

  /* Stats: 2 cols */
  .v2-lt-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Tables: 1 col */
  .v2-lt-tables-grid {
    grid-template-columns: 1fr;
  }

  /* Results top: stack */
  .v2-lt-results-top {
    flex-direction: column;
    gap: 18px;
  }

  .v2-lt-results-actions {
    width: 100%;
  }

  .v2-lt-download-btn,
  .v2-lt-reset-btn {
    flex: 1;
    justify-content: center;
  }

  /* Progress: tighter padding */
  .v2-lt-progress-card {
    padding: 32px 24px;
  }

  /* Trust banner: column on tiny screens */
  .v2-lt-trust-banner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 14px 18px;
  }
}

/* ════════════════════════════════════════════════════════════
   15. RESPONSIVE — MOBILE (≤ 480px)
   ════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {
  /* Command title tighter */
  .v2-lt-command-title {
    font-size: 22px;
  }

  /* Quick stats: single column */
  .v2-lt-quick-stats {
    grid-template-columns: 1fr;
  }

  .v2-lt-quick-stat:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(124, 131, 255, 0.10);
  }

  .lt-quick-stats {
    grid-template-columns: 1fr;
  }

  .lt-quick-stat:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(124, 131, 255, 0.10);
  }

  /* Stats values smaller */
  .v2-lt-stat-val {
    font-size: 22px;
  }

  /* Stats grid: tighter */
  .v2-lt-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  /* Badge row: wrap freely */
  .v2-lt-badge-row {
    gap: 6px;
  }

  /* Mini steps: vertical again on very small */
  .v2-lt-mini-steps {
    flex-direction: column;
    gap: 8px;
  }

  /* Switches font tighter */
  .v2-lt-sw-label,
  .lt-sw-label {
    font-size: 12.5px;
  }

  /* Generate button height */
  .v2-lt-generate-btn {
    min-height: 46px;
    font-size: 14px;
  }

  /* Drop zone: compact */
  .v2-lt-drop-zone {
    padding: 30px 18px;
    min-height: 180px;
    gap: 10px;
  }

  .v2-lt-drop-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  /* Search input full width on mobile */
  .v2-lt-search-input {
    width: 100%;
  }

  .v2-lt-search-input:focus {
    width: 100%;
  }

  .v2-lt-table-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .v2-lt-search-wrap {
    width: 100%;
  }

  .v2-lt-search-input {
    width: 100%;
  }
}

/* ════════════════════════════════════════════════════════════
   16. MOTION ACCESSIBILITY
   ════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .v2-app-reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .v2-lt-drop-zone.is-dragging {
    animation: none;
  }

  .v2-lt-progress-fill::after {
    animation: none;
  }

  .v2-lt-spinner {
    animation: none;
    border-top-color: var(--c-accent);
    border-color: var(--c-accent);
  }
}

/* ==========================================================================
   17. PUBLIC ROUTE POLISH — current label-cropper-page.php markup
   The public tool still carries older inline styles. Keep this layer scoped to
   the label route so it can safely override those styles without changing PDF
   processing logic or other V2 pages.
   ========================================================================== */

.v2-page-label-cropper {
  background:
    radial-gradient(circle at 10% 10%, rgba(79, 110, 247, 0.10), transparent 28rem),
    radial-gradient(circle at 90% 16%, rgba(14, 165, 233, 0.08), transparent 26rem),
    linear-gradient(180deg, #f8fbff 0%, #eef7ff 52%, #f8fbff 100%);
}

.v2-page-label-cropper .v2-layout-wrapper {
  overflow: clip;
}

.v2-page-label-cropper .v2-hero {
  padding-top: 84px !important;
  padding-bottom: 28px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(79, 110, 247, 0.14), transparent 34rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 250, 255, 0.58));
}

.v2-page-label-cropper .v2-hero-inner {
  padding: 56px 28px 36px !important;
  background:
    radial-gradient(circle at 15% 0%, rgba(125, 211, 252, 0.24), transparent 28rem),
    linear-gradient(135deg, #2f8dff 0%, #2455f0 58%, #1b3fd3 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.30) !important;
  box-shadow: 0 34px 80px -36px rgba(37, 99, 235, 0.62) !important;
}

.v2-page-label-cropper .v2-hero-title {
  color: #f8fbff !important;
  letter-spacing: -0.045em;
  text-shadow: 0 2px 18px rgba(3, 7, 18, 0.16);
}

.v2-page-label-cropper .v2-hero-sub {
  color: rgba(239, 246, 255, 0.88) !important;
}

.v2-page-label-cropper .v2-hero-inner .text-gradient {
  background: none !important;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #dff6ff !important;
}

.v2-page-label-cropper .v2-hero-inner .v2-section-badge,
.v2-page-label-cropper .v2-hero-inner [style*="background: rgba(124, 131, 255"] {
  background: rgba(255, 255, 255, 0.13) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  color: rgba(255, 255, 255, 0.82) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.v2-page-label-cropper .v2-hero-inner [style*="background: rgba(16, 185, 129"] {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.26) !important;
  color: rgba(240, 253, 250, 0.88) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.v2-page-label-cropper .v2-calculator-workspace {
  padding: 18px 0 70px !important;
}

.v2-page-label-cropper .v2-calculator-workspace .v2-features-grid:first-child {
  display: grid !important;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr) !important;
  gap: 24px !important;
}

.v2-page-label-cropper .v2-card,
.v2-page-label-cropper .lt-progress,
.v2-page-label-cropper .lt-results-top {
  background:
    radial-gradient(circle at top left, rgba(79, 110, 247, 0.09), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.88)) !important;
  border: 1px solid rgba(124, 131, 255, 0.16) !important;
  border-radius: 28px !important;
  box-shadow:
    0 24px 60px -28px rgba(42, 84, 160, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
  color: var(--c-text);
}

.v2-page-label-cropper #uploadZone {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 28px 32px !important;
  cursor: pointer;
  text-align: center;
  border: 1.5px dashed rgba(79, 110, 247, 0.34) !important;
  background:
    radial-gradient(circle at 50% 10%, rgba(79, 110, 247, 0.15), transparent 24rem),
    radial-gradient(circle at 50% 100%, rgba(14, 165, 233, 0.08), transparent 20rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 255, 0.92)) !important;
}

.v2-page-label-cropper #uploadZone::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 22px;
  border: 1px solid rgba(79, 110, 247, 0.10);
  pointer-events: none;
  z-index: -1;
}

.v2-page-label-cropper #uploadZone .v2-tool-icon {
  width: 64px !important;
  height: 64px !important;
  margin: 0 auto 18px !important;
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.52), transparent 32%),
    linear-gradient(135deg, #40b7ff, #2454f2) !important;
  box-shadow: 0 22px 42px -20px rgba(37, 99, 235, 0.72);
}

.v2-page-label-cropper #uploadZone .v2-tool-icon i {
  color: #ffffff !important;
  font-size: 26px !important;
}

.v2-page-label-cropper #uploadZone:hover,
.v2-page-label-cropper #uploadZone.dragover {
  border-color: rgba(79, 110, 247, 0.62) !important;
  transform: translateY(-2px);
  box-shadow:
    0 30px 70px -32px rgba(42, 84, 160, 0.34),
    0 0 0 5px rgba(79, 110, 247, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
}

.v2-page-label-cropper #uploadZone h2,
.v2-page-label-cropper .v2-card h2,
.v2-page-label-cropper .v2-card h3,
.v2-page-label-cropper .v2-card h4,
.v2-page-label-cropper .lt-results-title {
  color: var(--c-text) !important;
}

.v2-page-label-cropper #uploadZone h2 {
  max-width: 520px;
  margin: 0 auto 8px !important;
  font-size: clamp(19px, 2.1vw, 24px) !important;
  line-height: 1.18;
}

.v2-page-label-cropper #uploadZone p,
.v2-page-label-cropper .lt-action-help,
.v2-page-label-cropper .lt-results-sub,
.v2-page-label-cropper .v2-card p,
.v2-page-label-cropper .v2-card li {
  color: var(--c-text-dim) !important;
}

.v2-page-label-cropper #uploadZone p {
  max-width: 480px;
  margin: 0 auto 22px !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
}

.v2-page-label-cropper #uploadZone .v2-btn-primary {
  margin: 0 auto !important;
  min-width: 190px;
  justify-content: center;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #3ba8ff, #2454f2) !important;
  box-shadow: 0 18px 34px -18px rgba(37, 99, 235, 0.80) !important;
}

.v2-page-label-cropper #uploadZone > div:last-child {
  width: min(100%, 500px);
  margin-top: 24px !important;
  padding-top: 18px !important;
  border-top-color: rgba(124, 131, 255, 0.14) !important;
  flex-wrap: wrap;
  gap: 10px !important;
}

.v2-page-label-cropper #uploadZone > div:last-child span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(124, 131, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.70);
  color: var(--c-text-faint);
  line-height: 1;
}

.v2-page-label-cropper .lt-file-wrapper,
.v2-page-label-cropper .lt-file-empty,
.v2-page-label-cropper .lt-file-item,
.v2-page-label-cropper .lt-switch,
.v2-page-label-cropper .lt-text-config.open {
  background: rgba(255, 255, 255, 0.78) !important;
  border-color: rgba(124, 131, 255, 0.15) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.70);
}

.v2-page-label-cropper .lt-file-header {
  border-bottom-color: rgba(124, 131, 255, 0.11) !important;
}

.v2-page-label-cropper .lt-file-name,
.v2-page-label-cropper .lt-sw-label {
  color: var(--c-text) !important;
}

.v2-page-label-cropper .lt-file-size,
.v2-page-label-cropper .lt-sw-help,
.v2-page-label-cropper .lt-file-header span {
  color: var(--c-text-faint) !important;
}

.v2-page-label-cropper .lt-switch.checked {
  background: rgba(79, 110, 247, 0.06) !important;
  border-color: rgba(79, 110, 247, 0.30) !important;
}

.v2-page-label-cropper .lt-sw-toggle {
  width: 42px;
  height: 24px;
  border: 1px solid rgba(100, 116, 139, 0.28);
  background: linear-gradient(180deg, #e6edf7, #f8fbff) !important;
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.10),
    0 1px 2px rgba(15, 23, 42, 0.08);
}

.v2-page-label-cropper .lt-sw-toggle span {
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border: 1px solid rgba(100, 116, 139, 0.20);
  box-shadow:
    0 2px 7px rgba(15, 23, 42, 0.20),
    0 0 0 1px rgba(255, 255, 255, 0.82) inset;
}

.v2-page-label-cropper .lt-switch:hover .lt-sw-toggle {
  border-color: rgba(79, 110, 247, 0.38);
  background: linear-gradient(180deg, #dbeafe, #f8fbff) !important;
}

.v2-page-label-cropper .lt-switch.checked .lt-sw-toggle {
  border-color: rgba(37, 99, 235, 0.42);
  background: linear-gradient(135deg, #39a8ff, #2454f2) !important;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.26),
    0 10px 20px -14px rgba(37, 99, 235, 0.90);
}

.v2-page-label-cropper .lt-switch.checked .lt-sw-toggle span {
  transform: translateX(18px);
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.28);
}

.v2-page-label-cropper .lt-sw-icon {
  background: rgba(246, 250, 255, 0.88) !important;
  border: 1px solid rgba(124, 131, 255, 0.14);
  color: var(--c-text-faint) !important;
}

.v2-page-label-cropper .lt-switch.checked .lt-sw-icon {
  background: rgba(79, 110, 247, 0.12) !important;
  color: var(--c-accent) !important;
}

.v2-page-label-cropper .lt-text-input,
.v2-page-label-cropper .lt-qty-select,
.v2-page-label-cropper #skuSearchInput,
.v2-page-label-cropper #courierSearchInput {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(124, 131, 255, 0.20) !important;
  color: var(--c-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.v2-page-label-cropper .lt-text-input::placeholder,
.v2-page-label-cropper #skuSearchInput::placeholder,
.v2-page-label-cropper #courierSearchInput::placeholder {
  color: var(--c-text-faint);
}

.v2-page-label-cropper .lt-text-input:focus,
.v2-page-label-cropper .lt-qty-select:focus,
.v2-page-label-cropper #skuSearchInput:focus,
.v2-page-label-cropper #courierSearchInput:focus {
  outline: none;
  border-color: rgba(79, 110, 247, 0.52) !important;
  box-shadow: 0 0 0 4px rgba(79, 110, 247, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.v2-page-label-cropper .lt-generate-btn,
.v2-page-label-cropper .lt-download-btn {
  min-height: 48px;
  border-radius: 999px !important;
  background: linear-gradient(135deg, oklch(0.62 0.22 256), oklch(0.54 0.24 262)) !important;
  box-shadow: 0 14px 34px -16px oklch(0.62 0.22 256 / 0.72) !important;
}

.v2-page-label-cropper .lt-reset-btn {
  border: 1px solid rgba(124, 131, 255, 0.16) !important;
  background: rgba(255, 255, 255, 0.78) !important;
  color: var(--c-text) !important;
  border-radius: 999px !important;
}

.v2-page-label-cropper .lt-progress.active,
.v2-page-label-cropper .lt-results.active {
  display: flex !important;
}

.v2-page-label-cropper .lt-progress,
.v2-page-label-cropper .lt-results {
  scroll-margin-top: 128px;
}

.v2-page-label-cropper .lt-results {
  gap: 24px;
  margin-top: 42px !important;
}

.v2-page-label-cropper .lt-results-top {
  align-items: center;
  padding: 26px 32px !important;
}

.v2-page-label-cropper .lt-results-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(16, 185, 129, 0.11);
  color: oklch(0.55 0.16 155);
}

.v2-page-label-cropper .lt-results > div[style*="grid-template-columns: repeat(4"] {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

.v2-page-label-cropper .lt-results > div[style*="grid-template-columns: repeat(4"] .v2-card {
  padding: 22px 18px !important;
  text-align: left !important;
}

.v2-page-label-cropper .lt-results > div[style*="grid-template-columns: repeat(4"] .v2-card > div:first-child {
  color: var(--c-text-faint) !important;
  letter-spacing: 0.07em;
}

.v2-page-label-cropper .lt-results > div[style*="grid-template-columns: repeat(4"] .v2-card > div:last-child {
  color: var(--c-accent) !important;
}

.v2-page-label-cropper .lt-results > .v2-features-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 20px !important;
}

.v2-page-label-cropper .lt-results .v2-card[style*="grid-column"] {
  grid-column: 1 / -1 !important;
}

.v2-page-label-cropper .lt-results .v2-card [style*="border-bottom"] {
  border-bottom-color: rgba(124, 131, 255, 0.12) !important;
}

.v2-page-label-cropper .lt-results .v2-card > div:first-child,
.v2-page-label-cropper .lt-results .v2-card > div:first-child h4 {
  min-width: 0;
}

.v2-page-label-cropper .lt-results .v2-card > div:first-child h4 {
  white-space: nowrap;
}

.v2-page-label-cropper .lt-results .v2-card > div:first-child > div {
  flex: 0 0 190px;
  max-width: 46% !important;
}

.v2-page-label-cropper .calc-table-wrap {
  overflow: auto !important;
  border: 1px solid rgba(124, 131, 255, 0.13) !important;
  background: rgba(255, 255, 255, 0.66) !important;
  border-radius: 16px !important;
  padding: 6px !important;
}

.v2-page-label-cropper .calc-table {
  table-layout: auto !important;
  min-width: 100%;
}

.v2-page-label-cropper .calc-table th {
  background: transparent !important;
  color: var(--c-text-faint) !important;
  border-bottom: 1px solid rgba(124, 131, 255, 0.10);
  padding: 0 10px 8px !important;
  white-space: nowrap;
}

.v2-page-label-cropper .calc-table td {
  color: var(--c-text-dim) !important;
  border-top-color: rgba(124, 131, 255, 0.08) !important;
  padding: 5px 10px !important;
  vertical-align: middle;
}

.v2-page-label-cropper .calc-table th:first-child,
.v2-page-label-cropper .calc-table td:first-child {
  width: auto !important;
}

.v2-page-label-cropper .calc-table th:last-child,
.v2-page-label-cropper .calc-table td:last-child {
  width: 92px !important;
  text-align: right !important;
  white-space: nowrap;
}

.v2-page-label-cropper .calc-table td strong {
  color: var(--c-text) !important;
}

.v2-page-label-cropper .lt-breakdown-badge {
  background: rgba(79, 110, 247, 0.08) !important;
  border: 1px solid rgba(79, 110, 247, 0.16) !important;
  color: var(--c-accent) !important;
}

.v2-page-label-cropper .lt-courier-badge {
  background: rgba(16, 185, 129, 0.09) !important;
  border-color: rgba(16, 185, 129, 0.22) !important;
  color: oklch(0.50 0.15 155) !important;
}

.v2-page-label-cropper .v2-calculator-tips {
  padding-top: 8px;
}

.v2-page-label-cropper .v2-calculator-tips .v2-pain-card {
  background:
    radial-gradient(circle at top left, rgba(79, 110, 247, 0.07), transparent 30%),
    rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(124, 131, 255, 0.14) !important;
  box-shadow: 0 18px 44px -28px rgba(42, 84, 160, 0.28);
}

@media (max-width: 1100px) {
  .v2-page-label-cropper .v2-calculator-workspace .v2-features-grid:first-child {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {
  .v2-page-label-cropper .v2-hero {
    padding-top: 76px !important;
  }

  .v2-page-label-cropper .lt-results > div[style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .v2-page-label-cropper .lt-results > .v2-features-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .v2-page-label-cropper .v2-hero-inner {
    padding: 42px 18px 26px !important;
  }

  .v2-page-label-cropper .v2-calculator-workspace .v2-card {
    padding: 22px !important;
  }

  .v2-page-label-cropper #uploadZone {
    padding: 34px 18px !important;
  }

  .v2-page-label-cropper .lt-results-top {
    align-items: flex-start;
    padding: 22px !important;
  }

  .v2-page-label-cropper .lt-results-info,
  .v2-page-label-cropper .lt-results-actions {
    width: 100%;
  }

  .v2-page-label-cropper .lt-results-actions > button {
    width: 100%;
    justify-content: center;
  }

  .v2-page-label-cropper .lt-results > div[style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr !important;
  }

  .v2-page-label-cropper .lt-results .v2-card > div:first-child {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 10px;
  }

  .v2-page-label-cropper .lt-results .v2-card > div:first-child > div {
    flex-basis: auto;
    max-width: 100% !important;
    width: 100%;
  }
}
