.restore-workspace{--workspace-bg:var(--thup-canvas);--workspace-surface:var(--thup-surface);--workspace-surface-soft:var(--thup-elevated);--workspace-ink:var(--thup-ink);--workspace-muted:var(--thup-mute);--workspace-line:var(--thup-hairline);--workspace-line-strong:var(--thup-workspace-border);--workspace-accent:var(--thup-signal-strong);--workspace-accent-soft:var(--thup-signal-soft);--workspace-blue:var(--thup-signal);--workspace-orange:var(--thup-signal-coral);--workspace-mint:var(--thup-signal-cyan);--workspace-violet:var(--thup-signal-magenta);--workspace-on-color:var(--thup-signal-ink);--workspace-shadow:var(--thup-workspace-shadow);display:flex;width:100%;height:100dvh;min-height:0;padding:0 20px 20px 0;gap:16px;overflow:hidden;color:var(--workspace-ink);background:var(--workspace-bg);font-family:var(--font-sans),"PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.5}.restore-select-menu,.restore-select-menu *,.restore-workspace *,.restore-workspace :after,.restore-workspace :before{box-sizing:border-box}.restore-workspace :where(button,input,textarea,select){font:inherit;color:inherit}.restore-workspace :is(button,a){-webkit-tap-highlight-color:transparent}.restore-workspace button{cursor:pointer}.restore-workspace a{color:inherit;text-decoration:none}.restore-workspace svg{flex-shrink:0}.restore-workspace [data-loading-bars=true]{width:18px;height:18px;flex-shrink:0;color:inherit}.restore-workspace [data-loading-bar=true]{border-radius:1px}.restore-choice-segments label:has(input:focus-visible),.restore-workspace :is(button,input,textarea,a,summary):focus-visible{outline:2px solid var(--workspace-accent);outline-offset:3px}.restore-workspace :where(button,input,textarea):disabled{opacity:.48;cursor:not-allowed}.restore-workspace :is(button,a,input,textarea){transition:background-color .14s ease,border-color .14s ease,box-shadow .14s ease}.restore-workspace :is(button,a):active:not(:disabled){box-shadow:none}.restore-workspace :is(h1,.restore-empty-state h2){font-family:var(--font-logo),var(--font-sans),"PingFang SC",sans-serif;font-weight:900}.restore-workspace :is(h1,h2,h3,p){margin-top:0}.restore-workspace :is(.restore-settings-scroll,.restore-photo-list,.restore-empty-state,.restore-recent-tasks){scrollbar-width:thin;scrollbar-color:var(--workspace-muted) var(--workspace-surface);overscroll-behavior:contain}.restore-workspace :where(.restore-icon-button,.restore-account-button,.restore-collapse-button,.restore-sidebar-upload,.restore-choose-button,.restore-primary-action,.restore-download-action,.restore-text-action,.restore-photo-retry,.restore-batch-submit,.restore-mode-buttons button,.restore-segmented-control button,.restore-plan-card button,.restore-mask-toolbar button,.restore-agent-layout button,.restore-agent-queue button,.restore-onboarding-done,.restore-advanced-trigger,.restore-account-tools button){display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid var(--workspace-line-strong);border-radius:var(--thup-workspace-radius);background:var(--workspace-surface);color:var(--workspace-ink);font-size:14px;font-weight:600;line-height:1.35}.restore-workspace :is(.restore-icon-button,.restore-account-button,.restore-account-tools button){width:44px;height:44px;padding:0;flex-shrink:0}.restore-workspace :is(.restore-sidebar-upload,.restore-choose-button,.restore-primary-action,.restore-onboarding-done){background:var(--workspace-blue);color:var(--workspace-on-color);box-shadow:var(--workspace-shadow)}.restore-workspace .restore-primary-action{min-height:48px}.restore-workspace .restore-sidebar-upload{width:100%}.restore-workspace :is(.restore-icon-button,.restore-account-button,.restore-collapse-button,.restore-text-action,.restore-download-action,.restore-photo-retry,.restore-batch-submit,.restore-mask-toolbar button,.restore-account-tools button):hover:not(:disabled){background:var(--workspace-surface-soft);border-color:var(--workspace-accent)}.restore-workspace :is(.restore-primary-action,.restore-choose-button,.restore-sidebar-upload):hover:not(:disabled){box-shadow:1px 1px 0 var(--workspace-on-color)}.restore-field-label{display:flex;align-items:center;gap:8px;min-width:0;font-weight:600;font-size:14px}.restore-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.restore-step-upload{--workspace-step-color:var(--workspace-mint)}.restore-step-preview{--workspace-step-color:var(--workspace-blue)}.restore-step-settings{--workspace-step-color:var(--workspace-violet)}.restore-step-panel{border:2px solid var(--workspace-line-strong);border-radius:8px;background:var(--workspace-surface);box-shadow:var(--workspace-shadow);overflow:hidden}.restore-step-heading{display:flex;align-items:center;gap:12px;min-width:0;margin:0;font-family:var(--font-sans),sans-serif;font-weight:600}.restore-step-number,.restore-step-trigger-number{font-size:12px;font-weight:800;white-space:nowrap;letter-spacing:.02em}.restore-step-number{padding:4px 6px;border-radius:3px;background:var(--workspace-step-color);color:var(--workspace-on-color);font-size:10px;letter-spacing:.04em}.restore-step-name{display:flex;align-items:center;gap:8px;font-size:14px;line-height:1.4}.restore-preview-heading,.restore-settings-heading,.restore-sidebar-current>.restore-step-heading{display:flex;align-items:center;justify-content:space-between;min-height:56px;flex-shrink:0;gap:8px;padding-inline:12px;border-bottom:1px solid var(--workspace-line)}.restore-preview-heading,.restore-settings-heading{border-radius:2px 2px 0 0}.restore-workspace .restore-settings-heading .restore-icon-button{color:var(--workspace-muted);background:transparent;border-color:transparent}.restore-preview-note{font-size:12px;text-align:right;color:var(--workspace-muted)}.restore-sidebar{display:flex;flex-direction:column;flex:0 0 268px;min-width:0;min-height:0;padding-left:20px;z-index:30}.restore-sidebar-brand{display:flex;align-items:center;min-height:80px;flex-shrink:0}.restore-workspace-brand{display:flex;align-items:center;gap:8px;min-width:0}.restore-workspace-brand>svg{width:24px;height:24px;color:var(--workspace-ink)}.restore-workspace-brand strong{display:block;font-size:24px;line-height:1.15;letter-spacing:-1px}.restore-workspace-brand small{display:block;font-size:10px;color:var(--workspace-muted);margin-top:4px;letter-spacing:.04em}.restore-sidebar-body{position:relative;flex:1;min-height:0;min-width:0;display:flex;flex-direction:column}.restore-sidebar-current{flex-shrink:0}.restore-sidebar-current>.restore-step-heading{justify-content:flex-start;gap:8px;padding-inline:12px}.restore-sidebar-current .restore-step-number{padding-right:8px}.restore-sidebar-current .restore-step-name{gap:4px}.restore-photo-list-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px;min-height:64px}.restore-photo-list-heading>span{font-size:13px;font-weight:600}.restore-photo-list-heading small{margin-left:6px;color:var(--workspace-muted);font-size:11px;font-weight:400}.restore-workspace .restore-sidebar-upload{width:auto;min-height:36px;padding:6px 10px;border-radius:999px;background:var(--workspace-mint);border-color:var(--workspace-on-color);color:var(--workspace-on-color);box-shadow:1px 1px 0 var(--workspace-on-color);font-size:12px}.restore-sidebar-upload[data-empty=true]{display:none}.restore-photo-list{flex:1;min-height:0;min-width:0;overflow:auto;padding:0 12px 12px}.restore-photo-entry{border:1px solid var(--workspace-line);border-radius:6px;background:var(--workspace-surface);margin-bottom:8px;min-width:0}.restore-photo-entry[data-active=true]{border-color:var(--workspace-mint);background:color-mix(in srgb,var(--workspace-mint) 7%,var(--workspace-surface))}.restore-photo-row{display:flex;align-items:center;gap:4px;padding:8px}.restore-photo-select{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;flex:1;gap:10px;min-width:0;padding:0;background:transparent;border:0;text-align:left;border-radius:3px}.restore-photo-thumb{display:block;width:52px;height:64px;overflow:hidden;border-radius:3px;background:var(--workspace-surface-soft)}.restore-photo-thumb img{display:block;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.restore-photo-info{min-width:0}.restore-photo-info strong{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:600}.restore-photo-info small{display:block;color:var(--workspace-muted);font-size:10px;margin-top:3px;white-space:nowrap}.restore-photo-status{display:flex;align-items:center;gap:4px;font-size:10px;line-height:1.4;color:var(--workspace-muted);margin-top:6px}.restore-photo-status svg{width:12px;height:12px}.restore-photo-status[data-status=completed]{color:var(--workspace-mint)}.restore-photo-status[data-status=failed]{color:var(--workspace-orange)}.restore-workspace .restore-more-button{width:32px;height:36px;min-height:36px;padding:0;border-color:transparent;background:transparent;box-shadow:none;color:var(--workspace-muted)}.restore-photo-plan{border-top:1px solid var(--workspace-line);padding:0 8px}.restore-photo-plan>summary{display:flex;align-items:center;gap:6px;min-height:36px;cursor:pointer;list-style:none;font-size:11px}.restore-photo-plan>summary::-webkit-details-marker{display:none}.restore-photo-plan>summary svg:last-child{margin-left:auto}.restore-photo-plan .restore-plan-card{border:0;padding:0;background:transparent}.restore-sidebar-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:200px;padding:24px 8px;color:var(--workspace-muted);text-align:center}.restore-sidebar-empty strong{font-size:13px;color:var(--workspace-ink)}.restore-sidebar-empty small{font-size:12px;line-height:1.7;max-width:180px}.restore-sidebar-footer{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;gap:8px;min-height:64px;padding:10px 12px;border-top:1px solid var(--workspace-line)}.restore-workspace .restore-collapse-button{width:36px;min-height:36px;padding:0;flex-shrink:0;border-color:transparent}.restore-collapse-button .restore-sidebar-label{display:none}.restore-workspace .restore-sidebar-footer :is(.restore-account-button,.restore-account-tools button){width:36px;height:36px;min-height:36px;border-color:transparent}.restore-account-row,.restore-account-tools{display:flex;align-items:center;gap:8px}.restore-account-tools button{position:relative}.restore-account-tools button svg{transition:none}.restore-collapsed-step-icon,.restore-mobile-menu,.restore-settings-backdrop,.restore-sidebar-backdrop,.restore-sidebar-mobile-close{display:none!important}.restore-workspace[data-sidebar-collapsed=true] .restore-sidebar{flex-basis:84px;padding-left:16px}.restore-workspace[data-sidebar-collapsed=true] .restore-sidebar .restore-sidebar-label{display:none}.restore-workspace[data-sidebar-collapsed=true] .restore-sidebar-brand{justify-content:center}.restore-workspace[data-sidebar-collapsed=true] .restore-collapsed-step-icon{display:block!important;margin:18px auto;color:var(--workspace-mint)}.restore-workspace[data-sidebar-collapsed=true] .restore-photo-list-heading{padding:8px 4px;justify-content:center}.restore-workspace[data-sidebar-collapsed=true] .restore-sidebar-upload{display:inline-flex;padding:6px}.restore-workspace[data-sidebar-collapsed=true] .restore-photo-list{padding:0 4px}.restore-workspace[data-sidebar-collapsed=true] .restore-photo-row{padding:3px}.restore-workspace[data-sidebar-collapsed=true] .restore-photo-select{display:block}.restore-workspace[data-sidebar-collapsed=true] .restore-photo-thumb{width:46px;height:56px}.restore-workspace[data-sidebar-collapsed=true] .restore-sidebar-footer{flex-direction:column;padding:8px 0}.restore-workspace-main{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;position:relative}.restore-workspace-header{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:80px;flex-shrink:0}.restore-workspace-header-actions,.restore-workspace-header-left{display:flex;align-items:center;gap:16px;min-width:0}.restore-header-eyebrow{display:block;font-size:12px;color:var(--workspace-muted);margin-bottom:4px}.restore-workspace-header h1{margin:0;font-size:28px;line-height:1.2;letter-spacing:-.04em}.restore-header-filename{max-width:220px;overflow:hidden;text-overflow:ellipsis}.restore-header-filename,.restore-mode-status{white-space:nowrap;font-size:12px;color:var(--workspace-muted)}.restore-mode-status{padding:4px 8px;border:1px solid var(--workspace-line);border-radius:4px}.restore-workspace .restore-advanced-trigger{background:var(--workspace-surface);color:var(--workspace-ink);border-radius:999px;box-shadow:none}.restore-advanced-trigger[aria-expanded=true] .restore-advanced-plus{transform:rotate(45deg)}.restore-editor{flex:1;gap:16px}.restore-canvas-column,.restore-editor{display:flex;min-width:0;min-height:0;position:relative}.restore-canvas-column{flex-direction:column;flex:1;container-type:inline-size}.restore-canvas{position:relative;flex:1;min-height:0;min-width:0;overflow:hidden;display:flex;align-items:center;justify-content:center;background:var(--workspace-surface);isolation:isolate}.restore-canvas.has-photo{background:var(--thup-photo-canvas)}.restore-canvas.is-dragging{outline:3px solid var(--workspace-blue);outline-offset:-3px}.restore-canvas-grid,.restore-canvas.has-photo .restore-canvas-grid{display:none}.restore-photo-scroll{position:relative;width:100%;height:100%;overflow:hidden;cursor:grab;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.restore-photo-scroll.is-panning{cursor:grabbing}.restore-photo-space{position:relative;width:100%;height:100%}.restore-photo-plane{position:absolute;left:50%;top:50%;opacity:0}.restore-photo-plane[data-ready=true]{opacity:1}.restore-photo-layer{display:block;width:100%;height:100%;-o-object-fit:contain;object-fit:contain;pointer-events:none}.restore-photo-layer--before{position:absolute;inset:0}.restore-comparison-hit{position:absolute;top:0;bottom:0;width:44px;transform:translateX(-50%);cursor:ew-resize;touch-action:none}.restore-canvas-divider{top:0;bottom:0;width:2px;pointer-events:none}.restore-canvas-divider,.restore-compare-handle{position:absolute;background:var(--workspace-blue)}.restore-compare-handle{left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid var(--workspace-on-color);border-radius:4px;color:var(--workspace-on-color)!important;cursor:ew-resize!important;box-shadow:var(--workspace-shadow)}.restore-canvas-corner,.restore-canvas-labels{position:absolute;top:12px;left:12px;z-index:4;pointer-events:none}.restore-canvas-corner span,.restore-canvas-labels span{display:inline-block;padding:4px 8px;font-size:12px;border:1px solid var(--workspace-line-strong);border-radius:4px;background:var(--workspace-surface)}.restore-canvas-labels{right:12px;display:flex;justify-content:space-between;gap:8px}.restore-canvas-labels span:last-child{background:var(--workspace-mint);color:var(--workspace-on-color)}.restore-canvas-corner:has(+.restore-photo-scroll .restore-comparison-hit){display:none}.restore-canvas-toolbar{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;gap:8px;padding:8px 12px;border-top:1px solid var(--workspace-line)}.restore-segmented-control{display:flex;flex:0 1 auto;gap:4px;min-width:0}.restore-workspace .restore-segmented-control button{padding:6px 8px;min-height:36px;font-size:12px;border-color:transparent;background:transparent}.restore-mask-toolbar button[aria-pressed=true],.restore-mode-buttons button[aria-pressed=true],.restore-segmented-control button[aria-pressed=true]{background:var(--workspace-mint);color:var(--workspace-on-color);border-color:var(--workspace-on-color)}.restore-zoom-value{font-variant-numeric:tabular-nums;font-size:12px;color:var(--workspace-muted)}.restore-empty-state{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:0;padding:32px;overflow:auto;text-align:center}.restore-empty-copy{min-width:0;max-width:420px}.restore-empty-state h2{margin:0;font-size:clamp(28px,4cqw,40px);line-height:1.25;letter-spacing:-.03em}.restore-empty-state h2 span{display:block}.restore-empty-state h2 span:last-child{color:var(--workspace-accent)}.restore-empty-copy>p{margin:20px auto 24px;max-width:340px;font-size:14px;color:var(--workspace-muted);line-height:1.8}.restore-empty-copy>small{display:block;margin-top:12px;font-size:12px;color:var(--workspace-muted)}.restore-upload-mark{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;margin-bottom:24px;border:1px solid var(--workspace-on-color);border-radius:8px;background:var(--workspace-mint);color:var(--workspace-on-color);box-shadow:var(--workspace-shadow)}.restore-workspace :is(.restore-choose-button,.restore-primary-action,.restore-download-action,.restore-agent-composer form>button,.restore-onboarding-done){border-radius:999px;padding-inline:20px}.restore-workspace .restore-choose-button{min-width:200px;min-height:48px}.restore-view-label{display:inline-flex;align-items:center;gap:6px;color:var(--workspace-muted);font-size:12px}.restore-mobile-photo-heading,.restore-mobile-photos{display:none}.restore-settings-column{position:relative;display:flex;flex-direction:column;flex:0 0 380px;width:380px;min-width:0;min-height:0;outline:none}.restore-settings-modes{padding:12px 12px 0;flex-shrink:0}.restore-mode-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.restore-workspace .restore-mode-buttons button{padding-inline:8px}.restore-agent-mode-row{display:flex;align-items:center;gap:8px;min-height:56px;padding:4px 12px 8px;flex-shrink:0}.restore-agent-switch{display:flex;flex:1;justify-content:space-between;align-items:center;gap:12px;min-height:40px;cursor:pointer}.restore-agent-switch input{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;position:relative;width:44px;height:26px;flex-shrink:0;margin:0;border:1px solid var(--workspace-line-strong);border-radius:4px;background:var(--workspace-surface-soft);cursor:pointer}.restore-agent-switch input:after{content:"";position:absolute;left:4px;top:4px;width:16px;height:16px;border:1px solid var(--workspace-ink);border-radius:2px;background:var(--workspace-ink)}.restore-agent-switch input:checked{background:var(--workspace-violet)}.restore-agent-switch input:checked:after{transform:translateX(18px);border-color:var(--workspace-on-color);background:var(--workspace-on-color)}.restore-settings-scroll{flex:1;min-width:0;min-height:0;overflow:auto;padding:4px 12px 16px}.restore-segment-field,.restore-settings-scroll fieldset{padding:0;margin:0;border:0;min-width:0}.restore-settings-groups{display:grid;gap:12px}.restore-settings-group{--group-color:var(--workspace-mint);border:0;border-bottom:1px solid var(--workspace-line);border-radius:0;background:transparent}.restore-settings-amber{--group-color:var(--workspace-blue)}.restore-settings-group>summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 0;list-style:none;cursor:pointer;background:transparent}.restore-agent-account summary::-webkit-details-marker,.restore-recent-tasks>summary::-webkit-details-marker,.restore-settings-group>summary::-webkit-details-marker{display:none}.restore-settings-group>summary small{margin-left:auto;text-align:right;font-size:12px;color:var(--workspace-muted);max-width:42%}.restore-disclosure-icon{margin-left:auto}.restore-settings-group>summary small+.restore-disclosure-icon{margin-left:0}.restore-settings-group[open]>summary{border:0}.restore-workspace details[open]>summary>.restore-disclosure-icon{transform:rotate(180deg)}.restore-settings-group-body{padding:4px 0 16px}.restore-option-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:0;margin-bottom:12px}.restore-option-row{display:grid;grid-template-columns:20px minmax(0,1fr) 20px;align-items:center;gap:8px;min-height:44px;padding:8px;border:1px solid transparent;border-radius:4px;cursor:pointer}.restore-option-row:hover{border-color:var(--workspace-mint)}.restore-option-row:has(input:checked){background:color-mix(in srgb,var(--workspace-mint) 9%,var(--workspace-surface))}.restore-option-row:has(input:disabled){cursor:not-allowed;opacity:.55}.restore-checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:inline-grid;place-content:center;width:20px;height:20px;flex-shrink:0;margin:0;border:1px solid var(--workspace-line-strong);border-radius:3px;background:var(--workspace-surface);cursor:pointer}.restore-checkbox:checked{background:var(--workspace-mint);border-color:var(--workspace-on-color)}.restore-checkbox:checked:after{content:"";width:9px;height:5px;border:solid var(--workspace-on-color);border-width:0 0 2px 2px;transform:translateY(-1px) rotate(-45deg)}.restore-output-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}.restore-select-field{display:grid;min-width:0;gap:8px}.restore-segment-field legend{margin-bottom:8px;float:none}.restore-choice-segments{display:flex;gap:8px}.restore-choice-segments label{position:relative;flex:1;min-width:0;border-radius:4px}.restore-choice-segments input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}.restore-choice-segments input:disabled{opacity:0}.restore-choice-segments label>span{display:flex;align-items:center;justify-content:center;gap:4px;min-height:44px;padding:8px;border:1px solid var(--workspace-line-strong);border-radius:4px;font-weight:600}.restore-choice-segments label>span svg{visibility:hidden}.restore-choice-segments input:checked+span{background:var(--workspace-blue);border-color:var(--workspace-on-color);color:var(--workspace-on-color)}.restore-choice-segments input:checked+span svg{visibility:visible}.restore-choice-segments input:hover:not(:disabled)+span{border-color:var(--workspace-accent)}.restore-choice-segments input:disabled+span{opacity:.5;cursor:not-allowed}.restore-output-pixels{display:flex;align-items:center;gap:8px;margin:0;font-size:12px;color:var(--workspace-muted);overflow-wrap:anywhere}.restore-output-grid .restore-output-pixels{padding-top:12px;border-top:1px solid var(--workspace-line)}.restore-settings-footer{flex-shrink:0;padding:12px;border-top:1px solid var(--workspace-line-strong)}.restore-settings-footer button{width:100%}.restore-workspace .restore-select-trigger{display:flex;justify-content:space-between;gap:8px;width:100%;min-height:44px;height:auto;padding:8px 12px;border:1px solid var(--workspace-line-strong);border-radius:4px;background:var(--workspace-surface);box-shadow:none;text-align:left;font-weight:500}.restore-workspace .restore-select-trigger[data-state=open]{border-color:var(--workspace-accent)}.restore-select-menu{z-index:110;max-height:min(320px,var(--radix-select-content-available-height,80dvh));min-width:160px;overflow:auto;padding:4px;border:1px solid var(--thup-workspace-border);border-radius:var(--thup-workspace-radius);box-shadow:var(--thup-workspace-shadow);background:var(--thup-surface);color:var(--thup-ink);font-family:var(--font-sans),"PingFang SC",sans-serif;font-size:14px;animation:none!important}.restore-select-menu [data-radix-select-viewport]{height:auto;max-height:280px;padding:0}.restore-select-menu :is([role=option],[role=menuitem]){display:flex;align-items:center;gap:8px;min-height:44px;padding-block:10px;border:1px solid transparent;border-radius:2px;font-weight:500;cursor:pointer}.restore-select-menu [role=option]{padding-left:32px;padding-right:12px}.restore-select-menu :is([role=option],[role=menuitem])[data-highlighted]{outline:none;border-color:var(--thup-workspace-border);background:var(--thup-signal);color:var(--thup-signal-ink)}.restore-select-menu [data-selected=true],.restore-select-menu [role=option][data-state=checked]{font-weight:700}.restore-select-menu [data-disabled]{opacity:.45;cursor:not-allowed}.restore-language-menu{min-width:180px}.restore-language-menu [role=menuitem]>span{flex:1}.restore-action-menu{min-width:180px}.restore-action-menu [data-destructive=true]{color:hsl(var(--destructive))}.dark .restore-action-menu [data-destructive=true]{color:var(--thup-signal-coral)}.restore-action-menu [data-destructive=true][data-highlighted]{background:hsl(var(--destructive));color:hsl(var(--destructive-foreground))}.restore-range-field{min-width:0}.restore-range-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:14px}.restore-range-heading output{border:1px solid var(--workspace-line-strong);border-radius:3px;padding:0 6px;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}.restore-workspace-range{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;width:100%;height:44px;margin:0;padding:0;border:0;background:transparent;cursor:pointer}.restore-workspace-range::-webkit-slider-runnable-track{height:8px;border:1px solid var(--workspace-line-strong);border-radius:3px;background:linear-gradient(to right,var(--workspace-blue) var(--range-fill),var(--workspace-surface-soft) var(--range-fill))}.restore-workspace-range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:20px;height:20px;margin-top:-7px;border:1px solid var(--workspace-line-strong);border-radius:4px;background:var(--workspace-surface);box-shadow:1px 1px 0 var(--workspace-on-color)}.restore-workspace-range::-moz-range-track{height:6px;border:1px solid var(--workspace-line-strong);border-radius:3px;background:var(--workspace-surface-soft)}.restore-workspace-range::-moz-range-progress{height:6px;border-radius:2px;background:var(--workspace-blue)}.restore-workspace-range::-moz-range-thumb{width:18px;height:18px;border:1px solid var(--workspace-line-strong);border-radius:4px;background:var(--workspace-surface);box-shadow:1px 1px 0 var(--workspace-on-color)}.restore-workspace-range:hover:not(:disabled)::-webkit-slider-thumb{background:var(--workspace-blue)}.restore-workspace-range:hover:not(:disabled)::-moz-range-thumb{background:var(--workspace-blue)}.restore-plan-card{margin:8px 0;padding:12px;border:1px solid var(--workspace-line-strong);border-radius:4px;background:var(--workspace-surface-soft);overflow-wrap:anywhere}.restore-plan-card .restore-field-label{font-size:12px}.restore-plan-card p{font-size:12px;line-height:1.6;margin:8px 0 12px}.restore-plan-card button{width:100%}.restore-agent-layout{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}.restore-agent-panel{margin-top:16px;border:0;border-top:1px solid var(--workspace-line);border-radius:0;padding:16px 0;background:transparent}.restore-agent-panel h3{margin:0 0 8px}.restore-agent-current{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:400;color:var(--workspace-muted)}.restore-agent-panel p{margin:12px 0;line-height:1.6;overflow-wrap:anywhere}.restore-agent-account{display:grid;border-block:1px solid var(--workspace-line);margin-top:12px;font-size:12px}.restore-agent-quota{grid-area:1/1;align-self:start;justify-self:start;display:flex;align-items:center;gap:8px;min-height:44px}.restore-agent-quota b{padding:2px 6px;border:1px solid var(--workspace-line);border-radius:3px}.restore-agent-account details{grid-area:1/1;width:100%}.restore-agent-account summary{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;list-style:none;width:-moz-max-content;width:max-content;margin-left:auto}.restore-agent-account small{display:block;color:var(--workspace-muted);margin-block:8px}.restore-agent-account dl{display:grid;grid-template-columns:1fr auto;gap:8px}.restore-agent-account dd{margin:0}.restore-agent-messages article{padding:4px 0 12px;border-bottom:1px solid var(--workspace-line)}.restore-agent-messages article:last-child{border:0}.restore-agent-user{padding:12px;border:1px solid var(--workspace-line-strong);border-radius:4px;background:var(--workspace-surface-soft);white-space:pre-wrap}.restore-agent-intro,.restore-agent-messages small{color:var(--workspace-muted);font-size:12px}.restore-agent-paywall,.restore-agent-warning{border-left:3px solid var(--workspace-orange);padding:8px 12px;background:var(--workspace-surface-soft);font-size:12px}.restore-agent-warning>svg{display:inline;vertical-align:text-bottom;margin-right:6px}.restore-agent-paywall a,.restore-agent-signin{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;text-decoration:underline}.restore-agent-signin{width:100%;border:1px solid var(--workspace-line-strong);border-radius:4px}.restore-agent-composer{flex-shrink:0;padding:12px;border-top:1px solid var(--workspace-line-strong);background:var(--workspace-surface)}.restore-agent-input{position:relative;margin-bottom:8px}.restore-agent-input textarea,.restore-edit-instruction textarea{display:block;width:100%;min-height:96px;max-height:160px;padding:12px;resize:vertical;border:1px solid var(--workspace-line-strong);border-radius:4px;background:var(--workspace-surface);color:var(--workspace-ink);font:inherit;line-height:1.6}.restore-agent-input textarea{padding-bottom:24px}.restore-agent-input output{position:absolute;bottom:4px;right:8px;font-size:12px;color:var(--workspace-muted);pointer-events:none}.restore-agent-composer form>button{width:100%;background:var(--workspace-violet);border-color:var(--workspace-on-color);color:var(--workspace-on-color);box-shadow:var(--workspace-shadow)}.restore-mask-overlay{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair;z-index:3}.restore-mask-toolbar{display:grid;gap:8px;min-width:0;margin:0;padding:8px 12px;border:0;border-top:1px solid var(--workspace-line);flex-shrink:0}.restore-mask-actions,.restore-mask-tools{display:flex;align-items:center;gap:6px;min-width:0}.restore-workspace .restore-mask-toolbar button{flex-shrink:0;min-height:36px;padding:6px 8px;font-size:12px}.restore-mask-tools button:nth-last-child(2){margin-left:auto}.restore-mask-actions .restore-range-field{flex:1;min-width:0;display:flex;align-items:center;gap:12px}.restore-mask-actions .restore-range-heading{flex-shrink:0;gap:6px}.restore-mask-actions .restore-field-label{font-size:12px}.restore-mask-actions .restore-workspace-range{height:36px;min-width:40px}.restore-mask-save{margin-left:auto}.restore-mask-intent{display:grid;gap:16px}.restore-edit-instruction{display:grid;gap:8px}.restore-edit-settings>p{margin:12px 0 0;font-size:12px;color:var(--workspace-muted);line-height:1.6}.restore-agent-queue,.restore-batch-summary,.restore-recent-tasks,.restore-task-progress{flex-shrink:0;padding:8px 12px;margin-top:8px;border:1px solid var(--workspace-line-strong);border-radius:4px;background:var(--workspace-surface);font-size:12px}.restore-task-progress progress{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:block;width:100%;height:8px;border:1px solid var(--workspace-line-strong);border-radius:2px;margin-bottom:8px;background:var(--workspace-surface-soft);overflow:hidden}.restore-task-progress progress::-webkit-progress-bar{background:var(--workspace-surface-soft)}.restore-task-progress progress::-webkit-progress-value{background:var(--workspace-blue)}.restore-task-progress progress::-moz-progress-bar{background:var(--workspace-blue)}.restore-agent-queue{display:flex;align-items:center;gap:8px;flex-wrap:wrap;max-height:140px;overflow:auto}.restore-agent-queue small{width:100%;color:var(--workspace-muted)}.restore-recent-tasks{max-height:180px;overflow:auto;padding-block:0}.restore-recent-tasks summary{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;list-style:none;font-weight:600}.restore-recent-task{align-items:center;justify-content:space-between;flex-wrap:wrap;padding-block:8px}.restore-action-bar,.restore-recent-task{display:flex;gap:12px;border-top:1px solid var(--workspace-line)}.restore-action-bar{flex-direction:column;flex-shrink:0;padding:16px 12px;background:var(--workspace-surface)}.restore-action-meta{justify-content:space-between;font-size:11px;color:var(--workspace-muted)}.restore-action-meta,.restore-submit-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.restore-submit-actions{min-width:0}.restore-submit-actions>button{flex:1}.restore-credit-quote{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--workspace-muted);width:auto}.restore-primary-action>span{white-space:nowrap}.restore-primary-action .restore-action-label-compact{display:none}.restore-submit-actions:has(.restore-download-action) .restore-action-label-full{display:none}.restore-submit-actions:has(.restore-download-action) .restore-action-label-compact{display:inline}.restore-credit-quote:empty{display:none}.restore-workspace .restore-download-action{min-height:48px}.restore-workspace .restore-batch-submit{flex-basis:100%}.restore-workspace-main>.restore-action-bar{flex-direction:row;align-items:center;padding:12px 0 0;background:transparent;border:0}.restore-workspace-main>.restore-action-bar .restore-submit-actions{margin-left:auto}.restore-workspace-main>.restore-action-bar .restore-credit-quote{width:auto}.restore-workspace-main>.restore-action-bar .restore-action-meta{flex-direction:column;align-items:flex-start}.restore-workspace-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;position:absolute;left:12px;right:12px;bottom:104px;z-index:65;padding:12px;border:1px solid var(--workspace-line-strong);border-radius:4px;box-shadow:var(--workspace-shadow);background:var(--workspace-surface);font-size:14px}.restore-onboarding{--guide-color:var(--workspace-mint);position:fixed;inset:0;z-index:100}.restore-onboarding[data-onboarding-step="2"]{--guide-color:var(--workspace-blue)}.restore-onboarding[data-onboarding-step="3"]{--guide-color:var(--workspace-violet)}.restore-onboarding-scrim{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:rgba(0,0,0,.65)}.restore-onboarding-bubble{position:absolute;top:112px;left:252px;width:min(320px,calc(100vw - 40px));padding:20px;border:1px solid var(--workspace-line-strong);border-radius:4px;background:color-mix(in srgb,var(--workspace-surface) 94%,transparent);box-shadow:var(--workspace-shadow)}.restore-onboarding[data-onboarding-step="2"] .restore-onboarding-bubble{left:50%;transform:translateX(-50%)}.restore-onboarding[data-onboarding-step="3"] .restore-onboarding-bubble{right:32px;left:auto}.restore-onboarding-kicker{display:inline-block;margin-bottom:12px;padding:2px 8px;border:1px solid var(--workspace-on-color);border-radius:3px;background:var(--guide-color);color:var(--workspace-on-color);font-size:12px;font-weight:700}.restore-onboarding-bubble h2{font-size:20px;line-height:1.4;margin:0}.restore-onboarding-bubble p{margin:12px 0;font-size:14px;color:var(--workspace-muted)}.restore-onboarding-bubble small{display:block;padding-right:24px;color:var(--workspace-muted);font-size:12px}.restore-onboarding-arrow{position:absolute;right:16px;bottom:16px}.restore-onboarding[data-onboarding-step="1"] .restore-onboarding-arrow{transform:rotate(180deg)}.restore-onboarding[data-onboarding-step="3"] .restore-onboarding-arrow{display:none}.restore-workspace .restore-onboarding-done{width:100%;margin-top:12px;background:var(--guide-color)}.restore-onboarding-remember{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin-top:10px;font-size:12px;cursor:pointer}@container (max-width: 620px){.restore-preview-note,.restore-zoom-value{display:none}.restore-empty-state{padding:24px}}@media (min-width:1101px){.restore-workspace[data-advanced-open=true] .restore-advanced-trigger{display:none}}@media (min-width:701px) and (max-width:1300px){.restore-workspace{padding-right:16px;gap:12px}.restore-sidebar{flex-basis:244px;padding-left:16px}.restore-editor{gap:12px}.restore-header-filename,.restore-mode-status{display:none}.restore-workspace-brand strong{font-size:22px}.restore-mask-tools{overflow-x:auto}.restore-mask-actions .restore-range-field{flex-direction:column;align-items:stretch;gap:0}}@media (max-width:1100px){.restore-settings-column{position:absolute;top:0;bottom:0;right:0;z-index:60;width:min(380px,calc(100vw - 24px))}.restore-settings-backdrop{display:block!important;position:fixed;inset:0;width:100%;height:100%;z-index:55;border:0;background:rgba(0,0,0,.5)}}@media (max-width:700px){.restore-workspace{padding:0 16px calc(12px + env(safe-area-inset-bottom));gap:0}.restore-sidebar,.restore-workspace[data-sidebar-collapsed=true] .restore-sidebar{display:none}.restore-workspace[data-mobile-sidebar=true] .restore-sidebar{display:flex;position:fixed;inset:0 auto 0 0;width:min(320px,calc(100vw - 32px));padding:0 12px 12px;z-index:70;background:var(--workspace-bg)}.restore-workspace[data-mobile-sidebar=true] .restore-sidebar .restore-sidebar-label{display:block}.restore-workspace[data-mobile-sidebar=true] .restore-sidebar .restore-account-tools,.restore-workspace[data-mobile-sidebar=true] .restore-sidebar .restore-step-heading{display:flex}.restore-workspace[data-mobile-sidebar=true] .restore-sidebar .restore-sidebar-upload{display:inline-flex}.restore-workspace[data-mobile-sidebar=true] .restore-sidebar-brand{justify-content:space-between}.restore-workspace[data-mobile-sidebar=true] .restore-photo-list-heading{justify-content:space-between;padding:12px}.restore-workspace[data-mobile-sidebar=true] .restore-photo-list{padding:0 12px 12px}.restore-workspace[data-mobile-sidebar=true] .restore-photo-row{padding:8px}.restore-workspace[data-mobile-sidebar=true] .restore-photo-select{display:grid}.restore-workspace[data-mobile-sidebar=true] .restore-photo-thumb{width:52px;height:64px}.restore-workspace[data-mobile-sidebar=true] .restore-sidebar-footer{flex-direction:row;justify-content:flex-end;padding:10px 12px}.restore-workspace .restore-collapse-button,.restore-workspace[data-mobile-sidebar=true] .restore-collapsed-step-icon{display:none!important}.restore-sidebar-backdrop{display:block!important;position:fixed;inset:0;width:100%;height:100%;z-index:65;border:0;background:rgba(0,0,0,.5)}.restore-workspace .restore-mobile-menu,.restore-workspace .restore-sidebar-mobile-close{display:inline-flex!important}.restore-sidebar-brand,.restore-workspace-header{min-height:68px}.restore-workspace-header,.restore-workspace-header-left{gap:8px}.restore-workspace-header h1{font-size:18px}.restore-advanced-plus,.restore-header-eyebrow,.restore-header-filename,.restore-mode-status{display:none}.restore-workspace .restore-advanced-trigger{width:40px;min-height:40px;padding:0;border-radius:4px}.restore-advanced-trigger .restore-step-trigger-number{display:none}.restore-workspace button{min-height:40px;padding:6px 8px;gap:6px;font-size:13px}.restore-workspace :is(.restore-icon-button,.restore-account-button,.restore-account-tools button){width:40px;height:40px;min-height:40px;padding:0}.restore-preview-heading{min-height:48px;padding:6px 10px}.restore-workspace[data-has-photo=true] .restore-preview-heading>.restore-step-heading{display:none}.restore-mobile-photo-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-width:0}.restore-mobile-photo-heading>span{min-width:0}.restore-mobile-photo-heading strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500;font-size:12px}.restore-mobile-photo-heading small{display:block;color:var(--workspace-muted);font-size:10px;margin-top:2px}.restore-workspace .restore-more-button{width:32px;height:36px;min-height:36px}.restore-mobile-photos{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:56px;padding:6px 10px;flex-shrink:0;border-top:1px solid var(--workspace-line)}.restore-mobile-photos>span{flex-shrink:0;font-size:10px;color:var(--workspace-muted)}.restore-thumbnail-strip{display:flex;gap:6px;overflow-x:auto;padding:2px;scrollbar-width:none}.restore-workspace .restore-thumbnail-strip button{flex-shrink:0;width:38px;height:38px;min-height:38px;padding:2px;border:1px solid transparent;border-radius:4px;background:transparent}.restore-thumbnail-strip img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;border-radius:2px}.restore-thumbnail-strip button[aria-pressed=true]{border-color:var(--workspace-blue)}.restore-workspace .restore-thumbnail-strip .restore-thumbnail-add{border:1px dashed var(--workspace-line-strong);display:flex;align-items:center;justify-content:center}.restore-canvas-toolbar{padding:4px 10px;gap:4px}.restore-workspace .restore-segmented-control button{min-height:36px;padding:6px;gap:4px;font-size:12px}.restore-workspace .restore-segmented-control button svg{width:16px;height:16px}.restore-empty-state{padding:24px 20px}.restore-empty-state h2{font-size:32px}.restore-empty-copy>p{font-size:13px;margin:16px auto 24px}.restore-empty-copy>small{font-size:10px}.restore-settings-column{position:fixed;inset:auto 12px 12px;width:auto;height:85dvh;max-height:calc(100dvh - 24px);padding-bottom:env(safe-area-inset-bottom)}.restore-settings-heading{min-height:52px;padding-block:4px}.restore-settings-modes{padding:12px 12px 0}.restore-agent-mode-row{min-height:52px;padding:4px 12px}.restore-settings-scroll{padding:4px 12px 12px}.restore-output-grid,.restore-settings-groups{gap:12px}.restore-settings-group-body{padding:4px 0 12px}.restore-option-grid{margin-bottom:12px}.restore-choice-segments label>span,.restore-workspace .restore-select-trigger{min-height:40px;padding:6px 8px}.restore-agent-input textarea,.restore-edit-instruction textarea{resize:none;font-size:16px}.restore-mask-toolbar{padding:6px 10px;gap:6px}.restore-mask-tools{gap:4px;overflow-x:auto}.restore-workspace .restore-mask-toolbar button{min-height:36px;padding:4px 6px;gap:4px;font-size:11px}.restore-mask-tools button:nth-last-child(-n+2){width:32px}.restore-mask-tools button svg{width:16px;height:16px}.restore-mask-actions .restore-range-field{gap:8px;flex-direction:row}.restore-mask-actions .restore-field-label{display:none}.restore-mask-actions .restore-range-heading{gap:0}.restore-mask-actions .restore-range-heading output{padding:0 4px;font-size:11px}.restore-mask-actions .restore-range-heading:before{content:none}.restore-mask-save{white-space:nowrap}.restore-workspace-main>.restore-action-bar{flex-direction:column;align-items:stretch;gap:8px;padding:12px 0 0}.restore-workspace-main>.restore-action-bar .restore-action-meta{flex-direction:row;align-items:center}.restore-workspace-main>.restore-action-bar .restore-submit-actions{width:100%;margin:0}.restore-workspace-main>.restore-action-bar .restore-credit-quote{width:auto}.restore-primary-action .restore-action-label-full{display:none}.restore-primary-action .restore-action-label-compact{display:inline}.restore-workspace :is(.restore-primary-action,.restore-download-action,.restore-onboarding-done,.restore-choose-button){min-height:44px;padding:10px 16px;font-size:14px}.restore-workspace-notice{bottom:100px;left:0;right:0}.restore-agent-queue,.restore-task-progress{max-height:90px;overflow:auto;margin-top:4px}.restore-onboarding-bubble,.restore-onboarding[data-onboarding-step="2"] .restore-onboarding-bubble,.restore-onboarding[data-onboarding-step="3"] .restore-onboarding-bubble{top:90px;left:20px;right:20px;width:auto;transform:none}}@media (max-height:620px){.restore-sidebar-brand,.restore-workspace-header{min-height:56px}.restore-sidebar-empty{min-height:120px}.restore-agent-input textarea{min-height:76px}.restore-empty-state{align-items:flex-start;padding:20px}}@media (min-width:701px) and (max-height:620px){.restore-preview-heading,.restore-settings-heading,.restore-sidebar-current>.restore-step-heading{min-height:48px;padding-block:4px}.restore-canvas-toolbar{padding:4px 8px}.restore-mask-toolbar{display:flex;align-items:center;overflow-x:auto;gap:12px;padding:6px 8px}.restore-mask-actions,.restore-mask-tools{flex-shrink:0}.restore-mask-actions .restore-range-field{flex-direction:row;width:200px}.restore-workspace-main>.restore-action-bar{padding-top:8px}}@media (prefers-reduced-motion:reduce){.restore-select-menu *,.restore-workspace *,.restore-workspace :after,.restore-workspace :before{animation:none!important;transition:none!important;scroll-behavior:auto!important}}