* { box-sizing: border-box; }
:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f6f7fb;
  background: #0b0d12;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(99,102,241,.18), transparent 28rem),
    radial-gradient(circle at top right, rgba(14,165,233,.11), transparent 24rem),
    #0b0d12;
}
button, select, input { font: inherit; }
button, select { outline: none; }

.app-shell {
  width: min(1100px, calc(100% - 28px));
  margin: 0 auto;
  padding: 42px 0 64px;
}
.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.eyebrow {
  margin: 0 0 8px;
  color: #8b93a7;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 800;
}
h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 56px);
  line-height: .98;
  letter-spacing: -.04em;
}
.subtitle {
  max-width: 720px;
  margin: 14px 0 0;
  color: #a7afc2;
  font-size: 17px;
  line-height: 1.55;
}
.privacy-pill {
  flex: 0 0 auto;
  border: 1px solid #263044;
  background: #111722;
  color: #b8c3d9;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
}
.panel {
  background: rgba(17,20,28,.88);
  border: 1px solid #222836;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
  backdrop-filter: blur(14px);
  margin-bottom: 18px;
}
.drop-zone {
  min-height: 170px;
  border: 2px dashed #343d52;
  border-radius: 18px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  cursor: pointer;
  background: #0d1119;
  transition: .2s ease;
  text-align: center;
  padding: 24px;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: #7c83ff;
  background: #11172a;
}
.drop-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #171d2a;
  color: #9aa0ff;
  font-size: 30px;
}
.drop-zone strong { font-size: 20px; }
.drop-zone span { color: #8f98ad; }

.settings-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
  margin-top: 16px;
}
.settings-grid label { display: grid; gap: 7px; }
.settings-grid label span {
  color: #9ba5ba;
  font-size: 12px;
  font-weight: 700;
}
select {
  width: 100%;
  background: #0d1119;
  color: #f4f6fb;
  border: 1px solid #2a3141;
  border-radius: 12px;
  padding: 11px 12px;
}

.toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
button {
  border: 0;
  border-radius: 12px;
  padding: 11px 15px;
  cursor: pointer;
  transition: .18s ease;
}
button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.primary {
  background: linear-gradient(135deg,#7c83ff,#5e6bff);
  color: white;
  font-weight: 800;
  min-width: 150px;
}
.primary:hover:not(:disabled) { transform: translateY(-1px); }
.secondary {
  background: #171c26;
  color: #c5ccda;
  border: 1px solid #2b3242;
}
.status {
  margin-top: 12px;
  min-height: 20px;
  color: #8f98ad;
  font-size: 13px;
}
.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}
.list-header h2 { margin: 0 0 4px; font-size: 20px; }
.list-header p { margin: 0; color: #8992a6; font-size: 13px; }
.count-badge {
  border-radius: 999px;
  background: #171d29;
  color: #abb5c9;
  padding: 8px 12px;
  font-size: 12px;
}
.image-list {
  display: grid;
  gap: 10px;
}
.image-list.empty { min-height: 100px; }
.empty-state {
  display: grid;
  place-items: center;
  min-height: 100px;
  color: #687185;
  border: 1px dashed #262d3c;
  border-radius: 14px;
}
.image-card {
  display: grid;
  grid-template-columns: 30px 76px minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid #252c3b;
  border-radius: 15px;
  background: #0e121a;
}
.image-card.dragging { opacity: .45; }
.drag-handle {
  color: #5f6a7f;
  cursor: grab;
  user-select: none;
  text-align: center;
  font-weight: 900;
}
.thumb {
  width: 76px;
  height: 62px;
  object-fit: cover;
  border-radius: 10px;
  background: #171c26;
}
.image-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.image-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.image-size { color: #788296; font-size: 12px; }
.card-actions { display: flex; gap: 6px; }
.icon-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  background: #181e29;
  color: #d8deea;
  border: 1px solid #293142;
}
.icon-btn:hover { background: #20283a; }
.remove:hover { color: #ff9a9a; border-color: #61353b; }

@media (max-width: 760px) {
  .app-shell { padding-top: 24px; }
  .hero { align-items: flex-start; flex-direction: column; }
  .settings-grid { grid-template-columns: 1fr 1fr; }
  .image-card { grid-template-columns: 24px 64px minmax(0,1fr); }
  .thumb { width: 64px; height: 56px; }
  .card-actions { grid-column: 2 / -1; justify-content: flex-end; }
}
@media (max-width: 500px) {
  .settings-grid { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column-reverse; }
  .toolbar button { width: 100%; }
}
