.fitting { max-width: 1480px; padding: 42px clamp(20px, 3.2vw, 48px) 36px; margin: auto; }
.fitting-intro { margin-bottom: 32px; }
.fitting-intro h1 { font-size: clamp(27px, 3vw, 40px); letter-spacing: -.04em; line-height: 1.25; margin: 12px 0; }
.fitting-intro .lede { max-width: none; font-size: 16px; }
.fitting-grid { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 28px; }
.fitting-panel { min-width: 0; }
.step-title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.step-title > span { font-size: 12px; color: #86868b; font-variant-numeric: tabular-nums; }
.step-title h2 { font-size: 17px; font-weight: 600; margin: 0; }
.upload-zone, .result-stage { min-height: 320px; height: clamp(320px, 31vw, 470px); border-radius: 16px; background: #f5f5f7; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.upload-zone { border: 1px dashed #d2d2d7; cursor: pointer; }
.upload-zone.is-dragging { border-color: #0066cc; background: #edf5ff; }
.upload-zone:focus-within { outline: 2px solid #0066cc; outline-offset: 3px; }
.upload-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 1; }
.upload-zone img { width: 100%; height: 100%; object-fit: contain; }
.upload-copy { display: grid; justify-items: center; gap: 10px; padding: 24px; text-align: center; pointer-events: none; }
.upload-copy strong { font-size: 15px; font-weight: 500; }
.upload-copy small, .image-note { color: #6e6e73; font-size: 12px; line-height: 1.7; }
.upload-symbol { font-size: 32px; font-weight: 200; margin-bottom: 4px; color: #86868b; }
.image-note { margin: 12px 0; }
.text-button { background: none; padding: 4px 0; border: 0; color: #0066cc; font-size: 12px; cursor: pointer; }
.reference-editor { border-radius: 16px; overflow: hidden; background: #f5f5f7; }
#reference-canvas { width: 100%; display: block; cursor: crosshair; touch-action: none; }
.reference-tools { display: flex; justify-content: space-between; padding: 8px 14px; }
.field-label { display: block; font-size: 12px; font-weight: 500; margin: 16px 0 7px; }
.field-label span { color: #86868b; font-weight: 400; }
.fitting input:not([type=file]), .fitting select { font: inherit; font-size: 13px; background: #fff; border: 1px solid #d2d2d7; border-radius: 8px; width: 100%; min-height: 42px; padding: 10px 12px; color: #1d1d1f; }
.selected-item { display: flex; gap: 12px; align-items: center; padding: 12px; margin-top: 16px; border: 1px solid #e8e8ed; border-radius: 12px; font-size: 12px; }
.selected-item img { width: 58px; height: 66px; object-fit: contain; background: #f5f5f7; border-radius: 6px; }
.selected-item small { color: #6e6e73; line-height: 2; }
.result-stage { border: 1px solid #e8e8ed; background: #fafafa; }
#result-image { width: 100%; height: 100%; object-fit: contain; }
.result-empty { text-align: center; color: #86868b; padding: 24px; }
.result-empty > span { font-size: 44px; display: block; margin-bottom: 20px; }
.result-empty strong { font-size: 15px; color: #6e6e73; font-weight: 500; }
.result-empty p, .generating p { font-size: 13px; line-height: 1.7; }
.result-actions { display: flex; gap: 8px; margin-top: 12px; }
.secondary-button { flex: 1; text-align: center; text-decoration: none; background: #fff; border: 1px solid #d2d2d7; border-radius: 8px; padding: 10px; font-size: 12px; cursor: pointer; color: #1d1d1f; }
.generating { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #f5f5f7f5; padding: 24px; }
.generating strong { font-size: 15px; margin-top: 18px; }
.generating small { font-size: 12px; color: #6e6e73; line-height: 1.7; }
.tryon-spinner { width: 27px; height: 27px; border-radius: 50%; border: 2px solid #d2d2d7; border-top-color: #1d1d1f; animation: tryon-spin .9s linear infinite; }
@keyframes tryon-spin { to { transform: rotate(360deg); } }
.generate-bar { border-top: 1px solid #e8e8ed; margin-top: 30px; padding-top: 24px; display: flex; gap: 28px; align-items: center; justify-content: space-between; }
.generate-notes p { font-size: 12px; color: #86868b; margin: 4px 0; line-height: 1.65; max-width: 570px; }
.generate-notes #service-status { color: #6e6e73; }
.generate-controls { display: flex; align-items: flex-end; gap: 12px; }
.access-label { display: block; font-size: 11px; color: #6e6e73; min-width: 170px; }
.access-label input { margin-top: 5px; }
.generate-button { white-space: nowrap; background: #1d1d1f; border: 0; border-radius: 9px; color: #fff; font-size: 14px; padding: 13px 24px; min-height: 42px; cursor: pointer; }
.generate-button:disabled { opacity: .4; cursor: not-allowed; }
.fitting-message { min-height: 22px; font-size: 13px; line-height: 1.7; color: #b33c2f; margin-top: 16px; }
.optional-details { border-top: 1px solid #e8e8ed; margin-top: 18px; padding-top: 14px; }
.optional-details summary { cursor: pointer; font-size: 12px; color: #6e6e73; }
.measurements { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.measurements label { font-size: 11px; color: #6e6e73; }
.measurements input { margin-top: 5px; }
.extra-upload { display: inline-block; cursor: pointer; font-size: 12px; color: #0066cc; }
.extra-upload input { display: block; width: 100%; margin-top: 8px; font-size: 11px; }
.extra-previews { display: flex; gap: 8px; margin-top: 12px; }
.extra-previews img { width: 60px; height: 75px; object-fit: contain; border-radius: 6px; background: #f5f5f7; }
.quality-note { font-size: 12px; line-height: 1.7; color: #28734a; }
.quality-note.is-warning { color: #9b5b13; background: #fff7e7; padding: 12px; border-radius: 8px; }
@media (max-width: 1050px) { .fitting-grid { gap: 18px; } .generate-bar { align-items: flex-start; flex-direction: column; } .generate-controls { width: 100%; justify-content: flex-end; } }
@media (max-width: 740px) { .fitting { padding-top: 28px; } .fitting-grid { grid-template-columns: 1fr; gap: 30px; } .upload-zone, .result-stage { height: 420px; min-height: 0; } .generate-controls { flex-direction: column; align-items: stretch; } .generate-button { width: 100%; } .nav-links { gap: 14px; } .nav-link { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .tryon-spinner { animation-duration: 2s; } }
