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

body {
  font-family: system-ui, sans-serif;
  background: #fff;
  color: #111;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#drop-view {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(480px, 90vw);
  padding: 64px 32px;
  border: 2px dashed #ccc;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
}

#drop-zone.drag-over {
  border-color: #999;
  background: #f5f5f5;
}

.drop-icon {
  font-size: 48px;
  line-height: 1;
  color: #bbb;
}

.drop-label {
  font-size: 18px;
  font-weight: 500;
  color: #222;
}

.drop-sub {
  font-size: 13px;
  color: #aaa;
}

#browse-btn {
  margin-top: 12px;
  padding: 8px 20px;
  background: #fff;
  color: #555;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}

#browse-btn:hover {
  background: #f5f5f5;
  color: #111;
}

#crop-view {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

#crop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #fafafa;
  border-bottom: 1px solid #e5e5e5;
  flex-shrink: 0;
}

#queue-label {
  font-size: 13px;
  color: #999;
}

#filename-label {
  font-size: 13px;
  color: #bbb;
  font-family: monospace;
}

#crop-container {
  flex: 1;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#crop-container img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

#crop-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  background: #fafafa;
  border-top: 1px solid #e5e5e5;
  flex-shrink: 0;
}

#skip-btn {
  padding: 9px 22px;
  background: transparent;
  color: #999;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

#skip-btn:hover {
  color: #333;
  border-color: #bbb;
}

#export-btn {
  padding: 9px 22px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

#export-btn:hover {
  background: #333;
}
