/* Image upscaling uses the homepage's shared palette, typography and cards. */
.sr-page .text-yellow-500 { color: var(--home-orange); }
.sr-page .home-intro { font-size: 16px; }
.sr-page .home-hero-visual { padding-top: 0; }
.sr-comparison { position: relative; width: 100%; aspect-ratio: var(--sr-ratio, 1.56749); overflow: hidden; isolation: isolate; background: #161a1f; }
.sr-comparison > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: fill; }
.sr-comparison:focus-within { outline: 3px solid var(--home-orange); outline-offset: -3px; }
.sr-demo-bottom { min-height: 66px; }
.sr-demo-options { display: flex; gap: 7px; }
.sr-demo-options button { border: 2px solid transparent; border-radius: 6px; padding: 2px; background: transparent; transition: border-color 180ms; }
.sr-demo-options button[aria-pressed='true'], .sr-demo-options button:hover { border-color: var(--home-orange); }
.sr-demo-options img { display: block; width: 40px; height: 32px; object-fit: cover; border-radius: 3px; }
.sr-feature-grid, .sr-testimonials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.sr-feature-card, .sr-quote { overflow: hidden; border: 1px solid var(--home-line); border-radius: 16px; background: var(--home-surface); }
.sr-feature-picture { position: relative; display: block; width: 100%; aspect-ratio: 1.65; overflow: hidden; border-bottom: 1px solid var(--home-line); }
.sr-feature-picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sr-feature-before { clip-path: inset(0 50% 0 0); }
.sr-feature-divider { position: absolute; inset: 0 auto 0 50%; width: 1px; background: #f1f2ef99; display: flex; align-items: center; justify-content: center; color: #fff; text-shadow: 0 1px 4px #000; }
.sr-feature-picture:hover { filter: brightness(1.08); }
.sr-feature-copy { padding: 26px 28px 30px; }
.sr-page .sr-feature-copy h3 { font-size: 23px; letter-spacing: -.025em; line-height: 1.35; margin: 12px 0; }
.sr-feature-copy p { color: var(--home-muted); font-size: 13px; line-height: 1.8; }
.sr-step-original img { object-fit: contain; padding: 26px; background: #1a1d21; }
.sr-step-badge { position: absolute; bottom: 16px; right: 16px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--home-raised); color: var(--home-orange); font-size: 13px; font-weight: 600; }
.sr-quote { margin: 0; padding: 28px; }
.sr-quote-mark { display: block; height: 42px; color: var(--home-orange); font-size: 56px; line-height: 1; font-family: Georgia, serif; }
.sr-quote blockquote { font-size: 14px; line-height: 1.8; color: var(--home-muted); margin: 10px 0 26px; }
.sr-quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.sr-quote figcaption img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.sr-ad-slot:empty { display: none; }
.sr-page .sr-ad-slot { padding-block: 12px; }
.sr-result-page { padding-bottom: 48px !important; }
.sr-result-header { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: center; padding-block: 44px 36px; }
.sr-page .sr-result-header h1 { font-size: 40px; line-height: 1.2; margin: 18px 0 16px; }
.sr-result-header .home-upload-card { margin-top: 0; padding: 20px; }
.sr-result-upload .home-upload-button { min-height: 48px; }
.sr-result-upload .home-samples { gap: 14px; margin-top: 16px; padding-top: 16px; }
.sr-result-upload .home-sample-images img { width: 42px; height: 42px; }
.sr-page .sr-result-upload .home-privacy { margin-top: 12px !important; text-align: center; }
.sr-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; align-items: start; }
.sr-result-preview { min-width: 0; }
.sr-result-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; min-height: 64px; padding: 12px 18px; border-bottom: 1px solid var(--home-line); }
.sr-result-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.sr-result-tabs button { border: 0; background: transparent; color: var(--home-muted); padding: 10px 12px; border-radius: 7px; font-size: 13px; transition: color 180ms, background 180ms; }
.sr-result-tabs button[aria-selected='true'] { color: #f6b18d; background: #36312d; }
.sr-result-tabs button:hover:not(:disabled) { background: var(--home-raised); }
.sr-page button:disabled { cursor: not-allowed; opacity: .45; }
.sr-compare-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 12px; border: 1px solid var(--home-line); border-radius: 7px; color: var(--home-ink); background: transparent; font-size: 12px !important; transition: border-color 180ms, background 180ms; }
.sr-compare-button[aria-pressed='true'] { color: #f6b18d; border-color: #795642; background: #36312d; }
.sr-compare-button:hover { background: var(--home-raised); border-color: var(--home-orange); }
.sr-result-stage { --sr-stage-height: clamp(320px, 38vw, 510px); position: relative; display: flex; align-items: center; justify-content: center; height: var(--sr-stage-height); overflow: hidden; background: #161a1f; }
.sr-result-stage .sr-comparison { flex: none; width: min(100%, calc(var(--sr-stage-height) * var(--sr-ratio, 1.56749))); }
.sr-result-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.sr-empty-status { color: var(--home-muted); }
.sr-result-info { border-top: 1px solid var(--home-line); min-height: 50px; }
.sr-result-info > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.sr-result-preview[aria-busy='true'] .home-status-dot { background: var(--home-orange); }
.sr-result-sidebar { padding: 24px; border: 1px solid var(--home-line); border-radius: 16px; background: var(--home-surface); }
.sr-page .sr-result-sidebar h2 { font-size: 21px; line-height: 1.4; margin: 14px 0 10px; }
.sr-result-sidebar p { color: var(--home-muted); font-size: 13px; line-height: 1.8; }
.sr-download-button { margin-top: 24px; }
.sr-download-button:disabled:hover { background: var(--home-orange); }
.sr-error { color: #f6b18d; border-top: 1px solid var(--home-line); margin-top: 20px; padding-top: 16px; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.sr-processing { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; background: #11131550; }
.sr-status-pill { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--home-line); border-radius: 9px; background: var(--home-surface); color: var(--home-ink); font-size: 13px; }
.sr-spinner { width: 15px; height: 15px; border: 2px solid var(--home-line); border-top-color: var(--home-orange); border-radius: 50%; animation: sr-spin 1s linear infinite; }
.sr-processing-line { position: absolute; inset: 0 0 auto; height: 40%; background: linear-gradient(transparent, #f19a701a); border-bottom: 1px solid #f19a7080; animation: sr-scan 3s ease-in-out infinite alternate; }
body.upscale-redesign .uploading-modal { max-width: 640px; border: 1px solid #30343b; border-radius: 18px; background: #1a1d21; color: #f1f2ef; }
body.upscale-redesign .uploading-modal .el-dialog__title { color: #f1f2ef; font-size: 20px; }
body.upscale-redesign .uploading-modal .prepare-text { color: #a9afa7 !important; }
body.upscale-redesign .uploading-modal .btn-download { display: inline-block; border: 0 !important; border-radius: 10px; padding: 14px 24px; background: #f19a70; color: #201711 !important; font-size: 15px; text-decoration: none; }
body.upscale-redesign .uploading-modal .el-progress-bar__inner { background: #f19a70; }
@keyframes sr-spin { to { transform: rotate(360deg); } }
@keyframes sr-scan { from { transform: translateY(-100%); } to { transform: translateY(250%); } }
@media (max-width: 991px) {
  .sr-result-header { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
  .sr-page .sr-result-header h1 { font-size: 34px; }
  .sr-workspace { grid-template-columns: minmax(0, 1fr) 220px; gap: 16px; }
  .sr-result-sidebar { padding: 20px; }
  .sr-feature-copy { padding: 22px; }
}
@media (max-width: 767px) {
  .sr-feature-grid, .sr-testimonials, .sr-result-header, .sr-workspace { grid-template-columns: minmax(0, 1fr); }
  .sr-page .home-intro { font-size: 15px; }
  .sr-feature-grid, .sr-testimonials { gap: 20px; }
  .sr-page .sr-feature-copy h3 { font-size: 22px; }
  .sr-quote { padding: 24px; }
  .sr-result-header { gap: 26px; padding-block: 32px 28px; }
  .sr-result-copy { text-align: center; }
  .sr-result-copy .home-eyebrow { justify-content: center; }
  .sr-result-copy .home-intro { margin-inline: auto; }
  .sr-result-upload { width: 100%; max-width: 440px; margin-inline: auto; }
  .sr-page .sr-result-header h1 { font-size: 34px; }
  .sr-result-stage { --sr-stage-height: clamp(260px, 65vw, 420px); }
  .sr-result-toolbar { padding: 10px 12px; gap: 8px; }
  .sr-result-tabs button { padding-inline: 9px; font-size: 12px; }
  .sr-compare-button { min-height: 36px; padding: 7px 9px; }
  .sr-download-button { margin-top: 18px; }
  .sr-result-sidebar { padding: 22px; }
  .sr-demo-options { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) { .sr-spinner, .sr-processing-line { animation: none; } }
