:root{
  --orange:#f58220;--orange-dark:#d96708;--ink:#172033;--muted:#667085;
  --line:#e7e7eb;--bg:#fff7f0;--soft:#fffaf6;--green:#128c52;
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:radial-gradient(circle at top left,#fff0e2,transparent 36%),linear-gradient(180deg,#fffaf6 0%,#fff 55%);color:var(--ink)}
button,input,textarea,select{font:inherit}
button{border:0;border-radius:13px;padding:12px 16px;font-weight:850;cursor:pointer;transition:.18s ease}
button:disabled{opacity:.55;cursor:wait}
.shell{max-width:1180px;margin:auto;padding:36px 18px 64px}
.card{background:rgba(255,255,255,.93);border:1px solid #f1e4d8;border-radius:28px;padding:30px;box-shadow:0 22px 60px rgba(83,45,10,.09);backdrop-filter:blur(10px)}
.pill,.eyebrow{display:inline-block;color:var(--orange-dark);font-size:12px;font-weight:900;letter-spacing:.08em}
.pill{background:#fff0e2;padding:7px 10px;border-radius:999px}
h1{font-size:clamp(36px,5.2vw,64px);max-width:900px;margin:12px 0 12px;line-height:.98;letter-spacing:-.04em}
.hero p{font-size:17px;color:var(--muted);max-width:800px;line-height:1.6}
.support{margin:22px 0;padding:14px 16px;border-radius:16px;background:#fff7ed;border:1px solid #fed7aa;line-height:1.5}
.support.ok{background:#ecfdf3;border-color:#bbf7d0}.support.bad{background:#fff1f2;border-color:#fecdd3}
.grid{display:grid;grid-template-columns:.95fr 1.05fr;gap:18px}
.panel,.result,.notes{border:1px solid var(--line);border-radius:20px;padding:20px;background:#fff}
.section-title{display:flex;gap:12px;align-items:flex-start;margin-bottom:18px}.section-title h2{margin:0 0 4px}.section-title p{margin:0;color:var(--muted);font-size:13px}
.step{display:grid;place-items:center;min-width:34px;height:34px;border-radius:11px;background:#fff0e2;color:var(--orange-dark);font-weight:950}
label{display:grid;gap:7px;font-size:13px;font-weight:800;margin-bottom:14px}
input,textarea,select{width:100%;border:1px solid #d0d5dd;border-radius:12px;padding:12px;background:#fff;color:var(--ink);outline:none;resize:vertical}
input:focus,textarea:focus,select:focus{border-color:var(--orange);box-shadow:0 0 0 3px rgba(245,130,32,.12)}
.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.upload-row{display:flex;flex-wrap:wrap;gap:10px}.upload{display:inline-flex;width:max-content;border-radius:12px;padding:11px 14px;cursor:pointer;font-size:14px;font-weight:850}.upload input{display:none}.primary-upload{background:var(--orange);color:#fff}.camera-upload{background:#fff;border:1px solid #d0d5dd;color:var(--ink)}
.preview-wrap{margin-top:14px;height:330px;border:1px dashed #d0d5dd;border-radius:18px;overflow:hidden;display:grid;place-items:center;background:linear-gradient(135deg,#fafafa,#fff7f0)}
#preview{display:none;width:100%;height:100%;object-fit:contain}.empty{display:grid;place-items:center;gap:8px;color:#98a2b3}.empty span{font-size:34px}.microcopy{font-size:12px;color:var(--muted);line-height:1.45}
.primary{background:var(--orange);color:#fff}.primary:hover{background:var(--orange-dark);transform:translateY(-1px)}.secondary,.ghost{background:#fff;border:1px solid #d0d5dd;color:var(--ink)}.secondary:hover,.ghost:hover{background:#f8fafc}.generate-btn{width:100%;padding:14px 18px;font-size:16px}
.result,.notes{margin-top:18px}.hidden{display:none}.result-head{display:flex;justify-content:space-between;gap:15px;align-items:center}.result-head h2{margin:4px 0 0}.insights-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.insight{border:1px solid #eee;border-radius:16px;padding:14px;background:var(--soft)}.insight span{font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.insight p{margin:8px 0 0;color:#475467;line-height:1.5;font-size:14px}.output-label{font-size:14px}.output-label textarea{font-size:15px;line-height:1.6;min-height:260px}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}.status-card h2,.notes h2{margin-top:0}pre{margin:0;white-space:pre-wrap;word-break:break-word;font-size:13px;color:#344054}.feature-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}.feature-list p{margin:0;padding:14px;border-radius:14px;background:#fafafa;color:var(--muted);line-height:1.55}.feature-list strong{color:var(--ink)}
@media(max-width:800px){.card{padding:20px}.grid,.insights-grid,.feature-list,.field-grid{grid-template-columns:1fr}.preview-wrap{height:260px}.actions button,.result-head button{width:100%}.result-head{align-items:stretch;flex-direction:column}}
