.restore-page { max-width:1280px; padding:58px 5% 80px; }
.restore-page h1 { max-width:940px; font-size:clamp(38px,5vw,66px); letter-spacing:-.045em; margin:22px 0; word-break:keep-all; overflow-wrap:break-word; }
.restore-lead { max-width:790px; font-size:19px; line-height:1.8; }
.restore-actions,.restore-toc { display:flex; flex-wrap:wrap; gap:12px; margin:28px 0; }
.restore-toc a { border-bottom:1px solid var(--line); padding:8px 0; margin-right:18px; font-size:14px; }
.restore-page section { margin-top:64px; scroll-margin-top:30px; }
.restore-page h2 { font-size:clamp(25px,3vw,35px); letter-spacing:-.035em; line-height:1.3; margin:0 0 18px; }
.restore-page h3 { font-size:20px; margin:0 0 12px; }
.restore-page p { max-width:850px; line-height:1.85; }
.restore-note { padding:20px 24px; border-left:3px solid var(--orange); background:#efeee6; border-radius:0 8px 8px 0; margin-top:28px; }
.restore-note p { margin:0; color:var(--ink); font-size:14px; }
.restore-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; padding:0; list-style:none; counter-reset:step; }
.restore-steps li { border:1px solid var(--line); padding:24px; border-radius:8px; counter-increment:step; min-width:0; }
.restore-steps li::before { content:'0' counter(step); color:var(--orange); font-size:13px; font-weight:700; display:block; margin-bottom:15px; }
.restore-steps p { font-size:14px; margin:0; }
.restore-case { border-top:1px solid var(--line); padding-top:38px; }
.restore-case-head { display:flex; gap:24px; justify-content:space-between; align-items:start; }
.restore-case-head>div { min-width:0; }
.restore-badge { display:inline-block; color:#6d4633; background:#eee5d9; padding:5px 10px; border-radius:20px; font-size:12px; white-space:nowrap; }
.restore-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-top:24px; }
.restore-pair figure { margin:0; min-width:0; }
.restore-pair h3 { font-size:17px; }
.restore-pair video,.restore-pending { display:block; width:100%; aspect-ratio:16/9; background:#20221f; border-radius:7px; }
.restore-pair video { height:auto; }
.restore-pending { display:flex; align-items:center; justify-content:center; padding:30px; color:#e7e7de; text-align:center; }
.restore-pair figcaption { color:var(--muted); font-size:13px; line-height:1.75; margin-top:10px; }
.restore-case-links { display:flex; flex-wrap:wrap; gap:10px 20px; margin:24px 0 30px; font-size:14px; }
.restore-case-links a { text-decoration:underline; text-underline-offset:4px; }
.restore-image-comparison { margin-top:30px; }
.restore-image-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 20px; margin:20px 0 34px; }
.restore-image-grid figure { margin:0; min-width:0; }
.restore-image-grid h4 { font-size:15px; margin:0 0 10px; line-height:1.5; }
.restore-image-link { display:block; background:#20221f; border-radius:6px; overflow:hidden; }
.restore-image-grid img { display:block; width:100%; height:auto; max-height:520px; object-fit:contain; }
.restore-image-grid figcaption { font-size:13px; margin-top:9px; line-height:1.7; }
.restore-image-grid figcaption a { text-decoration:underline; text-underline-offset:4px; }
.restore-case details { border-bottom:1px solid var(--line); padding:18px 0; margin-top:18px; }
.restore-case summary { font-weight:700; font-size:14px; }
.restore-case summary::after { content:' +'; color:var(--orange); }
.restore-case details[open] summary::after { content:' −'; }
.restore-still { display:block; width:auto; max-width:100%; max-height:680px; height:auto; margin:20px auto; border-radius:4px; }
.restore-case ul { color:var(--muted); padding-left:20px; }
.restore-sources { display:flex; flex-wrap:wrap; gap:12px 22px; margin:18px 0 6px; font-size:13px; }
.restore-sources a,.restore-page p a { text-decoration:underline; text-underline-offset:4px; }
.restore-compare { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.restore-compare article { padding:26px; border:1px solid var(--line); border-radius:8px; }
.restore-compare p { font-size:14px; margin:0; }
.restore-prompt { white-space:pre-wrap; overflow-wrap:anywhere; padding:24px; background:#e9ece2; border-radius:8px; line-height:1.8; font:14px/1.8 ui-monospace,monospace; }
.restore-page code { overflow-wrap:anywhere; }
.restore-page .restore-small { font-size:13px; }
.restore-tools { display:flex; flex-wrap:wrap; gap:10px; padding:0; list-style:none; }
.restore-tools li { border:1px solid var(--line); border-radius:20px; padding:6px 12px; font-size:13px; }
.restore-footer { padding-top:30px; border-top:1px solid var(--line); }
@media(max-width:650px) {
  .restore-page { padding:38px 6% 60px; }
  .restore-lead { font-size:16px; }
  .restore-page section { margin-top:44px; }
  .restore-steps,.restore-pair,.restore-compare { grid-template-columns:1fr; }
  .restore-case-head { display:block; }
  .restore-badge { white-space:normal; margin-top:8px; }
  .restore-note { padding:18px; }
  .restore-prompt { padding:18px; font-size:13px; }
  .restore-image-grid { gap:20px 12px; }
  .restore-image-grid h4 { font-size:13px; overflow-wrap:break-word; }
  .restore-image-grid img { max-height:320px; }
}
