/* =========================================================
   UBICACIÓN:
   frontend/src/pages/drive/drive.css
   ========================================================= */

/* =========================================================
   AGRO INTEL DRIVE · MIS ARCHIVOS
   ========================================================= */

.drive-page {
  display: flex;
  flex-direction: column;
  gap: 18px;

  width: 100%;
  min-width: 0;
  min-height: max-content;
  padding-bottom: 28px;
}

/* =========================================================
   TOOLBAR
   ========================================================= */

.drive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 8px 0 16px;

  border-bottom: 1px solid var(--line-strong);
}

.drive-toolbar__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.drive-select {
  min-width: 168px;
  height: 42px;
  padding: 0 36px 0 13px;

  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: none;

  color: var(--text);

  font: inherit;
  font-size: 13px;
  font-weight: 600;

  background: #ffffff;

  cursor: pointer;
}

.drive-select:hover {
  border-color: #8d939d;
}

.drive-select:focus {
  border-color: var(--accent);

  outline: 3px solid rgba(245, 183, 0, 0.12);
}

/* =========================================================
   BREADCRUMB
   ========================================================= */

.drive-breadcrumb {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 6px;

  min-width: 0;

  overflow-x: auto;

  scrollbar-width: none;
}

.drive-breadcrumb::-webkit-scrollbar {
  display: none;
}

.drive-breadcrumb__item {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;

  min-height: 38px;
  padding: 0 10px;

  border: 1px solid transparent;
  border-radius: 8px;

  color: var(--text-muted);

  font-size: 13px;
  font-weight: 650;

  background: transparent;

  transition:
    border-color var(--transition),
    color var(--transition),
    background-color var(--transition);
}

.drive-breadcrumb__item:hover {
  border-color: var(--line-strong);

  color: var(--text);

  background: #ffffff;
}

.drive-breadcrumb__item:last-of-type {
  color: var(--text);
}

.drive-breadcrumb__item svg {
  width: 17px;
  height: 17px;
}

.drive-breadcrumb__separator {
  flex: 0 0 auto;

  width: 14px;
  height: 14px;

  color: var(--text-soft);
}

/* =========================================================
   BARRA DE SELECCIÓN MÚLTIPLE
   ========================================================= */

.drive-selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  width: 100%;
  min-width: 0;
  padding: 14px 16px;

  border: 1px solid #d9c17a;
  border-radius: 11px;

  background: #fffbeb;

  animation: drive-selection-enter 180ms ease-out;
}

.drive-selection-bar[hidden] {
  display: none;
}

.drive-selection-bar__summary {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 11px;

  min-width: 0;
}

.drive-selection-bar__icon {
  display: inline-flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border: 1px solid #e2c14c;
  border-radius: 9px;

  color: var(--accent);

  background: #fff8d6;
}

.drive-selection-bar__icon svg {
  width: 19px;
  height: 19px;
}

.drive-selection-bar__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;

  min-width: 0;
}

.drive-selection-bar__copy strong {
  overflow: hidden;

  color: var(--text);

  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-selection-bar__copy span {
  overflow: hidden;

  color: var(--text-muted);

  font-size: 11px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-selection-bar__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.drive-selection-bar__actions .button {
  min-height: 38px;
  padding: 0 12px;

  font-size: 11px;
}

@keyframes drive-selection-enter {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

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

/* =========================================================
   PROGRESO DE SUBIDA
   ========================================================= */

.drive-upload-progress {
  display: flex;
  flex-direction: column;
  gap: 14px;

  width: 100%;
  min-width: 0;
  padding: 16px 18px;

  overflow: hidden;

  border: 1px solid var(--line-strong);
  border-radius: 12px;

  background: #ffffff;

  animation: drive-upload-progress-enter 180ms ease-out;
}

.drive-upload-progress[hidden] {
  display: none;
}

.drive-upload-progress.is-processing {
  border-color: #d2b46d;

  background: #fffdf7;
}

.drive-upload-progress.is-completed {
  border-color: #92c6b7;

  background: #f4fbf8;
}

.drive-upload-progress.has-error {
  border-color: #dca4a8;

  background: #fff5f6;
}

.drive-upload-progress.is-cancelled {
  border-color: #b9bec6;

  background: #f6f7f8;
}

.drive-upload-progress__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  min-width: 0;
}

.drive-upload-progress__identity {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 12px;

  min-width: 0;
}

.drive-upload-progress__icon {
  display: inline-flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  border: 1px solid #e1c455;
  border-radius: 9px;

  color: var(--accent);

  background: #fff8d6;
}

.drive-upload-progress__icon svg {
  width: 20px;
  height: 20px;
}

.drive-upload-progress.is-uploading
.drive-upload-progress__icon
svg {
  animation: drive-upload-icon-move 1.1s ease-in-out infinite;
}

.drive-upload-progress.is-processing
.drive-upload-progress__icon {
  border-color: #d9c181;

  color: #936a13;

  background: #fff9e9;
}

.drive-upload-progress.is-completed
.drive-upload-progress__icon {
  border-color: #9fcfc1;

  color: #14624e;

  background: #edf9f5;
}

.drive-upload-progress.has-error
.drive-upload-progress__icon {
  border-color: #dfa6ab;

  color: #ad1720;

  background: #fff0f1;
}

.drive-upload-progress__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;

  min-width: 0;
}

.drive-upload-progress__copy strong {
  overflow: hidden;

  color: var(--text);

  font-size: 14px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-upload-progress__copy span {
  overflow: hidden;

  color: var(--text-muted);

  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-upload-progress__status {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;

  min-width: 58px;
}

.drive-upload-progress__status strong {
  color: var(--text);

  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.drive-upload-progress__status span {
  color: var(--text-muted);

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.drive-upload-progress__track {
  position: relative;

  width: 100%;
  height: 8px;

  overflow: hidden;

  border: 1px solid #d4d7dc;
  border-radius: 999px;

  background: #eceef1;
}

.drive-upload-progress__bar {
  display: block;

  width: 0%;
  height: 100%;

  border-radius: inherit;

  background: var(--accent);

  transition:
    width 160ms linear,
    background-color var(--transition);
}

.drive-upload-progress.is-processing
.drive-upload-progress__bar {
  background: #b7831e;

  animation: drive-upload-processing 1.2s ease-in-out infinite;
}

.drive-upload-progress.is-completed
.drive-upload-progress__bar {
  background: #24745e;
}

.drive-upload-progress.has-error
.drive-upload-progress__bar {
  background: #b51b24;
}

.drive-upload-progress__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  color: var(--text-muted);

  font-size: 11px;
  font-weight: 650;
}

.drive-upload-progress__footer span {
  overflow: hidden;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-upload-progress__footer span:last-child {
  text-align: right;
}

@keyframes drive-upload-progress-enter {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

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

@keyframes drive-upload-icon-move {
  0%,
  100% {
    transform: translateY(1px);
  }

  50% {
    transform: translateY(-2px);
  }
}

@keyframes drive-upload-processing {
  0%,
  100% {
    opacity: 0.58;
  }

  50% {
    opacity: 1;
  }
}

/* =========================================================
   PROGRESO DE DESCARGA
   ========================================================= */

.drive-download-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  width: 100%;
  min-width: 0;
  padding: 14px 16px;

  border: 1px solid #d6c078;
  border-radius: 11px;

  background: #ffffff;

  animation: drive-download-enter 180ms ease-out;
}

.drive-download-progress[hidden] {
  display: none;
}

.drive-download-progress.is-completed {
  border-color: #9bc8ba;

  background: #f2faf7;
}

.drive-download-progress__identity {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 11px;

  min-width: 0;
}

.drive-download-progress__icon {
  display: inline-flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border: 1px solid #c7b78c;
  border-radius: 9px;

  color: #785817;

  background: #fff9e9;
}

.drive-download-progress.is-completed
.drive-download-progress__icon {
  border-color: #a7d0c3;

  color: #1d6752;

  background: #edf9f5;
}

.drive-download-progress__icon svg {
  width: 19px;
  height: 19px;
}

.drive-download-progress__copy {
  display: flex;
  flex-direction: column;
  gap: 3px;

  min-width: 0;
}

.drive-download-progress__copy strong {
  overflow: hidden;

  color: var(--text);

  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-download-progress__copy span {
  overflow: hidden;

  color: var(--text-muted);

  font-size: 11px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes drive-download-enter {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

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

/* =========================================================
   TABLA
   ========================================================= */

.drive-content {
  width: 100%;
  min-width: 0;

  overflow-x: auto;
  overflow-y: visible;

  border: 1px solid var(--line-strong);
  border-radius: 12px;

  background: #ffffff;
}

.drive-table-head,
.drive-item {
  display: grid;
  grid-template-columns:
    42px
    minmax(260px, 1fr)
    126px
    100px
    150px
    130px
    214px;

  align-items: center;

  width: 100%;
  min-width: 1050px;
}

.drive-table-head {
  min-height: 43px;
  padding: 0 14px;

  border-bottom: 1px solid var(--line-strong);

  color: var(--text-muted);

  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  background: #f6f7f8;
}

.drive-table-head span:last-child {
  text-align: right;
}

.drive-table-head__selection {
  display: flex;
  align-items: center;
  justify-content: center;
}

.drive-list {
  display: flex;
  flex-direction: column;

  width: 100%;
  min-width: 0;
  min-height: 0;
}

.drive-item {
  position: relative;

  min-height: 70px;
  padding: 0 14px;

  border-bottom: 1px solid var(--line);

  background: #ffffff;

  transition:
    background-color var(--transition),
    border-color var(--transition),
    opacity var(--transition);
}

.drive-item:last-child {
  border-bottom: 0;
}

.drive-item:hover {
  background: #f8f9fa;
}

.drive-item.is-selected {
  background: #fffbea;
}

.drive-item.is-selected::before {
  position: absolute;
  inset: 0 auto 0 0;

  width: 3px;

  content: "";

  background: var(--accent);
}

.drive-item.is-dragging {
  opacity: 0.42;
}

/* =========================================================
   CHECKBOX
   ========================================================= */

.drive-item__selection {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 0;
}

.drive-selection-checkbox {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 30px;
  height: 30px;

  cursor: pointer;
}

.drive-selection-checkbox input {
  position: absolute;

  width: 1px;
  height: 1px;

  overflow: hidden;

  opacity: 0;
  pointer-events: none;
}

.drive-selection-checkbox__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 20px;
  height: 20px;

  border: 1px solid #aeb3bc;
  border-radius: 6px;

  color: transparent;

  background: #ffffff;

  transition:
    border-color var(--transition),
    color var(--transition),
    background-color var(--transition);
}

.drive-selection-checkbox:hover
.drive-selection-checkbox__control {
  border-color: #858c96;
}

.drive-selection-checkbox input:checked
+ .drive-selection-checkbox__control {
  border-color: var(--accent);

  color: #17191d;

  background: var(--accent);
}

.drive-selection-checkbox input:indeterminate
+ .drive-selection-checkbox__control {
  border-color: var(--accent);

  color: #17191d;

  background: var(--accent);
}

.drive-selection-checkbox input:indeterminate
+ .drive-selection-checkbox__control
svg {
  display: none;
}

.drive-selection-checkbox input:indeterminate
+ .drive-selection-checkbox__control::after {
  width: 9px;
  height: 2px;

  border-radius: 999px;

  content: "";

  background: #17191d;
}

.drive-selection-checkbox input:focus-visible
+ .drive-selection-checkbox__control {
  outline: 3px solid rgba(245, 183, 0, 0.16);
}

.drive-selection-checkbox input:disabled
+ .drive-selection-checkbox__control {
  cursor: wait;
  opacity: 0.55;
}

.drive-selection-checkbox__control svg {
  width: 13px;
  height: 13px;
}

/* =========================================================
   ELEMENTO PRINCIPAL
   ========================================================= */

.drive-item__main {
  display: flex;
  align-items: center;
  gap: 11px;

  min-width: 0;
  height: 100%;
  padding: 8px 8px 8px 0;

  border: 0;

  color: inherit;

  text-align: left;

  background: transparent;
}

.drive-item__drag-handle {
  display: inline-flex;
  flex: 0 0 18px;
  align-items: center;
  justify-content: center;

  width: 18px;

  color: #a2a7af;

  cursor: grab;
}

.drive-item__drag-handle:active {
  cursor: grabbing;
}

.drive-item__drag-handle svg {
  width: 16px;
  height: 16px;
}

.drive-item__icon {
  display: inline-flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  border: 1px solid var(--line-strong);
  border-radius: 9px;

  color: var(--text-muted);

  background: #f7f8f9;
}

.drive-item__icon svg {
  width: 20px;
  height: 20px;
}

.drive-item__icon--carpeta {
  border-color: #ddc083;

  color: #9d6813;

  background: #fff8e7;
}

.drive-item__icon--pdf {
  border-color: #e5afb3;

  color: #bd1d27;

  background: #fff2f3;
}

.drive-item__icon--imagen {
  border-color: #acd7ca;

  color: #1b6a57;

  background: #effbf7;
}

.drive-item__icon--video {
  border-color: #dfc48b;

  color: #84510f;

  background: #fff8e8;
}

.drive-item__icon--texto {
  border-color: #bec8cf;

  color: #455463;

  background: #f3f6f8;
}

.drive-item__icon--planilla {
  border-color: #acd1bf;

  color: #246346;

  background: #eff9f4;
}

.drive-item__icon--documento {
  border-color: #b8cad8;

  color: #3c5875;

  background: #f1f6fa;
}

.drive-item__icon--comprimido {
  border-color: #ccbda9;

  color: #695139;

  background: #f8f4ef;
}

.drive-item__name {
  display: flex;
  flex-direction: column;
  gap: 3px;

  min-width: 0;
}

.drive-item__name strong {
  overflow: hidden;

  color: var(--text);

  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-item__name small {
  overflow: hidden;

  color: var(--text-muted);

  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-item__visibility {
  display: flex;
  align-items: center;

  min-width: 0;
  padding-right: 10px;
}

.drive-item__size,
.drive-item__date,
.drive-item__user {
  overflow: hidden;

  padding-right: 12px;

  color: var(--text-muted);

  font-size: 12px;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-item__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;

  min-width: 0;
}

.drive-item__actions .icon-button {
  width: 34px;
  min-width: 34px;
  height: 34px;

  border-radius: 8px;
}

.drive-item__delete {
  color: var(--danger);
}

.drive-item__delete:hover {
  border-color: #dca4a8;

  color: #a8141d;

  background: #fff1f2;
}

/* =========================================================
   BADGES DE VISIBILIDAD
   ========================================================= */

.drive-visibility-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  min-height: 28px;
  padding: 0 9px;

  border: 1px solid var(--line-strong);
  border-radius: 999px;

  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.drive-visibility-badge svg {
  width: 13px;
  height: 13px;
}

.drive-visibility-badge--all {
  border-color: #afc9bf;

  color: #245d4c;

  background: #f1f8f5;
}

.drive-visibility-badge--private {
  border-color: #d8a7ab;

  color: #9d1d25;

  background: #fff3f4;
}

.drive-visibility-badge--shared {
  border-color: #d9c16e;

  color: #785817;

  background: #fff9e9;
}

/* =========================================================
   DESTINOS DE ARRASTRE
   ========================================================= */

.drive-drop-target {
  transition:
    border-color var(--transition),
    background-color var(--transition),
    outline-color var(--transition);
}

.drive-drop-target.is-drop-target {
  border-color: var(--accent);

  outline: 3px solid rgba(245, 183, 0, 0.14);

  background: #fff8d6;
}

/* =========================================================
   MINIATURAS
   ========================================================= */

.drive-item__preview {
  position: relative;

  display: inline-flex;
  flex: 0 0 58px;
  align-items: center;
  justify-content: center;

  width: 58px;
  height: 48px;

  overflow: hidden;

  border: 1px solid var(--line-strong);
  border-radius: 8px;

  background: #f4f5f6;
}

.drive-item__preview img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  border: 0;
}

.drive-item__preview img[hidden] {
  display: none;
}

.drive-item__preview-loading {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--text-soft);

  background: #f4f5f6;
}

.drive-item__preview-loading svg {
  width: 20px;
  height: 20px;
}

.drive-item__preview.is-loaded
.drive-item__preview-loading {
  display: none;
}

.drive-item__preview.has-error {
  border-color: #c4c8cf;

  background: #f1f2f4;
}

.drive-item__preview.has-error
.drive-item__preview-loading {
  display: flex;
}

.drive-item__preview.has-error
.drive-item__preview-loading::after {
  position: absolute;

  width: 20px;
  height: 1px;

  content: "";

  background: var(--text-soft);

  transform: rotate(-45deg);
}

.drive-item__preview.is-loading
.drive-item__preview-loading
svg {
  animation: drive-preview-pulse 1s ease-in-out infinite;
}

@keyframes drive-preview-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.92);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* =========================================================
   DROP EXTERNO
   ========================================================= */

.drive-drop-zone {
  position: fixed;
  inset: 76px 22px 22px calc(var(--sidebar-width) + 22px);
  z-index: 950;

  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;

  border: 2px dashed var(--accent);
  border-radius: 14px;

  color: var(--text);

  background: rgba(255, 255, 255, 0.96);
}

.drive-drop-zone.is-visible {
  display: flex;
}

.drive-drop-zone svg {
  width: 42px;
  height: 42px;

  color: var(--accent);
}

.drive-drop-zone strong {
  font-size: 18px;
}

.drive-drop-zone span {
  color: var(--text-muted);

  font-size: 13px;
}

/* =========================================================
   LOADING
   ========================================================= */

.drive-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 68px;

  border: 1px solid var(--line-strong);
  border-radius: 10px;

  color: var(--text-muted);

  font-size: 13px;

  background: #ffffff;
}

.drive-spinner {
  display: inline-block;
  flex: 0 0 auto;

  width: 20px;
  height: 20px;

  border: 2px solid #d8dbe0;
  border-top-color: var(--accent);
  border-radius: 50%;

  animation: drive-spin 0.75s linear infinite;
}

.drive-spinner--small {
  width: 16px;
  height: 16px;
}

@keyframes drive-spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   VACÍO
   ========================================================= */

.drive-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 360px;
  padding: 36px;

  border: 1px solid var(--line-strong);
  border-radius: 12px;

  text-align: center;

  background: #ffffff;
}

.drive-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 64px;
  height: 64px;
  margin-bottom: 5px;

  border: 1px solid var(--line-strong);
  border-radius: 12px;

  color: var(--text-muted);

  background: #f6f7f8;
}

.drive-empty__icon svg {
  width: 29px;
  height: 29px;
}

.drive-empty h2 {
  color: var(--text);

  font-size: 19px;
  font-weight: 750;
}

.drive-empty p {
  max-width: 430px;

  color: var(--text-muted);

  font-size: 13px;
  line-height: 1.6;
}

.drive-empty__actions {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-top: 12px;
}

/* =========================================================
   MODALES
   ========================================================= */

body.modal-open {
  overflow: hidden;
}

.drive-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 22px;
}

.drive-modal[hidden] {
  display: none;
}

.drive-modal__backdrop {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  border: 0;

  background: rgba(20, 22, 26, 0.68);
}

.drive-modal__dialog {
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: column;

  width: min(500px, 100%);
  max-height: min(
    760px,
    calc(100vh - 44px)
  );

  overflow: hidden;

  border: 1px solid #9fa5ae;
  border-radius: 12px;

  background: #ffffff;
}

.drive-modal__dialog--upload {
  width: min(
    700px,
    100%
  );
}

.drive-modal__dialog--visibility,
.drive-modal__dialog--move {
  width: min(
    620px,
    100%
  );
}

.drive-modal__dialog--delete {
  width: min(
    520px,
    100%
  );

  border-color: #c88c91;
}

.drive-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;

  padding: 20px 22px;

  border-bottom: 1px solid var(--line-strong);

  background: #f8f9fa;
}

.drive-modal__header > div {
  min-width: 0;
}

.drive-modal__header > div > span {
  display: block;

  margin-bottom: 4px;

  color: var(--text-muted);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.drive-modal__header h2 {
  color: var(--text);

  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.drive-modal__description {
  margin-top: 6px;

  color: var(--text-muted);

  font-size: 12px;
  line-height: 1.5;
}

.drive-modal__danger-label {
  color: var(--danger) !important;
}

.drive-modal__form {
  display: flex;
  flex-direction: column;
  gap: 18px;

  padding: 22px;

  overflow-y: auto;
}

.drive-modal__form.is-loading {
  pointer-events: none;
  opacity: 0.66;
}

.drive-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;

  padding: 16px 22px;

  border-top: 1px solid var(--line-strong);

  background: #fafafa;
}

.drive-modal__form >
.drive-modal__footer {
  margin: 4px -22px -22px;
}

/* =========================================================
   CAMPOS
   ========================================================= */

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;

  width: 100%;
}

.form-field > label {
  color: var(--text);

  font-size: 12px;
  font-weight: 700;
}

.form-control {
  display: flex;
  align-items: center;
  gap: 10px;

  width: 100%;
  min-height: 44px;
  padding: 0 12px;

  border: 1px solid #aeb3bc;
  border-radius: 9px;

  background: #ffffff;

  transition:
    border-color var(--transition),
    outline-color var(--transition);
}

.form-control:hover {
  border-color: #858c96;
}

.form-control:focus-within {
  border-color: var(--accent);

  outline: 3px solid rgba(245, 183, 0, 0.12);
}

.form-control > svg {
  flex: 0 0 18px;

  width: 18px;
  height: 18px;

  color: var(--text-soft);
}

.form-control input {
  flex: 1 1 auto;

  min-width: 0;
  height: 42px;
  padding: 0;

  border: 0;
  outline: 0;

  color: var(--text);

  font: inherit;
  font-size: 13px;
  font-weight: 550;

  background: transparent;
}

.form-control input::placeholder {
  color: #959ba4;
}

.form-control__action {
  display: inline-flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  border: 1px solid transparent;
  border-radius: 7px;

  color: var(--text-muted);

  background: transparent;
}

.form-control__action:hover {
  border-color: var(--line-strong);

  color: var(--text);

  background: #f4f5f6;
}

.form-control__action svg {
  width: 17px;
  height: 17px;
}

.form-error {
  display: block;

  min-height: 16px;

  color: var(--danger);

  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
}

/* =========================================================
   VISIBILIDAD
   ========================================================= */

.drive-visibility-field {
  display: flex;
  flex-direction: column;
  gap: 13px;

  width: 100%;
}

.drive-visibility-field[hidden] {
  display: none;
}

.drive-visibility-field__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.drive-visibility-field__head > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.drive-visibility-field__head strong {
  color: var(--text);

  font-size: 12px;
  font-weight: 750;
}

.drive-visibility-field__head span {
  color: var(--text-muted);

  font-size: 11px;
  line-height: 1.45;
}

.drive-visibility-field__head > svg {
  width: 19px;
  height: 19px;

  color: var(--text-muted);
}

.drive-visibility-options {
  display: grid;
  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 9px;
}

.drive-visibility-option {
  position: relative;

  display: flex;
  align-items: flex-start;
  gap: 10px;

  min-width: 0;
  min-height: 96px;
  padding: 12px;

  border: 1px solid var(--line-strong);
  border-radius: 10px;

  background: #ffffff;

  cursor: pointer;

  transition:
    border-color var(--transition),
    background-color var(--transition);
}

.drive-visibility-option:hover {
  border-color: #8e949d;

  background: #f8f9fa;
}

.drive-visibility-option:has(
  input:checked
) {
  border-color: var(--accent);

  background: #fff9dc;
}

.drive-visibility-option input {
  position: absolute;

  width: 1px;
  height: 1px;

  overflow: hidden;

  opacity: 0;
  pointer-events: none;
}

.drive-visibility-option__icon {
  display: inline-flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  border: 1px solid var(--line-strong);
  border-radius: 8px;

  color: var(--text-muted);

  background: #f6f7f8;
}

.drive-visibility-option:has(
  input:checked
)
.drive-visibility-option__icon {
  border-color: #dfc34d;

  color: #806000;

  background: #ffffff;
}

.drive-visibility-option__icon svg {
  width: 17px;
  height: 17px;
}

.drive-visibility-option__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;

  min-width: 0;
}

.drive-visibility-option__copy strong {
  color: var(--text);

  font-size: 12px;
  font-weight: 750;
}

.drive-visibility-option__copy small {
  color: var(--text-muted);

  font-size: 10px;
  font-weight: 550;
  line-height: 1.45;
}

/* =========================================================
   SELECTOR DE USUARIOS
   ========================================================= */

.drive-user-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;

  padding: 12px;

  border: 1px solid var(--line-strong);
  border-radius: 10px;

  background: #f8f9fa;
}

.drive-user-picker[hidden] {
  display: none;
}

.drive-user-picker__search {
  display: flex;
  align-items: center;
  gap: 9px;

  min-height: 40px;
  padding: 0 11px;

  border: 1px solid var(--line-strong);
  border-radius: 8px;

  background: #ffffff;
}

.drive-user-picker__search:focus-within {
  border-color: var(--accent);

  outline: 3px solid rgba(245, 183, 0, 0.11);
}

.drive-user-picker__search svg {
  width: 16px;
  height: 16px;

  color: var(--text-soft);
}

.drive-user-picker__search input {
  flex: 1;
  min-width: 0;
  height: 38px;

  border: 0;
  outline: 0;

  color: var(--text);

  font: inherit;
  font-size: 12px;

  background: transparent;
}

.drive-user-picker__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 64px;

  color: var(--text-muted);

  font-size: 11px;
}

.drive-user-picker__loading[hidden] {
  display: none;
}

.drive-user-picker__list {
  display: flex;
  flex-direction: column;
  gap: 5px;

  max-height: 238px;
  padding: 4px;

  overflow-y: auto;
}

.drive-user-option {
  position: relative;

  display: grid;
  grid-template-columns:
    34px
    minmax(0, 1fr)
    28px;

  align-items: center;
  gap: 9px;

  min-height: 50px;
  padding: 7px 9px;

  border: 1px solid transparent;
  border-radius: 8px;

  background: #ffffff;

  cursor: pointer;
}

.drive-user-option:hover {
  border-color: var(--line-strong);

  background: #f4f5f6;
}

.drive-user-option:has(
  input:checked
) {
  border-color: #dfc24b;

  background: #fff9dc;
}

.drive-user-option input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;
  pointer-events: none;
}

.drive-user-option__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  border: 1px solid var(--line-strong);
  border-radius: 50%;

  color: var(--text);

  font-size: 10px;
  font-weight: 800;

  background: #f4f5f6;
}

.drive-user-option__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;

  min-width: 0;
}

.drive-user-option__copy strong,
.drive-user-option__copy small {
  overflow: hidden;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-user-option__copy strong {
  color: var(--text);

  font-size: 12px;
  font-weight: 700;
}

.drive-user-option__copy small {
  color: var(--text-muted);

  font-size: 10px;
}

.drive-user-option__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 24px;
  height: 24px;

  border: 1px solid var(--line-strong);
  border-radius: 6px;

  color: transparent;

  background: #ffffff;
}

.drive-user-option:has(
  input:checked
)
.drive-user-option__check {
  border-color: var(--accent);

  color: #17191d;

  background: var(--accent);
}

.drive-user-option__check svg {
  width: 14px;
  height: 14px;
}

.drive-user-picker__empty {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 100px;
  padding: 18px;

  color: var(--text-muted);

  font-size: 11px;
  text-align: center;
}

.drive-user-picker__footer {
  display: flex;
  justify-content: flex-end;

  padding-top: 8px;

  border-top: 1px solid var(--line);
}

.drive-user-picker__footer span {
  color: var(--text-muted);

  font-size: 10px;
  font-weight: 700;
}

/* =========================================================
   SELECTOR DE SUBIDA
   ========================================================= */

.drive-upload-selector {
  display: grid;
  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 10px;
}

.drive-upload-selector__option {
  display: grid;
  grid-template-columns:
    42px
    minmax(0, 1fr)
    18px;

  align-items: center;
  gap: 11px;

  min-height: 82px;
  padding: 13px;

  border: 1px solid var(--line-strong);
  border-radius: 10px;

  color: var(--text);

  text-align: left;

  background: #ffffff;
}

.drive-upload-selector__option:hover {
  border-color: var(--accent);

  background: #fffbea;
}

.drive-upload-selector__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  border: 1px solid #dfc24c;
  border-radius: 9px;

  color: #806000;

  background: #fff8d6;
}

.drive-upload-selector__icon svg {
  width: 20px;
  height: 20px;
}

.drive-upload-selector__option >
span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 3px;

  min-width: 0;
}

.drive-upload-selector__option strong {
  color: var(--text);

  font-size: 12px;
  font-weight: 750;
}

.drive-upload-selector__option small {
  color: var(--text-muted);

  font-size: 10px;
  line-height: 1.4;
}

.drive-upload-selector__option > svg {
  width: 17px;
  height: 17px;

  color: var(--text-soft);
}

/* =========================================================
   ARCHIVOS SELECCIONADOS PARA SUBIR
   ========================================================= */

.drive-upload-selection {
  display: flex;
  flex-direction: column;
  gap: 10px;

  padding: 12px;

  border: 1px solid var(--line-strong);
  border-radius: 10px;

  background: #f8f9fa;
}

.drive-upload-selection[hidden] {
  display: none;
}

.drive-upload-selection__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drive-upload-selection__head > div {
  display: flex;
  flex-direction: column;
  gap: 2px;

  min-width: 0;
}

.drive-upload-selection__head strong {
  color: var(--text);

  font-size: 12px;
  font-weight: 750;
}

.drive-upload-selection__head span {
  color: var(--text-muted);

  font-size: 10px;
}

.drive-upload-selection__clear {
  min-height: 34px;
  padding: 0 10px;

  font-size: 10px;
}

.drive-upload-selection__list {
  display: flex;
  flex-direction: column;
  gap: 5px;

  max-height: 250px;

  overflow-y: auto;
}

.drive-upload-file {
  display: grid;
  grid-template-columns:
    34px
    minmax(0, 1fr)
    auto;

  align-items: center;
  gap: 9px;

  min-height: 48px;
  padding: 7px 9px;

  border: 1px solid var(--line);
  border-radius: 8px;

  background: #ffffff;
}

.drive-upload-file__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  border: 1px solid var(--line-strong);
  border-radius: 7px;

  color: var(--text-muted);

  background: #f5f6f7;
}

.drive-upload-file__icon svg {
  width: 16px;
  height: 16px;
}

.drive-upload-file__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;

  min-width: 0;
}

.drive-upload-file__copy strong,
.drive-upload-file__copy small {
  overflow: hidden;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-upload-file__copy strong {
  color: var(--text);

  font-size: 11px;
  font-weight: 700;
}

.drive-upload-file__copy small {
  color: var(--text-muted);

  font-size: 9px;
}

.drive-upload-file__size {
  color: var(--text-muted);

  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.drive-upload-file--remaining {
  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--text-muted);

  font-size: 10px;
  font-weight: 700;
}

/* =========================================================
   MODAL MOVER
   ========================================================= */

.drive-move {
  display: flex;
  flex-direction: column;
  gap: 12px;

  min-height: 320px;
  padding: 18px 22px;

  overflow: hidden;
}

.drive-move__search {
  display: flex;
  align-items: center;
  gap: 10px;

  min-height: 42px;
  padding: 0 12px;

  border: 1px solid var(--line-strong);
  border-radius: 9px;

  background: #ffffff;
}

.drive-move__search:focus-within {
  border-color: var(--accent);

  outline: 3px solid rgba(245, 183, 0, 0.12);
}

.drive-move__search svg {
  width: 17px;
  height: 17px;

  color: var(--text-soft);
}

.drive-move__search input {
  flex: 1;
  min-width: 0;
  height: 40px;

  border: 0;
  outline: 0;

  color: var(--text);

  font: inherit;
  font-size: 13px;

  background: transparent;
}

.drive-move__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  min-height: 80px;

  color: var(--text-muted);

  font-size: 12px;
}

.drive-move__loading[hidden] {
  display: none;
}

.drive-move__tree {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;

  min-height: 220px;
  max-height: 390px;
  padding: 6px;

  overflow-y: auto;

  border: 1px solid var(--line-strong);
  border-radius: 9px;

  background: #f8f9fa;
}

.drive-move__item {
  display: grid;
  grid-template-columns:
    calc(
      var(--folder-level, 0) *
      18px
    )
    18px
    minmax(0, 1fr)
    auto;

  align-items: center;
  gap: 9px;

  width: 100%;
  min-height: 42px;
  padding: 5px 10px;

  border: 1px solid transparent;
  border-radius: 7px;

  color: var(--text);

  text-align: left;

  background: #ffffff;
}

.drive-move__item:hover:not(
  :disabled
) {
  border-color: #aeb3bc;

  background: #f4f5f6;
}

.drive-move__item.is-selected {
  border-color: var(--accent);

  background: #fff8d6;
}

.drive-move__item:disabled {
  color: var(--text-soft);

  cursor: not-allowed;
  opacity: 0.68;
}

.drive-move__item > svg {
  width: 17px;
  height: 17px;
}

.drive-move__item >
span:nth-of-type(2) {
  overflow: hidden;

  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-move__item small {
  color: var(--text-muted);

  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.drive-move__empty {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 160px;
  padding: 18px;

  color: var(--text-muted);

  font-size: 12px;
  text-align: center;
}

/* =========================================================
   MODAL BORRAR
   ========================================================= */

.drive-delete-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;

  padding: 14px;

  border: 1px solid #dfadb1;
  border-radius: 9px;

  background: #fff4f5;
}

.drive-delete-warning__icon {
  display: inline-flex;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;

  border: 1px solid #dc9ba1;
  border-radius: 8px;

  color: #ac1720;

  background: #ffffff;
}

.drive-delete-warning__icon svg {
  width: 18px;
  height: 18px;
}

.drive-delete-warning strong {
  display: block;

  margin-bottom: 3px;

  color: #8f121a;

  font-size: 12px;
  font-weight: 750;
}

.drive-delete-warning p {
  color: #7f3b40;

  font-size: 11px;
  line-height: 1.5;
}

.button--danger {
  border: 1px solid #a9141d;

  color: #ffffff;

  background: #c41e28;
}

.button--danger:hover:not(
  :disabled
) {
  border-color: #8f1119;

  background: #a9141d;
}

.button--danger:disabled {
  cursor: wait;
  opacity: 0.7;
}

/* =========================================================
   ESTRUCTURA GENERAL Y SCROLL
   ========================================================= */

html,
body,
#app {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

body {
  overflow: hidden;
}

.app-layout {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;

  overflow: hidden;
}

.app-main {
  display: flex;
  flex-direction: column;

  height: 100%;
  min-width: 0;
  min-height: 0;

  overflow: hidden;
}

.app-main__content {
  flex: 1 1 auto;

  width: 100%;
  min-width: 0;
  min-height: 0;
  padding-bottom: 24px;

  overflow-x: hidden;
  overflow-y: auto;

  scrollbar-gutter: stable;
  scrollbar-width: thin;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1220px) {
  .drive-table-head,
  .drive-item {
    grid-template-columns:
      42px
      minmax(240px, 1fr)
      116px
      90px
      138px
      115px
      214px;

    min-width: 1010px;
  }
}

@media (max-width: 1000px) {
  .drive-selection-bar {
    align-items: flex-start;
  }

  .drive-selection-bar__actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  .drive-drop-zone {
    inset:
      76px
      14px
      14px;
  }

  .drive-toolbar {
    align-items: flex-start;
  }

  .drive-toolbar__actions {
    flex-wrap: wrap;
  }

  .drive-visibility-options {
    grid-template-columns:
      1fr;
  }

  .drive-visibility-option {
    min-height: 72px;
  }
}

@media (max-width: 760px) {
  .drive-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .drive-toolbar__actions {
    display: grid;
    grid-template-columns:
      minmax(0, 1fr)
      auto
      auto;

    width: 100%;
  }

  .drive-select {
    width: 100%;
    min-width: 0;
  }

  .drive-selection-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .drive-selection-bar__actions {
    display: grid;
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );

    width: 100%;
  }

  .drive-selection-bar__actions
  [data-drive-selection-action="download"] {
    grid-column: 1 / -1;
  }

  .drive-selection-bar__actions .button {
    width: 100%;
  }

  .drive-upload-progress {
    gap: 12px;

    padding: 14px;
  }

  .drive-upload-progress__header {
    align-items: flex-start;
  }

  .drive-upload-progress__icon {
    flex-basis: 38px;

    width: 38px;
    height: 38px;
  }

  .drive-upload-progress__status strong {
    font-size: 15px;
  }

  .drive-content {
    overflow: visible;

    border: 0;

    background: transparent;
  }

  .drive-table-head {
    display: none;
  }

  .drive-list {
    gap: 10px;
  }

  .drive-item {
    display: grid;
    grid-template-columns:
      38px
      minmax(0, 1fr);

    gap: 8px 10px;

    min-width: 0;
    min-height: 0;
    padding: 12px;

    border: 1px solid var(--line-strong);
    border-radius: 10px;

    background: #ffffff;
  }

  .drive-item:last-child {
    border-bottom: 1px solid var(--line-strong);
  }

  .drive-item__selection {
    grid-column: 1;
    grid-row: 1;

    align-self: center;
  }

  .drive-item__main {
    grid-column: 2;
    grid-row: 1;

    width: 100%;
    min-height: 52px;
  }

  .drive-item__visibility {
    grid-column: 1 / -1;

    padding-right: 0;
  }

  .drive-item__size,
  .drive-item__date,
  .drive-item__user {
    display: none;
  }

  .drive-item__actions {
    grid-column: 1 / -1;

    padding-top: 8px;

    border-top: 1px solid var(--line);
  }

  .drive-item__preview {
    flex-basis: 64px;

    width: 64px;
    height: 54px;
  }

  .drive-upload-selector {
    grid-template-columns:
      1fr;
  }

  .drive-modal {
    align-items: flex-end;

    padding: 10px;
  }

  .drive-modal__dialog,
  .drive-modal__dialog--upload,
  .drive-modal__dialog--visibility,
  .drive-modal__dialog--move,
  .drive-modal__dialog--delete {
    width: 100%;
    max-height: calc(
      100vh - 20px
    );
    max-height: calc(
      100dvh - 20px
    );

    border-radius: 12px;
  }

  .drive-move {
    min-height: 280px;
  }
}

@media (max-width: 520px) {
  .drive-toolbar__actions {
    grid-template-columns:
      minmax(0, 1fr)
      44px
      44px;
  }

  .drive-toolbar__actions .button {
    width: 44px;
    min-width: 44px;
    padding: 0;
  }

  .drive-toolbar__actions .button span {
    display: none;
  }

  .drive-selection-bar {
    padding: 13px;
  }

  .drive-selection-bar__summary {
    align-items: flex-start;
  }

  .drive-selection-bar__icon {
    flex-basis: 36px;

    width: 36px;
    height: 36px;
  }

  .drive-selection-bar__copy strong,
  .drive-selection-bar__copy span {
    white-space: normal;
  }

  .drive-selection-bar__actions {
    grid-template-columns:
      1fr;
  }

  .drive-selection-bar__actions
  [data-drive-selection-action="download"] {
    grid-column: auto;
  }

  .drive-download-progress {
    gap: 10px;

    padding: 13px;
  }

  .drive-download-progress__icon {
    flex-basis: 36px;

    width: 36px;
    height: 36px;
  }

  .drive-download-progress__copy strong,
  .drive-download-progress__copy span {
    white-space: normal;
  }

  .drive-upload-progress__header {
    gap: 10px;
  }

  .drive-upload-progress__identity {
    gap: 9px;
  }

  .drive-upload-progress__copy strong {
    font-size: 13px;
  }

  .drive-upload-progress__copy span {
    max-width: 190px;
  }

  .drive-upload-progress__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .drive-upload-progress__footer
  span:last-child {
    text-align: left;
  }

  .drive-empty {
    min-height: 310px;
    padding: 24px 16px;
  }

  .drive-empty__actions {
    flex-direction: column;

    width: 100%;
  }

  .drive-empty__actions .button {
    width: 100%;
  }

  .drive-modal__header,
  .drive-modal__form,
  .drive-move {
    padding-right: 16px;
    padding-left: 16px;
  }

  .drive-modal__footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .drive-modal__form >
  .drive-modal__footer {
    margin-right: -16px;
    margin-left: -16px;
  }

  .drive-modal__footer .button {
    flex: 1;
  }

  .drive-upload-selection__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .drive-upload-selection__clear {
    width: 100%;
  }

  .drive-upload-file {
    grid-template-columns:
      32px
      minmax(0, 1fr);
  }

  .drive-upload-file__size {
    grid-column: 2;

    text-align: left;
  }

  .drive-user-option {
    grid-template-columns:
      32px
      minmax(0, 1fr)
      26px;
  }

  .drive-item {
    grid-template-columns:
      32px
      minmax(0, 1fr);

    padding: 10px;
  }

  .drive-item__main {
    gap: 8px;
  }

  .drive-item__drag-handle {
    display: none;
  }

  .drive-item__icon {
    flex-basis: 38px;

    width: 38px;
    height: 38px;
  }

  .drive-item__actions {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .drive-spinner,
  .drive-upload-progress.is-uploading
  .drive-upload-progress__icon
  svg,
  .drive-upload-progress.is-processing
  .drive-upload-progress__bar,
  .drive-item__preview.is-loading
  .drive-item__preview-loading
  svg {
    animation: none;
  }

  .drive-selection-bar,
  .drive-download-progress,
  .drive-upload-progress,
  .drive-upload-progress__bar,
  .drive-item,
  .drive-drop-target,
  .drive-selection-checkbox__control {
    transition: none;
    animation: none;
  }
}