/* Twitter Banner Sizer — tool-specific */
.page { padding: 40px 20px; max-width: 1000px; 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: 24px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.opt-group { display: flex; align-items: center; gap: 8px; }
.opt-label { font-size: 12px; color: #aaa; font-weight: 500; }
.opt-value { font-size: 12px; color: #888; font-family: 'SF Mono', monospace; min-width: 50px; }
.opt-group input[type=range] { width: 180px; accent-color: #ff4444; }

.checkbox-label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: #ccc; }
.checkbox-label input { accent-color: #ff4444; }

.canvas-wrap {
  position: relative;
  width: 750px; max-width: 100%; height: 250px;
  margin: 0 auto 16px;
  border: 1px solid #2a2a2a; border-radius: 4px;
  overflow: hidden;
}
#display { display: block; cursor: grab; }

.zone {
  position: absolute; pointer-events: none;
  border: 2px dashed rgba(255, 68, 68, 0.7);
  background: rgba(255, 68, 68, 0.08);
}
/* Profile pic ~200/1500 = 13% wide, centered at ~145/1500 = ~10% in. Bottom edge at ~25/500 = ~5% from bottom */
.profile-pic-zone {
  bottom: 3%; left: 6%;
  width: 13.3%; aspect-ratio: 1/1;
  border-radius: 50%;
  border-style: solid;
}
/* Mobile crop: keep center ~50% horizontally */
.mobile-zone {
  top: 0; left: 25%;
  width: 50%; height: 100%;
  border-top: none; border-bottom: none;
}

.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: 800px) {
  .canvas-wrap { width: 100%; height: auto; aspect-ratio: 3/1; }
}
@media (max-width: 600px) {
  .page { padding: 24px 12px; }
  .page h1 { font-size: 22px; }
}
