:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media(prefers-color-scheme:light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}#root{max-width:480px;margin:0 auto;padding:1rem;min-height:100vh;display:flex;align-items:center;justify-content:center}.profile-form{max-width:400px;margin:2rem auto;padding:2rem;background:#fff;border-radius:16px;box-shadow:0 2px 16px #00000014}.profile-form h2{margin:0 0 1.5rem;font-size:1.5rem;color:#1a1a1a;text-align:center}.photo-upload{display:flex;justify-content:center;margin-bottom:1.5rem}.photo-upload-area{width:140px;height:140px;border-radius:50%;border:2px dashed #ccc;display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;background:#fafafa;transition:border-color .2s}.photo-upload-area:hover,.photo-upload-area.dragging{border-color:#646cff;background:#f0f0ff}.photo-upload-area img{width:100%;height:100%;object-fit:cover}.photo-placeholder{display:flex;flex-direction:column;align-items:center;gap:.4rem;color:#999;font-size:.85rem}.photo-placeholder .icon{font-size:2rem;line-height:1}.form-group{margin-bottom:1rem}.form-group label{display:block;margin-bottom:.35rem;font-size:.9rem;font-weight:500;color:#333}.input-with-unit{display:flex;align-items:center;gap:.5rem}.input-with-unit input{flex:1;padding:.6rem .75rem;border:1px solid #ddd;border-radius:8px;font-size:1rem;color:#1a1a1a;outline:none;transition:border-color .2s;background:#fafafa}.input-with-unit input:focus{border-color:#646cff;background:#fff}.input-with-unit .unit{font-size:.9rem;color:#666;min-width:1.5rem}.submit-btn{width:100%;margin-top:1.5rem;padding:.75rem;border:none;border-radius:10px;background:#646cff;color:#fff;font-size:1rem;font-weight:600;cursor:pointer;transition:background .2s}.submit-btn:hover{background:#535bf2}.submit-btn:disabled{background:#ccc;cursor:not-allowed}.loading-overlay{display:flex;flex-direction:column;align-items:center;gap:1rem;margin:2rem auto;max-width:400px;padding:2rem;text-align:center;color:#555}.spinner{width:40px;height:40px;border:4px solid #e0e0e0;border-top-color:#646cff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error-message{max-width:400px;margin:1rem auto;padding:1rem;background:#fff0f0;border:1px solid #ffcccc;border-radius:10px;color:#c33;text-align:center}.result-card{max-width:600px;margin:2rem auto;padding:2rem;background:#fff;border-radius:16px;box-shadow:0 2px 16px #00000014}.result-card h2{margin:0 0 1rem;font-size:1.3rem;color:#1a1a1a;text-align:center}.result-content{font-size:.95rem;line-height:1.7;color:#333;white-space:pre-wrap}.hairstyle-section{margin-top:2rem;text-align:center}.hairstyle-section h3{margin:0 0 1rem;font-size:1.15rem;color:#1a1a1a}.hairstyle-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem}.hairstyle-image{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px;box-shadow:0 2px 12px #0000001a}
