.imgsplit {
  max-width: 720px;
  margin: 0 auto;
}

.imgsplit__lead {
  margin: 0 0 1.2rem;
  color: #475569;
  font-size: .95rem;
}

.imgsplit-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 2.2rem 1.2rem;
  text-align: center;
  background: #fafafa;
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  transition: border-color .15s, background-color .15s;
}

.imgsplit-drop.is-dragover {
  border-color: #e11d48;
  background: #fff1f2;
}

.imgsplit-drop__button {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding: .65rem 1.5rem;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: #e11d48;
  border: 1px solid transparent;
  border-radius: 999px;
}

.imgsplit-drop__button:hover {
  background: #be123c;
}

.imgsplit-drop__hint {
  margin: 0;
  font-size: .85rem;
  color: #94a3b8;
}

.imgsplit-drop__filename {
  margin: 0;
  font-size: .85rem;
  font-weight: 700;
  color: #334155;
  word-break: break-all;
}

.imgsplit-error {
  margin: .9rem 0 0;
  padding: .55rem .8rem;
  font-size: .88rem;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
}

.imgsplit-result {
  margin-top: 1.4rem;
}

.imgsplit-order-guide {
  margin-bottom: 1rem;
  padding: .8rem 1rem;
  background: #fdf2f4;
  border: 1px solid #fecdd3;
  border-radius: 10px;
}

.imgsplit-order-guide__title {
  margin: 0 0 .25rem;
  font-size: .82rem;
  font-weight: 700;
  color: #be123c;
}

.imgsplit-order-guide__text {
  margin: 0;
  font-size: .88rem;
  color: #475569;
}

.imgsplit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem;
}

.imgsplit-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: .6rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.imgsplit-tile__badge {
  position: absolute;
  top: .5rem;
  left: .5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  font-size: .8rem;
  font-weight: 800;
  color: #fff;
  background: #334155;
  border-radius: 999px;
}

.imgsplit-tile__preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: #e2e8f0;
}

.imgsplit-tile__download {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding: .4rem .6rem;
  font-size: .82rem;
  font-weight: 700;
  color: #e11d48;
  background: #fff;
  border: 1px solid #e11d48;
  border-radius: 999px;
}

.imgsplit-tile__download:hover {
  background: #fff1f2;
}

@media (max-width: 480px) {
  .imgsplit-grid {
    gap: .6rem;
  }
}
