.upload-sidebar-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 0 0;
}

.upload-sidebar-copy {
  min-width: 0;
}

.upload-dropzone-title {
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
}

.upload-dropzone-copytext {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.84rem;
  line-height: 1.45;
}

.upload-dropzone-sidebar {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 0.95rem;
  min-height: 18rem;
  padding: 1.15rem;
}

.upload-dropzone-sidebar .pdf-dropzone-copy,
.upload-dropzone-sidebar .pdf-dropzone-hint,
.upload-dropzone-sidebar .pdf-dropzone-message {
  width: 100%;
}

.upload-sidebar-button {
  width: 100%;
}

.upload-queue-shell-main {
  min-height: 0;
}

.upload-content {
  overflow: auto;
  overflow-x: auto;
  overflow-y: auto;
  padding: 0.75rem;
}

.pdf-dropzone {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 1.1rem 1.15rem;
  border: 1px dashed rgba(124, 196, 255, 0.24);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.pdf-dropzone.is-dragover {
  background: rgba(78, 166, 255, 0.1);
  border-color: rgba(124, 196, 255, 0.45);
  transform: translateY(-1px);
}

.pdf-dropzone-copy {
  min-width: 0;
}

.pdf-dropzone-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pdf-dropzone-button {
  white-space: nowrap;
}

.pdf-dropzone-hint {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.82rem;
  line-height: 1.4;
}

.pdf-dropzone-message {
  grid-column: 1 / -1;
  font-size: 0.86rem;
}

.upload-queue-shell {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1.25rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.upload-queue-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.upload-queue-list {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  gap: 0.9rem;
  overflow: auto;
  padding-right: 0.25rem;
}

.upload-job-card {
  padding: 1rem 1rem 0.95rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.upload-job-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.upload-job-copy {
  min-width: 0;
}

.upload-job-eyebrow {
  color: rgba(124, 196, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.upload-job-title {
  margin-top: 0.35rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.upload-job-meta {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

.upload-job-details {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
}

.upload-job-status-pill,
.upload-file-status {
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(124, 196, 255, 0.16);
  background: rgba(124, 196, 255, 0.08);
  color: #d6ecff;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.upload-job-status-pill {
  padding: 0.45rem 0.8rem;
}

.upload-job-files {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.upload-file-block {
  display: grid;
  gap: 0.35rem;
  height: 100%;
  padding: 0.65rem 0.7rem 0.7rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.upload-file-body {
  display: grid;
  gap: 0.3rem;
}

.upload-file-steps {
  display: grid;
  gap: 0.3rem;
  padding-left: 0;
}

.upload-job-actions {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: stretch;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.upload-job-actions .upload-step-row {
  flex: 1 1 10rem;
  min-width: 0;
}

.upload-job-footer {
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
}

.upload-job-footer .upload-job-edit-btn {
  margin-left: auto;
}

.upload-job-edit-btn {
  padding: 0.68rem 1rem;
}

.upload-file-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.upload-file-copy {
  min-width: 0;
}

.upload-file-name {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 600;
  word-break: break-word;
}

.upload-file-meta {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.88rem;
  line-height: 1.4;
}

.upload-file-status {
  padding: 0.38rem 0.72rem;
}

.upload-step-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.48rem 0.65rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.upload-step-icon {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 196, 255, 0.2);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
  font-weight: 800;
}

.upload-step-copy {
  min-width: 0;
}

.upload-step-label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  line-height: 1.2;
}

.upload-step-active {
  border-color: rgba(124, 196, 255, 0.42);
  background: rgba(78, 166, 255, 0.12);
}

.upload-step-active .upload-step-icon {
  border-color: rgba(124, 196, 255, 0.5);
  background: rgba(124, 196, 255, 0.16);
  color: #fff;
}

.upload-step-active .upload-step-timeline-index {
  border-color: rgba(124, 196, 255, 0.5);
  background: rgba(124, 196, 255, 0.16);
  color: #fff;
}

.upload-step-done {
  border-color: rgba(82, 203, 133, 0.42);
  background: rgba(82, 203, 133, 0.08);
}

.upload-step-done .upload-step-icon {
  border-color: rgba(82, 203, 133, 0.7);
  background: rgba(82, 203, 133, 0.16);
  color: #8ff0b1;
}

.upload-step-done .upload-step-timeline-index {
  border-color: rgba(82, 203, 133, 0.7);
  background: rgba(82, 203, 133, 0.16);
  color: #8ff0b1;
}

.upload-step-done .upload-step-label {
  color: rgba(255, 255, 255, 0.9);
}

.upload-step-failed {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
}

.upload-step-failed .upload-step-icon {
  border-color: rgba(239, 68, 68, 0.6);
  background: rgba(239, 68, 68, 0.16);
  color: #ffb3b3;
}

.upload-step-failed .upload-step-timeline-index {
  border-color: rgba(239, 68, 68, 0.6);
  background: rgba(239, 68, 68, 0.16);
  color: #ffb3b3;
}

.upload-empty-state {
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  border: 1px dashed rgba(124, 196, 255, 0.22);
  color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.02);
}

.upload-flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
}

.upload-flow-panel {
  min-width: 0;
  padding: 0.7rem;
  border-radius: 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.upload-mermaid-shell {
  min-width: 0;
  overflow: auto;
  padding: 0.8rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.upload-mermaid {
  min-width: max-content;
}

.upload-mermaid svg {
  display: block;
  width: max-content;
  min-width: 100%;
  max-width: none !important;
  height: auto;
  font-size: 12px;
  transform: scale(1);
  transform-origin: top left;
}

.upload-mermaid {
  width: max-content;
}

.upload-tree {
  display: inline-grid;
  justify-items: start;
  gap: 0.35rem;
  width: max-content;
  min-width: 100%;
}

.upload-flow-node {
  width: 12.25rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.88rem;
  border: 1px solid rgba(124, 196, 255, 0.22);
  background: rgba(78, 166, 255, 0.08);
  box-shadow: 0 8px 14px rgba(15, 23, 42, 0.08);
}

.upload-flow-node-root {
  text-align: center;
}

.upload-flow-node-kicker {
  color: rgba(124, 196, 255, 0.95);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.upload-flow-node-title {
  margin-top: 0.18rem;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  word-break: break-word;
}

.upload-flow-node-meta {
  margin-top: 0.14rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.64rem;
}

.upload-flow-step {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.34rem 0.45rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.upload-tree-root {
  display: grid;
  justify-items: start;
  width: 100%;
}

.upload-tree-connector {
  width: 2px;
  min-height: 0.7rem;
  background: linear-gradient(to bottom, rgba(124, 196, 255, 0.72), rgba(124, 196, 255, 0.28));
}

.upload-tree-child {
  display: grid;
  justify-items: start;
  width: 100%;
  gap: 0.35rem;
}

.upload-tree-docs {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.55rem;
  width: max-content;
  min-width: 100%;
  padding-top: 0.75rem;
}

.upload-tree-docs::before {
  content: '';
  position: absolute;
  top: 0.38rem;
  left: 0.45rem;
  right: 0.45rem;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(124, 196, 255, 0.45), rgba(124, 196, 255, 0.45), transparent);
}

.upload-tree-doc {
  position: relative;
  flex: 0 0 14rem;
  display: grid;
  justify-items: stretch;
  gap: 0.32rem;
  padding-top: 0.6rem;
}

.upload-tree-doc-connector {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 0.6rem;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(124, 196, 255, 0.45), rgba(124, 196, 255, 0.18));
}

.upload-flow-node-document {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
}

.upload-flow-node-branch {
  width: 12.25rem;
  background: rgba(255, 255, 255, 0.04);
}

.upload-step-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0.9rem, 1fr));
  align-items: flex-start;
  gap: 0.22rem;
  width: 100%;
  min-width: 0;
  padding: 0.32rem 0.05rem 0.18rem;
  overflow: visible;
}

.upload-step-timeline::before {
  content: '';
  position: absolute;
  top: 0.72rem;
  left: 0.35rem;
  right: 0.35rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, rgba(124, 196, 255, 0.16), rgba(124, 196, 255, 0.42), rgba(124, 196, 255, 0.16));
}

.upload-step-timeline-item {
  position: relative;
  width: 100%;
  min-width: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 0.16rem 0;
  border-radius: 0.9rem;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  outline: none;
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, padding 0.12s ease;
}

.upload-step-timeline-index {
  position: relative;
  z-index: 1;
  width: 0.9rem;
  height: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(124, 196, 255, 0.25);
  background: rgba(8, 18, 34, 0.95);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.52rem;
  font-weight: 800;
  box-shadow: 0 0 0 2px rgba(8, 18, 34, 0.8);
}

.upload-step-timeline-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.35rem);
  transform: translateX(-50%) translateY(0.12rem);
  width: max-content;
  max-width: 8rem;
  padding: 0.26rem 0.38rem;
  border-radius: 0.45rem;
  background: rgba(8, 18, 34, 0.98);
  border: 1px solid rgba(124, 196, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.54rem;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  white-space: normal;
  text-align: center;
  z-index: 2;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.upload-step-timeline-item:hover .upload-step-timeline-tooltip,
.upload-step-timeline-item:focus-visible .upload-step-timeline-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.upload-step-timeline-item:hover,
.upload-step-timeline-item:focus-visible {
  border-color: rgba(124, 196, 255, 0.22);
  background: rgba(124, 196, 255, 0.06);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.upload-doc-flow-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.upload-file-kicker {
  color: rgba(124, 196, 255, 0.9);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .pdf-dropzone {
    grid-template-columns: 1fr;
  }

  .pdf-dropzone-actions {
    justify-content: flex-start;
  }

  .upload-queue-header,
  .upload-job-top,
  .upload-file-row {
    flex-direction: column;
  }

  .upload-job-status-pill,
  .upload-file-status {
    align-self: flex-start;
  }

  .upload-step-row {
    align-items: flex-start;
  }

  .upload-job-files {
    grid-template-columns: 1fr;
  }

  .upload-job-steps .upload-step-row {
    flex-basis: 100%;
  }

  .upload-flow-node,
  .upload-tree-step-list,
  .upload-flow-node-document,
  .upload-flow-node-branch,
  .upload-tree-doc {
    width: 100%;
  }

  .upload-tree-docs {
    width: max-content;
  }

  .upload-tree-step-list {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .upload-step-timeline {
    grid-template-columns: repeat(auto-fit, minmax(0.8rem, 1fr));
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .upload-job-files {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

html[data-theme="light"] .pdf-dropzone {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .pdf-dropzone.is-dragover {
  background: rgba(78, 166, 255, 0.08);
  border-color: rgba(43, 120, 214, 0.32);
}

html[data-theme="light"] .upload-queue-shell,
html[data-theme="light"] .upload-job-card,
html[data-theme="light"] .upload-empty-state {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .upload-flow-panel,
html[data-theme="light"] .upload-flow-node,
html[data-theme="light"] .upload-flow-node-document,
html[data-theme="light"] .upload-flow-node-branch {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .upload-mermaid-shell {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .upload-flow-node-title,
html[data-theme="light"] .upload-file-name {
  color: #0f172a;
}

html[data-theme="light"] .upload-flow-node-meta {
  color: rgba(15, 23, 42, 0.66);
}

html[data-theme="light"] .upload-file-kicker {
  color: rgba(43, 120, 214, 0.9);
}

html[data-theme="light"] .upload-file-row {
  background: transparent;
}

html[data-theme="light"] .upload-file-block {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .upload-job-title,
html[data-theme="light"] .upload-file-name {
  color: #0f172a;
}

html[data-theme="light"] .upload-job-meta,
html[data-theme="light"] .upload-job-details,
html[data-theme="light"] .upload-file-meta,
html[data-theme="light"] .upload-empty-state {
  color: rgba(15, 23, 42, 0.64);
}

html[data-theme="light"] .upload-step-row {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .upload-step-label {
  color: rgba(15, 23, 42, 0.82);
}

html[data-theme="light"] .upload-step-icon {
  border-color: rgba(15, 23, 42, 0.12);
  color: rgba(15, 23, 42, 0.72);
}

html[data-theme="light"] .upload-step-timeline-index {
  border-color: rgba(15, 23, 42, 0.12);
  color: rgba(15, 23, 42, 0.72);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .upload-step-active {
  background: rgba(78, 166, 255, 0.08);
  border-color: rgba(43, 120, 214, 0.24);
}

html[data-theme="light"] .upload-step-active .upload-step-timeline-index {
  border-color: rgba(43, 120, 214, 0.42);
  background: rgba(78, 166, 255, 0.12);
  color: #2b78d6;
}

html[data-theme="light"] .upload-step-done {
  background: rgba(82, 203, 133, 0.08);
  border-color: rgba(82, 203, 133, 0.28);
}

html[data-theme="light"] .upload-step-done .upload-step-timeline-index {
  border-color: rgba(82, 203, 133, 0.36);
  background: rgba(82, 203, 133, 0.12);
  color: #338d5a;
}

html[data-theme="light"] .upload-step-failed {
  background: rgba(239, 68, 68, 0.07);
  border-color: rgba(239, 68, 68, 0.24);
}

html[data-theme="light"] .upload-step-failed .upload-step-timeline-index {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.12);
  color: #c23c3c;
}

html[data-theme="light"] .upload-debug-card {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(15, 23, 42, 0.09);
}

html[data-theme="light"] .upload-debug-title {
  color: #0f172a;
}

html[data-theme="light"] .upload-debug-copy {
  color: rgba(15, 23, 42, 0.62);
}

html[data-theme="light"] .upload-debug-summary-pill {
  border-color: rgba(43, 120, 214, 0.18);
  background: rgba(78, 166, 255, 0.08);
  color: #2b78d6;
}

html[data-theme="light"] .upload-debug-json {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
  color: #14233a;
}

.upload-tree.upload-tree-horizontal {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.9rem;
  width: max-content;
  min-width: 100%;
}

.upload-tree-horizontal .upload-tree-root-column {
  flex: 0 0 auto;
}

.upload-tree-horizontal .upload-tree-link-column {
  position: relative;
  flex: 0 0 2rem;
  min-height: 4rem;
  align-self: stretch;
}

.upload-tree-horizontal .upload-tree-link-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, rgba(124, 196, 255, 0.75), rgba(124, 196, 255, 0.25));
}

.upload-tree-horizontal .upload-tree-link-turn {
  position: absolute;
  top: 50%;
  right: 0;
  width: 2px;
  height: 2rem;
  transform: translateY(-50%);
  background: linear-gradient(to bottom, rgba(124, 196, 255, 0.75), rgba(124, 196, 255, 0.25));
}

.upload-tree-horizontal .upload-tree-branch-column {
  flex: 0 0 auto;
  min-width: 0;
  display: grid;
  gap: 0.35rem;
  width: fit-content;
}

.upload-tree-horizontal .upload-tree-node-root {
  width: 9.5rem;
}

.upload-tree-horizontal .upload-tree-node-branch {
  width: 10rem;
}

.upload-tree-horizontal .upload-tree-doc-lanes {
  display: grid;
  gap: 0.38rem;
  width: max-content;
  min-width: 100%;
}

.upload-tree-horizontal .upload-tree-doc-row {
  display: grid;
  grid-template-columns: 0.85rem 9.5rem;
  gap: 0.35rem;
  align-items: stretch;
  width: max-content;
}

.upload-tree-horizontal .upload-tree-doc-spine {
  position: relative;
}

.upload-tree-horizontal .upload-tree-doc-spine::before {
  content: '';
  position: absolute;
  top: 0.95rem;
  bottom: 0;
  left: 0.48rem;
  width: 2px;
  background: linear-gradient(to bottom, rgba(124, 196, 255, 0.34), rgba(124, 196, 255, 0.12));
}

.upload-tree-horizontal .upload-tree-doc-spine::after {
  content: '';
  position: absolute;
  top: 0.95rem;
  left: 0.48rem;
  width: 0.75rem;
  height: 2px;
  background: rgba(124, 196, 255, 0.34);
}

.upload-tree-horizontal .upload-tree-doc-card {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  width: 9.5rem;
}

.upload-tree-horizontal .upload-step-timeline {
  grid-template-columns: repeat(auto-fit, minmax(0.55rem, 1fr));
  gap: 0.1rem;
  padding-top: 0.2rem;
}

.upload-tree-horizontal .upload-step-timeline::before {
  top: 0.58rem;
}

@media (max-width: 768px) {
  .upload-tree.upload-tree-horizontal {
    flex-direction: column;
    width: 100%;
  }

  .upload-tree-horizontal .upload-tree-link-column {
    flex: 0 0 1.4rem;
    min-height: 1.4rem;
  }

  .upload-tree-horizontal .upload-tree-link-line {
    top: 0;
    left: 50%;
    right: auto;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
  }

  .upload-tree-horizontal .upload-tree-link-turn {
    display: none;
  }

  .upload-tree-horizontal .upload-tree-branch-column {
    width: 100%;
  }

  .upload-tree-horizontal .upload-tree-doc-row {
    grid-template-columns: 1rem minmax(0, 1fr);
  }

  .upload-tree-horizontal .upload-step-timeline {
    grid-template-columns: repeat(auto-fit, minmax(0.65rem, 1fr));
  }
}
