.drop-zone {
  position: relative;
  width: 100%;
  min-height: 220px;
  border: 2px dashed var(--md-sys-color-outline-variant);
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.drop-zone:hover,
.drop-zone:focus,
.drop-zone.is-dragover {
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--md-sys-color-primary) 22%, transparent);
  background: color-mix(in srgb, var(--md-sys-color-primary-container) 42%, var(--md-sys-color-surface));
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drop-zone__icon {
  font-size: 48px;
  color: var(--md-sys-color-primary);
}

.drop-zone__text {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
}

.drop-zone__subtext {
  margin: 0;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.875rem;
}

.file-list-section {
  margin-top: 18px;
}

.file-list-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
}

.file-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.file-list__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--md-sys-shape-corner-medium);
  background: var(--md-sys-color-surface);
  border: 1px solid var(--md-sys-color-outline-variant);
}

.file-list__item.is-dragging {
  opacity: 0.55;
}

.file-list__item.is-touch-dragging {
  opacity: 0.65;
  border-color: var(--md-sys-color-primary);
  box-shadow: var(--md-sys-elevation-2);
}

.file-list__drag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  color: var(--md-sys-color-on-surface-variant);
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.file-list__drag:active {
  cursor: grabbing;
}

.file-list__name {
  display: block;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.file-list__meta {
  display: block;
  margin-top: 3px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 0.8125rem;
}

.icon-btn {
  appearance: none;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--md-sys-color-on-surface-variant);
  cursor: pointer;
}

.icon-btn:hover {
  background: color-mix(in srgb, var(--error) 9%, transparent);
  color: var(--error);
}

.icon-btn:active {
  transform: translateY(1px);
}

@media (max-width: 600px) {
  .file-list__item {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }}
