/* Photo Collage — tool-specific */
.page { padding: 40px 20px; max-width: 800px; margin: 0 auto; }
.page h1 { font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.page .subtitle { color: #888; margin-bottom: 20px; font-size: 14px; }

.upload-area {
  border: 2px dashed #333; border-radius: 12px;
  text-align: center; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.upload-area:hover { border-color: #555; background: #0d0d0d; }
.upload-area.dragover { border-color: #ff4444; background: #1a0000; }
.upload-content { padding: 48px 20px; }
.upload-icon { width: 40px; height: 40px; color: #444; margin-bottom: 12px; }
.upload-content p { color: #666; font-size: 14px; margin-bottom: 4px; }
.upload-link { color: #ff4444; cursor: pointer; }
.upload-hint { font-size: 12px; color: #444; }

.editor-card { margin-top: 16px; }
.opt-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
.opt-group { display: flex; flex-direction: column; gap: 6px; }
.opt-label { font-size: 11px; color: #aaa; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }
.opt-group select, .opt-group input[type=color], .opt-group input[type=range] {
  background: #0d0d0d; border: 1px solid #2a2a2a; color: #fff;
  padding: 8px 10px; border-radius: 6px; font-size: 13px;
}
.opt-group input[type=color] { width: 60px; height: 36px; padding: 0; cursor: pointer; }
.opt-group input[type=range] { accent-color: #ff4444; width: 160px; padding: 0; }
.opt-value { font-size: 12px; color: #888; font-family: 'SF Mono', monospace; }

.thumbs {
  display: flex; flex-wrap: wrap; gap: 8px;
  background: #0d0d0d; border: 1px solid #2a2a2a; border-radius: 8px;
  padding: 10px; margin-bottom: 8px;
  min-height: 80px;
}
.thumb {
  position: relative;
  width: 64px; height: 64px;
  border-radius: 6px; overflow: hidden;
  cursor: grab; border: 2px solid transparent;
}
.thumb:hover { border-color: #ff4444; }
.thumb.dragging { opacity: 0.4; cursor: grabbing; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .x {
  position: absolute; top: 2px; right: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,0,0,0.7); color: #fff; border: none;
  font-size: 12px; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.hint { color: #666; font-size: 12px; margin-bottom: 14px; }

.canvas-wrap {
  background: #0a0a0a; padding: 16px;
  border: 1px solid #2a2a2a; border-radius: 8px;
  display: flex; justify-content: center;
  max-height: 540px; overflow: auto;
  margin-bottom: 14px;
}
#display { max-width: 100%; max-height: 500px; background: #fff; border: 1px solid #2a2a2a; }

.action-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.status-msg { font-size: 13px; margin-left: 8px; }
.status-msg.ok { color: #4caf50; }

@media (max-width: 600px) {
  .page { padding: 24px 12px; }
  .page h1 { font-size: 22px; }
}
