*{box-sizing:border-box}body,html{margin:0;background:#f3f6fb;color:#1f2937;font-family:Segoe UI,Arial,sans-serif}button,input{font:inherit}button{cursor:pointer}.app{max-width:430px;min-height:100vh;margin:auto;background:#fff;padding-bottom:28px}.header{padding:18px 20px;color:#fff;background:linear-gradient(135deg,#0ea5e9,#0284c7);border-radius:0 0 24px 24px}.header h1{margin:0;font-size:18px}.header p{margin:4px 0 0;font-size:12px;opacity:.9}.header-logout{padding:2px 7px;border:1px solid #ffffff88;border-radius:8px;background:#ffffff22;color:#fff;font-size:11px}.card,.section{padding:16px}.card{margin-bottom:14px;background:#fff;border-radius:16px;box-shadow:0 2px 12px #0000000f}.title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;font-size:14px;font-weight:700}.badge{padding:4px 8px;border-radius:12px;background:#ede9fe;color:#7c3aed;font-size:10px}.modes{display:grid;grid-template-columns:1fr 1fr;grid-gap:12px;gap:12px}.mode{padding:16px 10px;border:2px solid #e2e8f0;border-radius:16px;background:#fff;text-align:center}.mode.active{border-color:#0ea5e9;background:#f0f9ff}.mode strong{display:block;color:#0f172a;font-size:13px}.mode span{display:block;margin-top:4px;color:#64748b;font-size:11px;line-height:1.4}.camera{position:relative;height:300px;overflow:hidden;border-radius:16px;background:#0f172a}.camera video{width:100%;height:100%;object-fit:cover}.placeholder{height:100%;display:grid;place-content:center;padding:20px;color:#cbd5e1;text-align:center;font-size:13px}.frame{inset:15% 7%;border:2px dashed #ffffff99;border-radius:12px;pointer-events:none}.controls,.frame{position:absolute}.controls{right:0;bottom:16px;left:0;display:flex;justify-content:center;gap:20px}.capture,.round{border:0;border-radius:50%}.capture{width:62px;height:62px;padding:5px;background:#fff}.capture:after{display:block;width:100%;height:100%;content:"";border-radius:50%;background:#ef4444}.round{width:42px;height:42px;background:#ffffff26;color:#fff}.upload{padding:34px 16px;border:2px dashed #cbd5e1;border-radius:16px;color:#64748b;text-align:center}.upload strong{display:block;margin-bottom:6px;color:#0f172a;font-size:14px}.upload input{width:100%;margin-top:12px}.preview{width:100%;margin-top:16px;border:1px solid #e2e8f0;border-radius:12px}.btn{width:100%;margin-top:12px;padding:13px;border:0;border-radius:12px;font-weight:700}.primary{background:#0ea5e9;color:#fff}.success{background:#22c55e;color:#fff}.outline{border:1px solid #0ea5e9;background:#fff;color:#0284c7}.status{margin-top:12px;padding:10px 12px;border-radius:10px;background:#f0f9ff;color:#0369a1;font-size:12px}.status.error{background:#fef2f2;color:#b91c1c}.fields{display:grid;grid-gap:10px;gap:10px}.fields label{color:#475569;font-size:12px;font-weight:600}.fields input{width:100%;margin-top:5px;padding:11px;border:1px solid #e2e8f0;border-radius:10px}.item{display:grid;grid-template-columns:1fr 70px 70px 34px;grid-gap:6px;gap:6px;margin-top:8px}.item input{min-width:0;padding:9px;border:1px solid #e2e8f0;border-radius:9px}.remove{border:0;border-radius:9px;background:#fef2f2;color:#ef4444}.tabs{display:flex;gap:5px;overflow:auto;padding:10px 12px;border-bottom:1px solid #eef2f7}.tab{padding:7px 10px;border:0;border-radius:20px;background:#fff;color:#64748b;font-size:12px;white-space:nowrap}.tab.active{background:#e0f2fe;color:#0284c7;font-weight:700}.empty{padding:24px 0;color:#94a3b8;text-align:center;font-size:13px;line-height:1.6}.stats{display:grid;grid-template-columns:1fr 1fr;grid-gap:12px;gap:12px}.stat{padding:14px;border-radius:16px;background:#fff;box-shadow:0 2px 12px #0000000f}.stat b{display:block;color:#0284c7;font-size:22px}.stat small{color:#64748b;font-size:11px}.log{padding:12px 0;border-bottom:1px solid #f1f5f9}.log:last-child{border-bottom:0}.log b{display:block;font-size:13px}.log small{color:#64748b;font-size:11px}@media(max-width:360px){.item{grid-template-columns:1fr 58px 58px 30px}.modes{gap:7px}}