:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  background: #eef2f7;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(180deg, #e7edf7 0, #f7f9fc 360px); }
button, input, select { font: inherit; }
button { touch-action: manipulation; }
.topbar {
  max-width: 1320px; margin: 0 auto; padding: 34px 22px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.eyebrow { font-size: 12px; font-weight: 900; letter-spacing: .18em; color: #2563eb; }
h1 { margin: 4px 0 2px; font-size: clamp(32px, 5vw, 52px); line-height: 1; letter-spacing: -.04em; }
.topbar p { margin: 9px 0 0; color: #64748b; font-weight: 650; }
.privacy-pill { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; border-radius: 999px; padding: 10px 14px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.layout { max-width: 1320px; margin: 0 auto; padding: 14px 22px 40px; display: grid; grid-template-columns: minmax(320px, 420px) 1fr; gap: 20px; align-items: start; }
.panel { background: rgba(255,255,255,.96); border: 1px solid #dbe3ef; border-radius: 24px; box-shadow: 0 18px 50px rgba(15,23,42,.08); padding: 22px; }
.controls { position: sticky; top: 12px; }
.section-title { display: flex; gap: 12px; align-items: flex-start; }
.section-title h2 { margin: 0; font-size: 18px; }
.section-title p { margin: 4px 0 0; color: #64748b; font-size: 13px; }
.step { width: 30px; height: 30px; border-radius: 10px; background: #0f172a; color: white; display: grid; place-items: center; font-weight: 900; flex: 0 0 auto; }
.spacer { margin-top: 26px; }
.dropzone { margin-top: 16px; min-height: 150px; border: 2px dashed #93c5fd; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px; background: #eff6ff; color: #1e3a8a; cursor: pointer; text-align: center; transition: .18s ease; }
.dropzone:hover, .dropzone.dragover { background: #dbeafe; border-color: #2563eb; transform: translateY(-1px); }
.dropzone input { display: none; }
.dropzone span:last-child { color: #64748b; font-size: 12px; }
.drop-icon { font-size: 32px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-top: 15px; font-weight: 750; font-size: 13px; }
.field input[type="text"], .field input[type="file"], .field select, select { width: 100%; border: 1px solid #cbd5e1; border-radius: 12px; padding: 11px 12px; background: white; color: #0f172a; outline: none; }
.field input[type="text"]:focus, select:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.field small { color: #64748b; font-weight: 500; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.range-field { display: block; margin-top: 16px; }
.range-field > div { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; }
.range-field output { color: #2563eb; }
.range-field input { width: 100%; margin-top: 8px; accent-color: #2563eb; }
.advanced { margin-top: 18px; border-top: 1px solid #e2e8f0; padding-top: 14px; }
.advanced summary { cursor: pointer; font-weight: 850; color: #334155; }
.checkbox-field { flex-direction: row; align-items: center; gap: 9px; }
.checkbox-field input { width: 18px; height: 18px; accent-color: #2563eb; }
.actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 22px; }
.btn { border: 0; border-radius: 12px; padding: 12px 15px; font-weight: 850; cursor: pointer; transition: transform .12s ease, opacity .12s ease; }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: #2563eb; color: white; }
.btn.success { background: #16a34a; color: white; }
.btn.ghost { background: #e2e8f0; color: #334155; }
.btn.small { padding: 9px 11px; font-size: 12px; }
.empty-state { min-height: 420px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; text-align: center; color: #64748b; border: 1px dashed #cbd5e1; border-radius: 18px; margin-top: 18px; padding: 20px; }
.empty-state div { font-size: 52px; }
.empty-state strong { color: #334155; font-size: 18px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 18px; }
.photo-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 17px; overflow: hidden; min-width: 0; }
.preview-wrap { aspect-ratio: 4/3; background: #0f172a; display: grid; place-items: center; overflow: hidden; }
.preview { width: 100%; height: 100%; object-fit: contain; }
.photo-info { padding: 11px; }
.photo-meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.photo-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.photo-state { font-size: 11px; font-weight: 850; color: #64748b; white-space: nowrap; }
.photo-state.done { color: #15803d; }
.photo-buttons { display: flex; gap: 8px; margin-top: 10px; }
.download-bar { margin-top: 16px; padding: 13px; border-radius: 15px; background: #f0fdf4; border: 1px solid #bbf7d0; display: flex; align-items: center; gap: 12px; }
.download-bar span { color: #64748b; font-size: 12px; }
footer { max-width: 1320px; margin: 0 auto; padding: 0 22px 32px; color: #64748b; font-size: 12px; text-align: center; }
@media (max-width: 900px) {
  .topbar { align-items: flex-start; flex-direction: column; padding-top: 24px; }
  .layout { grid-template-columns: 1fr; padding: 8px 12px 30px; }
  .controls { position: static; }
  .panel { border-radius: 18px; padding: 16px; }
  .gallery { grid-template-columns: 1fr; }
  .privacy-pill { white-space: normal; }
  .empty-state { min-height: 260px; }
  .download-bar { flex-direction: column; align-items: stretch; }
}
@media (max-width: 430px) {
  .grid-2, .actions { grid-template-columns: 1fr; }
  .topbar { padding-left: 14px; padding-right: 14px; }
}
