body{font-family:Bayer Sans,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;background:linear-gradient(135deg,#f8f9fa,#e9ecef);color:#2c3e50;line-height:1.6}.app{min-height:100vh;background:linear-gradient(135deg,#f8f9fa,#e9ecef)}.app-header{text-align:center;padding:3rem 0;background:linear-gradient(135deg,#1e3a8a,#3b82f6);color:#fff;box-shadow:0 4px 20px #0000001a}.header-content{display:flex;flex-direction:column;align-items:center;gap:1rem;max-width:1200px;margin:0 auto;padding:0 2rem}.app-logo{color:#fbbf24;margin-bottom:1rem;font-size:3rem}.header-text h1{font-size:2.8rem;font-weight:700;color:#fff;margin-bottom:.5rem;text-shadow:0 2px 4px rgba(0,0,0,.1)}.header-text p{font-size:1.2rem;color:#e5e7eb;font-weight:400;max-width:600px}.main-content{max-width:1200px;margin:0 auto;padding:3rem 2rem}.control-panel{background:#fff;border-radius:20px;padding:3rem;margin-bottom:2rem;border:1px solid #e5e7eb;box-shadow:0 4px 20px #00000014}.upload-section{margin-bottom:2rem}.upload-area{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem 2rem;border:2px dashed #3b82f6;border-radius:16px;background:#f8fafc;cursor:pointer;transition:all .3s ease;min-height:200px}.upload-area:hover{border-color:#1d4ed8;background:#f1f5f9}.upload-placeholder{text-align:center;color:#3b82f6}.upload-placeholder p{font-size:1.1rem;margin-bottom:.5rem;font-weight:500;color:#374151}.upload-placeholder span{font-size:.9rem;color:#6b7280}.image-preview{max-width:100%;max-height:200px;border-radius:8px;object-fit:cover}.remove-image-button{position:absolute;top:.5rem;right:.5rem;background:#000000b3;color:#fff;border:none;border-radius:50%;width:32px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .3s ease}.remove-image-button:hover{background:#000000e6}.demographic-inputs{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.5rem;margin-bottom:2rem}.input-group{display:flex;flex-direction:column;gap:.5rem}.input-group label{font-weight:600;color:#374151;font-size:.9rem}.input-group input{padding:.75rem;border:1px solid #d1d5db;border-radius:12px;background:#fff;color:#374151;font-size:1rem;transition:all .3s ease}.input-group input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.input-group input:disabled{opacity:.6;cursor:not-allowed}.prompt-section{margin-bottom:2rem}.prompt-section label{display:block;font-weight:600;color:#374151;margin-bottom:.5rem;font-size:.9rem}.prompt-description{color:#6b7280;font-size:.9rem;margin-bottom:1rem;line-height:1.5}.prompt-section textarea{width:100%;padding:1rem;border:1px solid #d1d5db;border-radius:12px;background:#fff;color:#374151;font-size:.9rem;font-family:Monaco,Menlo,Ubuntu Mono,monospace;line-height:1.5;resize:vertical;min-height:200px;transition:all .3s ease}.prompt-section textarea:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.prompt-section textarea:disabled{opacity:.6;cursor:not-allowed}.action-buttons{display:flex;gap:1rem;justify-content:flex-end}.reset-button,.adapt-button{padding:.875rem 2rem;border:none;border-radius:12px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 2px 4px #0000001a}.reset-button{background:#6b7280;color:#fff;border:1px solid #6b7280}.reset-button:hover:not(:disabled){background:#4b5563;transform:translateY(-1px)}.adapt-button{background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff}.adapt-button:hover:not(:disabled){background:linear-gradient(135deg,#2563eb,#1e40af);transform:translateY(-1px)}.reset-button:disabled,.adapt-button:disabled{opacity:.6;cursor:not-allowed}.error-message{background:#fef2f2;color:#dc2626;padding:1rem;border-radius:12px;margin-bottom:2rem;text-align:center;border:1px solid #fecaca}.image-panels{display:grid;grid-template-columns:1fr;gap:2rem}.image-panel{background:#fff;border-radius:16px;padding:2rem;border:1px solid #e5e7eb;box-shadow:0 4px 20px #00000014}.image-panel h3{color:#374151;margin-bottom:1rem;font-size:1.1rem;font-weight:600}.panel-image{width:100%;height:300px;object-fit:contain;border-radius:12px;background:#f8fafc}.original-image-container{width:100%;height:300px;display:flex;align-items:center;justify-content:center;background:#f8fafc;border-radius:12px}.panel-placeholder{width:100%;height:300px;display:flex;align-items:center;justify-content:center;background:#f8fafc;border-radius:12px;border:2px dashed #d1d5db;color:#6b7280}.result-display{width:100%}.result-display img,.result-image{width:100%;height:300px;object-fit:contain;border-radius:8px;background:#f8fafc}.result-container{position:relative;display:flex;flex-direction:column;gap:1rem}.fullscreen-button{background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff;border:none;border-radius:8px;padding:.5rem 1rem;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .3s ease;align-self:center;box-shadow:0 2px 4px #0000001a}.fullscreen-button:hover{background:linear-gradient(135deg,#2563eb,#1e40af);transform:translateY(-1px)}.loading-container{display:flex;justify-content:center;align-items:center;height:300px}.loading-spinner{text-align:center;color:#6b7280}.spinner{width:40px;height:40px;border:4px solid #e5e7eb;border-top:4px solid #3b82f6;border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 1rem}.loading-spinner p{font-size:1.1rem;font-weight:500;margin:0}.refinement-section{background:#fff;border-radius:16px;padding:2rem;margin-top:2rem;border:1px solid #e5e7eb;box-shadow:0 4px 20px #00000014}.refinement-section h3{color:#374151;margin-bottom:.5rem;font-size:1.2rem;font-weight:600}.refinement-description{color:#6b7280;font-size:.9rem;margin-bottom:1.5rem;line-height:1.5}.refinement-controls{display:flex;flex-direction:column;gap:1rem}.refinement-textarea{width:100%;padding:1rem;border:1px solid #d1d5db;border-radius:12px;background:#fff;color:#374151;font-size:.9rem;font-family:inherit;line-height:1.5;resize:vertical;transition:all .3s ease}.refinement-textarea:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.refinement-textarea:disabled{opacity:.6;cursor:not-allowed;background-color:#f3f4f6}.refinement-button{background:linear-gradient(135deg,#10b981,#059669);color:#fff;border:none;border-radius:12px;padding:.875rem 2rem;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 2px 4px #0000001a;display:flex;align-items:center;justify-content:center;gap:.5rem;align-self:flex-start}.refinement-button:hover:not(:disabled){background:linear-gradient(135deg,#059669,#047857);transform:translateY(-1px)}.refinement-button:disabled{opacity:.6;cursor:not-allowed;transform:none}.spinner-small{width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top:2px solid white;border-radius:50%;animation:spin 1s linear infinite}.gallery-container{display:flex;flex-direction:column;gap:1rem}.gallery-thumbnails{display:flex;gap:.5rem;justify-content:center;flex-wrap:wrap;margin-bottom:1rem}.thumbnail{position:relative;width:80px;height:80px;border-radius:8px;overflow:hidden;cursor:pointer;border:3px solid transparent;transition:all .3s ease}.thumbnail:hover{transform:scale(1.05)}.thumbnail.selected{border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f633}.thumbnail img{width:100%;height:100%;object-fit:cover}.thumbnail-number{position:absolute;top:4px;right:4px;background:#000000b3;color:#fff;border-radius:50%;width:20px;height:20px;display:flex;align-items:center;justify-content:center;font-size:.7rem;font-weight:600}.main-image-container{display:flex;flex-direction:column;gap:1rem}@media(max-width:768px){.main-content{padding:0 .5rem 2rem}.control-panel{padding:1.5rem}.demographic-inputs,.image-panels{grid-template-columns:1fr}.action-buttons{flex-direction:column}.header-text h1{font-size:2rem}}.custom-select{width:100%;padding:.8rem 3rem .8rem 1rem;border:1px solid #d1d5db;border-radius:12px;background-color:#fff;color:#374151;font-size:1rem;appearance:none;-webkit-appearance:none;-moz-appearance:none;cursor:pointer;transition:all .3s ease;background-image:url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right 1rem center;background-size:1rem}.custom-select:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.custom-select:hover:not(:disabled){border-color:#3b82f6;background-color:#f8fafc}.custom-select:disabled{opacity:.6;cursor:not-allowed;background-color:#f3f4f6}.custom-select option{background-color:#fff;color:#374151;padding:.5rem}*{margin:0;padding:0;box-sizing:border-box}body{font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;background-color:#fff;color:#333;line-height:1.6;min-height:100vh}header{text-align:center;padding:2rem 1rem;background:linear-gradient(135deg,#f8f9fa,#e9ecef);border-bottom:3px solid #0066CC}.logo-container{margin-bottom:1rem}.bayer-logo{height:80px;width:auto;max-width:300px;object-fit:contain;border-radius:4px}h1{color:#06c;font-size:2.5rem;font-weight:700;margin-bottom:.5rem;text-shadow:0 2px 4px rgba(0,102,204,.1)}p{color:#666;font-size:1.1rem;max-width:600px;margin:0 auto}main{max-width:1200px;margin:0 auto;padding:2rem 1rem;display:flex;flex-direction:column;gap:2rem}.images-section{display:grid;grid-template-columns:1fr 1fr;gap:2rem}.controls{background-color:#f8f9fa;padding:2rem;border-radius:12px;border:1px solid #e0e0e0;box-shadow:0 8px 32px #0066cc1a;height:fit-content}.form-group{margin-bottom:1.5rem}label{display:block;margin-bottom:.5rem;font-weight:600;color:#333;font-size:.95rem}.upload-label{display:inline-block;padding:12px 24px;background:linear-gradient(90deg,#06c,#049);color:#fff!important;border-radius:8px;cursor:pointer;transition:all .3s ease;font-weight:600;text-align:center;box-shadow:0 4px 15px #0066cc4d}.upload-label:hover{box-shadow:0 8px 25px #06c6;transform:translateY(-2px)}.select-css{width:100%;padding:12px 16px;border:1px solid #cccccc;border-radius:8px;background-color:#fff;color:#333;font-size:1rem;cursor:pointer;transition:all .3s ease}.select-css:focus{outline:none;border-color:#06c;box-shadow:0 0 0 3px #0066cc4d}.main-actions{display:flex;gap:1rem;margin-top:2rem}.button{flex:1;padding:14px 24px;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;text-align:center;text-decoration:none;display:inline-block}.button:disabled{background:#ccc;cursor:not-allowed;transform:none;box-shadow:none}.button:not(:disabled):hover{transform:translateY(-2px)}.button.secondary{background:#f8f9fa;border:1px solid #cccccc;color:#333}.button.secondary:hover:not(:disabled){background:#e9ecef;box-shadow:0 6px 20px #06c3}.image-container{background-color:#f8f9fa;padding:2rem;border-radius:12px;border:1px solid #e0e0e0;box-shadow:0 8px 32px #0066cc1a}.image-container h2{color:#06c;margin-bottom:1.5rem;font-size:1.5rem;font-weight:600}.image-display{background-color:#fff;border:2px dashed #e0e0e0;border-radius:8px;min-height:300px;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.placeholder-content{text-align:center;color:#666;display:flex;flex-direction:column;align-items:center;gap:1rem}.placeholder-content svg{color:#ccc;transition:color .3s ease}.placeholder-content:hover svg{color:#06c}.image-display img{max-width:100%;max-height:500px;border-radius:8px;box-shadow:0 4px 20px #0000001a}.loader{border:4px solid #e0e0e0;border-top:4px solid #0066CC;border-radius:50%;width:40px;height:40px;animation:spin 1s linear infinite;margin:0 auto}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.history-strip{display:flex;gap:.5rem;margin:1rem 0;flex-wrap:wrap;justify-content:center}.history-thumbnail{width:60px;height:60px;object-fit:cover;border-radius:8px;cursor:pointer;border:2px solid transparent;transition:all .3s ease}.history-thumbnail:hover{border-color:#06c;transform:scale(1.05)}.history-thumbnail.active{border-color:#06c;box-shadow:0 0 10px #0066cc80}.caption{color:#666;font-style:italic;margin:1rem 0;text-align:center}.button-group{display:flex;gap:1rem;margin-top:1rem}.chat-controls{display:flex;gap:.5rem;margin-top:1rem}.chat-controls input{flex:1;padding:12px 16px;border:1px solid #cccccc;border-radius:8px;font-size:1rem}.chat-controls input:focus{outline:none;border-color:#06c;box-shadow:0 0 0 3px #0066cc4d}.error-message{color:#dc3545;font-weight:600;text-align:center;padding:1rem;background-color:#f8d7da;border:1px solid #f5c6cb;border-radius:8px;margin:1rem 0}.fullscreen-modal{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background-color:#000000e6;z-index:1000;justify-content:center;align-items:center;flex-direction:column}.fullscreen-image{max-width:90%;max-height:90%;object-fit:contain;border-radius:8px;box-shadow:0 8px 32px #00000080}.fullscreen-close{position:absolute;top:20px;right:30px;background:#fff3;border:none;color:#fff;font-size:2rem;cursor:pointer;border-radius:50%;width:50px;height:50px;display:flex;align-items:center;justify-content:center;transition:background-color .3s ease}.fullscreen-close:hover{background:#ffffff4d}.fullscreen-info{color:#fff;text-align:center;margin-top:20px;max-width:80%;font-size:1.1rem;line-height:1.6}@media(max-width:768px){.images-section{grid-template-columns:1fr;gap:1.5rem}h1{font-size:2rem}.controls{padding:1.5rem}.main-actions,.button-group,.chat-controls{flex-direction:column}.history-strip{justify-content:center}}@media(max-width:480px){header{padding:1rem}main{padding:1rem}.controls,.image-container{padding:1rem}.bayer-logo{height:60px}h1{font-size:1.8rem}}
