.tool-main { max-width: 720px; }

h2.section-title { font-size: 1rem; color: var(--text-sub); margin-bottom: 1rem; font-weight: 600; }

.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.drop-zone.drag-over { border-color: var(--blue); background: rgba(59,130,246,0.05); }
.drop-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.drop-zone p { color: var(--text-sub); margin-bottom: 0.5rem; }
.drop-zone .drop-sub { font-size: 0.85rem; }
.drop-zone label.btn { margin-top: 0.5rem; cursor: pointer; }

.crop-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}
@media (max-width: 480px) { .crop-controls { grid-template-columns: 1fr; } }

.canvas-wrap {
  overflow: auto;
  margin-bottom: 0.75rem;
  background: #e2e8f0;
  border-radius: 6px;
  display: flex;
  justify-content: center;
}
#crop-canvas { display: block; cursor: crosshair; touch-action: none; }

.coord-info {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-bottom: 1rem;
  min-height: 1.25em;
  text-align: center;
}

.preview-wrap {
  text-align: center;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
}
.preview-wrap img { max-width: 100%; max-height: 400px; border-radius: 4px; }

.result-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.result-actions .btn { flex: 1; min-width: 120px; }

html[data-theme="dark"] .canvas-wrap { background: #0f172a; }
html[data-theme="dark"] .preview-wrap { background: #0f172a; }
