.imgdrop { max-width: 760px; margin: 0 auto; }
.imgdrop-drop {
  display: flex; flex-direction: column; gap: .5rem; align-items: center; justify-content: center;
  padding: 3rem 1rem; text-align: center; cursor: pointer;
  border: 2px dashed currentColor; border-radius: .75rem; opacity: .85;
  transition: background-color .15s, opacity .15s;
}
.imgdrop-drop:hover, .imgdrop-drop:focus, .imgdrop-drop.is-over { opacity: 1; background: rgba(127, 127, 127, .12); outline: none; }
.imgdrop-drop-title { font-size: 1.15rem; font-weight: 600; }
.imgdrop-hint { font-size: .85rem; opacity: .7; }
.imgdrop-expiry { display: flex; gap: .75rem; align-items: center; margin: 1rem 0; flex-wrap: wrap; }
.imgdrop-expiry select { width: auto; }
.imgdrop-results { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.imgdrop-item { padding: 1rem; border: 1px solid rgba(127, 127, 127, .4); border-radius: .5rem; }
.imgdrop-item.is-error { border-color: #c0392b; }
.imgdrop-item.is-error .imgdrop-status { color: #c0392b; }
.imgdrop-name { font-weight: 600; margin-bottom: .5rem; word-break: break-all; }
.imgdrop-item progress { width: 100%; }
.imgdrop-thumb { display: block; max-width: 100%; max-height: 220px; margin-bottom: .75rem; border-radius: .25rem; }
.imgdrop-field { display: grid; grid-template-columns: 7rem 1fr auto; gap: .5rem; align-items: center; margin-bottom: .4rem; }
.imgdrop-field label { font-size: .85rem; opacity: .8; }
.imgdrop-field input { width: 100%; font-family: monospace; font-size: .85rem; }
.imgdrop-expires { margin-top: .5rem; font-size: .85rem; opacity: .75; }
@media (max-width: 600px) { .imgdrop-field { grid-template-columns: 1fr auto; } .imgdrop-field label { grid-column: 1 / -1; } }
.imgdrop-thumb-link { display: inline-block; }
.imgdrop-viewer { max-width: 100%; min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.imgdrop-full { display: block; width: auto; height: auto; max-width: 100%; max-height: 75vh; margin: 0 auto; border-radius: .25rem; }
.imgdrop-meta { margin: 1rem 0 .5rem; opacity: .75; font-size: .9rem; }
.imgdrop-zoom { cursor: zoom-in; }
html.imgdrop-lightbox-open { overflow: hidden; }
.imgdrop-lightbox {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; background: rgba(0, 0, 0, .9); cursor: zoom-out;
}
.imgdrop-lightbox img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.imgdrop-lightbox-close {
  position: absolute; top: .5rem; right: .75rem;
  width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .15); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer;
}
.imgdrop-lightbox-close:hover, .imgdrop-lightbox-close:focus { background: rgba(255, 255, 255, .3); outline: 2px solid #fff; }
.imgdrop-mine { max-width: 900px; }
.imgdrop-mine-list { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: 1rem; }
.imgdrop-mine-item {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 1rem; align-items: center;
  padding: .75rem; border: 1px solid rgba(127, 127, 127, .4); border-radius: .5rem;
}
.imgdrop-mine-item.is-expired { border-color: #c0392b; }
.imgdrop-mine-thumb img { display: block; width: 96px; height: 72px; object-fit: cover; border-radius: .25rem; }
.imgdrop-mine-info .imgdrop-name { margin: 0 0 .15rem; }
.imgdrop-mine-info .imgdrop-meta { margin: 0 0 .35rem; }
.imgdrop-badge { display: inline-block; padding: .1rem .5rem; border-radius: 1rem; font-size: .8rem; background: rgba(127, 127, 127, .25); }
.imgdrop-badge.is-ok { background: #1e8449; color: #fff; }
.imgdrop-badge.is-danger { background: #c0392b; color: #fff; }
.imgdrop-mine-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem; }
.imgdrop-mine-actions form { margin: 0; }
.imgdrop-mine-extend { display: flex; gap: .4rem; align-items: center; }
.imgdrop-mine-extend select { width: auto; }
.imgdrop-btn-danger { color: #c0392b; }
@media (max-width: 640px) {
  .imgdrop-mine-item { grid-template-columns: 72px 1fr; }
  .imgdrop-mine-thumb img { width: 72px; height: 56px; }
  .imgdrop-mine-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
.imgdrop-unavailable { min-height: 40vh; }
.imgdrop-unavailable-title { font-size: 1.4rem; font-weight: 600; margin: 0; }
