* { box-sizing: border-box; }
:root { --blue:#0d6efd; --blue-dark:#084298; --bg:#f4f7fb; --text:#111827; --muted:#64748b; --card:#fff; }
body { margin:0; font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; background:var(--bg); color:var(--text); }
.app-header { background:linear-gradient(135deg,var(--blue),var(--blue-dark)); color:white; padding:28px 20px 42px; border-bottom-left-radius:32px; border-bottom-right-radius:32px; }
.app-header p { margin:8px 0 0; opacity:.88; line-height:1.45; }
.eyebrow { display:block; font-size:13px; opacity:.86; margin-bottom:6px; }
h1,h2 { margin:0; }
h1 { font-size:30px; letter-spacing:-.03em; }
h2 { font-size:19px; margin-bottom:8px; }
.container { padding:18px; max-width:560px; margin:-26px auto 40px; }
.card { position:relative; background:var(--card); border-radius:24px; padding:20px; margin-bottom:16px; box-shadow:0 12px 35px rgba(15,23,42,.08); }
.card.compact { padding-bottom:14px; }
.step-badge { position:absolute; top:18px; right:18px; width:28px; height:28px; border-radius:999px; background:#eff6ff; color:var(--blue); display:grid; place-items:center; font-weight:800; }
.muted { color:var(--muted); line-height:1.45; }
.upload-box { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; border:2px dashed #bfdbfe; background:#eff6ff; border-radius:20px; padding:30px 18px; text-align:center; color:var(--blue); cursor:pointer; min-height:156px; }
.camera-icon { font-size:42px; }
.upload-box small { color:#475569; }
input[type="file"] { display:none; }
.preview,.marked-image { width:100%; margin-top:16px; border-radius:20px; display:block; border:1px solid #e5e7eb; }
.hidden { display:none !important; }
.tips { margin:0; padding-left:20px; color:#4b5563; line-height:1.7; }
.btn-primary { width:100%; border:none; border-radius:20px; background:var(--blue); color:white; padding:17px; font-size:17px; font-weight:800; margin-bottom:16px; cursor:pointer; box-shadow:0 12px 25px rgba(13,110,253,.22); }
.btn-primary:disabled { opacity:.6; cursor:not-allowed; }
.status { color:var(--muted); margin-bottom:12px; }
.human-result { background:#f8fafc; border-radius:18px; padding:16px; border:1px solid #e5e7eb; line-height:1.55; }
.human-result h3 { margin:0 0 8px; font-size:18px; }
.human-result p { margin:8px 0; }
.human-result .pill-row { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.human-result .pill { background:#eaf2ff; color:var(--blue-dark); border-radius:999px; padding:7px 10px; font-size:13px; font-weight:700; }
.raw-details { margin-top:16px; }
.raw-details summary { color:var(--blue); font-weight:700; cursor:pointer; }
.result { white-space:pre-wrap; word-break:break-word; background:#020617; color:#d1fae5; padding:14px; border-radius:14px; font-size:12px; overflow-x:auto; }
