/* PicPress — clean, minimal, English-only UI */
* { box-sizing: border-box; }
body { margin:0; font-family:"Segoe UI", system-ui, -apple-system, sans-serif; background:#f7f8fb; color:#1f2a44; line-height:1.6; }
.container { max-width:920px; margin:0 auto; padding:20px 18px 60px; }
header { display:flex; align-items:center; justify-content:space-between; padding:14px 0 8px; }
.brand { display:flex; align-items:center; gap:10px; font-size:20px; font-weight:700; }
.brand img { width:32px; height:32px; }
.badge { font-size:11px; padding:3px 9px; border-radius:999px; font-weight:600; }
.badge.free { background:#e5e7eb; color:#374151; }
.badge.pro { background:#dcfce7; color:#166534; }
.btn { padding:9px 16px; border-radius:9px; border:none; cursor:pointer; font-size:14px; font-weight:600; }
.btn.primary { background:#6366f1; color:#fff; }
.btn.primary:hover { background:#4f46e5; }
.btn.secondary { background:#fff; border:1px solid #d1d5db; color:#374151; }
.btn.secondary:hover { background:#f3f4f6; }
.btn:disabled { opacity:.5; cursor:not-allowed; }
.card { background:#fff; border:1px solid #e5e7eb; border-radius:14px; padding:20px; margin-top:16px; }
.card h2 { font-size:15px; margin:0 0 12px; }
.dropzone { border:2px dashed #c7cbd4; border-radius:12px; padding:32px 16px; text-align:center; color:#6b7280; cursor:pointer; transition:.15s; }
.dropzone.drag { border-color:#6366f1; background:#eef2ff; }
.dropzone strong { color:#374151; }
.controls { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px; margin-top:16px; }
.field label { display:block; font-size:12px; font-weight:600; margin-bottom:4px; color:#374151; }
.field select, .field input[type=range] { width:100%; }
.field select { padding:8px; border:1px solid #d1d5db; border-radius:8px; font-size:13px; }
.quality-val { font-size:12px; color:#6b7280; }
.actions { margin-top:16px; display:flex; gap:10px; flex-wrap:wrap; }
.list { margin-top:18px; }
.item { display:flex; align-items:center; justify-content:space-between; padding:9px 12px; border:1px solid #eef0f3; border-radius:9px; margin-bottom:8px; font-size:13px; }
.item .name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:60%; }
.item .meta { color:#6b7280; font-size:12px; }
.item .size { color:#6b7280; font-size:12px; min-width:70px; text-align:right; }
.msg { margin-top:12px; font-size:13px; padding:10px 12px; border-radius:9px; }
.msg.info { background:#eef2ff; color:#3730a3; }
.msg.error { background:#fef2f2; color:#991b1b; }
.msg.ok { background:#ecfdf5; color:#047857; }
.modal-back { position:fixed; inset:0; background:rgba(15,23,42,.5); display:none; align-items:center; justify-content:center; z-index:50; }
.modal-back.open { display:flex; }
.modal { background:#fff; border-radius:14px; padding:22px; max-width:520px; width:94%; max-height:88vh; overflow:auto; }
.modal h2 { margin-top:0; font-size:16px; }
.modal label { display:block; font-size:12px; font-weight:600; margin:12px 0 4px; color:#374151; }
.modal input { width:100%; padding:9px 11px; border:1px solid #d1d5db; border-radius:8px; font-size:13px; }
.modal .hint { font-size:11px; color:#9ca3af; margin-top:3px; }
.modal .row { display:flex; gap:10px; margin-top:16px; justify-content:flex-end; }
.footer { text-align:center; color:#9ca3af; font-size:12px; margin-top:40px; }
a { color:#6366f1; }
.hidden { display:none; }
