.restore-page{max-width:1120px;padding:26px 0 60px}.restore-intro{max-width:760px;margin:10px auto 26px;text-align:center}.restore-intro h1{max-width:18ch;margin:0 auto 14px;font-size:clamp(40px,6vw,66px);line-height:.98}.restore-lead{max-width:62ch;margin:0 auto;color:var(--muted);font-size:15px}.restore-workspace{display:grid;grid-template-columns:minmax(330px,.9fr) minmax(0,1.1fr);align-items:start;gap:20px}.restore-controls{padding:22px;border-radius:27px;background:#fffaf0}.restore-controls .section-top{align-items:start;gap:10px}.restore-controls h2,.restore-preview h2,.restore-notes h2{margin:0;font-family:Gaegu,"Apple SD Gothic Neo","Malgun Gothic",cursive,sans-serif;font-size:25px}.restore-upload{width:100%;min-height:50px;justify-content:center;margin:12px 0 4px;border-radius:18px}.restore-controls .micro-copy{margin:7px 0;color:#786950;font-size:11px;line-height:1.5}.restore-count{display:inline-block;margin:5px 0 8px;padding:6px 12px;border-radius:99px;background:#ede1ca;color:#68543a;font-size:11px;font-variant-numeric:tabular-nums}.restore-gallery{display:flex;flex-wrap:wrap;gap:8px}.restore-gallery:empty{display:none}.restore-thumb{position:relative;width:66px;height:78px;overflow:hidden;border:1px solid #d6c6a7;border-radius:14px;background:#f3e8d4}.restore-thumb img{width:100%;height:100%;object-fit:cover}.restore-thumb button{position:absolute;top:3px;right:3px;display:grid;width:24px;height:24px;place-items:center;border:1px solid #fff8;background:#fff7;border-radius:50%;color:#43362a;font-size:15px;cursor:pointer}.restore-divider{height:1px;margin:17px 0;border-top:1px dashed #c9b795}.restore-mode-group{min-width:0;margin:15px 0;padding:0;border:0}.restore-mode-group legend{margin-bottom:7px;color:#554735;font-size:12px}.restore-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.restore-mode{display:grid;min-height:64px;grid-template-columns:25px 1fr;align-items:center;gap:7px;padding:9px 11px;border:1px solid #d9c8a9;border-radius:17px;background:#f6eddd;color:#5b4935;font-size:11px;line-height:1.25;text-align:left;cursor:pointer;transition:transform .24s cubic-bezier(.2,1.2,.4,1),background .18s,border-color .18s}.restore-mode:hover{transform:translateY(-2px)}.restore-mode[aria-pressed=true]{border-color:#826746;background:#e9dbc1;box-shadow:inset 0 0 0 1px #826746}.restore-mode>span:first-child{font-size:19px;text-align:center;color:#98794e}.restore-prompt-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:14px 0 6px;color:#554735;font-size:12px}.restore-prompt-top .text-button{min-height:40px;padding:7px 9px;font-size:10px}.restore-controls textarea{width:100%;min-height:180px;resize:vertical;padding:12px;border:1px solid #d2bea0;border-radius:17px;background:#fffdf8;color:#473a2b;font:12px/1.6 system-ui,sans-serif}.restore-prompt-meta{display:flex;justify-content:space-between;gap:8px;margin:6px 1px 0;color:#786950;font-size:10px;line-height:1.4}.restore-prompt-meta output{flex:none;font-variant-numeric:tabular-nums}.restore-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:15px}.restore-actions .button{min-height:48px;justify-content:center;border-radius:16px;white-space:normal;text-align:center}.restore-actions .primary{grid-column:1/-1}.restore-actions #restore-open[aria-disabled=true]{pointer-events:none;opacity:.55;filter:grayscale(.3)}.restore-transfer-note{margin:10px 1px 0;padding:10px 12px;border:1px solid #d8c8ac;border-radius:16px;background:#f3ead9;color:#62513e;font-size:10px;line-height:1.5}.restore-status{min-height:1.5em;margin:10px 1px 0;color:#725b3d;font-size:11px;line-height:1.5}.restore-results{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(220px,.8fr);align-items:start;gap:14px}.restore-preview,.restore-notes{min-width:0;padding:15px;border:1px solid #d6c6a7;border-radius:26px;background:#f5eddc}.restore-preview-heading{display:flex;min-height:50px;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.restore-preview-heading .eyebrow{margin:0 0 3px;font-size:9px}.restore-preview h2,.restore-notes h2{font-size:22px}.restore-preview-frame{display:grid;min-height:420px;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));align-items:start;gap:10px;place-items:center;overflow:hidden;padding:12px;border:1px solid #dfd1b5;border-radius:22px;background:#e8dcc4}.restore-preview-frame img{display:block;width:100%;max-height:360px;aspect-ratio:4/5;object-fit:contain;border:3px solid #fff9ec;border-radius:19px;box-shadow:0 6px 16px #47382120}.restore-empty{grid-column:1/-1;max-width:25ch;padding:20px;color:#75664e;font-size:12px;text-align:center}.restore-notes ul{display:grid;gap:10px;margin:12px 0;padding-left:20px;color:#5e503e;font-size:11px;line-height:1.55}.restore-notes li{padding-left:3px}.restore-notes .micro-copy{margin:13px 0 0;color:#786950;font-size:10px;line-height:1.55}.restore-next-links{display:grid;gap:7px;margin-top:14px}.restore-next-links .button{justify-content:center;border-radius:15px}.restore-page :focus-visible{outline:3px solid #a8583e88;outline-offset:3px}
@media(max-width:900px){.restore-workspace{grid-template-columns:1fr}.restore-controls{max-width:720px;width:100%;margin-inline:auto}.restore-results{max-width:900px;width:100%;margin-inline:auto}}
@media(max-width:620px){.restore-page{padding-top:12px}.restore-intro{margin:8px auto 20px}.restore-intro h1{font-size:42px}.restore-lead{font-size:13px}.restore-controls{padding:17px;border-radius:22px}.restore-controls .section-top{flex-wrap:wrap}.restore-results{grid-template-columns:1fr}.restore-preview,.restore-notes{padding:12px;border-radius:22px}.restore-preview-frame{min-height:290px}.restore-preview-frame img{max-width:220px;max-height:340px}.restore-actions{grid-template-columns:1fr}.restore-actions .primary{grid-column:auto}}
@media(prefers-reduced-motion:reduce){.restore-page *{scroll-behavior:auto;transition:none!important}}
.restore-review{margin-top:18px;padding:clamp(16px,2.5vw,24px);border:1px solid #d6c6a7;border-radius:25px;background:#fffaf0;box-shadow:0 3px 0 #80674415}.restore-review-heading{max-width:68ch}.restore-review-heading .eyebrow{margin:0 0 4px;font-size:9px}.restore-review-heading h2{margin:0;font-family:Gaegu,"Apple SD Gothic Neo","Malgun Gothic",cursive,sans-serif;font-size:26px}.restore-review-heading .micro-copy{margin:6px 0;color:#786950;font-size:11px;line-height:1.5}.restore-review-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.restore-field{display:grid;gap:6px;color:#554735;font-size:12px}.restore-field select{width:100%;min-height:46px;padding:9px 12px;border:1px solid #d2bea0;border-radius:15px;background:#fffdf8;color:#473a2b;font:inherit}.restore-field .button{min-height:46px;justify-content:center;border-radius:15px;white-space:normal}.restore-compare-stage:not([hidden]){display:block;position:relative;width:min(100%,720px);aspect-ratio:4/3;margin:14px auto;overflow:hidden;border:1px solid #d6c6a7;border-radius:22px;background:#e8dcc4}.restore-compare-image{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;background:#e8dcc4}.restore-compare-after{position:absolute;inset:0;overflow:hidden;clip-path:inset(0 calc(100% - var(--compare-split,50%)) 0 0)}.restore-compare-divider{position:absolute;top:0;bottom:0;left:var(--compare-split,50%);width:2px;background:#fffaf0;box-shadow:0 0 0 1px #47382180;transform:translateX(-1px);pointer-events:none}.restore-compare-label{position:absolute;top:10px;padding:5px 9px;border:1px solid #ffffff99;border-radius:99px;background:#fffaf0dd;color:#4e4134;font-size:10px;pointer-events:none}.restore-compare-label-original{right:10px}.restore-compare-label-restored{left:10px}.restore-compare-slider{display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px 12px;margin:12px auto;max-width:720px;color:#554735;font-size:12px}.restore-compare-slider output{font-size:10px;color:#786950;font-variant-numeric:tabular-nums}.restore-compare-slider input{grid-column:1/-1;width:100%;accent-color:#806744}.restore-review-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.restore-review-actions .button{min-height:46px;justify-content:center;border-radius:15px}.restore-compare-status{min-height:1.5em;margin:10px 1px 0;color:#725b3d;font-size:11px;line-height:1.5}
@media(max-width:620px){.restore-review{padding:16px;border-radius:22px}.restore-review-controls{grid-template-columns:1fr}.restore-review-actions{display:grid;grid-template-columns:1fr}.restore-compare-stage:not([hidden]){border-radius:18px}}
