:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif; --ink:#151515; --muted:#666; --line:#e4e1da; --paper:#fff; --bg:#f5f5f3; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
.app { max-width: 1120px; margin: 0 auto; padding: max(24px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom)); }
header { margin-bottom: 22px; }
.eyebrow { margin: 0 0 8px; color: #9a7b4f; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0 0 8px; font-size: clamp(28px, 6vw, 44px); line-height: 1.05; }
h2 { margin: 0 0 8px; font-size: 19px; }
p { color: var(--muted); line-height: 1.5; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 8px 30px rgba(0,0,0,.04); margin-bottom: 16px; }
.preview { display: none; width: 100%; max-height: 460px; object-fit: contain; background: #fafafa; border: 1px dashed #ddd; border-radius: 14px; margin-top: 12px; }
.controls { display: grid; gap: 13px; }
label { display: grid; gap: 7px; font-weight: 700; }
input, select, textarea, button { font: inherit; border-radius: 12px; border: 1px solid #d7d2c8; padding: 12px 13px; }
textarea { resize: vertical; }
button, .upload { cursor: pointer; background: #111; color: #fff; border-color: #111; font-weight: 800; padding: 14px 16px; text-align: center; border-radius: 14px; }
.upload.secondary { background: #6d5a42; border-color: #6d5a42; }
.ghost { background: transparent; color: #111; border-color: #d7d2c8; }
.optional-card { border-style: dashed; }
.upload input { display: none; }
button:disabled { opacity: .55; cursor: not-allowed; }
.status { min-height: 24px; color: #555; white-space: pre-wrap; }
.status.error { color: #b00020; }
.status.ok { color: #0a7a2f; }
.hidden { display: none !important; }
.lock-screen { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 22px; background: linear-gradient(135deg, #f5f5f3, #e8dfd1); }
.lock-card { width: min(100%, 390px); display: grid; gap: 14px; justify-items: center; text-align: center; background: rgba(255,255,255,.86); border: 1px solid var(--line); border-radius: 26px; padding: 26px 20px; box-shadow: 0 18px 50px rgba(0,0,0,.12); }
.lock-icon { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 24px; background: #111; color: white; font-size: 42px; }
.pin-input { width: min(100%, 260px); height: 68px; text-align: center; font-size: 34px; font-weight: 900; letter-spacing: 8px; }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.results.empty { display: block; color: #777; }
.result { border: 1px solid #e6e2da; border-radius: 14px; padding: 10px; background: #fcfcfb; }
.result img { width: 100%; border-radius: 10px; background: white; display:block; }
.result a { display: inline-block; margin-top: 10px; color: #111; font-weight: 800; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } .app { padding-left: 14px; padding-right: 14px; } .card { padding: 15px; } }
