.stl-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.stl-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stl-choice-card,
.stl-folder-card,
.stl-empty {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(23, 27, 37, 0.84);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.stl-choice-card {
  display: grid;
  gap: 0.65rem;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.stl-choice-card:hover {
  border-color: rgba(124, 200, 255, 0.72);
  transform: translateY(-2px);
}

.stl-choice-card h2,
.stl-folder-card h3,
.stl-empty h2 {
  margin: 0;
}

.stl-choice-card p,
.stl-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.stl-browser {
  display: grid;
  gap: 1rem;
}

.stl-browser-head,
.stl-folder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.stl-list {
  display: grid;
  gap: 1rem;
}

.stl-folder-card {
  padding: 1rem;
}

.stl-download {
  white-space: nowrap;
}

.stl-file-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
}

.stl-file-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.stl-file-row:hover {
  border-color: rgba(124, 200, 255, 0.45);
}

.stl-file-icon {
  min-width: 3rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.stl-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.stl-file-size,
.stl-more {
  color: var(--muted);
  font-size: 0.9rem;
}

.stl-more {
  margin: 0.35rem 0 0;
}

.stl-empty {
  padding: 1.4rem;
}

@media (max-width: 760px) {
  .stl-choice-grid {
    grid-template-columns: 1fr;
  }

  .stl-browser-head,
  .stl-folder-head {
    align-items: stretch;
    flex-direction: column;
  }

  .stl-download {
    width: 100%;
  }

  .stl-file-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .stl-file-size {
    grid-column: 2;
  }
}

@media (max-width: 480px) {
  .stl-shell {
    width: min(100% - 1.5rem, 1180px);
    padding: 1rem 0 2.5rem;
  }

  .stl-choice-card,
  .stl-folder-card,
  .stl-empty {
    border-radius: 18px;
  }

  .stl-folder-card,
  .stl-empty {
    padding: 0.85rem;
  }

  .stl-file-row {
    gap: 0.55rem;
    padding: 0.65rem;
  }

  .stl-file-icon {
    min-width: 2.4rem;
    font-size: 0.68rem;
  }

  .stl-file-name {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
