.msweb-file-upload {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.msweb-file-upload__label {
  color: inherit;
  font-size: 14px;
  font-weight: 600;
}
.msweb-file-upload__dropzone {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 14px;
  border: 1px dashed #9db7df;
  border-radius: 10px;
  background: #f8fbff;
  color: #334155;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.msweb-file-upload__dropzone:hover,
.msweb-file-upload__dropzone.is-dragging {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}
.msweb-file-upload__dropzone:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}
.msweb-file-upload__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #dbeafe;
  color: #2563eb;
}
.msweb-file-upload__icon svg {
  width: 23px;
  height: 23px;
}
.msweb-file-upload__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.msweb-file-upload__prompt {
  font-size: 14px;
  line-height: 1.35;
}
.msweb-file-upload__prompt strong {
  color: #2563eb;
}
.msweb-file-upload__hint {
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}
.msweb-file-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.msweb-file-upload__file {
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #dbe3ef;
  border-radius: 9px;
  background: #fff;
}
.msweb-file-upload.has-file .msweb-file-upload__file {
  display: grid;
}
.msweb-file-upload__file-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.msweb-file-upload__file-name {
  overflow: hidden;
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.msweb-file-upload__file-meta {
  color: #64748b;
  font-size: 12px;
}
.msweb-file-upload__clear {
  border: 1px solid #fecaca;
  border-radius: 7px;
  padding: 6px 9px;
  background: #fff;
  color: #dc2626;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.msweb-file-upload__clear:hover {
  background: #fef2f2;
}
.msweb-file-upload__clear:disabled {
  opacity: .55;
  cursor: wait;
}
.msweb-file-upload.is-loading .msweb-file-upload__dropzone,
.msweb-file-upload--disabled .msweb-file-upload__dropzone {
  opacity: .6;
  cursor: wait;
  pointer-events: none;
}
.msweb-file-upload--disabled .msweb-file-upload__dropzone {
  cursor: not-allowed;
}
.msweb-file-upload.has-error .msweb-file-upload__dropzone {
  border-color: #ef4444;
  background: #fef2f2;
}
[data-theme="dark"] .msweb-file-upload__dropzone {
  border-color: #3f587e;
  background: #17233a;
  color: #e2e8f0;
}
[data-theme="dark"] .msweb-file-upload__dropzone:hover,
[data-theme="dark"] .msweb-file-upload__dropzone.is-dragging {
  border-color: #60a5fa;
  background: #1d2d49;
}
[data-theme="dark"] .msweb-file-upload__icon {
  background: #1e3a5f;
  color: #60a5fa;
}
[data-theme="dark"] .msweb-file-upload__hint,
[data-theme="dark"] .msweb-file-upload__file-meta {
  color: #94a3b8;
}
[data-theme="dark"] .msweb-file-upload__file {
  border-color: #334155;
  background: #111827;
}
[data-theme="dark"] .msweb-file-upload__file-name {
  color: #e2e8f0;
}
