.restoration-tool{color:#272b38;margin:24px 0;font-family:inherit}.restore-notice{border:1px solid #dde2ea;background:#f8fafc;border-radius:12px;padding:14px 18px;line-height:1.7;color:#62738b}.restore-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0}.restore-toolbar span{flex:1;color:#6e7c91;font-size:13px;overflow-wrap:anywhere}.restoration-tool button,.restoration-tool input,.restoration-tool select{font:inherit}.restoration-tool button{min-height:44px;padding:10px 14px;border:1px solid #dce0e8;border-radius:8px;background:#fff;color:#272b38;cursor:pointer}.restoration-tool button:hover:not(:disabled){border-color:#809dd7;background:#f4f7fc}.restoration-tool button:disabled,.restoration-tool input:disabled,.restoration-tool select:disabled{opacity:.5;cursor:default}.restoration-tool button:focus-visible,.restoration-tool input:focus-visible,.restoration-tool select:focus-visible,.restore-scroll:focus-visible{outline:3px solid #507ffa;outline-offset:2px}.restore-layout{display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:20px}.restore-editor{min-width:0}.restore-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:14px;background:#fff;border:1px solid #dce0e8;border-radius:12px 12px 0 0}.restore-controls button[aria-pressed=true]{background:#edf3ff;border-color:#7497e5;color:#2857b3}.restore-controls label{display:flex;align-items:center;gap:8px;font-size:13px;margin:3px 0}.restore-controls input[type=range]{width:105px}.restore-controls input[type=number]{width:68px;padding:8px;border:1px solid #dce0e8;border-radius:6px;min-height:40px}.restore-controls output{width:40px;font-size:12px}.restore-comparison{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border:1px solid #dce0e8;border-top:0;border-radius:0 0 12px 12px;background:#fff;overflow:hidden}.restore-comparison figure{margin:0;padding:14px;min-width:0}.restore-comparison figure+figure{border-left:1px solid #e5e8ee}.restore-comparison figcaption{display:flex;gap:8px;flex-wrap:wrap;justify-content:space-between;font-size:13px;margin-bottom:12px}.restore-comparison figcaption span{font-size:11px;color:#77859a}.restore-scroll{min-height:320px;max-height:620px;overflow:auto;position:relative;background-color:#eff1f5;background-image:linear-gradient(45deg,#e1e5eb 25%,transparent 25%),linear-gradient(-45deg,#e1e5eb 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e1e5eb 75%),linear-gradient(-45deg,transparent 75%,#e1e5eb 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;border:1px solid #e2e7ef;border-radius:8px}.restore-scroll.dragging{outline:3px solid #507ffa}.restore-empty{display:flex;min-height:320px;align-items:center;justify-content:center;flex-direction:column;gap:14px;padding:30px;text-align:center;color:#62738b;background:#f8fafc}.restore-empty small{font-size:12px;line-height:1.7}.restore-stack{position:relative;width:100%;min-width:50%;margin:0 auto}.restore-stack canvas{display:block;width:100%;height:auto}.restore-stack .restore-mask{position:absolute;inset:0;touch-action:none;cursor:crosshair}.restore-result-scroll>canvas{display:block;width:100%;height:auto;margin:0 auto}.restoration-tool [hidden]{display:none!important}.restore-options{border:1px solid #dce0e8;background:#fff;border-radius:12px;padding:20px;align-self:start}.restore-options h3{margin:0 0 8px;font-size:18px}.restore-local,.restore-limits{font-size:12px;line-height:1.65;color:#75849a}.restore-maskstats{font-size:13px;margin-bottom:6px}.restore-options label{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin:18px 0;font-size:13px}.restore-options input[type=range]{width:100%;accent-color:#527ffa}.restore-options output{font-size:12px;color:#5272b4}.restore-options select{width:100%;min-height:44px;padding:10px;border:1px solid #dce0e8;border-radius:8px;background:#fff;color:#272b38}.restore-options>.restore-primary{width:100%;background:#4f7ff5;color:#fff;border-color:#4f7ff5;margin-top:10px}.restore-options>.restore-primary:hover:not(:disabled){background:#3967d6;color:#fff}.restore-options>[data-r=cancel]{width:100%;border-color:#de7a77;color:#b4232b;margin-top:10px}.restore-status{font-size:13px;line-height:1.65;overflow-wrap:anywhere;min-height:44px}.restoration-tool .error{color:#bd2734}.restore-progress{margin-top:16px}.restore-progress progress{width:100%;height:8px;accent-color:#507ffa}.restore-progress span{display:block;margin-top:6px;font-size:12px;color:#70809a}.restore-region{border-top:1px solid #e5e8ee;border-bottom:1px solid #e5e8ee;padding:12px 0}.restore-region summary{font-size:13px;cursor:pointer;min-height:32px}.restore-coordinate-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.restore-coordinate-grid label{margin:10px 0}.restore-coordinate-grid input{width:100%;min-height:40px;padding:8px;border:1px solid #dce0e8;border-radius:6px;box-sizing:border-box}.restore-region button{width:100%;margin-bottom:8px}@media(max-width:1100px){.restore-layout{grid-template-columns:minmax(0,1fr)}.restore-options{display:grid;grid-template-columns:1fr 1fr;gap:8px 20px}.restore-options h3,.restore-options .restore-local,.restore-maskstats,.restore-limits,.restore-status,.restore-progress,.restore-region{grid-column:1/-1}.restore-options label{margin:6px 0}.restore-comparison figcaption{min-height:35px}}@media(max-width:650px){.restore-comparison{grid-template-columns:1fr}.restore-comparison figure+figure{border-left:0;border-top:1px solid #e5e8ee}.restore-options{display:block}.restore-options label{margin:18px 0}.restore-scroll,.restore-empty{min-height:240px}.restore-toolbar span{flex-basis:100%;order:3}.restore-controls input[type=range]{width:85px}.restore-comparison figure{padding:12px}}
