.file-list__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

:root {
  color-scheme: dark;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", sans-serif;
  --bg-gradient: radial-gradient(circle at 20% 20%, #1e202a 0%, #141620 55%, #0c0d12 100%);
  --panel-bg: rgba(28, 30, 40, 0.9);
  --panel-border: rgba(255, 255, 255, 0.06);
  --primary: #6a8bff;
  --secondary: #4fc1ad;
  --text-main: rgba(239, 241, 250, 0.95);
  --text-subtle: rgba(191, 196, 216, 0.72);
  --divider: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 42px rgba(0, 3, 16, 0.68);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-gradient);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.bg-glow {
  display: none;
}

.hero {
  padding: 48px 5vw 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 1;
}

.hero__content h1 {
  font-size: clamp(2.1rem, 4.1vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.6px;
  margin: 0;
}

.hero__content p {
  margin: 12px 0 0;
  font-size: 1.02rem;
  color: var(--text-subtle);
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  background: rgba(48, 50, 65, 0.6);
  color: var(--text-main);
  border: 1px solid var(--divider);
  border-radius: 999px;
  padding: 7px 16px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.chip:hover {
  transform: translateY(-1px);
  background: rgba(62, 66, 82, 0.78);
  border-color: rgba(255, 255, 255, 0.18);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  padding: 0 5vw 44px;
  position: relative;
  z-index: 1;
}

.panel {
  border-radius: 20px;
  padding: 22px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 290px;
}

.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel__header h2 {
  font-size: 1.32rem;
  margin: 0;
}

.panel__subtitle {
  margin: 0;
  color: var(--text-subtle);
  font-size: 0.96rem;
}

.panel__footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

.tag {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-subtle);
  background: rgba(56, 60, 77, 0.55);
  border: 1px solid var(--divider);
}

.tag--sunset {
  color: var(--primary);
}

.tag--aqua {
  color: var(--secondary);
}

.tag--ghost {
  color: var(--text-subtle);
}

.dropzone {
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 22px 16px;
  position: relative;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.dropzone:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(54, 58, 74, 0.5);
}

.dropzone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-subtle);
}

.dropzone__icon {
  font-size: 1.4rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form--inline {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form__label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-main);
}

.form__input {
  border: none;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 0.96rem;
  background: rgba(56, 60, 77, 0.6);
  color: var(--text-main);
  outline: 2px solid transparent;
  transition: outline 0.2s ease, background 0.2s ease;
}

.form__input:focus {
  outline: 2px solid rgba(106, 139, 255, 0.55);
  background: rgba(60, 66, 86, 0.7);
}

.slider {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.slider input[type="range"] {
  flex: 1;
  accent-color: var(--primary);
}

.slider__value {
  min-width: 44px;
  text-align: right;
  font-weight: 600;
  color: var(--text-main);
}

.file-list-wrapper {
  background: rgba(40, 43, 56, 0.7);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.file-list-wrapper--compact {
  padding: 12px 14px;
}

.file-list--single {
  max-height: unset;
}

.file-list__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.link-btn {
  border: none;
  background: none;
  color: var(--text-subtle);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.link-btn:hover {
  color: var(--text-main);
}

.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
}

.file-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(52, 56, 70, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 10px 12px;
}

.file-list__name {
  flex: 1;
  color: var(--text-main);
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-list__meta {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.file-list__controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.file-list--images .file-list__item {
  align-items: flex-start;
}

.icon-btn {
  border: none;
  background: rgba(70, 74, 90, 0.8);
  color: var(--text-main);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.icon-btn:hover {
  background: rgba(92, 96, 114, 0.9);
  transform: translateY(-1px);
}

.icon-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.file-list__index {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  color: var(--text-subtle);
}

.file-list__empty {
  text-align: center;
  padding: 16px 0;
  border: 1px dashed var(--divider);
  border-radius: 12px;
  color: var(--text-subtle);
  font-size: 0.88rem;
}

.panel--secondary {
  border-color: rgba(79, 193, 173, 0.25);
}

.panel--ghost {
  border-color: rgba(255, 255, 255, 0.04);
}

.btn {
  border: none;
  border-radius: 14px;
  padding: 12px 20px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(12, 15, 26, 0.92);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn--primary {
  background: linear-gradient(135deg, #7c97ff, #5f80ff);
  box-shadow: 0 12px 24px rgba(95, 128, 255, 0.28);
}

.btn--secondary {
  background: linear-gradient(135deg, #63d2c0, #47b3a3);
  box-shadow: 0 12px 24px rgba(71, 179, 163, 0.28);
}

.btn--ghost {
  background: linear-gradient(135deg, #9ca2b8, #7b8094);
  box-shadow: 0 12px 24px rgba(124, 130, 150, 0.22);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(8, 10, 18, 0.32);
}

.status {
  font-size: 0.9rem;
  color: var(--text-subtle);
  min-height: 1.2em;
}

.status--success {
  color: #66d3c3;
}

.status--error {
  color: #ff7b7b;
}

.tips {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-subtle);
}

.footer {
  margin-top: auto;
  padding: 24px 5vw 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-subtle);
  font-size: 0.92rem;
  position: relative;
  z-index: 1;
}

.footer__links {
  display: flex;
  gap: 20px;
}

.footer__links a {
  color: var(--text-subtle);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--text-main);
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 40px 7vw 22px;
  }

  .grid {
    padding: 0 7vw 40px;
  }

  .panel {
    padding: 20px;
  }

  .footer {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}

