: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}}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;background:#f7f4ff;margin:0}.container{max-width:800px;margin:60px auto;padding:30px;background:#fff;border-radius:20px;box-shadow:0 10px 30px #0000001a}h1{text-align:center}.form-section{margin-bottom:30px;padding-bottom:20px;border-bottom:1px solid #eee}.form-group{margin-bottom:20px}input[type=file],input[type=number]{width:100%;padding:10px;border-radius:10px;border:1px solid #ddd;box-sizing:border-box}button{width:100%;padding:12px;border:none;border-radius:12px;background:#a78bfa;color:#fff;font-weight:700;cursor:pointer;transition:background .3s ease}button:hover{background:#8b5cf6}button:disabled{background:#ddd;cursor:not-allowed}.dropzone{border:2px dashed #ddd;border-radius:10px;padding:20px;text-align:center;cursor:pointer;margin-bottom:20px}.dropzone.active{border-color:#a78bfa}.preview-image{max-width:100%;max-height:240px;border-radius:10px;object-fit:contain}.error{color:#ef4444;text-align:center;margin-top:15px}.results{margin-top:30px}.results h2{text-align:center;border-bottom:2px solid #a78bfa;padding-bottom:10px;margin-bottom:20px}.results pre{white-space:pre-wrap;word-break:break-word;overflow-wrap:break-word;background:#f3f4f6;padding:15px;border-radius:10px}.hairstyles-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px}.hairstyle-card{border:1px solid #eee;border-radius:10px;overflow:hidden;box-shadow:0 4px 15px #0000000d;text-align:center;display:flex;flex-direction:column}.hairstyle-card .image-wrapper{width:100%;overflow:hidden}.hairstyle-card img{display:block;width:100%;height:auto;aspect-ratio:1 / 1;object-fit:cover}.hairstyle-card p{margin:0;padding:15px 10px;font-size:14px;word-break:break-word;background-color:#f9fafb}@media(max-width:480px){.hairstyles-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.container{padding:20px}}
