/* polaroid-vintage.css - layout + controls */
:root {
  --bg: #f6f8fa;
  --card: #fff;
  --accent: #0b78ff;
  --muted: #6b7280;
  --maxwidth: 980px;
}

*{box-sizing:border-box}
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  margin:0; background:var(--bg); color:#111;
}

header {
  text-align:center; padding:28px 12px; background:#24292e; color:#fff;
}
header h1 { margin:0; font-size:1.3rem }
header p { margin:6px 0 0; color:#c9d1d9; font-size:0.95rem }

.container { max-width:var(--maxwidth); margin:20px auto; padding:12px; display:grid; gap:18px; grid-template-columns: 1fr; }
@media(min-width:900px) {
  .container { grid-template-columns: 420px 1fr; align-items:start; }
}

.controls { display:flex; gap:18px; align-items:flex-start; }
.col { background:var(--card); border:1px solid #e6e9ee; border-radius:12px; padding:14px; box-shadow:0 6px 18px rgba(16,24,40,0.04); }
.previewPanel { min-height:320px; display:flex; flex-direction:column; justify-content:flex-start; }
.previewHeader { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.previewActions { margin-top:10px; display:flex; gap:8px; align-items:center; }
.filelabel input[type="file"] { display:block; margin-top:8px; }

.row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:8px; }
label { display:block; font-size:0.95rem; color:#222; }
input[type="text"], input[type="number"], select { padding:8px; border-radius:8px; border:1px solid #d6dbe0; width:100%; margin-top:6px; }
input[type="range"] { width:140px; margin-left:8px; vertical-align:middle; }

.btn { background:var(--accent); color:white; border:none; padding:8px 12px; border-radius:8px; cursor:pointer; font-weight:600; }
.btn.alt { background:#2c2c2c; }
.btn:disabled { opacity:0.5; cursor:default; }

.hint { margin-top:8px; font-size:0.9rem; color:var(--muted) }
.small-muted { font-size:0.85rem; color:var(--muted) }

canvas { width:100%; max-width:900px; border-radius:6px; background:#fff; display:block; }

.gallery { margin-top:10px; }
.galleryGrid { display:flex; gap:8px; flex-wrap:wrap; padding:12px; border-radius:10px; background:var(--card); border:1px solid #e6e9ee; min-height:80px; }
.galleryGrid .tile { width:108px; padding:6px; border-radius:8px; border:1px solid #e8eaed; background:#fff; text-align:center; }
.galleryGrid img { width:100%; border-radius:4px; display:block; }
