*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:#f5f5f5;color:#333;line-height:1.6}.layout{min-height:100vh;display:flex;flex-direction:column}.navbar{background:#fff;box-shadow:0 1px 3px #0000001a;padding:1rem 0;position:sticky;top:0;z-index:100}.nav-content{max-width:1200px;margin:0 auto;padding:0 2rem;display:flex;justify-content:space-between;align-items:center}.nav-brand{font-size:1.25rem;font-weight:600;color:#333;text-decoration:none}.nav-links{display:flex;gap:2rem;align-items:center}.nav-links a{color:#666;text-decoration:none;transition:color .2s}.nav-links a:hover{color:#333}.user-email{color:#888;font-size:.9rem}.main-content{flex:1;max-width:1200px;margin:2rem auto;padding:0 2rem;width:100%}button,.btn-link{cursor:pointer;border:none;padding:.75rem 1.5rem;border-radius:8px;font-size:1rem;transition:all .2s;font-family:inherit}.btn-primary{background:#2563eb;color:#fff}.btn-primary:hover:not(:disabled){background:#1e40af}.btn-secondary{background:#e5e7eb;color:#333}.btn-secondary:hover{background:#d1d5db}.btn-danger{background:#ef4444;color:#fff;padding:.5rem 1rem;font-size:.875rem}.btn-danger:hover{background:#dc2626}.btn-text{background:none;color:#666;padding:.5rem 1rem}.btn-text:hover{color:#333;background:#f3f4f6}.btn-back{background:#e5e7eb;color:#333;margin-bottom:1rem}.btn-link{background:none;color:#2563eb;padding:.5rem 1rem;text-decoration:none;display:inline-block}.btn-link:hover{background:#eff6ff}button:disabled{opacity:.5;cursor:not-allowed}.auth-container{display:flex;justify-content:center;align-items:center;min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2)}.auth-card{background:#fff;padding:2rem;border-radius:12px;width:100%;max-width:400px;box-shadow:0 10px 40px #0000001a}.auth-card h1{margin-bottom:1.5rem;text-align:center}.auth-card form{display:flex;flex-direction:column;gap:1rem}.auth-card input{padding:.75rem;border:1px solid #e5e7eb;border-radius:8px;font-size:1rem;transition:border-color .2s}.auth-card input:focus{outline:none;border-color:#2563eb}.auth-card p{text-align:center;margin-top:1rem;color:#666}.auth-card a{color:#2563eb;text-decoration:none}.auth-card a:hover{text-decoration:underline}.upload-container{max-width:800px;margin:0 auto}.upload-container h1{margin-bottom:2rem;text-align:center}.upload-area{background:#fff;padding:3rem;border-radius:12px;display:flex;flex-direction:column;align-items:center;gap:1.5rem;box-shadow:0 1px 3px #0000001a}.preview{width:100%;max-width:500px}.preview img{width:100%;border-radius:8px;box-shadow:0 4px 6px #0000001a}.status{text-align:center;padding:2rem;background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000001a}.spinner{border:3px solid #f3f4f6;border-top:3px solid #2563eb;border-radius:50%;width:40px;height:40px;animation:spin 1s linear infinite;margin:0 auto 1rem}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.result{background:#fff;padding:2rem;border-radius:12px;box-shadow:0 1px 3px #0000001a}.result h2{margin-bottom:1.5rem}.result h3{margin:1.5rem 0 1rem}.result-card{background:#f9fafb;padding:1.5rem;border-radius:8px;margin-bottom:1.5rem}.result-item{margin-bottom:1.5rem}.result-item:last-child{margin-bottom:0}.result-item strong{display:block;margin-bottom:.5rem;color:#111}.result-item span{color:#666}.result-item p{color:#666;line-height:1.8}.result-item ul{list-style:none;padding-left:0}.result-item li{padding:.5rem 0;color:#666}.result-item li:before{content:"•";color:#2563eb;font-weight:700;display:inline-block;width:1em}.dimension{background:#fff;padding:1rem;border-radius:6px;margin-bottom:1rem}.dimension:last-child{margin-bottom:0}.evidence{font-size:.9rem;color:#888;margin-top:.5rem}.history-container h1{margin-bottom:2rem}.empty{text-align:center;padding:3rem;background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000001a}.empty a{display:inline-block;margin-top:1rem;color:#2563eb;text-decoration:none}.empty a:hover{text-decoration:underline}.history-list{display:flex;flex-direction:column;gap:1rem}.history-item{background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000001a;transition:transform .2s;overflow:hidden;display:flex;gap:1.5rem}.history-item:hover{transform:translateY(-2px);box-shadow:0 4px 6px #0000001a}.item-preview{flex-shrink:0;width:200px;height:200px;background:#f3f4f6;display:flex;align-items:center;justify-content:center;overflow:hidden}.preview-image{width:100%;height:100%;object-fit:cover}.item-content{flex:1;padding:1.5rem 1.5rem 1.5rem 0;display:flex;flex-direction:column}.item-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.item-info{flex:1}.filename{font-weight:500;margin-bottom:.5rem}.meta{display:flex;gap:1rem;font-size:.875rem;color:#666}.status{padding:.25rem .75rem;border-radius:12px;font-size:.875rem}.status-pending_upload{background:#fef3c7;color:#92400e}.status-analyzing{background:#dbeafe;color:#1e40af}.status-analyzed{background:#d1fae5;color:#065f46}.status-failed{background:#fee2e2;color:#991b1b}.item-actions{display:flex;gap:.5rem}.analysis-summary{border-top:1px solid #e5e7eb;padding-top:1rem}.summary-main{display:flex;gap:2rem;margin-bottom:1rem;padding:1rem;background:linear-gradient(135deg,#667eea15,#764ba215);border-radius:8px}.seasonal-type,.confidence-score{display:flex;align-items:center;gap:.5rem}.seasonal-type .label,.confidence-score .label{color:#666;font-size:.875rem}.seasonal-type .value{font-size:1.25rem;font-weight:600;color:#2563eb}.confidence-score .score{font-size:1.125rem;font-weight:600;color:#059669}.dimensions-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.75rem}.dimension-item{display:flex;align-items:center;gap:.5rem;padding:.75rem;background:#f9fafb;border-radius:6px;font-size:.875rem}.dim-label{color:#888;min-width:60px}.dim-value{flex:1;color:#333;font-weight:500}.dim-score{color:#2563eb;font-weight:600;min-width:40px;text-align:right}.detail-container{max-width:900px;margin:0 auto}.detail-container h1,.detail-image{margin-bottom:2rem}.detail-image img{width:100%;max-width:600px;display:block;margin:0 auto;border-radius:12px;box-shadow:0 4px 6px #0000001a}.detail-content{background:#fff;padding:2rem;border-radius:12px;box-shadow:0 1px 3px #0000001a}.info-section h2{color:#2563eb;margin-bottom:.5rem}.confidence{color:#666;margin-bottom:2rem}.dimensions-section{margin-bottom:2rem}.dimensions-section h3{margin-bottom:1rem}.dimension-card{background:#f9fafb;padding:1rem;border-radius:8px;margin-bottom:1rem}.dimension-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.dimension-header strong{color:#111;text-transform:capitalize}.confidence-badge{background:#2563eb;color:#fff;padding:.25rem .75rem;border-radius:12px;font-size:.875rem}.dimension-attr{color:#333;margin-bottom:.5rem}.dimension-evidence{font-size:.9rem;color:#888}.reasoning-section,.interferences-section,.limitations-section{margin-bottom:2rem}.reasoning-section h3,.interferences-section h3,.limitations-section h3{margin-bottom:1rem}.reasoning-section p,.limitations-section p{color:#666;line-height:1.8}.interferences-section ul{list-style:none;padding-left:0}.interferences-section li{padding:.5rem 0;color:#666}.interferences-section li:before{content:"⚠";color:#f59e0b;font-weight:700;display:inline-block;width:1.5em}.meta-section{padding-top:1.5rem;border-top:1px solid #e5e7eb;color:#888;font-size:.9rem}.meta-section div{margin-bottom:.5rem}.error{background:#fee2e2;color:#991b1b;padding:1rem;border-radius:8px;margin:1rem 0;text-align:center}.loading{text-align:center;padding:3rem;color:#666}@media (max-width: 768px){.nav-content{flex-direction:column;gap:1rem}.nav-links{gap:1rem;flex-wrap:wrap;justify-content:center}.main-content{padding:0 1rem}.upload-area{padding:1.5rem}.history-item{flex-direction:column;gap:0}.item-preview{width:100%;height:250px}.item-content{padding:1.5rem}.item-header{flex-direction:column;align-items:flex-start;gap:1rem}.item-actions{width:100%;justify-content:flex-end}.summary-main{flex-direction:column;gap:.75rem}.dimensions-summary{grid-template-columns:1fr}}.invalid-face{text-align:center;padding:3rem 2rem;background:#fef3c7;border-radius:12px;border:2px dashed #f59e0b}.invalid-face h2{color:#92400e;margin-bottom:1rem}.rejection-reason{color:#78350f;font-size:1.1rem;margin-bottom:2rem;line-height:1.6}.season-rankings{background:#fff;padding:2rem;border-radius:12px;margin-bottom:2rem;box-shadow:0 2px 4px #0000000d}.season-rankings h3{margin-bottom:1.5rem;color:#111}.season-item{display:flex;align-items:center;gap:1rem;padding:1rem;margin-bottom:1rem;background:#f9fafb;border-radius:8px;transition:all .2s}.season-item.best-match{background:linear-gradient(135deg,#667eea15,#764ba215);border:2px solid #667eea}.season-rank{font-size:1.5rem;font-weight:700;color:#666;min-width:40px}.season-item.best-match .season-rank{color:#667eea}.season-info{flex:1;display:flex;justify-content:space-between;align-items:center}.season-name{font-size:1.1rem;font-weight:600;color:#111}.season-percentage{font-size:1.25rem;font-weight:700;color:#059669}.season-bar{flex:2;height:8px;background:#e5e7eb;border-radius:4px;overflow:hidden}.season-bar-fill{height:100%;background:linear-gradient(90deg,#667eea,#764ba2);transition:width .3s ease}.dimensions-analysis{background:#fff;padding:2rem;border-radius:12px;margin-bottom:2rem;box-shadow:0 2px 4px #0000000d}.dimensions-analysis h3{margin-bottom:1.5rem;color:#111}.dimensions-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem}.dimension-card{background:#f9fafb;padding:1.5rem;border-radius:8px;border:1px solid #e5e7eb}.dimension-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.dimension-name{font-weight:600;color:#374151;font-size:1rem}.dimension-score{font-size:1.25rem;font-weight:700;color:#2563eb}.dimension-bar{height:6px;background:#e5e7eb;border-radius:3px;overflow:hidden;margin-bottom:1rem}.dimension-bar-fill{height:100%;background:#2563eb;transition:width .3s ease}.dimension-evidence{font-size:.9rem;color:#6b7280;line-height:1.6}.interferences,.limitations{background:#fff;padding:1.5rem;border-radius:12px;margin-bottom:1rem;box-shadow:0 2px 4px #0000000d}.interferences h3,.limitations h3{margin-bottom:1rem;color:#111}.interference-tags,.limitation-tags{display:flex;flex-wrap:wrap;gap:.5rem}.tag{padding:.5rem 1rem;background:#fef3c7;color:#92400e;border-radius:6px;font-size:.9rem;font-weight:500}.limitations .tag{background:#dbeafe;color:#1e40af}.invalid-face-notice{padding:1rem;background:#fef3c7;border-left:4px solid #f59e0b;border-radius:4px;color:#92400e;font-size:.9rem;margin-top:1rem}.failure-notice{padding:1rem;background:#fee2e2;border-left:4px solid #ef4444;border-radius:4px;color:#991b1b;font-size:.9rem;margin-top:1rem}.invalid-face-detail{text-align:center;padding:3rem 2rem;background:#fef3c7;border-radius:12px;border:2px dashed #f59e0b;margin-bottom:2rem}.invalid-face-detail h2{color:#92400e;margin-bottom:1rem}.season-rankings-detail{background:#fff;padding:2rem;border-radius:12px;margin-bottom:2rem;box-shadow:0 2px 8px #00000014}.top-season{text-align:center;padding:2rem;background:linear-gradient(135deg,#667eea,#764ba2);border-radius:12px;color:#fff;margin-bottom:2rem}.top-season-badge{background:#fff3;display:inline-block;padding:.5rem 1rem;border-radius:20px;font-size:.9rem;margin-bottom:1rem}.top-season-name{font-size:2rem;font-weight:700;margin-bottom:.5rem}.top-season-percentage{font-size:1.5rem;font-weight:600}.other-seasons h3{margin-bottom:1rem;color:#374151}.season-row{display:flex;align-items:center;gap:1rem;padding:1rem;background:#f9fafb;border-radius:8px;margin-bottom:.75rem}.season-rank{font-size:1.25rem;font-weight:600;color:#6b7280;min-width:40px}.season-row .season-name{flex:1;font-weight:500;color:#111}.season-row .season-percentage{font-weight:600;color:#059669;min-width:60px}.season-bar-small{flex:2;height:6px;background:#e5e7eb;border-radius:3px;overflow:hidden}.season-bar-fill-small{height:100%;background:linear-gradient(90deg,#667eea,#764ba2);transition:width .3s ease}.dimensions-detail{background:#fff;padding:2rem;border-radius:12px;margin-bottom:2rem;box-shadow:0 2px 8px #00000014}.dimensions-grid-detail{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem}.dimension-card-detail{background:#f9fafb;padding:1.5rem;border-radius:10px;border:2px solid #e5e7eb}.dimension-header-detail{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.dimension-name-detail{font-weight:600;color:#374151;font-size:1.1rem}.dimension-score-detail{font-size:1.5rem;font-weight:700;color:#2563eb}.dimension-bar-detail{height:8px;background:#e5e7eb;border-radius:4px;overflow:hidden;margin-bottom:1rem}.dimension-bar-fill-detail{height:100%;background:#2563eb;transition:width .3s ease}.dimension-evidence-detail{font-size:.95rem;color:#6b7280;line-height:1.7}.interferences-detail,.limitations-detail{background:#fff;padding:2rem;border-radius:12px;margin-bottom:2rem;box-shadow:0 2px 8px #00000014}.interference-tags-detail,.limitation-tags-detail{display:flex;flex-wrap:wrap;gap:.75rem;margin-bottom:1rem}.tag-detail{padding:.75rem 1.25rem;border-radius:8px;font-size:1rem;font-weight:500}.tag-detail.warning{background:#fef3c7;color:#92400e;border:1px solid #fcd34d}.tag-detail.info{background:#dbeafe;color:#1e40af;border:1px solid #93c5fd}.note{color:#6b7280;font-size:.9rem;font-style:italic;margin-top:1rem}
