*{box-sizing:border-box}
:root{--ink:#111827;--muted:#6b7280;--line:#d1d5db;--soft:#f3f4f6;--card:#fff;--accent:#0f766e;--warn:#92400e;--warnbg:#fffbeb;--ok:#166534;--okbg:#f0fdf4}
body{margin:0;background:var(--soft);color:var(--ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.app-shell{max-width:760px;margin:0 auto;padding:18px 14px 54px}
.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.brand{font-weight:950;letter-spacing:.025em;font-size:1.25rem}.brand span{font-weight:750}.tagline{font-size:.78rem;color:var(--muted)}
.top-actions{display:flex;gap:8px;align-items:center}.icon-btn{border:1px solid var(--line);background:white;border-radius:50%;width:42px;height:42px;font-size:1.05rem}
.card{background:var(--card);border-radius:20px;padding:18px;margin-bottom:14px;box-shadow:0 8px 30px rgba(17,24,39,.06)}
.hero h1{font-size:1.68rem;line-height:1.08;margin:8px 0}.hero p{color:#4b5563;line-height:1.5;margin-bottom:0}.badge{display:inline-block;font-size:.71rem;padding:5px 9px;border-radius:999px;background:var(--ink);color:white;font-weight:800}
.section-title-row,.result-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.section-title{display:block;font-weight:850;margin-bottom:12px}.counter{font-size:.78rem;color:var(--muted);font-weight:800}
.photo-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.photo-button{min-height:112px;border:2px dashed #c7cbd1;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;padding:14px}.photo-button input{display:none}.photo-button span{font-size:1.7rem}.photo-button strong{font-size:.95rem}.photo-button:active{transform:scale(.99)}
.hint{font-size:.8rem;color:var(--muted);line-height:1.45;margin:10px 0 0}.preview-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.preview-item{position:relative}.preview-item img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:12px;display:block}.remove-photo{position:absolute;right:5px;top:5px;width:28px;height:28px;border:0;border-radius:50%;background:rgba(17,24,39,.8);color:#fff;font-weight:900}
.chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:6px;margin-bottom:10px}.chip,.ghost{border:1px solid var(--line);background:white;border-radius:999px;padding:9px 12px;font-weight:750;white-space:nowrap}.chip.active{background:var(--ink);color:#fff;border-color:var(--ink)}
.platform-notice{font-size:.82rem;line-height:1.45;border-radius:12px;padding:10px 12px;background:#f9fafb;color:#4b5563;margin:5px 0 4px}
.field{display:block;margin:14px 0}.field span,.result-block span{display:block;font-size:.83rem;font-weight:800;margin-bottom:6px;color:#374151}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:10px}
select,textarea,input{width:100%;border:1px solid var(--line);background:#fff;border-radius:12px;padding:12px;color:var(--ink)}textarea{resize:vertical}
.primary{width:100%;border:0;border-radius:14px;padding:14px 16px;font-weight:900;font-size:1rem;background:var(--ink);color:#fff}.primary:disabled{opacity:.5;cursor:wait}.small-primary{width:auto;padding:10px 16px}
.status{min-height:1.3em;font-size:.86rem;color:var(--muted);text-align:center;margin:10px 0 0;line-height:1.4}.status.error{color:#b91c1c}.status.ok{color:var(--ok)}
.hidden{display:none!important}.result-block{margin:12px 0}.result-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.confidence-pill{display:inline-block;font-size:.72rem;border-radius:999px;padding:4px 8px;background:#f3f4f6;color:#4b5563;font-weight:750}.price-note{font-size:.79rem;color:var(--muted);line-height:1.4;margin-top:-4px}
.analysis-panels{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.analysis-panels>div{border:1px solid #e5e7eb;border-radius:14px;padding:12px}.analysis-panels h3{font-size:.86rem;margin:0 0 8px}.analysis-panels ul{margin:0;padding-left:18px;color:#4b5563;font-size:.82rem;line-height:1.5}.analysis-panels li+li{margin-top:4px}.safe-note{font-size:.8rem;line-height:1.48;background:var(--warnbg);color:var(--warn);padding:12px;border-radius:13px;margin-top:14px}
footer{text-align:center;color:#9ca3af;font-size:.75rem;margin-top:20px}
dialog{border:0;border-radius:20px;padding:0;width:min(92vw,520px);box-shadow:0 20px 60px rgba(0,0,0,.25)}dialog::backdrop{background:rgba(17,24,39,.48)}.dialog-card{padding:20px}.dialog-card h2{margin-top:0}.dialog-copy{color:var(--muted);font-size:.88rem;line-height:1.5}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;align-items:center}.dialog-actions .ghost{border-radius:12px}
@media(max-width:560px){.hero h1{font-size:1.46rem}.result-row,.analysis-panels,.two-col{grid-template-columns:1fr}.photo-actions{grid-template-columns:1fr 1fr}.card{border-radius:18px}.app-shell{padding-left:12px;padding-right:12px}}
@media(max-width:390px){.photo-actions{grid-template-columns:1fr}.preview-grid{grid-template-columns:repeat(2,1fr)}}

.pricing-card{background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%)}
.pricing-subtitle{margin:0;color:#4b5563;line-height:1.45;font-size:.9rem}
.plan-pill{font-size:.78rem;border-radius:999px;background:#eef2ff;color:#3730a3;padding:7px 10px;font-weight:800;white-space:nowrap}
.pricing-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.plan-card{border:1.5px solid #e5e7eb;border-radius:18px;padding:16px;background:#fff;position:relative;box-shadow:0 6px 20px rgba(17,24,39,.04)}
.plan-card.active{border-color:#111827;box-shadow:0 10px 30px rgba(17,24,39,.08)}
.plan-card.featured{background:linear-gradient(180deg,#111827 0%,#1f2937 100%);color:#fff;border-color:#111827}.plan-card.featured .plan-copy,.plan-card.featured .plan-features li{color:#e5e7eb}.plan-card.featured .ghost{background:#fff;color:#111827}
.plan-tag{display:inline-block;border-radius:999px;padding:5px 9px;background:#f3f4f6;color:#111827;font-size:.72rem;font-weight:900;margin-bottom:10px}.plan-tag.pro{background:#fef3c7;color:#92400e}
.plan-card h3{margin:0 0 6px;font-size:1.15rem}.plan-price{font-size:2rem;font-weight:950;line-height:1.05;margin:0 0 8px}.plan-price span{font-size:.95rem;font-weight:800;opacity:.8;margin-left:4px}
.plan-copy{font-size:.87rem;line-height:1.45;color:#4b5563;min-height:52px}.plan-features{margin:0 0 14px;padding-left:18px;font-size:.86rem;line-height:1.5}.plan-features li+li{margin-top:4px}.plan-btn{width:100%;justify-content:center}
.usage-note{margin-top:12px;border-radius:14px;padding:11px 13px;background:#f9fafb;color:#4b5563;font-size:.83rem;line-height:1.45}
.paypal-area{margin-top:14px;border:1px solid #e5e7eb;border-radius:18px;padding:16px;background:#fffaf4}.paypal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.paypal-head h3{margin:0 0 6px}.paypal-copy{margin:0;color:#4b5563;font-size:.86rem;line-height:1.45}.paypal-badge{border-radius:999px;background:#003087;color:#fff;padding:7px 10px;font-size:.78rem;font-weight:900}
.paypal-status{margin-top:12px;font-size:.84rem;line-height:1.45;color:#4b5563}.paypal-buttons{margin-top:12px;min-height:8px}.paypal-fallback{margin-top:10px;border-radius:14px;padding:12px 14px;font-weight:900}
@media(max-width:560px){.pricing-grid{grid-template-columns:1fr}.paypal-head{flex-direction:column}.plan-copy{min-height:0}}
