#sync-dialog{position:fixed;inset:0;width:100%;max-width:480px;height:var(--sync-height,100%);max-height:100%;border:0;border-radius:0;padding:0;margin:0 auto;background:#f5f5f5;color:#202020;overflow:hidden}
#sync-dialog::backdrop{background:rgba(0,0,0,.36)}
#sync-dialog>header{height:calc(72px + env(safe-area-inset-top,0px));padding:env(safe-area-inset-top,0px) 16px 0;display:flex;align-items:center;box-sizing:border-box;background:#f5f5f5}
#sync-dialog h2{font-size:20px;line-height:28px;font-weight:600;margin:0 0 0 8px}
#sync-dialog h3{font-size:16px;line-height:24px;font-weight:600;margin:0 0 12px}
#sync-dialog .sync-scroll{height:calc(100% - 72px - env(safe-area-inset-top,0px));overflow:auto;padding:8px 16px calc(24px + env(safe-area-inset-bottom,0px));box-sizing:border-box;scrollbar-width:none}
#sync-dialog .sync-scroll::-webkit-scrollbar{display:none;width:0;height:0}
#sync-dialog .sync-card{padding:16px;background:#fff;border-radius:20px;margin:0 0 16px}
#sync-dialog p{font-size:15px;line-height:24px;margin:0 0 12px;overflow-wrap:anywhere}
#sync-dialog input:not([type=checkbox]),#sync-dialog select{width:100%;min-width:0;box-sizing:border-box;font:inherit;font-size:16px;line-height:24px;min-height:46px;border:1px solid #d8d8d8;border-radius:12px;background:white;color:#202020;padding:10px 12px;margin:8px 0 16px}
#sync-dialog label{font-size:15px;line-height:24px;display:block}
#sync-dialog button:not(.icon-button){min-height:44px;box-sizing:border-box;font-size:15px;line-height:22px;padding:10px 16px;margin:8px 0;white-space:normal}
#sync-dialog button.primary{background:#202020;color:#fff;border:0;border-radius:24px}
#sync-dialog button.secondary{border:1px solid #d8d8d8;border-radius:24px;background:#fff;color:#202020}
#sync-dialog button:disabled{opacity:.45}
#sync-dialog .check-row{display:flex;align-items:flex-start;margin:16px 0}
#sync-dialog .check-row input{width:20px;height:20px;flex:none;margin:2px 10px 0 0}
#sync-dialog .sync-actions{display:flex;flex-wrap:wrap}
#sync-dialog .sync-actions>*+*{margin-left:8px}
#sync-dialog .sync-device{padding:12px 0;border-bottom:1px solid #eee}
#sync-dialog .sync-device span{display:block;font-size:13px;line-height:22px;color:#666}
#sync-error{color:#a52a20;margin:16px 0}
[data-open-sync] small{display:block;font-size:12px;line-height:20px;color:#666;font-weight:400}
