: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}}*{margin:0;padding:0;box-sizing:border-box}.container{min-height:100vh;padding:40px 20px;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;flex-direction:column;align-items:center}.header{text-align:center;margin-bottom:40px;color:#fff}.header h1{font-size:2.5rem;font-weight:700;margin-bottom:8px;text-shadow:0 2px 4px rgba(0,0,0,.1)}.subtitle{font-size:1.1rem;opacity:.9}.form{background:#fff;border-radius:24px;padding:40px;width:100%;max-width:420px;box-shadow:0 20px 60px #00000026}.photo-section{margin-bottom:32px}.photo-section h2,.input-section h2{font-size:1.1rem;color:#333;margin-bottom:16px;font-weight:600}.photo-upload{width:200px;height:200px;margin:0 auto;border:3px dashed #ddd;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s ease;overflow:hidden;background:#f8f9fa}.photo-upload:hover{border-color:#667eea;background:#f0f2ff}.photo-upload.has-photo{border:3px solid #667eea}.upload-placeholder{display:flex;flex-direction:column;align-items:center;color:#999}.upload-icon{font-size:3rem;line-height:1;margin-bottom:8px;color:#ccc}.upload-text{font-size:.9rem}.preview-image{width:100%;height:100%;object-fit:cover}.input-section{margin-bottom:32px}.gender-group{margin-bottom:20px}.gender-group label{display:block;font-size:.95rem;color:#555;margin-bottom:8px;font-weight:500}.gender-buttons{display:flex;gap:12px}.gender-btn{flex:1;padding:14px 16px;font-size:1rem;font-weight:500;border:2px solid #e8e8e8;border-radius:12px;background:#f8f9fa;color:#555;cursor:pointer;transition:all .3s ease}.gender-btn:hover{border-color:#667eea;background:#f0f2ff}.gender-btn.active{border-color:#667eea;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.input-group{margin-bottom:20px}.input-group label{display:block;font-size:.95rem;color:#555;margin-bottom:8px;font-weight:500}.input-group input{width:100%;padding:14px 16px;font-size:1rem;border:2px solid #e8e8e8;border-radius:12px;transition:all .3s ease;background:#f8f9fa;color:#333}.input-group input:focus{outline:none;border-color:#667eea;background:#fff;box-shadow:0 0 0 4px #667eea1a}.input-group input::placeholder{color:#bbb}.submit-btn{width:100%;padding:16px;font-size:1.1rem;font-weight:600;color:#fff;background:linear-gradient(135deg,#667eea,#764ba2);border:none;border-radius:12px;cursor:pointer;transition:all .3s ease}.submit-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 20px #667eea66}.submit-btn:disabled{opacity:.5;cursor:not-allowed}.loading-text{display:flex;align-items:center;justify-content:center;gap:10px}.spinner{width:20px;height:20px;border:3px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.report-card{background:#fff;border-radius:24px;padding:40px;width:100%;max-width:700px;box-shadow:0 20px 60px #00000026}.report-content{margin-bottom:32px;line-height:1.8;color:#333}.report-content p{margin-bottom:8px}.report-content li{margin-left:20px;margin-bottom:6px}.report-heading{font-size:1.3rem;color:#667eea;margin-top:24px;margin-bottom:12px;padding-bottom:8px;border-bottom:2px solid #f0f2ff}.report-heading:first-child{margin-top:0}.report-subheading{font-size:1.1rem;color:#764ba2;margin-top:16px;margin-bottom:8px}@media(max-width:480px){.container{padding:20px 16px}.header h1{font-size:2rem}.form{padding:28px 20px}.photo-upload{width:160px;height:160px}}.error-box{background:#fee;border:1px solid #f00;border-radius:8px;padding:16px;margin-bottom:16px;color:#c00;text-align:left;word-break:break-all}.error-box pre{margin-top:8px;font-size:12px;white-space:pre-wrap;background:#fff;padding:8px;border-radius:4px}.hairstyle-section{margin-top:24px}.hairstyle-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}.hairstyle-card{background:linear-gradient(135deg,#f8f9fa,#e9ecef);border-radius:12px;padding:16px;text-align:center;border:2px solid #e8e8e8;transition:all .3s ease}.hairstyle-card:hover{border-color:#667eea;transform:translateY(-2px);box-shadow:0 4px 12px #667eea33}.hairstyle-number{width:28px;height:28px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;margin:0 auto 10px}.hairstyle-name{font-size:15px;font-weight:600;color:#333;margin-bottom:6px}.hairstyle-desc{font-size:12px;color:#666;line-height:1.4}@media(max-width:480px){.hairstyle-grid{grid-template-columns:repeat(2,1fr)}}.hairstyle-subtitle{font-size:14px;color:#666;margin-bottom:16px}.hairstyle-image-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:16px}.hairstyle-image-card{background:#fff;border-radius:16px;overflow:hidden;border:2px solid #e8e8e8;transition:all .3s ease}.hairstyle-image-card:hover{border-color:#667eea;transform:translateY(-4px);box-shadow:0 8px 24px #667eea33}.hairstyle-image{width:100%;aspect-ratio:1;object-fit:cover}.hairstyle-image-placeholder{width:100%;aspect-ratio:1;background:#f0f0f0;display:flex;align-items:center;justify-content:center;color:#999;font-size:14px}.hairstyle-image-info{padding:12px;text-align:center}.hairstyle-image-name{font-size:15px;font-weight:600;color:#333;margin-bottom:4px}.hairstyle-image-desc{font-size:12px;color:#666;line-height:1.4}@media(max-width:600px){.hairstyle-image-grid{grid-template-columns:repeat(1,1fr)}}
