*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{color:#1f2933;background:linear-gradient(#eef2ff 0%,#f5f7fa 240px) fixed;margin:0;padding:0;font-family:Apple SD Gothic Neo,Malgun Gothic,맑은 고딕,sans-serif;font-size:20px;line-height:1.7}.container{max-width:720px;margin:0 auto;padding:20px 18px 90px}.header{text-align:center;padding:26px 0 6px}.header h1{color:#2563eb;letter-spacing:-.5px;margin:0;font-size:31px}.header p{color:#6b7280;margin:8px 0 0;font-size:18px}.steps{flex-wrap:wrap;justify-content:center;gap:6px;margin:22px 0 26px;display:flex}.step-item{color:#9ca3af;align-items:center;gap:7px;font-size:15px;font-weight:600;display:flex}.step-item .circle{color:#9ca3af;background:#e5e7eb;border-radius:50%;justify-content:center;align-items:center;width:30px;height:30px;font-size:16px;font-weight:800;display:flex}.step-item.active{color:#2563eb}.step-item.active .circle{color:#fff;background:#2563eb}.step-item.done .circle{color:#fff;background:#93c5fd}.step-sep{background:#e5e7eb;width:14px;height:2px}.card{background:#fff;border-radius:22px;padding:30px 24px;box-shadow:0 6px 24px #1e3a8a14}.card h2{letter-spacing:-.5px;margin:0 0 6px;font-size:26px}.card .hint{color:#6b7280;margin:0 0 22px;font-size:17px}textarea{resize:vertical;border:2px solid #d1d5db;border-radius:14px;width:100%;min-height:150px;padding:18px;font-family:inherit;font-size:21px;line-height:1.7}textarea:focus{border-color:#2563eb;outline:none}.btn{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:16px;width:100%;margin-top:16px;padding:20px;font-size:23px;font-weight:700;transition:background .12s;display:block}.btn:active{background:#1d4ed8}.btn:disabled{cursor:default;background:#cbd5e1}.btn-secondary{color:#475569;background:#eef2f7}.btn-secondary:active{background:#dde3ec}.btn-learn{color:#16a34a;background:#f0fdf4;border:2px solid #bbf7d0}.btn-learn:active{background:#dcfce7}.btn-learn:disabled{color:#94a3b8;cursor:default;background:#f1f5f9;border-color:#e2e8f0}.btn-danger{color:#b91c1c;background:#fee2e2}.btn-danger:active{background:#fecaca}.btn-big{padding:28px;font-size:27px;box-shadow:0 8px 20px #2563eb4d}.photo-pick{text-align:center;color:#2563eb;cursor:pointer;background:#eff6ff;border:3px dashed #93c5fd;border-radius:16px;width:100%;padding:30px;font-size:23px;font-weight:700;display:block}.photo-pick:active{background:#dbeafe}.thumbs{grid-template-columns:repeat(2,1fr);gap:14px;margin-top:20px;display:grid}.thumb{aspect-ratio:4/3;background:#e5e7eb;border-radius:14px;position:relative;overflow:hidden;box-shadow:0 2px 8px #00000014}.thumb img{object-fit:cover;width:100%;height:100%}.thumb .num{color:#fff;background:#2563ebeb;border-radius:15px;justify-content:center;align-items:center;min-width:30px;height:30px;padding:0 8px;font-size:16px;font-weight:800;display:flex;position:absolute;top:8px;left:8px}.thumb .del{color:#fff;cursor:pointer;background:#0009;border:none;border-radius:50%;width:32px;height:32px;font-size:20px;line-height:1;position:absolute;top:8px;right:8px}.thumb-move{gap:6px;display:flex;position:absolute;bottom:8px;right:8px}.thumb-move button{color:#2563eb;cursor:pointer;background:#ffffffeb;border:none;border-radius:10px;width:36px;height:36px;font-size:20px;font-weight:800}.thumb-move button:disabled{opacity:.35;cursor:default}.photo-count{color:#6b7280;text-align:center;margin-top:14px;font-size:16px}.type-grid{grid-template-columns:repeat(2,1fr);gap:12px;margin:6px 0 10px;display:grid}.type-btn{color:#475569;cursor:pointer;background:#fff;border:2px solid #d1d5db;border-radius:16px;flex-direction:column;align-items:center;gap:6px;padding:18px 8px;font-size:18px;font-weight:700;display:flex}.type-btn .type-emoji{font-size:30px;line-height:1}.type-btn.selected{color:#2563eb;background:#eff6ff;border-color:#2563eb}.hist-tag{color:#2563eb;vertical-align:middle;background:#eff6ff;border-radius:999px;margin-right:7px;padding:2px 9px;font-size:13px;font-weight:800;display:inline-block}.option-row{gap:10px;margin:6px 0 4px;display:flex}.option-btn{color:#475569;cursor:pointer;background:#fff;border:2px solid #d1d5db;border-radius:14px;flex:1;padding:16px 8px;font-size:19px;font-weight:700}.option-btn.selected{color:#2563eb;background:#eff6ff;border-color:#2563eb}.field-label{margin:22px 0 8px;font-size:19px;font-weight:700}.result-edit{resize:vertical;background:#fafafa;border:2px solid #e5e7eb;border-radius:14px;width:100%;min-height:360px;padding:20px;font-family:inherit;font-size:19px;line-height:1.85}.result-edit:focus{border-color:#2563eb;outline:none}.preview{background:#fafafa;border:1px solid #e5e7eb;border-radius:14px;margin-top:8px;padding:20px 18px}.preview .pv-text{white-space:pre-wrap;margin:0 0 4px;font-size:19px;line-height:1.85}.preview .pv-gap{height:12px}.pv-figure{text-align:center;margin:14px 0}.pv-figure img{border-radius:12px;width:100%;box-shadow:0 2px 10px #0000001a}.pv-figure figcaption{color:#6b7280;margin-top:6px;font-size:15px}.pv-missing{color:#4f46e5;background:#eef2ff;border:2px dashed #c7d2fe;border-radius:12px;padding:28px;font-size:18px;font-weight:700}.loading{text-align:center;padding:50px 20px}.spinner{border:6px solid #dbeafe;border-top-color:#2563eb;border-radius:50%;width:56px;height:56px;margin:0 auto 22px;animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.error{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:12px;margin-top:18px;padding:16px 18px;font-size:18px}.hist-item{border:1px solid #e5e7eb;border-radius:14px;margin-bottom:12px;overflow:hidden}.hist-head{text-align:left;cursor:pointer;background:#fff;border:none;flex-direction:column;gap:4px;width:100%;padding:16px 18px;display:flex}.hist-head:active{background:#f8fafc}.hist-title{color:#1f2933;font-size:19px;font-weight:700;line-height:1.4}.hist-date{color:#9ca3af;font-size:15px}.hist-body{border-top:1px solid #f1f5f9;padding:4px 16px 18px}.result-view{white-space:pre-wrap;background:#fafafa;border:1px solid #e5e7eb;border-radius:12px;margin:14px 0 8px;padding:18px;font-size:19px;line-height:1.85}.deck-grid{flex-wrap:wrap;justify-content:center;gap:18px;margin:22px 0 8px;display:flex}.deck-item{flex-direction:column;align-items:center;display:flex}.card-stage{background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 4px 16px #0000001f}.deck-dl{width:280px;margin-top:10px;padding:12px;font-size:16px}.toast{color:#fff;z-index:50;background:#111827;border-radius:999px;padding:14px 26px;font-size:18px;font-weight:700;position:fixed;bottom:36px;left:50%;transform:translate(-50%);box-shadow:0 6px 20px #00000040}
